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

Hi all, looking to model old RR relays in PLC. Does anyone have any SPECIFIC examples on how to model a relay such as a polar relay, slow pickup...
Replies
0
Views
35
HelloI need software to download the program from PLC EH-A28DRP from an old machine whose manufacturer does not exist. It may be Ladder Editor for...
Replies
0
Views
27
HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
7
Views
202
Hello, I have a Mitsubishi FX3G 14M PLC and a E615 HMI from Mitsubishi/Beijer. I'm using GXWorks 2 to do the programming and I have no problem...
Replies
4
Views
127
Hi, I'm trying to import a Rockwell/AB EDS to Beckhoff but I'm not sure how to import/install the EDS. It is a PowerFlex 525 EDS. Is there a way...
Replies
1
Views
99
Back
Top Bottom