LogIec60870_Output
(FB)
FUNCTION_BLOCK LogIec60870_Output EXTENDS AbbLConCA
This Function Block decodes a dataset formatted in *.csv and sends the current data type from the RAM-FIFOout of the Datalogger to the control station.
If enabled the Function Block automatically reads the oldest dataset at a filling level of FIFOout > 0 and existing communication connection. Then the Function Block decodes the dataset from *.csv format, sends the data via internal call of IEC Function Blocks and shows status at output State = zLOG_OUTPUT_DATA_HAS_BEEN_SENT. This happens until FIFOOUT_LEVEL=0 and the Function Block signals “EMPTY”. At the same time at output State the message “zLOG_FIFOOUT_EMPTY” is given. While existing communication and exhausted FILE-FIFO, the datasets, newly written by LOG_IEC60870_INPUT to FIFOin, are continuously copied by LogHandling directly to FIFOout, as soon as there is space in the FIFOout for new datasets. For this the FIFOout should not be empty (EMPTY). It is different when FILE-FIFO is not empty. In this case at first FIFOout is fully decremented until FIFOOUT_LEVEL=0 and the Function Block signals “EMPTY”. After that a new dataset block is copied from FILE-FIFO into FIFOout.

Datasets of type M_SP1, M_SP16, M_DP, M_IT1, M_IT16, M_ME1, M_ME16 according to IEC60870-5-104 decoded dataset per dataset in the format *.csv from the RAM-FIFOout and transmitted to the control station
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
Enable
BOOL
FALSE
A rising edge (Enable = TRUE) starts the operation, the output Busy goes to TRUE. All other inputs are read and considered continuously. A falling edge (Enable = FALSE) aborts the operation. During Aborting the Busy is still TRUE. Afterward all outputs are reset.
AbbLConCA
Output
Busy
BOOL
FALSE
Operation is running (while output Error is FALSE)
AbbLConCA
Error
BOOL
FALSE
Operation is stopped with error (while output Busy is FALSE). This output is TRUE for at least one cycle or until Enable is set to FALSE. The output ErrorID gives more details about the error.
AbbLConCA
Input
Timeout
TIME
TIME#10s0ms
2: Timeout supervision IEC_SENDs. Minimum value 10 seconds
Output
Done
BOOL
FALSE
3: Execution finished when output Done = TRUE
ErrorID
NO_ERROR
4: Shows error, Refer ERROR_ID enumeration for details of the error
ErrorNumberIEC
UINT
0
5: Error nummer of internal used IEC60870_SEND_M*** - function block’s
State
zLOG_ENUM_STATE
zLOG_IDLE
6: Actual State of LogOutput, enumeration of Type zLOG_ENUM_STATE