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
Ladder Diagram
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
Operand
Relay
Timer/Counter
Register
Index
register
Constant
Index
Operand
WX WY WR WL
SV
EV
DT LD
FL
(
*
1)
IX
(
*
2)
IY
K
H
Index
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: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...