The
view of the device editor is named (for example, ). It serves to configure an I/O mapping of the controller. Therefore, project variables used by the application are assigned to the input, output, and memory addresses of the controller.Define the application which should handle the I/Os in the view.
See the following chapters:
Whether an I/O mapping can be configured for the present device depends on the device. It can be that the view is only used to show the implicitly created device instance. See description of the IEC objects.
Basically, note the following for the mapping of I/Os to variables:
Variables requiring an input cannot be accessed by writing.
An existing variable can only be mapped to one input.
Instead of using the AT declaration.
view, you can also assign an address to a variable via theHowever, consider the following:
You can use AT declarations only with local or global variables; not however, with input and output variables of POUs.
The possibility of generating force variables for I/Os (refer to Implicit Variables for Forcing I/Os) will not be available for AT declarations.
If AT declarations are used with structure or function block members, all instances will access the same memory location. This memory location corresponds to static variables in classic programming languages such as C.
The memory layout of structures is determined by the target device.
For each variable which is assigned to an I/O channel in the build run of the application. You can use them for forcing the input or output value during the commissioning of a machine, for example, via a visualization. Refer to the chapter Implicit Variables for Forcing I/Os.
view, force variables can be created during aThe automatic I/O mapping function automatically creates IEC variables as soon as a device or module with I/O modules is added to the
and maps them on each input and/or output. By default, the function is activated.You can deactivate and configure the function in the
dialog box.The dialog box provides the following elements:
Element |
Description |
---|---|
|
By default, the option is activated. Select this option to activate the automatic I/O mapping function and to assign names of your choice to the inputs and outputs. |
area |
|
|
Select this option to create variables for each bit. |
|
Select this option to create a variable for each module, not for the individual bits. |
area |
|
text box |
Enter the following characters preceded by a
|