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