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
Input
TimeoutTIMETIME#10s0ms
2: Timeout supervision IEC_SENDs. Minimum value 10 seconds
Output
DoneBOOLFALSE
3: Execution finished when output Done = TRUE
ErrorIDNO_ERROR
4: Shows error, Refer ERROR_ID enumeration for details of the error
ErrorNumberIECUINT0
5: Error nummer of internal used IEC60870_SEND_M*** - function block’s
StatezLOG_IDLE
6: Actual State of LogOutput, enumeration of Type zLOG_ENUM_STATE
Methods:
B_CyclicAction
D_AbortAction
E_ResetAction
Structure: