A
Appendix
A-4 CP1L Programming Examples
SYSMAC CP1L/CP1E Introduction Manual 135
■Programming Example
●Ladder Program
(A): Turned ON for Monday thru Friday (i.e. when A354 [day] is less than or equal
to [Friday]),
from 17:30 (when A351 [hh:mm:ss] becomes equal to the value set in D0
[17:30:00])
until 20:30 (when A351 [hh:mm:ss] becomes equal to the value set in D10
[20:30:00]).
(B): Turned ON for Saturday and Sunday (i.e. when A354 [day] is equal to
[Saturday]) or [Sunday],
from 10:00 (when A351 [hh:mm:ss] becomes equal to the value set in D20
[10:00:00])
until 21:15 (when A351 [hh:mm:ss] becomes equal to the value set in D30
[21:15:00]).
• >=DT and <DT are time comparison instructions.
<=(315)
A354
#5
>=DT(346)
#38
A351
D0
<DT(343)
#38
A351
D10
=(300)
A354
#6
>=DT(346)
#38
A351
D20
<DT(343)
#38
A351
D30
=(300)
A354
#0
Q: 100.00
Fountain pump