AB Real to SINT's

nehpets

Member
Join Date
Mar 2009
Location
Wales
Posts
496
I have a project to send a 'REAL' value to a Siemens PLC across a Profibus Gateway, the problem is the gateway and Siemens PLC deal only in bytes.


My question is:-


Is it possible to use a 'COP' and copy the real to a 'SINT' array for a length of 4 hopfully splitting it into SINT[0] to SINT[3]?


At the moment I have no way of simulating or loading into a processor to try.


If not maybe someone can point me in the right direction as to a solution.


Best regards
Steve
 
Thanks for that, I do have a further Question, not being that familiar with Siemens, anyone have any Idea how to reconstruct the value on the Siemens side?


Steve
 

Similar Topics

I am having problems expressing an ANALOG OUTPUT 16bit INT word (0-10V Proportional Valve Voltage) as a REAL decimal number. From my...
Replies
6
Views
9,122
Hello everybody, A challenge I have in front of me consist of taking a REAL value (0 - 4095) and dumping it into a tag (Sent_Counts) that is...
Replies
12
Views
8,595
Folks I have a bit of a dilema here. On a profibus network, Prosoft on ControlLogix Platform, I have an instrument that is giving me two values...
Replies
3
Views
1,357
I am working on a project using a NB screen and NX1P2 PLC. I am having a really hard time getting a real number to properly translate through to...
Replies
3
Views
116
I am trying to copy an array of real numbers into a UDT with a real data type element. I have attached a snip below showing my COP instruction...
Replies
4
Views
199
Back
Top Bottom