Description
Original instructions
Function Description
The ERT_854_10 EFB provides the programmer with a software interface to the ERT  854  10 module which allows simple access of the functions such as counting, time stamp, status or time synchronization. The ERT_854_10 EFB coordinates the flow of Multiplex data from the ERT to the PLC using the input and output registers. It also ensures that the intermediate count values are put 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.
The parameters EN and ENO can also 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_10 EFB and the ERT hardware.
NOTE: In case the EFB reports any communication error the %IW data are not updated by the ERT hardware.
This means you must not use %IW data if the EFB reports a problem by returning ENO = false.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL ERT_854_10_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)
Representation in ST
Representation:
ERT_854_10_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
The Slot index is assigned to the EFB ERT_854_10 from either the QUANTUM EFB or DROP EFB and contains the configured input and output references (%IW and %MW)
ACK
Event confirmation: Setting ACK signals that the user is ready to receive the next result and deletes the TT_DATA marker. If ACK remains set "continuous operation" appears.
CL_TT
BOOL
Delete the ERT event FIFO buffer by setting CL_TT. Saving of events is blocked until the CL_TT is reset to 0.
CL_COUNT
BOOL
Delete all ERT counters by setting CL_COUNT. Counting is interrupted until CL_COUNT is reset to 0.
T_EN
BOOL
Enables a time transfer, e.g. from the ESI using TIME_IN, if set
TIME_IN
DPM_Time
Structure of the ESI, e.g. input time through time synchronization of the ERT (carries the edge controlled time synchronization in the Sync element)
Description of the output parameters:
Parameter
Data type
Meaning
INPUT
BoolArr32
Output field 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 user confirmation with ACK
TT_DATA
ERT_10_TTag
Event message output structure with time mark. An event is held and ND_TT is set to 1 until there is a user enable with ACK = 1.
ND_COUNT
BOOL
Marker, new counter data in CNT_DATA Structure: The value 1 is set for only one cycle and is not recorded.
CNT_DATA
UDIntArr32
Output field 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 one cycle and is not acknowledged.
STATUS
Output word for EFB/ERT status (for internal details see Data Flow)
Internal Time Synchronization
Structure of DPM_Time for ERT internal time synchronization, e.g. through the ESI:
Element
Element type
Meaning
Sync
BOOL
Clock synchronization with positive edge (hourly or on command)
Ms_Lsb
Time in milliseconds (low value byte)
Ms_Msb
BYTE
Time in milliseconds (high value byte)
Min
BYTE
Time invalid / minutes
Hour
BYTE
Summer time / hours
Day
BYTE
Day of the week / Day in the month
Mon
BYTE
Month
Year
BYTE
Year
Event Structure
Event structure of the ERT_10_TTag with 5Byte time markers (further information can be found in Data Flow):
Element
Element type
Meaning
User
BYTE
Complete time / user number [module number]
INPUT
BYTE
Event set type / No. of the first input
In
BYTE
Event data: 1, 2 or 8 administered positions
Ms_Lsb
BYTE
Time in milliseconds (low value byte)
Ms_Msb
BYTE
Time in milliseconds (high value byte)
Min
BYTE
Time invalid / minutes
Hour
BYTE
Summer time / hours
Day
BYTE
Day of the week / Day of the month