It works fine but currently I have to map each I/O to the element of the array.
I am wondering if there is a better approach b/c currently I have some 120 WORD to link to the union.
I cannot link the whole ARRAY as the result data starts from index 5.
Hello,
I would like to ask for your help, again. π
I created the following
Union
:I instantiated it.
It works fine but currently I have to map each I/O to the element of the array.
I am wondering if there is a better approach b/c currently I have some 120 WORD to link to the union.
I cannot link the whole ARRAY as the result data starts from index 5.
Thanks for your help in advance.
I really appreciate.
Best Regards!
What about linking the whole array to another array starting at index 5?
Or can you put Application.PLC_PRG.Result.ResultData[5..120] if you only want to use index's 5-120?
Hm maybe I didn't get... π€
I use
Union
in order to have theSTRING
representation ofARRAY[0..4] OF WORD
.So somehow I need to map the
PLC Output
's 5..120 indexes toUNION CognexReader
.