Mindchronik
Member
Hi everyone,
I am trying to program a function block to copy the variables obtain from Ethercat into a structure on a NX1P2.
Since I cannot place structures into the I/O Tables, I wanted to create the function block in a manner that I feed it the node name and it copy the equipment values to the global variable.
ex:
Robot.Inputs.Status.Busy := CONCAT(NodeName,_Robot_Status_Busy_6010_02);
This, of course, doesn't work as Concat() is returning a string. But is there a way to reference the global variable that has the same name?
The goal is to create some AOI (like in Bradley) to be delivered with the equipment so it is easy to use.
At the moment, the only solution I see is to create a program and manually enter all the variables to be transfert into the global structure, and this for every one of the equipment installed.
Do anyone has a solution to my problem?
Anything to emulate what an Allen-Bradley do so easily with the EDS file?
Thanks in advance!
I am trying to program a function block to copy the variables obtain from Ethercat into a structure on a NX1P2.
Since I cannot place structures into the I/O Tables, I wanted to create the function block in a manner that I feed it the node name and it copy the equipment values to the global variable.
ex:
Robot.Inputs.Status.Busy := CONCAT(NodeName,_Robot_Status_Busy_6010_02);
This, of course, doesn't work as Concat() is returning a string. But is there a way to reference the global variable that has the same name?
The goal is to create some AOI (like in Bradley) to be delivered with the equipment so it is easy to use.
At the moment, the only solution I see is to create a program and manually enter all the variables to be transfert into the global structure, and this for every one of the equipment installed.
Do anyone has a solution to my problem?
Anything to emulate what an Allen-Bradley do so easily with the EDS file?
Thanks in advance!