Using Logical I/Os Programmatically
Every mapping variable (channel variable) declared in the I/O Mapping of a logical I/O is available to the developer as a global variable when programming the safety application.
As an alternative to the explicit declaration, these variables and instances could also be selected in the implementation part of POUs either in the Input Assistant or in the automatically displayed “SmartCoding” list box.
In the Input Assistant of the variable declaration, they are located in the Global variables category in the IoConfigRemote_Globals GVL.
Figure 12. Input Assistant of the variable declaration with the Global variables and
IoConfigRemote_Globals
GVL
Example 5. Example
Figure 13. List of components, after a dot (.) has been added: global variables of
IoConfigRemote_Globals

Tip
When debugging a program, you can write and force the value of variables mapped to I/O channels.