INT To REAL CLX Brabender Feeder

pmolive

Member
Join Date
Jan 2013
Location
NC
Posts
4
Hi All,

I'm setting up a Brabender feeder via Ethernet I/p, I have the start and stop figured out but the int to real has me up against the wall, can someone point in the right direction? I've attached a few pics. how to I convert the 2CH-2FH to real in the program?

table.JPG table2.JPG table 3.jpg
 
Real to 4 SINT - COP Real SINT[first index] 4

4 SINT to Real = COP SINT[first index] Real 1

To add explanation of these statements....

The COP instruction is a mindless byte-by-byte copier, and takes no account of the data-types of the source or destination. It performs no data-type conversion, and just copies a calculated number of bytes from source to destination.

The Length specification is the number of elements of the destination, and the number of bytes copied is the specified length times the number of bytes of the destination data-type.

Real to 4 SINT - COP Real SINT[first index] 4

The destination data-type is a SINT (1 byte), so to copy a REAL (32 bits, or 4 bytes), needs a length of 4

4 SINT to Real = COP SINT[first index] Real 1

The destination data-type is a REAL (32 bits, or 4 bytes), so to copy 4 SINTs into a REAL, you specify a length of 1 (the number of bytes of the destination data-type).
 

Similar Topics

Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,209
I seem to be making this harder than it should be, and Its not making any sense. I simply need to move a real variable to two integer variables...
Replies
8
Views
909
Situation: Single [EQU] instruction with single [OTE] on a rung, nothing else/simple. [EQU] operand(A) is a real number data type...
Replies
16
Views
2,557
I work at a cheese factory and we recently ran into a problem where in an older controller they where able to use a REAL Data type in OTU and XIC...
Replies
13
Views
2,402
Hello I have a question about SCL if I have a real value like valor: INT I would do valor : = 1.5 Or this trhow me an error? How can I save...
Replies
6
Views
1,650
Back
Top Bottom