lostcontrol
Lifetime Supporting Member
Hi,
We are developing an application on a S7-1200 that we have to use MB/TCP with.
All is working ok, but we need to transfer recipe data from the MB/TCP inerface to the PLC.
The current config has a DB with array elements inside of it..
- DB10.Array[0].x
- DB10.Array[0].y
Because of the MB/TCP interface, I have to manually assign a %MW tag & copy it into the DB array, based on my understanding.
So I have DB10.Array[0].x := MW100; (where Tag MW100 = %MW100
Ideally, I would like to be able to loop copy this of block transfer it to minimize typo errors etc, but not sure how I can do this with a %Mw100 reference.
At the moment, there are > 100 array elements that I need to copy, & is a manual process.
Do I make sense, is there an easier way?
We are developing an application on a S7-1200 that we have to use MB/TCP with.
All is working ok, but we need to transfer recipe data from the MB/TCP inerface to the PLC.
The current config has a DB with array elements inside of it..
- DB10.Array[0].x
- DB10.Array[0].y
Because of the MB/TCP interface, I have to manually assign a %MW tag & copy it into the DB array, based on my understanding.
So I have DB10.Array[0].x := MW100; (where Tag MW100 = %MW100
Ideally, I would like to be able to loop copy this of block transfer it to minimize typo errors etc, but not sure how I can do this with a %Mw100 reference.
At the moment, there are > 100 array elements that I need to copy, & is a manual process.
Do I make sense, is there an easier way?