Redundant instruction
This is a redundant instruction. It is replaced by: FP_SUB_BCD
Subtracts the 4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data specified by s2 from the 4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data specified by s1 if the trigger EN is in the ON-state. The result is stored in d.
Example value 16#16 (BCD)
Example value 16#4 (BCD)
Result value 16#12 (BCD)
Trigger: ON
Input
Minuend, 16-bit area for 4-digit BCD data or equivalent constant
Subtrahend, 16-bit area for 4-digit BCD data or equivalent constant
Output
Result, 16-bit area for 4-digit BCD data
if the calculated result is 0.
if the result exceeds the range of 4-digit BCD data (overflow).