Description
Original instructions
Function Description
The ERT_854_20 EFB provides a software interface to the ERT 854 20 module which gives you simple access of the functions such as counting, time stamp, status or time synchronization. The ERT_854_20 EFB coordinates the flow of Multiplex data from the ERT to the PLC using the input and output registers. It also puts the intermediate count values in an internal storage area until the data is complete, so a consistent set of all count values is made available to the statement list. A marker "New data" is always set for every data type if the input data type in the corresponding EFB output structure was copied.
As additional parameters, EN and ENO can be configured.
Inconsistency between EFB Output and %IW Data
In general the %IW data correspond to the EFB output pin named INPUT.
It should be taken into account that this EFB output is inconsistent to the %IW data for a few scans after starting PLC, because of the implemented handshake mechanisms in communication between the ERT_854_20 EFB and the ERT hardware.
NOTE: In case the EFB reports a detected communication error the %IW data are not updated by the ERT hardware.
Do not use %IW data if the EFB returns ENO = false.
Appearance in FBD
Representation:
Appearance in LD
Representation:
Appearance in IL
Appearance:
CAL ERT_854_20_Instance (SLOT:=SlotIndex,
    ACK:=EventAcknowledgment, CL_TT:=ClearEventBufferFlag,
    CL_COUNT:=ClearCounters, T_EN:=TimeTransferFlag,
    TIME_IN:=InputTimeStructure, INPUT=>OutputBoolArray,
    ND_TT=>NewTimeTagFlag, TT_DATA=>TimeTagDataOutput,
    ND_COUNT=>NewCounterDataFlag,
    CNT_DATA=>CounterValuesArray,
    ND_STAT=>NewStatusDataFlag, STATUS=>EFB_ERTStatus)
Appearance in ST
Appearance:
ERT_854_20_Instance (SLOT:=SlotIndex,
    ACK:=EventAcknowledgment, CL_TT:=ClearEventBufferFlag,
    CL_COUNT:=ClearCounters, T_EN:=TimeTransferFlag,
    TIME_IN:=InputTimeStructure, INPUT=>OutputBoolArray,
    ND_TT=>NewTimeTagFlag, TT_DATA=>TimeTagDataOutput,
    ND_COUNT=>NewCounterDataFlag,
    CNT_DATA=>CounterValuesArray,
    ND_STAT=>NewStatusDataFlag, STATUS=>EFB_ERTStatus) ;
Parameter Description
Description of the input parameters:
Parameter
Data type
Meaning
SLOT
INT
The Slot index is assigned to the EFB ERT_854_20 from either the QUANTUM or DROP EFB and contains the configured input and output references (%IW und %MW).
ACK
BOOL
Event confirmation: Setting ACK signals that the user is ready to receive the next event and deletes the TT_DATA marker. If ACK remains set, "Continuous operation" is executed.
CL_TT
BOOL
Delete the ERT event FIFO buffer by setting CL_TT. Storage of events is blocked until CL_TT is reset to 0.
CL_COUNT
BOOL
Clears all ERT counters by setting CL_COUNT. Counting is interrupted until CL_COUNT is reset to 0.
T_EN
BOOL
Enables a time transfer, that is from the ESI using TIME_IN if set.
TIME_IN
DPM_Time
Structure of the ESI, that is input time through time synchronization of the ERT (carries the edge controlled time synchronization in the Sync element).
Description of output parameters:
Parameter
Data type
Meaning
INPUT
BOOLArr32
Output array for all 32 digital inputs in BOOL format.
(Also provided in the form of word references as %IWx and %IWx+1).
ND_TT
BOOL
Marker, new data in TT_DATA structure: remains set until acknowledged by the user with ACK.
TT_DATA
ERT_10_TTag
Event message output structure with time stamp. An event is held and ND_TT is set to 1 until acknowledged by the user with ACK = 1.
ND_COUNT
BOOL
Marker, new counter data in CNT_DATA structure: The value 1 is set for only 1 cycle and is not acknowledged.
CNT_DATA
UDIntArr32
Output array for 32 counter values (is overwritten after the EFB has received a complete set of consistent counter values (configured as: 8, 16, 24, or 32).
ND_STAT
BOOL
Marker; new status data in STATUS word: The value 1 is set for only 1 cycle and is not acknowledged.
STATUS
WORD
Output word for EFB/ERT status. For more details, refer to Data Flow.
Internal Time Synchronization
Structure of DPM_Time for ERT internal time synchronization, that is through the ESI:
Element
Element type
Meaning
Sync
BOOL
Clock synchronization with positive edge (hourly or on command)
Ms_Lsb
BYTE
Time in milliseconds (least significant byte)
Ms_Msb
BYTE
Time in milliseconds (most significant byte)
Min
BYTE
Invalid time / minutes
Hour
BYTE
Summer time / hours
Day
BYTE
Week day / day of month
Mon
BYTE
Month
Year
BYTE
Year
Event Structure
Event structure of the ERT_10_TTag with 5 Byte time markers (more information can be found in Data Flow):
Element
Element type
Meaning
User
BYTE
Complete time/user number [module number]
INPUT
BYTE
Event set type/Number of the first input
In
BYTE
Event data: 1, 2 or 8 scheduled positions
Ms_Lsb
BYTE
Time in milliseconds (least significant byte)
Ms_Msb
BYTE
Time in milliseconds (most significant byte)
Min
BYTE
Invalid time/minutes
Hour
BYTE
Summer time/hours
Day
BYTE
Weekday/Day of the month