Sample program
For FP0H mode
R9013
R0
R9110
DF
(
)
Code
Description
①
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 K2
⑤
Target value 1: ON set value K1000
⑥
Target value 1: OFF set value K5000
⑦
Target value 2: ON set value K7000
⑧
Target value 2: OFF set value K9000
⑨
Upper limit value K11000
⑩
Presets 0 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".
10.4 High-speed Counter Cam Control Instruction
F1 DMV
H10
DT100
F1 DMV
K1
DT102
F1 DMV
K10
DT104
F1 DMV
K2
DT106
F1 DMV
K1000
DT108
F1 DMV
K5000
DT110
F1 DMV
K7000
DT112
F1 DMV
K9000
DT114
F1 DMV
K11000
DT116
F1 DMV
K0
DT90300
F165 CAM0
DT100
①
②
③
④
⑤
⑥
⑦
⑧
⑨
⑩
⑪
10-23