110
Program Example for Cumulative Gate Mode
Section 9-6
Switch Settings
The unit number of the High-speed Counter Unit is set to 1.
Wiring
The A- and B-phase outputs of the incremental encoder are connected to
counter 1 inputs A and B.
Connect the outputs of the photoelectric sensor to external control input IN2.
DM Settings
Program Example
DM 1100
DM 1101
Cumulative gate mode, BCD data, offset
phase pulse inputs x 1, and external
control inputs
DIFD(14)03000
MOV(21)
112
D0002
MOV(21)
113
D0003
11600
03000
CMPL(60)
112
D0000
25313
KEEP
03001
25506
S
R
11600
CLC(41)
25313
SUBL(55)
D0002
D0004
D0006
03001
KEEP
00000
25504
S
R
(Counting)
(CY Flag)
Error reset
Outputs if length is incorrect.
Checks whether count value
is < comparison value.
Detects mark and check whether
reset is executed.
Present counter value of counter 1 is
transferred whenever the operation
stops.
Count value
Comparison
value
DM 0000
to
DM 1007
Work
Comparison Data Areas
Results
00000 ON
00000 OFF
Length incorrect
Length correct
0000
0000
Содержание C200H-CT021
Страница 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Страница 2: ...iv ...
Страница 4: ...vi ...