
75
Data Transfer Programs
Section 7-5
7-5
Data Transfer Programs
The High-speed Counter Unit usually operates according to a maximum of 16
ranges set in the DM area. New ranges can be, however, transferred from the
PC so that the High-speed Counter Unit can use new ranges.
Note
After writing a program, make sure that the program works properly.
7-5-1
Data Transfer Steps
Take the following steps to transfer data.
1,2,3...
1.
Data Storage Area of Source
The data storage area cannot be changed after turning ON or restarting
the High-speed Counter Unit unless the IOWR instruction is used. The
IOWR instruction cannot be used with all PCs.
Set DM word m+3 and m+4 to the first word number of transfer data, PC
data area, and the number of data blocks.
2.
When Turning ON or Restarting
Data will be transferred from the PC to the data memory area of High-
speed Counter Unit when the High-speed Counter Unit is turned ON or re-
started.
3.
Setting the Ranges or Count Value
Values can be written to the data area or DM area of the PC with ladder
programs or the Programming Console.
Six Words Used by Transfer Data:
A transfer data block uses six words. Three ranges with range numbers
can be transferred at a time. Write these ranges to consecutive words in
the same area.
Transfer the present counter value in a data block.
4.
Data Transfer
Set word n bit 03 to 1 to execute data transfer.
Ranges and the present counter value can be transferred after the above
bit is set to 1 and completed from the next I/O refresh on.
The completion of data transfer can be checked with word n+6 bit 14. This
bit will be set from 0 to 1 or vice versa when the data transfer has been
completed.
1, 2, 3...
1. Set the data storage area of the source.
2. Turn ON or restart the High-speed Counter Unit.
3. Set the ranges or count value.
4. Execute data transfer.
Initial settings
After turning ON or restarting the High-
speed Counter, follow steps 3 and 4 to
transfer data.
No. of transfer data
blocks (01 to 03)
PC data area
Word no.
PC data area
First word number of transfer data
Preset value
Set to 0 in preset mode.
The EM area is available for the C200HX and C200HG PCs.
Содержание C200H-CT021
Страница 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Страница 2: ...iv ...
Страница 4: ...vi ...