If you work with an own created SD Images including all your Installation and CODESYS runtime so the procedure is:
Master Image from original PI β is lincensed or unlicensed no matter
Generate an SD Image of it
on 2. Pi β after 1. Bootup delete the content of /root/cmactlicense/ or since 3.5SP12 Β /var/opt/codesys/cmact_licenses/
restart plc by reboot
a. or better sudo /et/init.d/codesyscontrol stop
b. or better sudo /et/init.d/codesyscontrol start
Now an empty SoftContainer for the new device (you new Pi has a different Serial number) is available
now license the this PI
Recommendation:
Backup now the file CMLicenseNew.WibuCMRaU this is your update file for the PI β could use this to restore the license at any time to this PI where you pull out this file.
(Use CODESYS File browser for doing this)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Example for writing to the plc logger.
CmpLog_Example.project [74.34 KiB]
How to check if the PFC is licensed or not from IEC Code.
CheckLicensePFC200.project [79.32 KiB]
you need to change the CODESYS Control Win under Windows Services to Startup type: Automatic
If you work with an own created SD Images including all your Installation and CODESYS runtime so the procedure is:
a. or better sudo /et/init.d/codesyscontrol stop
b. or better sudo /et/init.d/codesyscontrol start
Now an empty SoftContainer for the new device (you new Pi has a different Serial number) is available
Recommendation:
Backup now the file CMLicenseNew.WibuCMRaU this is your update file for the PI β could use this to restore the license at any time to this PI where you pull out this file.
(Use CODESYS File browser for doing this)