Q. on Modbus w/ Phoenix Contact ILC PLC

FNC

Member
Join Date
May 2010
Location
NJ
Posts
84
Hi,

I am using Phoenix Contact ILC 191 PLC for the first time. It has a built-in Modbus Server which works well for integers but I cannot get it to work for floating points.

I want to change a float into 2 consecutive registers which can then read easily by any Modbus client.

Has anyone ever done this with Phoenix Contact PLCs?

Thanks.

FC
 
Converting Real to INT

Hi,

My problem is that I cannot figure out how to convert 12.3 into two integers.

When I try to convert 12.3 into DINT or DWORD I end up with 12.

With Rockwell there was the CPW command which did this exaclty. I am not sure if Phoenix Contact PLCs can do the same thing.
 
Hi,

I am using PC Worx for the first time.

I have tried REAL_TO_DINT and REAL_TO_DWORD. Neither gives me what I need.

Is there some other function block that I can use?
 
all the real_to functions will round to a whole number.

I am wondering what happens if you dump your REAL value into your register and set that register as DWORD datatype or a WORD with a length of 2 if that will solve it, it should push it out as a binary number
01000001010001001100110011001101

I haven't used pcworx much so just shooting in the dark trying to help
 

Similar Topics

Hello Everyone, I am using a raC_Opr_NetModbusTCPClient AOI module, as below,. So, I need some assistance to restrict in reducing the poling...
Replies
2
Views
129
I want to communicate my Q series PLC with Factory IO using GX works 2 software, I want to use modbus as server and the ips are as follows plc...
Replies
0
Views
88
Hi folks, I have a Controllogix in communication with a zigbee coordinator using Logix AIO for modbus tcp. This zigbee coordinator have 3 slaves...
Replies
10
Views
360
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
138
Hi Everyone, i was hoping for a little help with this module. i have data that needs to be read from a different plc through the Modbus plus...
Replies
11
Views
304
Back
Top Bottom