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

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
227
I have a PH meter that I am trying to bring its data into 1756-L81. I have downloaded the Rockwell MODBUS AOI kit, but I am not sure if I need to...
Replies
5
Views
168
Dear All, i am trying to connect Danfoss inverter with s7 200 cpu 226.but microwin shows following error at DATA Ptr.i assigned different VB...
Replies
1
Views
48
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
222
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
256
Back
Top Bottom