10.4 High-speed Counter Cam Control Instruction
10-27
Sample program
For FP0H mode
R9013
R0
( )
DF F165 CAM0 DT100
H10 DT100F1 DMV
①
②
④
③
⑥
⑤
⑧
⑦
⑩
⑨
⑪
K1 DT102F1 DMV
K10 DT104F1 DMV
K3
DT106
F1 DMV
K1000
DT108F1 DMV
K7000 DT110F1 DMV
K3000
DT112F1 DMV
K9000 DT114F1 DMV
K5000 DT116F1 DMV
K11000 DT118F1 DMV
K15000 DT120F1 DMV
K13000 DT90300F1 DMV
⑫
⑬
R9110
①
High-speed counter channel H10: Performs the upper limit control. CH0
②
Cam output device type K1: Internal relay (R)
③
Word number of cam output device K10
④
Specification of the number of target values K3
⑤
Target value 1: ON set value K1000
⑥
Target value 1: OFF set value K7000
⑦
Target value 2: ON set value K3000
⑧
Target value 2: OFF set value K9000
⑨
Target value 3: ON set value K5000
⑩
Target value 3: OFF set value K11000
⑪
Upper limit value K15000
⑫
Presets 13000 as the elapsed value.
⑬
Executes the F165 (CAM0) instruction and starts the cam control.
(Note): The allocations of control active flags and elapsed value areas for the FPΣ mode are different.
For details of the allocation of flags, refer to "12.2.4 When Using High-speed Counter Function".