You can change the address value of an entire channel (but not that of an individual subelement of the channel!) in the mapping table of the “<device name> I/O Mapping” tab. This allows you to adapt the addressing to a specified machine configuration and to retain the address value even if the layout of the modules changes. By default, a change of the layout leads to an automatic adaptation of the address values.
Requirement: Your project has I/O mapping. See the corresponding sections of the help page above.
-
To open the device editor, double-click the device object in the device tree, and then the “<device name> I/O Mapping” tab.
-
Click in the mapping table on a channel entry in the “Address” column in order to open an input field. This is only possible for the "root" address of a channel, not for a particular one of its subelements.
Therefore, change the top address entry of a channel in the table, for example from
QB0
toQB1
. Exit the input field.The address value is changed. The
symbol is displayed before the address. It indicates that the address is fixed. The addresses of the subelements of the channel are also changed accordingly. If you now change the position of the device object inside other device objects with input/output channels in the device tree, CODESYS does not adapt these addresses to the new order as would be the case without fixing.
-
In order to undo the manual change or fixing, open the input field of the address value again, delete the address entry and press the Enter key.
CODESYS resets the address and the subsequent addresses concerned to the values they had before the change and removes the
symbol.
For more information, see: ⮫ “Addresses ”
-
See also: ⮫ <device name> I/O Mapping