EasyManua.ls Logo

Panasonic FP-E - Page 463

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
10
F88 DABS , DT 0
D
Trigger
R20
10
11
ST R 20
F 88 (DABS)
DT 0
D Lower 16-bit area of 32-bit data for storing original data and its absolute value
Operands
Operand
Relay Timer/Counter Register
Index
register
Constant
Inde
x
Operand
WX WY WR
WL
(*1)
SV EV DT
LD
(*1)
FL
(*2)
IX
(*3)
IY K H
Index
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
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com