Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
154 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Pulse diagram
'RQH
5HT
(UURU
(1) Activation of function
(2) Positive acknowledgment: variables have been written
(3) Reset function activation after receipt of acknowledgment
(4) Signal change by means of FB
(5) If function activation is reset prior to receipt of acknowledgment, the output signals are not
updated without the operational sequence of the activated function being affected.
(6) Negative acknowledgment: Error has occurred, error code in output parameter state.
Call example
Reading of a GUD variable with the name "GUDVAR1" as an integer variable
(see also table in FB 2: Assignment of NC data type in SIMATIC data type).
Call and parameterization of FB 5 with instance DB 111:
DATA_BLOCK DB GUDVAR
//Assignment to symbol table
STRUCT
GUDVar1 : STRING[32] := 'GUDVAR1';
//Name is defined by user
GUDVar1T :
STRUCT
SYNTAX_ID : BYTE ;
area_and_unit : BYTE ;
column : WORD ;
line : WORD ;
block type : BYTE ;
NO. OF LINES : BYTE ;
type : BYTE ;
length : BYTE ;
END_STRUCT;
END_STRUCT;
BEGIN
END_DATA_BLOCK
DATA_BLOCK DB 111
//Unassigned user DB, as instance for FB 5