Data Flow
Original instructions
Digital Inputs
No marker for new data is provided for this input type. The digital inputs in the first two input register words are updated directly by the ERT in every PLC cycle. The EFB makes the processed values available as Bool if the BoolArr32 output field has been configured accordingly.
Counter Inputs
Cyclic updating of the counted values significantly last longer than for other data types. Counted values are saved as a data set in CNT_DATA after a complete series (configured as: 8, 16, or 32) of time consistent counted values in multiplex form has been transferred by the ERT. The marker for new data ND_COUNT is set for one cycle.
Event Inputs
You need to confirm your readiness to receive new events. Therefore the administration of markers becomes somewhat more complex (a handshake mechanism is required). Event data remains in the data structure ERT_10_TTag and the marker for new data ND_TT stays set until the ACK input is set and a new event thus requested. The EFB responds to this by resetting ND_TT for at least one cycle. After the new event has been sent to the ERT_10_TTag structure (marker structure), ND_TT is reset by the EFB. Reset the ACK input after the EFB has reset the ND_TT marker so that new event data does not get overwritten. This state can then remain stable to allow the user program enough time for event processing. Each subsequent event tracked with the ERT is temporarily stored within the event FIFO buffer.
New events are sent directly from the internal buffer of the EFB in intervals of at least 2 cycles for as long as the ACK input is set (for the special continuous operating mode); the effect is, however, that the ND_TT only stays set for one cycle. In this special mode the user program’s task is still to terminate event processing before ND_TT signals the transfer of other new events to the ERT_10_TTag structure as handshake protection by ACK is not available in this case.
ERT_10_TTag
ERT_10_TTag event structure with 5 byte time marks:
Byte
Bits
Function
1
D0...D6 = Module number 0...127
D7 = CT
Rough time: CT = 1 indicates that this time mark contains the whole time declaration including month and year in bytes 2 + 3. The Module no. can be set in any way in the parameter screen.
2
D0D5 = input number
D6 = P1
D7 = P2
Number of the first input of the event group: 1...32
Type of the event message (P2, P1). 1..0.3 see Note 1:
[Month value with CT = 1]
3
D0D7 = data from the event group (D7D0 with right alignment)
1, 2 or 8 managed positions
[year value, if CT = 1]
4
Time in milliseconds (low value byte)
0...59999 milliseconds (maximum 61100) see Note 2: and Note 3:
5
Time in milliseconds (high value byte)
6
D0...D5 = minutes
D6 = R
D7 = TI
Minutes: 0...59
Time invalid: TI = 1 means invalid time/reserved = 0 see Note 3:
7
D0...D4 = hours
D5 = R
D6 = R
D7 = DS
Hours: 0...23
Summer time: DS = 1 indicates that summer time is set
With shift SZ -> WZ has hour 2A and id SZ, and hour 2B has id WZ
8
D0...D4 = DOM
D5...D7 = DOW
Day of the Month: 1...31
Day of Week: Mon...Sun = 1...7
The day of week corresponds to CET thus it deviates from the standard used in the US (Sun = 1).
Note 1:
Interpretation for byte 2:
D7 D6
Type of event message
D5...D0
Number of the first input of the event group
0 1
1 pin message
1...32
Input pin number
1 0
2 pin message
1, 3, 5...31
First input of the group
1 1
8 pin message
1, 9, 17, 25
First input of the group
Note 2:
The value for the milliseconds is a maximum of 61100 ms with switch seconds (61000 plus a tolerance of 100 milliseconds).
Note 3:
For time markers containing an invalid time (TI = 1), the time in milliseconds is set to FFFF HEX. Minutes, hours and DOW/DOM values are invalid (that is undefined).
Rough time declaration
If the "rough time declaration" has been activated during the ERT configuration, the transfer of the complete time (with month/year) is executed in the following conditions:
If this rough time declaration is sent without the data input values, "triggering" basically takes place through a correct time stamped event. If this does not happen the values remain "stuck" in the ERT until an event occurs. Within the time mark of a "rough time declaration", the CT bit is set so that byte 2 contains the information about the month, byte 3 the information about the year and bytes 4...8 display the same time mark values of the triggered event whose event message appears immediately after the rough time declaration.
Status Inputs
The marker for new status data ND_STAT is set for one cycle. The status inputs can be overwritten after 2 inquiry cycles.
The status word contains EFB and ERT error bits.
Division of the Error Bits
Internal structure of the EFB/ERT status word:
EFB error bits
ERT error bits
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
ERT Error Bits
D8...D0 ERT error bits:
Bit
Brief designation
Meaning
D0
FW
Firmware mismatches self test errors within internal memories
D1
FP
Parameterization errors
D2
TE
External time reference error (time-basis signal disrupted or not present)
D3
TU
Time became invalid
D4
TA
Time is not synchronized (Free run mode, permanent run without time error message). Refer to Without power reserve.
D5
PF
FIFO buffer overrun (loss of the most recent event data)
D6
PH
FIFO buffer half full
D7
DC
Stabilize active (some event data lost)
D8
CE
ERT communication errors (procedure errors or time out)
When configuring the parameter screen some of these errors can be assigned to grouped error messages with the "F" light as well as the module’s error byte within the status table. All other errors are then defined as warnings.
D11...D9 reserved.
EFB Error Bits
D15...D12 EFB error bits:
Bin.
Hex
Meaning
1001
9 HEX
Wrong answer recognized, command (EFB internal error)
1000
8 HEX
EFB communication time out
0101
5 HEX
Wrong slot
0110
6 HEX
Health status bit is not set (ERT appears as not available)
1010
A HEX
CRC checksum error
Other values
Internal error
Online error display
The following ERT/EFB error messages are displayed in the Tools → Diagnostic View window with a number and explanation.
EFB error messages:
Message
Error
Meaning
-30210
User error 11
Communication time out occurred
-30211
User error 12
Wrong answer recognized, synchronization (EFB internal error)
-30212
User error 13
Wrong packet number detected (EFB internal error)
-30213
User error 14
Wrong field number detected (EFB internal error)
-30214
User error 15
Unexpected time tag (EFB internal error)
-30215
User error 16
Wrong slot data (configuration check required)
-30216
User error 17
Health status bit is not set (ERT appears as not available)
-30217
User error 18
EFB internal command buffer out of bounds
-30218
User error 19
Wrong answer recognized, command (EFB internal error)
-30219
User error 20
ERT error
-30220
User error 21
CRC checksum error
ERT error messages:
Message
Error
Meaning
-30200
User error 1
ERT internal error
...
...
...
-30203
User error 4
ERT internal error
-30204
User error 5
ERT communication timeout
-30205
User error 6
ERT internal error
...
...
...
-30207
User error 8
ERT internal error