Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
i'm currently working on mapping I/Os (From a PFC200 -> 750-1405 card) to the PLCs modbus.
In the 1405s settings I have created my variables, when I want to use them in the Modbus Slave Device mapping using Application.Var I get the error: "'var' is already defined in 'IoConfig_Globals_Mapping'. Can I not map them directly? It does work if I use a variable in between those but that doesn't seem elegant.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is like creating two variables with the same name, so that doesn't work.
A possible solution could be:
- Double click on your device (where you also set the communication)
- Go to PLC settings
- At the Additional Settings - Enable symbolic access for IOs
Now if your I/O module is named _750_1405, you can map the inputs directly on a Modbus output register: Application._750_1405.Digital_Inputs_0_15
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i'm currently working on mapping I/Os (From a PFC200 -> 750-1405 card) to the PLCs modbus.
In the 1405s settings I have created my variables, when I want to use them in the Modbus Slave Device mapping using Application.Var I get the error: "'var' is already defined in 'IoConfig_Globals_Mapping'. Can I not map them directly? It does work if I use a variable in between those but that doesn't seem elegant.
Thanks
This is like creating two variables with the same name, so that doesn't work.
A possible solution could be:
- Double click on your device (where you also set the communication)
- Go to PLC settings
- At the Additional Settings - Enable symbolic access for IOs
Now if your I/O module is named _750_1405, you can map the inputs directly on a Modbus output register: Application._750_1405.Digital_Inputs_0_15
Alright, that was kinda what I had thought what would be the underlying problem. This seems like a good solution however, thanks!