Horner XL7e

mrjkidd

Member
Join Date
Aug 2014
Location
Tea, SD
Posts
3
Trying to scale a 4 to 20 signal to read temp. I am using a banner radio gateway using Modbus protocol. I'm using an unsigned integer and when I try to scale it says it must be a signed integer. How am I supposed to scale this?
 
Trying to scale a 4 to 20 signal to read temp. I am using a banner radio gateway using Modbus protocol. I'm using an unsigned integer and when I try to scale it says it must be a signed integer. How am I supposed to scale this?
Not sure what your hardware will produce but you can convert a USINT to a SINT to get the conversion for your logic.
I assume your data coming across looks like something in the range of (0-23767) or similar.
If this is the case it will work.
If the data coming across is in the range of -32767 to +32767 you may have some issues.
Though I think horner uses a 32000 as a limit and anything over is an overflow.
 
Think I got it. Math functions will let me use this as an unsigned integer. I can divide it in half and then scale it with a min. value of 0 and max value of 32767.
 

Similar Topics

Hello everyone, Currently I am working with a PLC/HMI Horner XL7e over Ethernet/IP communication with an AB ControlLogix, and suddenly the...
Replies
0
Views
1,732
I am having a problem communicating my PLC with Drive via Modbus connection. I start by opening the port and there is no problem, but then when I...
Replies
5
Views
73
Hello, I’m new to this forum and if I’m posting incorrectly let me know. I’ve been having an issue I can’t seem to figure out. I’m sure it’s...
Replies
1
Views
107
I seem to be making this harder than it should be, and Its not making any sense. I simply need to move a real variable to two integer variables...
Replies
8
Views
916
I am using Cscape 9.9 service pack 8. I am writing my program as a variable based program not register based. When I try and have the output...
Replies
1
Views
802
Back
Top Bottom