SmartPLC SafeLine AC4S with fieldbus interfaces
75
>
8.2.5
Variable declaration with data transfer between standard and safety
area
43020
To be able to use the variable value in an application from the other area the variable always has to be
declared as exchange variable. Then the developer can use such a variable directly in the program
code of the standard application or the safe application.
If the developer first of all creates a variable in the declaration part of the POU and then
defines an exchange variable of the same name, CODESYS will generate an error message
during compilation of the application.
Example:
Task:
A non-safe Boolean value from the standard application is to be used in the safe application.
How to proceed:
1. Declare exchange variable of type BOOL in the exchange device [DataFromNonsafe] and update
variable list in [DataToSafe] (
→
Use the factory-set replacement variables
(
2. Assign a value to the variable in the standard application.
3. Use the exchange variable as source for FB or assignment in the safe application.
>
8.2.6
Available memory space
43265
The following memory location is available to the user for programming safe applications on the
fail-safe PLC:
IEC program code: 384 Kbytes
IEC data: 128 Kbytes
>
8.2.7
Pin safe project
43087
► Familiarise yourself with the following CODESYS functions!
Pin object
→ Online help > Add-Ons > CODESYS Safety > Pinning
When a safe application has been completed, the project must be pinned. The states of all objects of
the safe application are stored and saved against changes by means of a check sum.