split a DINT to 4 bytes?

MrQ

Member
Join Date
Feb 2005
Posts
236
Hello,

I have just started programming RS Logix 5000 for Compact logix.

What is the proper way to split a DINT to 4 bytes?
 
Create a Dimension 0 = 4 SINT Data Type Tag array and then COP/MOV the DINT within starting with the SINT [0] array element;
reference the four SINT array elements individually.
 
Create a Dimension 0 = 4 SINT Data Type Tag array and then COP/MOV the DINT within starting with the SINT [0] array element;
reference the four SINT array elements individually.

MOV won't do it, you need to use COP (or CPS), and you need to specify the length as 4.

2013-05-08_145322.jpg
 
To fortunebrass

Purely commercial posts are not welcome.

But, if you sell a specific solution for a problem being discussed in a thread then a reference/link to that specific solution is generally allowed.
 

Similar Topics

hey all, I am struggling with a problem here and out of ideas on how else to achieve the desired result. I have a monitor inside a machine with...
Replies
0
Views
121
Hello everyone. I have an PLC L35 (fmw 16) with address 192.168.1.1 and too many connected ethernet devices (3 hmi, a lot of ethernet port, asi...
Replies
11
Views
740
Basic question: I don't understand why Network 4 is split over two lines. I want it to appear like for Network 3, i.e. all on one line. Does...
Replies
1
Views
748
Hello I have a project to record temperature from thermocouple and store it to memory card, the problem is my client didn't provide new...
Replies
11
Views
2,948
Hello, I have following control task. I have to limit a current drawn from a source of power in a grid where I have following power consumptions...
Replies
11
Views
1,966
Back
Top Bottom