EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Page 420

LS Industrial Systems XBC-E Series
542 pages
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...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-303 Ve r. 1
6.43.2 RNEG, RNEGP, LNEG, LNEGP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Con
st
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
RNEG(P)
LNEG(P)
D O O O - O - - - O - - - O O O O 2 - - -
Operand
Description
Data Type
D
Area to convert signs
REAL/LREAL
1) RNEG (Real Negative)
(1) Converts the sign of the value in specified area D to save in D area.
(2) RNEG is used to reverse the single real number sign.
Before executed
After executed
-3.383240094
3. 383240094
P00003
M0000
RNEG
2) LNEG (Double real Negative)
(1) Converts the sign of the value in specified area D to save in D area.
(2) LNEG is used to reverse the double real number sign.
Before executed
After executed
-3.3832400941234567
3. 3832400941234567
P00003
M0000
LNEG
3) Program Example
RNEG P1000
P00000
RNEG, LNEG
means RNEG/LNEG
P
LNEGP, LNEGP
D
D

Table of Contents

Related product manuals