E_IEC870_5_101InitSeqStep

Selection of commands that a central station (only high-level) should send to the substation after establishing the communication link and/or after receiving the ASDU M_EI_NA_1 (end of initialization). Several of these commands can be configured to form an initialization sequence (successive initialization steps). The entire configuration of the cyclic data acquisition (including the initialization sequence) is carried out via the components of the structured type: ST_IEC870_5_101AcquisitionParams.

The initialization sequence is mainly configured in the ST_IEC870_5_101AcquisitionParams.arrInitSeq component. However, some of the commands require additional configuration parameters. These parameters are then located in other ST_IEC870_5_101AcquisitionParams components.
Samples:

From Tc2_IEC60870_5_10x.compiled-library v3.0.7.0, the trigger/time of processing the initialization sequence can be configured via the ST_IEC870_5_101AcquisitionParams.eMode component. By default, processing of the initialization sequence is started after "STARTDT" (IEC 60870-5-104) or "Reset of link" (IEC 60870-5-101).

The central station function blocks (high-level) already define an input variable: FB_IEC870_5_101Master.acqPara or FB_IEC870_5_104Master.acqPara of type: ST_IEC870_5_101AcquisitionParams. The low-level function blocks offer more control over cyclic data acquisition. However, the low-level function blocks require more programming effort.

Syntax

TYPE E_IEC870_5_101InitSeqStep :
(
    eIEC870_ISTEP_UNUSED  := 0,
    eIEC870_ISTEP_CLOCK   := 1,
    eIEC870_ISTEP_TEST    := 2,
    eIEC870_ISTEP_GENRO   := 3,
    eIEC870_ISTEP_CORO    := 4,
    eIEC870_ISTEP_COMMAND := 5,
    eIEC870_ISTEP_DELAY   := 6,

    eIEC870_ISTEP_CORO1   := 7,
    eIEC870_ISTEP_CORO2   := 8,
    eIEC870_ISTEP_CORO3   := 9,
    eIEC870_ISTEP_CORO4   := 10,

    eIEC870_ISTEP_GENRO1  := 11,
    eIEC870_ISTEP_GENRO2  := 12,
    eIEC870_ISTEP_GENRO3  := 13,
    eIEC870_ISTEP_GENRO4  := 14,
    eIEC870_ISTEP_GENRO5  := 15,
    eIEC870_ISTEP_GENRO6  := 16,
    eIEC870_ISTEP_GENRO7  := 17,
    eIEC870_ISTEP_GENRO8  := 18,
    eIEC870_ISTEP_GENRO9  := 19,
    eIEC870_ISTEP_GENRO10 := 20,
    eIEC870_ISTEP_GENRO11 := 21,
    eIEC870_ISTEP_GENRO12 := 22,
    eIEC870_ISTEP_GENRO13 := 23,
    eIEC870_ISTEP_GENRO14 := 24,
    eIEC870_ISTEP_GENRO15 := 25,
    eIEC870_ISTEP_GENRO16 := 26
);
END_TYPE

Values

Name

Meaning

eIEC870_ISTEP_UNUSED

The initialization step is not used.

eIEC870_ISTEP_CLOCK

The central station should send a clock synchronization command to the substation.

eIEC870_ISTEP_TEST

The central station should send a test command to the substation.

eIEC870_ISTEP_GENRO

The central station should send a general interrogation command (General group) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[0].

eIEC870_ISTEP_CORO

The central station should send a counter interrogation command (General group) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrCoro[0].

eIEC870_ISTEP_COMMAND

The central station should send all commands to the substation once (data points in control direction: single commands, double commands, setpoints, etc.).

eIEC870_ISTEP_DELAY

The central station is to wait before executing the next initialization step. The wait time parameter for this command is located in: ST_IEC870_5_101AcquisitionParams.delayCmd.

eIEC870_ISTEP_CORO1

The central station should send a counter interrogation command (group 1) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrCoro[1].

eIEC870_ISTEP_CORO2

The central station should send a counter interrogation command (group 2) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrCoro[2].

eIEC870_ISTEP_CORO3

The central station should send a counter interrogation command (group 3) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrCoro[3].

eIEC870_ISTEP_CORO4

The central station should send a counter interrogation command (group 4) to the substation. Further configuration parameters for this command can be found in:ST_IEC870_5_101AcquisitionParams.arrCoro[4].

eIEC870_ISTEP_GENRO1

The central station should send a general interrogation command (group 1) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[1].

eIEC870_ISTEP_GENRO2

The central station should send a general interrogation command (group 2) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[2].

eIEC870_ISTEP_GENRO3

The central station should send a general interrogation command (group 3) to the substation. Further configuration parameters for this command can be found in:ST_IEC870_5_101AcquisitionParams.arrCoro[3].

eIEC870_ISTEP_GENRO4

The central station should send a general interrogation command (group 4) to the substation. Further configuration parameters for this command can be found in:ST_IEC870_5_101AcquisitionParams.arrGenro[4].

eIEC870_ISTEP_GENRO5

The central station should send a general interrogation command (group 5) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[5].

eIEC870_ISTEP_GENRO6

The central station should send a general interrogation command (group 6) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[6].

eIEC870_ISTEP_GENRO7

The central station should send a general interrogation command (group 7) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[7].

eIEC870_ISTEP_GENRO8

The central station should send a general interrogation command (group 8) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[8].

eIEC870_ISTEP_GENRO9

The central station should send a general interrogation command (group 9) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[9].

eIEC870_ISTEP_GENRO10

The central station should send a general interrogation command (group 10) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[10].

eIEC870_ISTEP_GENRO11

The central station should send a general interrogation command (group 11) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[11].

eIEC870_ISTEP_GENRO12

The central station should send a general interrogation command (group 12) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[12].

eIEC870_ISTEP_GENRO13

The central station should send a general interrogation command (group 13) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[13].

eIEC870_ISTEP_GENRO14

The central station should send a general interrogation command (group 14) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[14].

eIEC870_ISTEP_GENRO15

The central station should send a general interrogation command (group 15) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[15].

eIEC870_ISTEP_GENRO16

The central station should send a general interrogation command (group 16) to the substation. Further configuration parameters for this command can be found in : ST_IEC870_5_101AcquisitionParams.arrGenro[16].

Requirements

Development environment

Target system type

PLC libraries to be linked (category group)

TwinCAT v3.1.4012.0

PC oder CX (x86, x64, ARM)

Tc2_IEC60870_5_10x (Communication->IEC60870)
Tc2_SerialCom (Communication->Serial)
Tc2_TcpIp (Communication->TcpIp)
Tc2_Utilities (System)