Use the backup/restore mechanism integrated in CODESYS to be prepared for unforeseen controller breakdowns. Open the device dialog of the connected controller by double-clicking on the device in the project tree and switch to the category "Backup and Restore". In the tab "Backup" you can read out the application information of the controller, select the desired scope and save it in a file. In the tab "Restore" you can open stored backup files, write them to the controller and in case of an...
Create functions (FUN) or function blocks (FB) according to IEC 61131-3 3rd Edition, to which you transfer arrays with variable lengths. Declare a VAR_IN_OUT with the star operator "*" in FUN/FB and read out the transferred array boundaries with the global functions "LOWER_BOUND" and "UPPER_BOUND". FUN/FB created in this way can be called and used with arrays of different lengths.
The CODESYS Development System displays a maximum of 1000 fields of arrays in the online view in the declaration part. If you use larger arrays, you can freely select the area of the 1000 displayed fields by double-clicking on the array.
In the LD editor, drag a coil into the left part of the network to make a contact out of it. Or drag a contact to the right to make it a coil.
F1: Online Help: With Internet connection: Display in browser (version and language freely selectable). Without Internet connection: Display in the integrated help tool (for the specific version of the tool).
F2: Input help for the simplified declaration of variables, instances, arrays etc. or their editing
F4: Step-by-step jumping (from top to bottom) of the messages in the message window, simultaneously direct jumping to referenced code positions
F5: Start execution of the application
Under Project/Project Settings in the category "Security" you will find settings for project signing and encryption. Make sure, however, that you secure your password, dongle or certificate against loss in order not to lose access to the project.
Starting from V3.5 SP13, the CODESYS Development System offers additional possibilities for licensing workstations and devices by using the new license manager. By calling up the License Manager from the Tools menu, you can decide whether you want to license a workstation or a device. The next step offers you the possibility to use either a USB dongle or a soft container for licensing – regardless of whether you are licensing a workstation or a device. Furthermore, the new license manager also...
Access to single bits in variables with integer data type (SINT | INT | DINT | LINT | USINT | UINT | UDINT | ULINT | BYTE | WORD | DWORD | LWORD ). Use the following syntax:
This allows you, for example, to retrieve bits from variables that have previously been encoded into them or to detect the +/- sign of an INT variable.
You are working on a more complex automation project in CODESYS and have just created a new POU. If this POU is not free of syntactical errors, the entire project can no longer be compiled. Right-click on the POU to configure its properties and exclude it from compilation in the "Build" tab. The device is then displayed in a special color in the devices tree and your project can be compiled despite the syntactical errors in the POU.
If you want to instantiate and call a known function block (e.g. TON, CTU or motion POU) in a CFC editor, you only have to type in the name in the editor and press <Enter> three times.