CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

CODESYS
https://forum.codesys.com/viewtopic.php?f=22&t=5641
Page 2 of 2

Author:  Supporter [ Thu Jul 31, 2014 7:49 pm ]
Post subject:  How to do backup your Pi license ?

Why is this needed?
Because in case of an corrupt SD card image you need the possibility to restore the license (after new install if Raspberry Pi)
Different processes (e.g. loss of power) can lead to a corruption of the file system of the Raspberry Pi. To back up the license the following proceeding is recommended:

Backup of the license

1. Activation of the license (as described above)
2. Reboot of the Raspberry Pi
3. Backup of the license file on an external storage device
To safe the license file: 3SLicenseInfo.tar which you will find in the 'backup' directory on the Raspberry Pi (accessible in CODESYS File Browser via double-click on the device under the tab “Files”).

Store the content of the folder („3SLicenseInfo.tar“) to your computers harddisk
Attention: this backupfile should have a file size of around 130kb-140kb in case of a valid backup!!

Back to FAQ overview

Author:  Supporter [ Thu Jul 31, 2014 7:51 pm ]
Post subject:  How to do restore your Pi license in case of corrupt SD Imag

To reactivate the license the license file archive has to be copied to the folder “restore”. Subsequently the system has to be rebooted.
Note: On activation the license is bound to a single Raspberry Pi and can only be reactivated on the same device!
A license transfer is not supported to another Pi than the original licensed.

Back to FAQ overview

Author:  Supporter [ Fri Aug 08, 2014 9:27 am ]
Post subject:  License activation error if proxy-server is not configured

In case of being behind a proxy-server, the activation of the license could fail, if the proxy-server is not properly configured.
But where should we configure the proxy.

This is in CODESYS (3.5SP5 is needed) under Tools - Options - Proxy Settings.

Back to FAQ overview

Author:  Supporter [ Sat Nov 15, 2014 7:41 am ]
Post subject:  Missing libraries on store application examples

Why do you get on some projects examples from store after open them the message 'missing libraries'?
The examples are uploaded to a specific version and are usually not updated to every new release of CODESYS,
So it might be that your CODESYS Version is newer then the plc device version which is used in the project example. (the placeholders for the libraries are in the devicedescription of the plc)

How to solve this?
Which steps are needed to have a full updated project in current CODESYS version?

1. after project open 'Project Environment Dialog' should be answered with 'set all to newest' (compiler and visualization profile will ne updated)
2. rightclick on device tree to the plc and select 'update device' to the current version
3. rightclick on fieldbus master (if there are on used in the example project) and after that to the slaves and select 'update device' to the current version
after finishing this all placeholders and library dependencies are updated and you project is in current version state.

Author:  Supporter [ Sun May 03, 2015 6:22 am ]
Post subject:  How to update your Pi runtime

there are several ways to do that:
prefered method:
1. Update by Update Raspberry Pi Command see screenshot
a) scan the pi
b) select the Pi by IPAdress
c) update the pi

more advanced usually not needed:
2. manually by Debian Package - Update by CODESYS Developmentsystem(see screenshot):
copy the Debian package from the store download (codesyscontrol_arm_raspberry_V3.5.x.x.deb ) to the pi
via CODESYS file bowser.
Then connect via ssh (putty) to the pi.
Execute:
sudo -s
cd /root/
dpkg -i codesyscontrol_arm_raspberry_V3.5.x.x.deb


2. an other option is: copy it to the sd card image:
if you plug the sd card Image to the windows pc you could access the boot partition of the pi
copy the codesyscontrol_arm_raspberry_V3.5.x.x.deb to this Partition.
Boot the pi then connect via ssh (putty) to the pi.
Execute:
sudo -s
cd /boot/
dpkg -i codesyscontrol_arm_raspberry_V3.5.x.x.deb

rm codesyscontrol_arm_raspberry_V3.5.x.x.deb

Author:  Moderator3S [ Fri Feb 05, 2016 7:38 pm ]
Post subject:  Reset Application by IEC Code

Execute a "reset" of the plc triggered by your IEC application.

Author:  Supporter [ Mon Feb 29, 2016 1:36 pm ]
Post subject:  Date and Time access in the visualisation and date and time picker example

%t['xyz' ddd dddd MMM MMMM MM/dd/yy HH:mm:ss MM % abc HH hh MM mm tt ss MM/dd/yy HH:mm:ss yy yyyy]

Author:  Supporter [ Fri Mar 11, 2016 8:17 am ]
Post subject:  How to backup PFC200 licenses?

Why is this needed?
Because in case of an reinstalling the Firmware you need the possibility to restore the license

To back up the license the following proceeding is recommended:

Backup of the license

1. Activation of the license (as described above)
2. Reboot of the PFC200
3. Backup of the license file on an external storage device
To safe the license file: 3SLicenseInfo.tar which you will find in the 'backup' directory on the PFC (accessible in CODESYS File Browser via double-click on the device under the tab “Files”).

Store the content of the folder („3SLicenseInfo.tar“) to your computers harddisk
Attention: this backupfile should have a file size of around 130kb-140kb in case of a valid backup!!

2. option to backup the license

save the File CMLiecenseNew.WibuCmRaU, which you find here in the plc file browser to your pc.

Author:  Supporter [ Fri Mar 11, 2016 8:20 am ]
Post subject:  How to restore the license on PFC200?

To reactivate the license the license file archive has to be copied to the folder “restore”.
Subsequently the system has to be rebooted.
Note: On activation the license is bound to a single PFC200 and can only be reactivated on the same device/hardware!
A license transfer is not supported to another PFC than the original licensed.

Author:  Moderator3S [ Sun Mar 13, 2016 7:02 pm ]
Post subject:  activate license on PFC200

Requirement: you need to buy a license in the CODESYS store then you will get a ticketnumber via email

The Licensing procedure is the following:

Licensing via the CODESYS Development System
Requirements:
PC with CODESYS Development System, internet access and connected PFC200.
Licensing is done via PC / notebook with the CODESYS Development System and the connected PFC.
1. Scan your PFC200 in the network and connect to it.
2. The license entries are edited via double-click on the device under “PLC settings” / “Edit licenses…”.
The license activation is done under “Install licenses” / “Activate license” by entering the ticket number and transfer of the license to the CODESYS Software Key (Softcontainer).

Attention:
A license backup for each activated PFC Controller is highly recommended/mandatory
For changing the firmware in the PFC Controller you need the backup file to restore the license.
Tickets could only activated once!

The backupfile should have a file size of around 130kb-140kb in case of a valid backup!

Author:  Moderator3S [ Fri Apr 01, 2016 7:25 am ]
Post subject:  How to write to the plc logger

Example for writing to the plc logger.

Author:  Supporter [ Sat Oct 29, 2016 4:53 pm ]
Post subject:  How to check the license from IEC code

How to check if the PFC is licensed or not from IEC Code.

Author:  Supporter [ Mon Dec 19, 2016 7:44 am ]
Post subject:  How to enable autostart on bootup for the Control Win plc

you need to change the CODESYS Control Win under Windows Services to Startup type: Automatic

Author:  Moderator3S [ Tue Mar 07, 2017 10:53 am ]
Post subject:  How to distribute a CODESYS Image

If you work with an own created SD Images including all your Installation and CODESYS runtime so the procedure is:

1. Master Image from original PI – is lincensed or unlicensed no matter
2. Generate an SD Image of it
3. on 2. Pi – after 1. Bootup delete the content of /root/cmactlicense/
4. 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
5. 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)

Page 2 of 2 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/