1370
11 PROCESS CONTROL INSTRUCTIONS
11.5 Arithmetic Operation Instructions
Subtraction
S.SUB
This instruction subtracts input data with a coefficient.
■Execution condition
■Description, range, data type
■Applicable devices
Ladder ST
ENO:=S_SUB(EN,s1,s2,s3,d1);
FBD/LD
Instruction Execution condition
S.SUB
Operand Description Range Data type
(s1) Input data start device Refer to "Input data". Word
(d1) Block memory start device Refer to "Block memory". Single-precision real
number
(s2) Operation constant start device Refer to "Operation constant". Word
(s3) Empty string specification
(Specify "" in ladder. Specify '' in ST or FBD/LD.)
String
EN Execution condition Bit
ENO Execution result Bit
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, R, ZR,
RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
(d1)
(s2)
(s3)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)