Rslogix 5000 data type INT change sign

Ivann

Member
Join Date
May 2013
Location
Sonora
Posts
2
Hi, my name is Ivan, I need to change the sign in a register INT data type. The register show me -32767 value. So I need quit the sign in the register with a function or change the bit number 15 from 1 to 0. Some body have experience in this issue?

Thank´s

Ivan
 
It depends on what you are trying to accomplish.

1) Use the ABS function to change it to an absolute value. Your register will then hold +32767.


2) Use OTU TagName.15 to clear only bit 15. This is not the same thing as an absolute value function and will change the numeric value of your number. -32767 is 1000000000000001. If you simply unlatch bit 15 then it becomes 0000000000000001, or just 1.
 
Thanks TConnolly and rdrast for your answers, the best option for my purpose is unlatch bit 15.

Regards from Sonora, Mexico

Ivan
 

Similar Topics

First off, I'm a hobbyist-level programmer, and this program isn't controlling anything anything that could even remotely be considered "life...
Replies
18
Views
498
Thank you for any and all responses/help. I have an RSLogix 5000 v20 and a Cognex In-Sight v5.9 spreadsheet (8502P). I can not figure out how to...
Replies
0
Views
118
I have a micrologix 1100 that I am trying to read three data points from it on my safety plc using studio 5000. Any tips or guidance is appreciated.
Replies
4
Views
828
I want transfer my I/O data from schneider (Unity Pro) as a write data and RS Logix 5000 as a read data. I use Ethernet as an communication...
Replies
0
Views
687
Im trying to sum a running "Shift Total" production value and move it into a Month Total value that will continuously update for viewing...
Replies
1
Views
1,529
Back
Top Bottom