The security DFB, the implementation of which is identical to that of a DIAG AS-i DFB, can be programmed in any program module (Main, SR or section) in Ladder Diagram (LD), Structured Text (ST), Functional Block (DFB) and Instruction List (IL) languages.
It is:
-
It is preferable to run the security DFB in the MAST task (for performance reasons).
-
It is strongly recommended to program a security DFB instance only once in the project.
-
In order for a security DFB to execute, it is necessary that:
-
the DFB is called (the program element to which it is assigned must execute),
-
the Enable input is at 1.
Representation:
Programming in ladder diagram
The security DFB function block is inserted in a contacts network. The programming consists of linking these inputs/outputs
Representation:
CAL SAFETY_MONITOR_1 (I0,..., I3, %MW101, Q0,...,Q3, %M102)
Programming in structured text language
The programming syntax is as follows:
%Li: label
SAFETY_MONITOR_1 ( I0,..., I3, %MW101, Q0,...,Q3, %M102);
where:
-
%Li: label,
-
SAFETY_MONITOR_1: name of instance of a DFB,
-
I0,..., I3: DFB inputs,
-
%M101: DFB enable input,
-
Q0,...,Q3: variable linked with the DFB outputs,
-
%M102: Error output variable