Analog data to CLICK PLC

rguimond

Lifetime Supporting Member
Join Date
Jul 2009
Location
Escuminac
Posts
666
I'm reading Modbus data over TCP from a remote I/O device with an HMI. i'm reading it into an UNSIGNED INTEGER tag

Modbus 40001 = Input 1
Modbus 40002 = Input 2, etc.

Values can be anywhere from 0 to 65535

Once read to the HMI, I'm sending the same values to a CLICK PLC for conversion to degrees.

My questions are:

Am I using the HMI data type to read the values from the remote I/O device?
What CLICK data type should I send the values to?

I'm getting negative values dislayed and I'm stumped at finding a solution. I generally only use AB PLCs
 
My guess is that the Click's single integer does not support 0-65535.
Most PLC's use the MSB as a sign bit. Limiting the range to -32768 to 32767.

I am not familiar with a Click so don't know if you can move the value to a double word or not. Or maybe rescale the value in your remote device or HMI.

clicknumbers.png
 
Last edited:
I think I have a solution:

I'll move the value from the remote I/O into an unsigned integer value within the HMI, then write it to a DS value.

If the value is >=0, I'll COPy the value to a DD or DF memory address
If the value is <0, I'll subtract the value in DS from 32767 and store in to the same DD of DF memory address.

Should work.
 

Similar Topics

I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
7
Views
114
I have a strain gauge attached to a load cell. The strain gauge is wired into an analog channel on a ControlLogix 1769 controller at +/-10V. How...
Replies
6
Views
2,422
Wondering if anyone has any suggestions that could help me out. I am looking for recommendations for hardware for an upcoming project. I am...
Replies
3
Views
2,027
I am noticing odd behavior with a CompactLogix PLC I have here as a test unit. I have absolutely no I/O wiring on this unit, I just use it to...
Replies
2
Views
2,082
Hi all, I need to collect the analog data like 4-20, mV signal or any digital count from FF based communication instruments for calibration...
Replies
1
Views
1,891
Back
Top Bottom