POPULATING INT ARRAYS USING DINT SOURCE ARRAY (partial success)

I created an INT [100] pack named "N51"
My source DINT is named "B32"
I made a MOVE block to populate the contents of B32 over into N51 beginning at N51[4]

The first 16 bits of data populate no problem, but anything beyond will not. What am I missing?
 

Attachments

  • DINT INT.jpg
    DINT INT.jpg
    203.7 KB · Views: 19
Look at the COP[y] instruction.

TL;DR

the MOV[e] instruction moves the value of the 32-bit DINT B32 to N51[4]. Since N51 is an array of 16-bit INTs, it can receive the value of the low 16 bits of B32, i.e. the MOV instruction does not write more bits than the Destination parameter.

The COP instruction will move bits, not values.
 
Look at the COP[y] instruction.

TL;DR

the MOV[e] instruction moves the value of the 32-bit DINT B32 to N51[4]. Since N51 is an array of 16-bit INTs, it can receive the value of the low 16 bits of B32, i.e. the MOV instruction does not write more bits than the Destination parameter.

The COP instruction will move bits, not values.
You've helped me in the past some years ago and every time I'm extremely grateful. I will try that.
 

Similar Topics

I am reading data from an Omron PLC using CX-Server into an Excel file. The data populates 4 different columns and that data is overwritten...
5
Replies
9,263
Views
Hello! I have a couple global objects that should be pointing to the Engineering Units property of some tags and by all accounts I cannot figure...
0
Replies
626
Views
We have a FactoryTalk ME application that is running on a PC (not a PanelView screen). Is it possible to dynamically populate the items in a...
1
Replies
1,728
Views
Hi, I'm running FT View Studio Site Edition Network Station. I can see many things listed under the communications tab, but nothing is showing up...
1
Replies
3,000
Views
Factory talk ME My laptop hard drive went bad and I had to reinstall all the rockwell software. Now my list of applications I can open are...
3
Replies
4,131
Views
Top