Hi all,
Given a variable VAR1 at an address of %R101 is it possible within the PLC program to decompose this so that you can say the address is of type "R" and that the offset is "101"?
The reason I want this is that I am dealing with code that will use a lot of Comm_Req blocks and that in order to use them you have to explicitly define the memory type and offset of a variable - which requires a lot of manual intervention in order to correctly configure it.
I would love to simply say to some code "Here's the variable, you work out the memory type and offset"
Given a variable VAR1 at an address of %R101 is it possible within the PLC program to decompose this so that you can say the address is of type "R" and that the offset is "101"?
The reason I want this is that I am dealing with code that will use a lot of Comm_Req blocks and that in order to use them you have to explicitly define the memory type and offset of a variable - which requires a lot of manual intervention in order to correctly configure it.
I would love to simply say to some code "Here's the variable, you work out the memory type and offset"