PLC CPW to 2 ints

Joopie

Member
Join Date
Aug 2016
Location
Nh
Posts
1
I have a micrologix 1400 and am using a CPW block to convert a float to 2 integers. I can read the 2 integers via modbus using a raspberry pi 3, but am having difficulties converting it back to a float value. I am using javascript/python. i have looked into the ieee 754 but cant get it working.
 
Probably some kind of memory copy from two words into a floating point variable, it would be language specific.

I did it via a math routines once. Mostly out of boredom. Converting both ways into/out of IEEE754 through base-2 notation. It is in C# but the gist of it is there.
 

Similar Topics

Hello..I am new to Plc.I have Mitsubishi Melsec Fx3Ga-40MR PLC controlling a machine for packing powder.Currently the Plc has issue which power...
Replies
3
Views
110
Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
76
Hi, I would like to assemble a simulator/practice booster pump system that uses PID to maintain steady water pressure under various outlet demands...
Replies
0
Views
70
I want to measure the tank level and get the sensor output to the PLC. Below are the details : Tank Height =0 - 3m, the sensor is stalled 0,2m...
Replies
14
Views
495
Back
Top Bottom