E_IEC870_5_101AcquisitionMode
From Tc2_IEC60870_5_10x.compiled-library v3.0.7.0, the trigger of the commands in the initialization sequence and/or the cyclic interrogation commands can be configured. The commands of the initialization sequence and the cyclic interrogation commands are executed after the communication link "STARTDT" (IEC 60870-5-104) has been established or after "reset of link" (IEC 60870-5-101) and/or after receipt of the ASDU: M_EI_NA_1 (end of initialization). The detailed configuration of the cyclic data acquisition takes place via the components of the structured type: ST_IEC870_5_101AcquisitionParams.
The initialization sequence includes commands configured in the ST_IEC870_5_101AcquisitionParams.arrInitSeq component.
The cyclic interrogation commands are commands that have been configured via the following structure components:
Syntax
TYPE E_IEC870_5_101AcquisitionMode :
(
CyclicPoll := 0,
InitSeq_CyclicPoll := 1,
CyclicPoll_OnEndOfInit_InitSeq_CyclicPoll := 2,
InitSeq_CyclicPoll_OnEndOfInit_InitSeq_CyclicPoll := 3,
OnEndOfInit_InitSeq_CyclicPoll := 4
);
END_TYPE
Values
Name | Description |
---|---|
CyclicPoll | After receiving STARTDT/ResetOfLink, the processing of the cyclic interrogation commands is started and continued continuously. Commands in the initialization sequence (even if configured) are not executed. The ASDU: M_EI_NA_1 is not evaluated and ignored. |
InitSeq_CyclicPoll | After receipt of STARTDT/ResetOfLink, the execution of the commands in the initialization sequence is started first. When all commands in the initialization sequence have been executed, the execution of the cyclic interrogation commands is started and continued continuously. The ASDU: M_EI_NA_1 is not evaluated and ignored. |
CyclicPoll_OnEndOfInit_InitSeq_CyclicPoll | After receipt of STARTDT/ResetOfLink, the processing of the cyclic interrogation commands is started. However, the cyclic interrogation commands are only processed until receipt of ASDU: M_EI_NA_1. When ASDU: M_EI_NA_1 is received, the execution of the cyclic interrogation commands is interrupted (but the last active command is still completed) and the execution of the commands in the initialization sequence is started. After the execution of all commands in the initialization sequence, the execution of the cyclic interrogation commands is started again and continued continuously. |
InitSeq_CyclicPoll_OnEndOfInit_InitSeq_CyclicPoll | After receipt of STARTDT/ResetOfLink and until receiving ASDU: M_EI_NA_1 the processing of the commands in the initialization sequence is started. Then (if all could be executed before receiving M_EI_NA_1) the processing of the cyclic interrogation commands is started. When ASDU: M_EI_NA_1 is received, the execution of the commands in the initialization sequence or the cyclic interrogation commands is interrupted (but the last active command is still completed) and the execution of the commands in the initialization sequence is restarted. After the execution of all commands in the initialization sequence, the execution of the cyclic interrogation commands is started again and continued continuously. |
OnEndOfInit_InitSeq_CyclicPoll | The system waits for the receipt of the ASDU: M_EI_NA_1. When M_EI_NA_1 is received, the processing of the commands in the initialization sequence is started first. After the execution of all commands in the initialization sequence, the execution of the cyclic interrogation commands is started and continued continuously. |
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.4022.28 | PC or CX | Tc2_IEC60870_5_10x v3.0.7.0 and higher (Communication->IEC60870) |