High−level Instructions
3 − 416
Outline Subtracts specified time data (hours, minutes, and seconds) from date
(years, months, and days) and clock (hours, minutes, and seconds)
data.
For the FP0R/FPΣ/FP−X, the P type high−level instruction “P158
(PCSUB)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
10
F158 CSUB, DT 9054, DT 10, DT 30
S1*
D
Trigger
S2
R0
(* When FP0R/FPΣ/FP−X/FP2/FP2SH/FP10SH, S1 = DT90054)
10
11
ST R 0
F158 (CSUB)
DT 9054
DT 10
DT 30
S1 Starting 16-bit area for storing date/clock data (3 words are used in form of
BCD).
S2 Starting 16-bit area for storing time data (2 words are used in form of BCD).
D Starting 16-bit area for storing result (3 words are used in form of BCD).
Operands
Relay Timer/Counter Register
Index
register
Constant
Inde
Operand
WX WY WR WL SV EV DT LD
FL
(*1)
IX
(*2)
IY K H
modifier
S1 A A A A A A A A A N/A N/A N/A N/A A
S2 A A A A A A A A A A N/A A A A
D N/A A A A A A A A A N/A N/A N/A N/A A
(*1) This cannot be used with the FP0, FP−e, FP0R, FPΣ and FP−X.
(*2) With the FP0R, FPΣ,FP−X, FP2, FP2SH, and FP10SH, this is I0 to IC.
Time substruction
F158
P158
(PCSUB)
(CSUB)
A: Available
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com