High−level Instructions
3 − 459
Explanation of program operation
When adding + subtracting elapsed values with the maximum target value
When the internal relay R3 is on, the operation is as follows.
K14000
K10000
K8000
K4000
K2000
R3
R9110
R10
R11
R12
R13
R14
Elapsed value of high−speed counter
Max. target value
Time
Example of setting 2
[Condition]
(1) Cam output: 4 points Output from R10 to R13
(2) The target values for each cam are as the table below.
Cam output Target value
1 (R11) −10000
2 (R12) −4000
3 (R13) 4000
4 (R14) 8000
Program
(DF)
F165 CAM0, DT100
R3
F1 DMV , H 0, DT100
F1 DMV , H 1, DT102
F1 DMV , H 4, DT104
F1 DMV ,K−10000, DT106
F1 DMV ,K −4000, DT108
F1 DMV ,K 4000, DT110
F1 DMV ,K 8000, DT112
F1 DMV ,K 0, DT114
F1 DMV ,K 0, DT90300
R9013
ICTL, H 0, H 1
R9013
Specification of high−speed counter channel 0
Specification of internal relay word No.
INT0 interrupt for CH0 is permitted.
Start of cam control
4−point output
Target value 1
Max. target value
Reset of elapsed value
Target value 2
Target value 3
Target value 4
FP0R