Processing
Divides the target data 1 for operation by the target data 2, and sets the operation result data
and remainder.
Example 1) When the operation unit is 16-bit (US, SS)
S1: DT2, S2: DT1, D: DT3
Example 2) When the operation unit is 32-bit (UL, SL)
S1:TS3, S2: TS1, D: TS10
Precautions during programming
When a division overflow occurs, the data is output as follows. (When the negative min.
value / -1)
S1 = -2147483648(H80000000)
D = -2147483648(H80000000)
Flag operation
Latest error
(SR7)
Hold error
(SR8)
To be set in case of out-of-range values in indirect access (index modification, pointer access).
To be set when zero is specified for [S2].