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 working on a project using a Wago 750-842 and I'm having some trouble.
The program has to be the same on many controller but they don't have the same configuration. Some have an analog input other don't. So here come my problem:
I can't use %IX0.0 because if the controller has an analog input the address changes!
Hello,
I'm working on a project using a Wago 750-842 and I'm having some trouble.
The program has to be the same on many controller but they don't have the same configuration. Some have an analog input other don't. So here come my problem:
I can't use %IX0.0 because if the controller has an analog input the address changes!
For now I'm using a big array like:
and then using an offset to get the good value from the array.
But it consumes a lot of memory!
I don't kown if there is a way to do it better, like :
```
myVar := %IX0.0 + offset
``` ?
Anybody knows if it's possible, or if using an array is the only way...?
Thanks
Raoul
Related
Talk.ru: 1
Talk.ru: 2
Talk.ru: 3
Talk.ru: 5
Talk.ru: 7
Talk.ru: 8
IMHO the simplest way is to configure all I/O variables in PLC configuration and make separate project for each PLCs with different configuration.
If you really need natural dynamic bit addressing for the Input memory then you may use a function. For example:
Regards
It works like a charm !
Thanks