/
SUB (FLOAT)
SUB (FLOAT)
ESUB, ESUBP (Float)
SUB instruction subtracts S2 from S1 and save the result in the Destination (assigned device address).
(It supports only in XP and PLCS CPU series)
| |
S1, S2 | Float value |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
ESUB(P) | S1 | o | o | o | o | o | - | - | - | - | o | o | o | - | 4 | o | - | - |
S2 | o | o | o | o | o | - | - | - | - | o | o | o | - | |||||
D | o | - | o | o | o | - | - | - | - | o | o | o | - |
Example)
If X01 is ON, subtract D4 from D0 and then send the result to Y40.
If X02 is ON, subtract 0.53 from D0 and then send the result to Y40.
, multiple selections available,
Related content
ADD (FLOAT)
ADD (FLOAT)
More like this
SUB (BINARY)
SUB (BINARY)
More like this
SUB (BCD)
SUB (BCD)
More like this
EDIV (FLOAT)
EDIV (FLOAT)
More like this
EMUL (FLOAT)
EMUL (FLOAT)
More like this
ADD (BINARY)
ADD (BINARY)
More like this