Using the CONFDATA feature on SD Cards
We use a standard programme for all our machines but they have two different device options, one is 0-10v and the other 4-20mA
Is it possible to keep our CoDeSys programme standard but change the configuration of the AO561 channel using an SD card and the CONFDATA feature?
Search for "Flexible Configuration".
They list a couple of ways to achieve this, I did the following:
Create .ccf files containing alternate hardware configurations and load them into the program under 'Manage Additional Files', 'Hardware Configuration' tab.
Load library Flexible Configuration Library (and include PLC_REBOOT in project).
Create button on HMI screen with time delay to enable FLEXCONF_ID_WRITE function
Use FLEXCONF_ID_READ to detect active configuration
A SEL instruction compares the current active configuration to determine which file to write to the PLC.
Excuse the capitalised tags