114
Program Example 2 for Sampling Mode
Section 9-8
Program Example
MOV(21)
#1000
111
MOV(21)
#0003
DM0000
25313
@MULL(56)
DM0000
112
DM0004
11001
MOV(21)
#0000
DM0001
MOV(21)
#0010
DM0002
MOV(21)
#0000
DM0003
TIM
000
TIM001
TIM
001
TIM000
11008
11600
@DIVL(57)
DM0004
DM0002
DM0004
#0020
#0010
(Always ON)
Sets sampling time to 1,000 ms
Sets values "0000" and "0003" in
DM 0000 and DM 0001.
Internal control input IN1 is
turned ON and OFF every 3 s.
Value is multiplied by 3/10 and
stored in DM 0004 and
DM 0005 on completion of
sampling.
Sets values "0000" and "0010" in
DM 0002 and DM 0003.
Содержание C200H-CT021
Страница 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Страница 2: ...iv ...
Страница 4: ...vi ...