![background image](http://html1.mh-extra.com/html/omron/c200h-ct021/c200h-ct021_operation-manual_741966086.webp)
77
Data Transfer Programs
Section 7-5
7-5-3
Program Example for Range Change
The range is changed with external data transfer switches in the following
example.
1,2,3...
1.
Prepare a data storage area for the source.
Set as shown in the following diagram because the unit number is 0, the
area is the DM, and the number of transfer data blocks is 3.
2.
Store the range data to be used in a DM area that is not used by the Spe-
cial I/O Unit.
The words must be from DM 0900 on.
To transfer more than three transfer data blocks, store them in a different
area, and move three data blocks to DM 0900 to DM 0917 to transfer each
time. A total of three blocks of transfer data can be transferred at a time.
Unit No. 0
Rotary encoder
SW1 (00000): Start switch
SW2 (00001): Data transfer switch
16
points
Wd 0
First word no. of source
No. of transfer data blocks and
PC data area
DM 1003
DM 1004
Range no.
Lower limit
Upper limit
Output pattern
Set a total of
three transfer
data blocks
with the
same
method.
to
to
DM 0900
DM 0906
Sign
DM 0901
DM 0902
DM 0903
DM 0904
DM 0905
Sign
DM 0907
DM 0912
DM 0917
Summary of Contents for C200H-CT021
Page 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Page 2: ...iv ...
Page 4: ...vi ...