High−level Instructions
3 − 199
Outline Takes absolute value of signed 32-bit data.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P88 (PDABS)” is not available.
Program example
modifier
D N/A A A A A A A A A A N/A N/A N/A A
(*1) This cannot be used with the FP0 and FP−e.
(*2) This cannot be used with the FP0, FP−e, FP0R, FPΣ, FP−X.
(*3) With the FP0R, FPΣ,FP−X, FP2, FP2SH, and FP10SH, this is I0 to IC.
Explanation of example
Takes absolute value of data registers DT1 and DT0 when trigger R20 turns on. The absolute value of DT1
and DT0 is stored in data registers DT1 and DT0.
Description
Takes the absolute value of signed 32-bit data specified by D. The absolute value of the 32-bit data is stored in
D+1 and D.
This is effective for processing data in which the polarity (+ or −) changes.
Flag conditions
・Error flag (R9007): Turns on and stays on when:
・Error flag (R9008): Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− The 32-bit data is the negative minimum value “K-2147483648
(H80000000).”
・Carry flag (R9009): Turns on for an instant when 32-bit data is negative value “range K-1 to
K-2147483647 (HFFFFFFFF to H80000001).”
F88
P88
(PDABS)
(DABS)
32-bit data absolute value
A: Available
N/A: Not Available