FPΣ
6.3 High-speed Counter Function
6-15
Target value match on instruction (F166)
Example 1:
XA
DF F166 HC1S, K0, K10000, Y7
If the elapsed value
(DT90044 and DT90045) for
channel 0 matches K10000,
output Y7 turns on.
Figure 74: FPΣ Program (1) of target value match on instruction “F166”
Example 2:
XB
DF F166 HC1S, K2, K20000, Y6
If the elapsed value
(DT90200 and DT90201) for
channel 2 matches K20000,
output Y6 turns on.
Figure 75: FPΣ Program (2) of target value match on instruction “F166”
Target value match off instruction (F167)
Example 1:
XC
DF F167 HC1R, K1, K30000, Y4
If the elapsed value
(DT90048 and DT90049) for
channel 1 matches K30000,
output Y4 turns off.
Figure 76: FPΣ Program (1) of target value match off instruction “F167”
Example 2:
XD
DF F167 HC1R, K3, K40000, Y5
If the elapsed value
(DT90204 and DT90205) for
channel 3 matches K40000,
output Y5 turns off.
Figure 77: FPΣ Program (2) of target value match off instruction “F167”