You are on page 1of 428

WagoAppRTU

Release 1.2.13.1

Oct 23, 2020


Contents

1 Description 1

2 Bibliotheksinformation 3
2.1 GetLibVersion (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 GetLibVersionNumber (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 IsLibReleased (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

3 GlobalTextList (Text List) 4

4 Projektinformationen 5
4.1 GetBooleanProperty (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.2 GetCompany (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.3 GetNumberProperty (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.4 GetTextProperty (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.5 GetTextProperty2 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.6 GetTitle (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.7 GetVersion (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.8 GetVersionProperty (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

5 TC_Base 7
5.1 010 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.1.1 EventFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
tyTCBase_EventFileLoadState (STRUCT) . . . . . . . . . . . . . . . . . . . . 7
5.1.2 Local Vars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
tyTCBase_VarInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
uTCBase_60870 (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
uTCBase_DNP3 (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
uTCBase_LocalVar (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1.3 eTCBase_CFGMode (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1.4 eTCBase_COLORS (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1.5 eTCBase_MainState (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1.6 eTCBase_ObjClass (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1.7 eTCBase_ProcessIO_Cl (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5.1.8 tyTCBase_Buffer0300 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.1.9 tyTCBase_FileInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.1.10 tyTCBase_KBusIOAdressInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . 11
5.1.11 tyTCBase_ProcessIO_Con (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 11
5.1.12 tyTCBase_ProcessIO_Map (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.13 tyTCBase_ProcessIO_Name (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.14 tyTCBase_ProcessIO_Point (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 12
5.1.15 tyTCBase_ProcessIO_Used (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 12

i
5.1.16 tyTCBase_TcpClient (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.17 tyTCBase_TokenList (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.18 uTCBase_16Bit (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.19 uTCBase_24Bit (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1.20 uTCBase_256BYTE (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1.21 uTCBase_32Bit (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1.22 uTCBase_64Bit (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1.23 uTCBase_96Bit (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1.24 uTCBase_KBusIO (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1.25 uTCBase_Pointer (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2 020 CONNECTOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2.1 fbTCBase_ConnectorBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
fbTCBase_ConnectorBase.mCfgRead (METH) . . . . . . . . . . . . . . 15
fbTCBase_ConnectorBase.mCfgWrite (METH) . . . . . . . . . . . . . . 15
10 PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
fbTCBase_ConnectorBase._mBufferFlush (METH) . . . . . . . . . . 16
fbTCBase_ConnectorBase.RemoteStation (PROP) . . . . . . . . . . . . . . . 16
fbTCBase_ConnectorBase.mClose (METH) . . . . . . . . . . . . . . . . . . . . 16
fbTCBase_ConnectorBase.mExit (METH) . . . . . . . . . . . . . . . . . . . . . 16
fbTCBase_ConnectorBase.mInit (METH) . . . . . . . . . . . . . . . . . . . . . 16
fbTCBase_ConnectorBase.mSend (METH) . . . . . . . . . . . . . . . . . . . . . 16
5.2.2 fbTCBase_ConnectorCom (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
fbTCBase_ConnectorCom.mCfgRead (METH) . . . . . . . . . . . . . . . 17
fbTCBase_ConnectorCom.mCfgWrite (METH) . . . . . . . . . . . . . . 17
fbTCBase_ConnectorCom.mComOpen (METH) . . . . . . . . . . . . . . . . . . . 17
fbTCBase_ConnectorCom.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 17
5.2.3 fbTCBase_ConnectorTcpCL (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 17
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
fbTCBase_ConnectorTcpCL.mCfgApp (METH) . . . . . . . . . . . . . . 17
fbTCBase_ConnectorTcpCL.mCfgRead (METH) . . . . . . . . . . . . . . 18
fbTCBase_ConnectorTcpCL.mCfgWrite (METH) . . . . . . . . . . . . . 18
fbTCBase_ConnectorTcpCL.RemoteStation (PROP) . . . . . . . . . . . . . . 18
fbTCBase_ConnectorTcpCL.mClose (METH) . . . . . . . . . . . . . . . . . . . 18
fbTCBase_ConnectorTcpCL.mExit (METH) . . . . . . . . . . . . . . . . . . . . 18
fbTCBase_ConnectorTcpCL.mInit (METH) . . . . . . . . . . . . . . . . . . . . 18
5.2.4 fbTCBase_ConnectorTcpSV (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 18
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
fbTCBase_ConnectorTcpSV.mCfgApp (METH) . . . . . . . . . . . . . . 19
fbTCBase_ConnectorTcpSV.mCfgRead (METH) . . . . . . . . . . . . . . 19
fbTCBase_ConnectorTcpSV.mCfgWrite (METH) . . . . . . . . . . . . . 19
fbTCBase_ConnectorTcpSV.FB_Exit (METH) . . . . . . . . . . . . . . . . . . 20
fbTCBase_ConnectorTcpSV.mClose (METH) . . . . . . . . . . . . . . . . . . . 20
fbTCBase_ConnectorTcpSV.mConnAdd (METH) . . . . . . . . . . . . . . . . . . 20
fbTCBase_ConnectorTcpSV.mInit (METH) . . . . . . . . . . . . . . . . . . . . 20
5.2.5 fbTCBase_ConnectorTcp_SV (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 20
fbTCBase_ConnectorTcp_SV.mExit (METH) . . . . . . . . . . . . . . . . . . . 20
5.2.6 fbTCBase_ConnectorTlsCL (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 20
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
fbTCBase_ConnectorTlsCL.mCfgRead (METH) . . . . . . . . . . . . . . 21
fbTCBase_ConnectorTlsCL.mClose (METH) . . . . . . . . . . . . . . . . . . . 21
fbTCBase_ConnectorTlsCL.mExit (METH) . . . . . . . . . . . . . . . . . . . . 21
fbTCBase_ConnectorTlsCL.mInit (METH) . . . . . . . . . . . . . . . . . . . . 21
5.2.7 fbTCBase_ConnectorTlsSV (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 21
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
fbTCBase_ConnectorTlsSV.mCfgApp (METH) . . . . . . . . . . . . . . 22
fbTCBase_ConnectorTlsSV.mCfgRead (METH) . . . . . . . . . . . . . . 22

ii
fbTCBase_ConnectorTlsSV.mCfgWrite (METH) . . . . . . . . . . . . . 22
fbTCBase_ConnectorTlsSV.FB_Exit (METH) . . . . . . . . . . . . . . . . . . 23
fbTCBase_ConnectorTlsSV.mClose (METH) . . . . . . . . . . . . . . . . . . . 23
fbTCBase_ConnectorTlsSV.mConnAdd (METH) . . . . . . . . . . . . . . . . . . 23
fbTCBase_ConnectorTlsSV.mInit (METH) . . . . . . . . . . . . . . . . . . . . 23
5.2.8 tyTCBase_ParaConnectorTcpCL (STRUCT) . . . . . . . . . . . . . . . . . . . 23
5.3 020 Hilfsfunktionen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.3.1 _SYS (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
100 60870 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
_SYS.mCP24_TO_String (METH) . . . . . . . . . . . . . . . . . . . . . . . 24
_SYS.mCP56_TO_String (METH) . . . . . . . . . . . . . . . . . . . . . . . 24
_SYS._Lg1 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
_SYS._Lg2 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
_SYS.aNums5 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
_SYS.aNums6 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
_SYS.aNums7 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
_SYS.aNums8 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
_SYS.fHex16 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
_SYS.fHex32 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
_SYS.mConcat03 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
_SYS.mConcat04 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
_SYS.mConcat05 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
_SYS.mConcat06 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
_SYS.mConcat07 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
_SYS.mConcat08 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
_SYS.mConcat09 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
_SYS.mConcat10 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
_SYS.mCopy02 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
_SYS.mCopy03 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
_SYS.mCopy04 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
_SYS.mCopy05 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
_SYS.mCopy06 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
_SYS.mCopy07 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
_SYS.mCopy08 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
_SYS.mCopy09 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
_SYS.mCopy10 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
_SYS.mDebugPrint (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
_SYS.mMM_SS (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
_SYS.mReplaceChar (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
_SYS.mUserParaCheck (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3.2 fTCBase_StrToBitIx (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3.3 fTCBase_StringToUpper (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3.4 fbTCBase_ComBuffer (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
20 DNP3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
fbTCBase_ComBuffer.mAddHexStr (METH) . . . . . . . . . . . . . . . . 30
fbTCBase_ComBuffer.mDnp3_Find0x0564 (METH) . . . . . . . . . . . 30
fbTCBase_ComBuffer.mAddBlk (METH) . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mAddBuf (METH) . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mAddStg (METH) . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mBCC (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mClear (METH) . . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mCopy (METH) . . . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mRemove (METH) . . . . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mRemoveTill (METH) . . . . . . . . . . . . . . . . . . . 31
fbTCBase_ComBuffer.mRemoveTill2 (METH) . . . . . . . . . . . . . . . . . . 32
5.3.5 fbTCBase_MemManager (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
fbTCBase_MemManager.mAlloc (METH) . . . . . . . . . . . . . . . . . . . . . . 32
fbTCBase_MemManager.mAllocCom_FR (METH) . . . . . . . . . . . . . . . . . . 32

iii
fbTCBase_MemManager.mAllocCom_PA (METH) . . . . . . . . . . . . . . . . . . 32
fbTCBase_MemManager.mReset (METH) . . . . . . . . . . . . . . . . . . . . . . 32
5.3.6 fbTCBase_Nums (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.FB_Init (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.a5 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.a6 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.a7 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.a8 (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.m103_TypInfFu_to_STR (METH) . . . . . . . . . . . . . . . . 33
fbTCBase_Nums.m870C_TypAdr_to_STR (METH) . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.m870S_TypAdr_to_STR (METH) . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.m870_Asdu_to_STR (METH) . . . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.m870_CP56_to_STR (METH) . . . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.m870_Event_to_STR (METH) . . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.mBitAdr (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.mByteArray_to_STR (METH) . . . . . . . . . . . . . . . . . . 34
fbTCBase_Nums.mDNP3_Event_to_STR (METH) . . . . . . . . . . . . . . . . . . 35
fbTCBase_Nums.mDNP3_GrpVar_to_STR (METH) . . . . . . . . . . . . . . . . . 35
fbTCBase_Nums.mDNP3_Time_to_STR (METH) . . . . . . . . . . . . . . . . . . 35
5.3.7 fbTCBase_SysManager (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
fbTCBase_SysManager.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . 35
fbTCBase_SysManager.mReboot (METH) . . . . . . . . . . . . . . . . . . . . . . 36
5.4 030 Serial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.4.1 10 COM WATCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
fbTCBase_ComWatch (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
fbTCBase_ComWatch.FB_Init (METH) . . . . . . . . . . . . . . . . . . . 36
fbTCBase_ComWatch.mLoggRx (METH) . . . . . . . . . . . . . . . . . . . 36
fbTCBase_ComWatch.mLoggText (METH) . . . . . . . . . . . . . . . . . . 36
fbTCBase_ComWatch.mLoggTx (METH) . . . . . . . . . . . . . . . . . . . 36
fbTCBase_ComWatch.mScroll (METH) . . . . . . . . . . . . . . . . . . . 37
tyTCBase_ComWatchLine (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 37
uTCBase_ComWatchData (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.4.2 fbTCBase_SerialHdl_Base (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 37
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
fbTCBase_SerialHdl_Base.mCfgApp (METH) . . . . . . . . . . . . . . 38
fbTCBase_SerialHdl_Base.mCfgWrite (METH) . . . . . . . . . . . . . 38
fbTCBase_SerialHdl_Base.RTS (PROP) . . . . . . . . . . . . . . . . . . . . . . 38
fbTCBase_SerialHdl_Base.mClose (METH) . . . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mInit (METH) . . . . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mOpen (METH) . . . . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mReceive (METH) . . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mReceiveX (METH) . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mSend (METH) . . . . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mSendTxt (METH) . . . . . . . . . . . . . . . . . . 39
fbTCBase_SerialHdl_Base.mSetPar (METH) . . . . . . . . . . . . . . . . . . 40
5.4.3 fbTCBase_SerialHdl_COMx (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 40
fbTCBase_SerialHdl_COMx.RTS (PROP) . . . . . . . . . . . . . . . . . . . . . . 41
fbTCBase_SerialHdl_COMx.mClose (METH) . . . . . . . . . . . . . . . . . . . 41
fbTCBase_SerialHdl_COMx.mOpen (METH) . . . . . . . . . . . . . . . . . . . . 42
fbTCBase_SerialHdl_COMx.mReceive (METH) . . . . . . . . . . . . . . . . . . 42
fbTCBase_SerialHdl_COMx.mReceiveX (METH) . . . . . . . . . . . . . . . . . 42
fbTCBase_SerialHdl_COMx.mSend (METH) . . . . . . . . . . . . . . . . . . . . 42
fbTCBase_SerialHdl_COMx.mSendTxt (METH) . . . . . . . . . . . . . . . . . . 42
5.4.4 fbTCBase_SerialHdl_KBUS (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 42
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
fbTCBase_SerialHdl_KBUS._mInitRegList (METH) . . . . . . . . . . 43
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
fbTCBase_SerialHdl_KBUS.mCfgApp (METH) . . . . . . . . . . . . . . 43

iv
fbTCBase_SerialHdl_KBUS.mCfgRead (METH) . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.RTS (PROP) . . . . . . . . . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.mClose (METH) . . . . . . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.mInit (METH) . . . . . . . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.mOpen (METH) . . . . . . . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.mReceive (METH) . . . . . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.mSend (METH) . . . . . . . . . . . . . . . . . . . . 44
fbTCBase_SerialHdl_KBUS.mSendTxt (METH) . . . . . . . . . . . . . . . . . . 45
fbTCBase_SerialHdl_KBUS.mSetPar (METH) . . . . . . . . . . . . . . . . . . 45
5.4.5 tyTCBase_ComPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
5.4.6 tyTCBase_RegisterCom (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.4.7 tyTCBase_debugAusgabeCom (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 46
5.5 040 DRM / IO-Accsess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.5.1 10 LIB-Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
_fbTCBase_LibKbusModul (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
_fbTCBase_LibKbusModul.mWriteReg (METH) . . . . . . . . . . . . . . 47
fbTCBase_IOAccess_LIB (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
fbTCBase_IOAccess_LIB.mExit (METH) . . . . . . . . . . . . . . . . . . 47
fbTCBase_IOAccess_LIB.mFbAccess_Load (METH) . . . . . . . . . . 47
fbTCBase_IOAccess_LIB.mFbAccess_Write (METH) . . . . . . . . . . 48
fbTCBase_IOAccess_LIB.mInit (METH) . . . . . . . . . . . . . . . . . . 48
fbTCBase_IOAccess_LIB.mReset (METH) . . . . . . . . . . . . . . . . . 48
fbTCBase_IOAccess_LIB.mScan (METH) . . . . . . . . . . . . . . . . . . 48
fbTCBase_IOAccess_LIB.mUpdateI (METH) . . . . . . . . . . . . . . . 48
fbTCBase_IOAccess_LIB.mUpdateQ (METH) . . . . . . . . . . . . . . . 48
fbTCBase_IOAccess_LIB.xStandalone (PROP) . . . . . . . . . . . . . 48
5.5.2 eTCBase_DrmLiceneTyp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.5.3 fbTCBase_ProcessIO (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
000 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mCfgWrite (METH) . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mAdrToIx (METH) . . . . . . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mBitsI (METH) . . . . . . . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mBitsQ (METH) . . . . . . . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mCOM (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 50
fbTCBase_ProcessIO.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . 51
fbTCBase_ProcessIO.mGetCon (METH) . . . . . . . . . . . . . . . . . . . . . . 51
fbTCBase_ProcessIO.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . 51
fbTCBase_ProcessIO.mMap (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 51
fbTCBase_ProcessIO.mPostProcess (METH) . . . . . . . . . . . . . . . . . . 51
fbTCBase_ProcessIO.mPreeProcess (METH) . . . . . . . . . . . . . . . . . . 51
fbTCBase_ProcessIO.mReset (METH) . . . . . . . . . . . . . . . . . . . . . . . 51
5.6 050 Pree/Post-Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.6.1 INPUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIW (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIW.mCfgRead (METH) . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIW.mCfgWrite (METH) . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIW.FB_Init (METH) . . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIW.mCall (METH) . . . . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIX (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIX.mCfgRead (METH) . . . . . . . . . . . . . . 52
fbTCBase_PreeProcessIX.mCfgWrite (METH) . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessIX.FB_Init (METH) . . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessIX.mCall (METH) . . . . . . . . . . . . . . . . . 53
5.6.2 LOCAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessLB (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

v
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessLB.mCfgRead (METH) . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessLB.mCfgWrite (METH) . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessLB.FB_Init (METH) . . . . . . . . . . . . . . . 53
fbTCBase_PreeProcessLB.mCall (METH) . . . . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLD (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLD.mCfgRead (METH) . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLD.mCfgWrite (METH) . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLD.FB_Init (METH) . . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLD.mCall (METH) . . . . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLR (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLR.mCfgRead (METH) . . . . . . . . . . . . . . 54
fbTCBase_PreeProcessLR.mCfgWrite (METH) . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLR.FB_Init (METH) . . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLR.mCall (METH) . . . . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLT (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLT.mCfgRead (METH) . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLT.mCfgWrite (METH) . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLT.FB_Init (METH) . . . . . . . . . . . . . . . 55
fbTCBase_PreeProcessLT.mCall (METH) . . . . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLW (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLW.mCfgRead (METH) . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLW.mCfgWrite (METH) . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLW.FB_Init (METH) . . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLW.mCall (METH) . . . . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLX (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLX.mCfgRead (METH) . . . . . . . . . . . . . . 56
fbTCBase_PreeProcessLX.mCfgWrite (METH) . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessLX.FB_Init (METH) . . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessLX.mCall (METH) . . . . . . . . . . . . . . . . . 57
5.6.3 OUTPUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessQW (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessQW.mCfgRead (METH) . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessQW.mCfgWrite (METH) . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessQW.FB_Init (METH) . . . . . . . . . . . . . . . 57
fbTCBase_PreeProcessQW.mCall (METH) . . . . . . . . . . . . . . . . . 58
fbTCBase_PreeProcessQX (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
fbTCBase_PreeProcessQX.mCfgRead (METH) . . . . . . . . . . . . . . 58
fbTCBase_PreeProcessQX.mCfgWrite (METH) . . . . . . . . . . . . . . 58
fbTCBase_PreeProcessQX.FB_Init (METH) . . . . . . . . . . . . . . . 58
fbTCBase_PreeProcessQX.mCall (METH) . . . . . . . . . . . . . . . . . 58
5.6.4 fbTCBase_PreePostBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
fbTCBase_PreePostBase.mCfgRead (METH) . . . . . . . . . . . . . . . 58
fbTCBase_PreePostBase.mCfgWrite (METH) . . . . . . . . . . . . . . 59
fbTCBase_PreePostBase.FB_Init (METH) . . . . . . . . . . . . . . . . . . . . 59
fbTCBase_PreePostBase.mCall (METH) . . . . . . . . . . . . . . . . . . . . . . 59
5.7 060 Functional FB's . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.7.1 01 BASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
fbTCBase_FunctionalBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
fbTCBase_FunctionalBase.mAccess_Load (METH) . . . . . . . . . . 59

vi
fbTCBase_FunctionalBase.mAccess_Write (METH) . . . . . . . . . . 59
fbTCBase_FunctionalBase.mInit (METH) . . . . . . . . . . . . . . . . 60
fbTCBase_FunctionalBase.mUpdateI (METH) . . . . . . . . . . . . . . 60
fbTCBase_FunctionalBase.mUpdateQ (METH) . . . . . . . . . . . . . . 60
fbTCBase_FunctionalBase.mWrite_CSV (METH) . . . . . . . . . . . . 60
5.7.2 49x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
fbTCBase_Functional_49x (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
fbTCBase_Functional_49x.mAccess_Load (METH) . . . . . . . . . . 61
fbTCBase_Functional_49x.mAccess_Write (METH) . . . . . . . . . . 61
fbTCBase_Functional_49x.mInit (METH) . . . . . . . . . . . . . . . . 61
fbTCBase_Functional_49x.mUpdateI (METH) . . . . . . . . . . . . . . 61
fbTCBase_Functional_49x.mUpdateQ (METH) . . . . . . . . . . . . . . 61
fbTCBase_Functional_49x.mWrite_CSV (METH) . . . . . . . . . . . . 61
tyTCBase_75x_49xI (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
tyTCBase_75x_49xMessChannel (STRUCT) . . . . . . . . . . . . . . . . . . . . 62
tyTCBase_75x_49xQ (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
5.7.3 tyTCBase_FunctionalChannel (STRUCT) . . . . . . . . . . . . . . . . . . . . 63
5.8 070 File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
5.8.1 fbTCBase_FileHandler (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
10 BASICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
fbTCBase_FileHandler.mCmpFileInfo (METH) . . . . . . . . . . . . . 63
fbTCBase_FileHandler.mEqual (METH) . . . . . . . . . . . . . . . . . . 64
fbTCBase_FileHandler.mLineBack (METH) . . . . . . . . . . . . . . . 64
fbTCBase_FileHandler.mOpenR (METH) . . . . . . . . . . . . . . . . . . 64
fbTCBase_FileHandler.mReadLine (METH) . . . . . . . . . . . . . . . 64
fbTCBase_FileHandler.mReadStrg (METH) . . . . . . . . . . . . . . . 64
fbTCBase_FileHandler.mReplaceChar (METH) . . . . . . . . . . . . . 64
fbTCBase_FileHandler.mReset (METH) . . . . . . . . . . . . . . . . . . 65
fbTCBase_FileHandler.mSave (METH) . . . . . . . . . . . . . . . . . . 65
fbTCBase_FileHandler.mSplit (METH) . . . . . . . . . . . . . . . . . . 65
fbTCBase_FileHandler.mSplitByName (METH) . . . . . . . . . . . . . 65
fbTCBase_FileHandler.mToTextList (METH) . . . . . . . . . . . . . . 65
20 LOAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
fbTCBase_FileHandler._mLoad (METH) . . . . . . . . . . . . . . . . . . 65
fbTCBase_FileHandler.mLoad_Access (METH) . . . . . . . . . . . . . 66
fbTCBase_FileHandler.mLoad_BOOL (METH) . . . . . . . . . . . . . . 66
fbTCBase_FileHandler.mLoad_BYTE (METH) . . . . . . . . . . . . . . 66
fbTCBase_FileHandler.mLoad_DINT (METH) . . . . . . . . . . . . . . 66
fbTCBase_FileHandler.mLoad_DWORD (METH) . . . . . . . . . . . . . . 66
fbTCBase_FileHandler.mLoad_INT (METH) . . . . . . . . . . . . . . . 66
fbTCBase_FileHandler.mLoad_REAL (METH) . . . . . . . . . . . . . . 67
fbTCBase_FileHandler.mLoad_STRING (METH) . . . . . . . . . . . . . 67
fbTCBase_FileHandler.mLoad_TIME (METH) . . . . . . . . . . . . . . 67
fbTCBase_FileHandler.mLoad_WORD (METH) . . . . . . . . . . . . . . 67
30 WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
fbTCBase_FileHandler.mWriteAttribut (METH) . . . . . . . . . . . 67
fbTCBase_FileHandler.mWriteTxt (METH) . . . . . . . . . . . . . . . 67
5.9 080 SQLite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
5.9.1 fbTCBase_SQLiteConnector (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 68
010 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.mFinalize (METH) . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.mPrepare (METH) . . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.mStep (METH) . . . . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.FB_exit (METH) . . . . . . . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.mClose (METH) . . . . . . . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.mColumn (METH) . . . . . . . . . . . . . . . . . . 68
fbTCBase_SQLiteConnector.mDelCntOfRow (METH) . . . . . . . . . . . . . . 69

vii
fbTCBase_SQLiteConnector.mGetCntOfRow (METH) . . . . . . . . . . . . . . 69
fbTCBase_SQLiteConnector.mGetErrMsg (METH) . . . . . . . . . . . . . . . 69
fbTCBase_SQLiteConnector.mLSTR_Add (METH) . . . . . . . . . . . . . . . . 69
fbTCBase_SQLiteConnector.mLSTR_Init (METH) . . . . . . . . . . . . . . . 69
fbTCBase_SQLiteConnector.mOpen (METH) . . . . . . . . . . . . . . . . . . . 69
fbTCBase_SQLiteConnector.mSQLExecute (METH) . . . . . . . . . . . . . . 70
5.10 090 HTML-Logger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
5.10.1 fbTCBase_HtmlLogger (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
fbTCBase_HtmlLogger.mInit_ (METH) . . . . . . . . . . . . . . . . . . . . . . 70
fbTCBase_HtmlLogger.mLogg01 (METH) . . . . . . . . . . . . . . . . . . . . . . 70
fbTCBase_HtmlLogger.mLogg02 (METH) . . . . . . . . . . . . . . . . . . . . . . 70
fbTCBase_HtmlLogger.mLogg03 (METH) . . . . . . . . . . . . . . . . . . . . . . 70
5.10.2 fbTCBase_HtmlLoggerML (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
fbTCBase_HtmlLoggerML.mInit_ (METH) . . . . . . . . . . . . . . . . . . . . . 71
fbTCBase_HtmlLoggerML.mLogg (METH) . . . . . . . . . . . . . . . . . . . . . . 71
5.10.3 uTCBase_LoggEnums (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
5.11 400 VISU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
5.12 500 User App . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
5.12.1 itfUserApp_870C (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
itfUserApp_870C.mAppCFG (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 72
5.12.2 itfUserApp_870S (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
itfUserApp_870S.mAppCFG (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 72
5.12.3 itfUserApp_DNP3S (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
itfUserApp_DNP3S.mAppCFG (METH) . . . . . . . . . . . . . . . . . . . . . . . . 72
5.12.4 tyTCBase_UserAppPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 72
5.13 TCBase_GC (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
5.14 TCBase_GV (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
5.15 fbAppRtuMain_FbExit (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
5.15.1 fbAppRtuMain_FbExit.FB_Exit (METH) . . . . . . . . . . . . . . . . . . . . . 74
5.16 prgAppRtuMain (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
5.16.1 010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
prgAppRtuMain.mCfgCode (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 75
prgAppRtuMain.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 75
prgAppRtuMain.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 75
5.16.2 prgAppRtuMain._Clock (ACT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
5.16.3 prgAppRtuMain.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
5.16.4 prgAppRtuMain.mReset (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 76

6 TC_DNP3 77
6.1 00 DEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6.1.1 fDNP3_Version (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6.2 01 Common . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6.2.1 010 Hilfsbausteine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
‘‘ Debug‘‘ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
prgDNP3_Debugger (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
prgDNP3_Debugger.mRequ (METH) . . . . . . . . . . . . . . . . . . . . . . 77
prgDNP3_Debugger.mResp (METH) . . . . . . . . . . . . . . . . . . . . . . 77
Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
fDNP3_APDU_App (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
fDNP3_AppendGrpHeaderC (FUN) . . . . . . . . . . . . . . . . . . . . . . . 78
fDNP3_AppendGrpHeaderR (FUN) . . . . . . . . . . . . . . . . . . . . . . . 78
fDNP3_AppendINT (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
fDNP3_AppendINTWithIx (FUN) . . . . . . . . . . . . . . . . . . . . . . . 78
fDNP3_AppendLPDU (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
fDNP3_AppendTxt (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
fDNP3_AppendUINT (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
fDNP3_AppendUINTwithIx (FUN) . . . . . . . . . . . . . . . . . . . . . . . 79
fDNP3_AppendVSTR (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

viii
fDNP3_AppendVSTRwithIx (FUN) . . . . . . . . . . . . . . . . . . . . . . . 79
fDNP3_CmdMsgSetState (FUN) . . . . . . . . . . . . . . . . . . . . . . . . 80
fDNP3_HandleFC002_80 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . 80
fDNP3_HandleFC021_22 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . 80
fDNP3_HandleFC022 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
fDNP3_InfObjRangeValid (FUN) . . . . . . . . . . . . . . . . . . . . . . . 80
fDNP3_QualInterpreter (FUN) . . . . . . . . . . . . . . . . . . . . . . . 81
fDNP3_RequestMirror (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 81
fDNP3_SetDeviceAttr (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 81
fbDNP3_APDU_Requ (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
fbDNP3_APDU_Requ.mAPDU_Prep (METH) . . . . . . . . . . . . . . . . . . 81
fbDNP3_APDU_Requ.mAppend01_BYTE (METH) . . . . . . . . . . . . . . 82
fbDNP3_APDU_Requ.mAppend02_WORD (METH) . . . . . . . . . . . . . . 82
fbDNP3_APDU_Requ.mAppend04_DWORD (METH) . . . . . . . . . . . . . . 82
fbDNP3_APDU_Requ.mAppendByteX (METH) . . . . . . . . . . . . . . . . 82
fbDNP3_APDU_Requ.mAppendClock (METH) . . . . . . . . . . . . . . . . 82
fbDNP3_APDU_Requ.mGetObjCnt (METH) . . . . . . . . . . . . . . . . . . 82
fbDNP3_APDU_Resp (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
10 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp000_DA (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp001_BI (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp003_DBI (ACT) . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp010_BQ (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp020_CI (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp030_AI (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp040_AQ (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp._Grp060_CL (ACT) . . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp.mAPDU_Close (METH) . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp.mAPDU_Prep (METH) . . . . . . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp.mAppendGrpHeader (METH) . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp.mAppendObjData01 (METH) . . . . . . . . . . . . . 83
fbDNP3_APDU_Resp.mAppendObjData02 (METH) . . . . . . . . . . . . . 84
fbDNP3_APDU_Resp.mAppendObjData03 (METH) . . . . . . . . . . . . . 84
fbDNP3_APDU_Resp.mAppendObjData03T (METH) . . . . . . . . . . . . 84
fbDNP3_APDU_Resp.mAppendObjData04 (METH) . . . . . . . . . . . . . 84
fbDNP3_APDU_Resp.mAppendObjData05 (METH) . . . . . . . . . . . . . 84
fbDNP3_APDU_Resp.mAppendObjData05T (METH) . . . . . . . . . . . . 84
fbDNP3_APDU_Resp.mGetObjCnt (METH) . . . . . . . . . . . . . . . . . . 85
fbDNP3_APDU_Resp.mSetSeqNo (METH) . . . . . . . . . . . . . . . . . . 85
fbDNP3_APDU_Resp.mSplitt (METH) . . . . . . . . . . . . . . . . . . . . 85
Private . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
tyDNP3_InfObjPar (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 85
tyDNP3_LPDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
tyDNP3_LPDU_List (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 86
tyDNP3_SrvPar (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
tyDNP3_TPDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Rx/Tx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
fDNP3_AppendCRC16 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
fDNP3_Append_LinkMSG (FUN) . . . . . . . . . . . . . . . . . . . . . . . . 86
fDNP3_CompareCRC16 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 86
fDNP3_LPDU_2_TPDU (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
fbDNP3_Lpdu (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
fbDNP3_Lpdu.mRxAdd (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 87
fbDNP3_Lpdu.mRxDecoder (METH) . . . . . . . . . . . . . . . . . . . . . . 87
fbDNP3_TpduList (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
fbDNP3_TpduList.mAddTPDU (METH) . . . . . . . . . . . . . . . . . . . . 87
fbDNP3_TpduList.mRpAPDU_to_TPDU (METH) . . . . . . . . . . . . . . 87
fbDNP3_TpduList.mRqAPDU_to_TPDU (METH) . . . . . . . . . . . . . . 88

ix
fbDNP3_TpduList.mTPDU_to_LPDU (METH) . . . . . . . . . . . . . . . . 88
fbDNP3_TpduList.mTPDU_to_RpAPDU (METH) . . . . . . . . . . . . . . 88
fbDNP3_TpduList.mTPDU_to_RqAPDU (METH) . . . . . . . . . . . . . . 88
fbDNP3_TpduList.yTPDU_SIZE (PROP) . . . . . . . . . . . . . . . . . . . 88
tyDNP3_TPDU_Header (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 88
Secure Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
WCRYPTO_fAddAllAlgorithm (FUN) . . . . . . . . . . . . . . . . . . . . . 89
WCRYPTO_fAesKeyUnwrap (FUN) . . . . . . . . . . . . . . . . . . . . . . . 89
WCRYPTO_fGmac (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
WCRYPTO_fHmac (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
fDNP3_APDU_Prep_SA (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 90
fDNP3_AggrReq (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
fDNP3_CheckUsrRole (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 90
fDNP3_CreateRandom (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 90
fDNP3_DeleteSessKey (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 90
fDNP3_DeleteUpKey (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
fDNP3_DeleteUser (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
fDNP3_GenHeader (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
fDNP3_GetSessionKey (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 91
fDNP3_GetUpdateKey (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 91
fDNP3_InitMAC (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
fDNP3_InitSecPara (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
fDNP3_InitUpdateKey (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 92
fDNP3_IvGmac (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
fDNP3_IvGmac_v10 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
fDNP3_MAC_AggrReq (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
fDNP3_MAC_v10 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
fDNP3_MAC_v15_Req (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
fDNP3_MAC_v15_Res (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
fDNP3_MAC_v2 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
fDNP3_MAC_v5 (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
fDNP3_ReqUser (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
fDNP3_SetUpKeyTime (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 94
fDNP3_Thresholds (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
fDNP3_g120_v10_UserChange (FUN) . . . . . . . . . . . . . . . . . . . . 95
fDNP3_g120_v12_UpdateKeyReply (FUN) . . . . . . . . . . . . . . . . . 95
fDNP3_g120_v1_ChallengeData (FUN) . . . . . . . . . . . . . . . . . . . 95
fDNP3_g120_v2_ReplyData (FUN) . . . . . . . . . . . . . . . . . . . . . . 95
fDNP3_g120_v5_KeyStatus (FUN) . . . . . . . . . . . . . . . . . . . . . . 95
fDNP3_g120_v7_Error (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 96
fInitSecKeyDW (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
prgDNP3_SecAuth_Timer (PRG) . . . . . . . . . . . . . . . . . . . . . . . . 96
fDNP3_ArrayToWord (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
fDNP3_CheckModemInit (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
fDNP3_ModemAnswer (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
fDNP3_ModemTxt (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
fDNP3_RestartTON (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
fDNP3_SysComSendTx (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
fDNP3_WordToArray (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
fbDNP3_WriteReqList (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
fbDNP3_WriteReqList.mInit (METH) . . . . . . . . . . . . . . . . . . . 98
fbDNP3_WriteReqList.mLoopEnd (METH) . . . . . . . . . . . . . . . . . 98
fbDNP3_WriteReqList.mMapp (METH) . . . . . . . . . . . . . . . . . . . 98
fbDNP3_WriteReqList.mNext (METH) . . . . . . . . . . . . . . . . . . . 98
fbDNP3_WriteReqList.mReadRequest (METH) . . . . . . . . . . . . . . 98
fbDNP3_WriteReqList.mSet (METH) . . . . . . . . . . . . . . . . . . . . 99
fbDNP3_WriteReqList.mSetIx (METH) . . . . . . . . . . . . . . . . . . 99
6.2.2 020 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

x
60870/61850 TO DNP3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
fDNP3_CLK_FROM_IEC60870 (FUN) . . . . . . . . . . . . . . . . . . . . . . 99
fDNP3_CLK_FROM_IEC61850 (FUN) . . . . . . . . . . . . . . . . . . . . . . 99
fDNP3_CLK_FROM_DT (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
fDNP3_CLK_TO_DT (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
fbDNP3_Clock (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
fbDNP3_Clock.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 100
fbDNP3_Clock.mRxTime (METH) . . . . . . . . . . . . . . . . . . . . . . . 100
6.2.3 090 VISU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
6.2.4 eDNP3_LoggerEV (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
6.2.5 tyDNP3_Clock (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
6.2.6 tyDNP3_FirstLevelEventBuffer (STRUCT) . . . . . . . . . . . . . . . . . . . 102
6.2.7 tyDNP3_GVQ (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
6.2.8 tyDNP3_ObjRxData (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
6.3 010 Outstation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
6.3.1 010 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
10 PARA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
tyDNP3_ParaAppLink (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 103
tyDNP3_ParaAppUNS (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 103
tyDNP3_ParaGlobal (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 104
90 AUTH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
DNP3_ENUM_ERRCODE (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 104
DNP3_ENUM_KEYSTATUS (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . 105
DNP3_ENUM_SSLSOCKSTATE (ENUM) . . . . . . . . . . . . . . . . . . . . . 105
tyDNP3_AuthErr (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
tyDNP3_AuthPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 106
tyDNP3_AuthUser (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 108
tyDNP3_IniSecAuth (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 109
tyDNP3_Thresholds (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 109
tyDNP3_UserUpKey (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 109
tyDNP3_UsrThresholds (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 109
eDNP3_ConnectorTyp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
eDNP3_Target (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
tyDNP3O_WriteGrp034 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
tyDNP3_AbsTime (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
tyDNP3_AdrGrp (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
tyDNP3_AnaOutObj (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
tyDNP3_AssignClassDOH (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 110
tyDNP3_AssignClassRequ (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 111
tyDNP3_BinOutControl (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 112
tyDNP3_BinOutObj (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
tyDNP3_CertificationPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 113
tyDNP3_CntrData (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
tyDNP3_CntrDataList40 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 113
tyDNP3_ComBuffer (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
tyDNP3_CounterObj (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
tyDNP3_DeviceAttrObj (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 114
tyDNP3_FreezeCounter (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 114
tyDNP3_IEC60870_CP56 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 114
tyDNP3_IEC61850_TimeStamp (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 114
tyDNP3_InfObjIdent (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
tyDNP3_LPDU_1 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
tyDNP3_ModemInitPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 115
tyDNP3_QualInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
tyDNP3_ReadRequLine (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
tyDNP3_ReadRequList (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
tyDNP3_RequAPDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
tyDNP3_RespAPDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

xi
tyDNP3_RetainInfObjDS (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 117
tyDNP3_SSLSocket (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
tyDNP3_SecureOptions (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 118
tyDNP3_SerialExtPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 119
tyDNP3_SubTypInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
uDNP3_EvClassList (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
6.3.2 020 Hilfsbausteine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
fDNP3O_CmdMsgCheck (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
fbDNP3O_ReadReqList (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
fbDNP3O_ReadReqList.mInit (METH) . . . . . . . . . . . . . . . . . . . 120
fbDNP3O_ReadReqList.mLoopEnd (METH) . . . . . . . . . . . . . . . . . 120
fbDNP3O_ReadReqList.mMapp (METH) . . . . . . . . . . . . . . . . . . . 120
fbDNP3O_ReadReqList.mNext (METH) . . . . . . . . . . . . . . . . . . . 120
fbDNP3O_ReadReqList.mReadRequest (METH) . . . . . . . . . . . . . . 120
fbDNP3O_ReadReqList.mSet (METH) . . . . . . . . . . . . . . . . . . . . 121
fbDNP3O_ReadReqList.mSetIx (METH) . . . . . . . . . . . . . . . . . . 121
6.3.3 030 Info Objekte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
030 Listen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
fbDNP3O_InfObjList000 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 121
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
fbDNP3O_InfObjList000.mFC01_Read (METH) . . . . . . . . . . . . . . 122
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
fbDNP3O_InfObjList000.mCfgApp (METH) . . . . . . . . . . . . . . . . 122
fbDNP3O_InfObjList000.mCfgRead (METH) . . . . . . . . . . . . . . . 122
fbDNP3O_InfObjList000.mCfgWrite (METH) . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList000.mInit (ACT) . . . . . . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList000.mExit (METH) . . . . . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList001 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 123
000 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList001.mInit (METH) . . . . . . . . . . . . . . . . . . 123
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList001.mCfgApp (METH) . . . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList001.mCfgRead (METH) . . . . . . . . . . . . . . . 123
fbDNP3O_InfObjList001.mCfgWrite (METH) . . . . . . . . . . . . . . 123
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
fbDNP3O_InfObjList001.mApp_InfObDel (METH) . . . . . . . . . . . 124
fbDNP3O_InfObjList001.mApp_InfObjAdd (METH) . . . . . . . . . . 124
fbDNP3O_InfObjList001.mExit (METH) . . . . . . . . . . . . . . . . . . 124
fbDNP3O_InfObjList001.mFC01_Read (METH) . . . . . . . . . . . . . . 124
fbDNP3O_InfObjList001.mFC22_AssignClass (METH) . . . . . . . . 124
fbDNP3O_InfObjList003 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 124
001 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
fbDNP3O_InfObjList003.mInit (METH) . . . . . . . . . . . . . . . . . . 124
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
fbDNP3O_InfObjList003.mCfgApp (METH) . . . . . . . . . . . . . . . . 125
fbDNP3O_InfObjList003.mCfgRead (METH) . . . . . . . . . . . . . . . 125
fbDNP3O_InfObjList003.mCfgWrite (METH) . . . . . . . . . . . . . . 125
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
fbDNP3O_InfObjList003.mApp_InfObDel (METH) . . . . . . . . . . . 125
fbDNP3O_InfObjList003.mApp_InfObjAdd (METH) . . . . . . . . . . 125
fbDNP3O_InfObjList003.mExit (METH) . . . . . . . . . . . . . . . . . . 125
fbDNP3O_InfObjList003.mFC01_Read (METH) . . . . . . . . . . . . . . 126
fbDNP3O_InfObjList003.mFC22_AssignClass (METH) . . . . . . . . 126
fbDNP3O_InfObjList010 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 126
000 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
fbDNP3O_InfObjList010.mInit (METH) . . . . . . . . . . . . . . . . . . 126
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
fbDNP3O_InfObjList010.mCfgApp (METH) . . . . . . . . . . . . . . . . 126

xii
fbDNP3O_InfObjList010.mCfgRead (METH) . . . . . . . . . . . . . . . 126
fbDNP3O_InfObjList010.mCfgWrite (METH) . . . . . . . . . . . . . . 126
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
fbDNP3O_InfObjList010.mApp_InfObDel (METH) . . . . . . . . . . . 127
fbDNP3O_InfObjList010.mApp_InfObjAdd (METH) . . . . . . . . . . 127
fbDNP3O_InfObjList010.mAdrValid (METH) . . . . . . . . . . . . . . 127
fbDNP3O_InfObjList010.mExit (METH) . . . . . . . . . . . . . . . . . . 127
fbDNP3O_InfObjList010.mFC01_Read (METH) . . . . . . . . . . . . . . 127
fbDNP3O_InfObjList010.mFC04_Cntr (METH) . . . . . . . . . . . . . . 127
fbDNP3O_InfObjList010.mFC22_AssignClass (METH) . . . . . . . . 128
fbDNP3O_InfObjList020 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 128
000 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
fbDNP3O_InfObjList020.mInit (METH) . . . . . . . . . . . . . . . . . . 128
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
fbDNP3O_InfObjList020.mCfgApp (METH) . . . . . . . . . . . . . . . . 128
fbDNP3O_InfObjList020.mCfgRead (METH) . . . . . . . . . . . . . . . 128
fbDNP3O_InfObjList020.mCfgWrite (METH) . . . . . . . . . . . . . . 128
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
fbDNP3O_InfObjList020.mApp_InfObDel (METH) . . . . . . . . . . . 128
fbDNP3O_InfObjList020.mApp_InfObjAdd (METH) . . . . . . . . . . 129
fbDNP3O_InfObjList020.mExit (METH) . . . . . . . . . . . . . . . . . . 129
fbDNP3O_InfObjList020.mFC01_Read (METH) . . . . . . . . . . . . . . 129
fbDNP3O_InfObjList020.mFC07_Freeze (METH) . . . . . . . . . . . . 129
fbDNP3O_InfObjList020.mFC22_AssignClass (METH) . . . . . . . . 129
fbDNP3O_InfObjList030 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 130
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
fbDNP3O_InfObjList030.mInit (METH) . . . . . . . . . . . . . . . . . . 130
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
fbDNP3O_InfObjList030.mCfgApp (METH) . . . . . . . . . . . . . . . . 130
fbDNP3O_InfObjList030.mCfgRead (METH) . . . . . . . . . . . . . . . 130
fbDNP3O_InfObjList030.mCfgWrite (METH) . . . . . . . . . . . . . . 130
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
fbDNP3O_InfObjList030.mApp_InfObDel (METH) . . . . . . . . . . . 130
fbDNP3O_InfObjList030.mApp_InfObjAdd (METH) . . . . . . . . . . 131
fbDNP3O_InfObjList030.mExit (METH) . . . . . . . . . . . . . . . . . . 131
fbDNP3O_InfObjList030.mFC01_Read (METH) . . . . . . . . . . . . . . 131
fbDNP3O_InfObjList030.mFC02_Write (METH) . . . . . . . . . . . . . 131
fbDNP3O_InfObjList030.mFC22_AssignClass (METH) . . . . . . . . 131
fbDNP3O_InfObjList040 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 131
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
fbDNP3O_InfObjList040.mInit (METH) . . . . . . . . . . . . . . . . . . 132
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
fbDNP3O_InfObjList040.mCfgApp (METH) . . . . . . . . . . . . . . . . 132
fbDNP3O_InfObjList040.mCfgRead (METH) . . . . . . . . . . . . . . . 132
fbDNP3O_InfObjList040.mCfgWrite (METH) . . . . . . . . . . . . . . 132
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
fbDNP3O_InfObjList040.mApp_InfObDel (METH) . . . . . . . . . . . 132
fbDNP3O_InfObjList040.mApp_InfObjAdd (METH) . . . . . . . . . . 132
fbDNP3O_InfObjList040.mAdrValid (METH) . . . . . . . . . . . . . . 133
fbDNP3O_InfObjList040.mCDL_Add (METH) . . . . . . . . . . . . . . . 133
fbDNP3O_InfObjList040.mCDL_Init (METH) . . . . . . . . . . . . . . 133
fbDNP3O_InfObjList040.mExit (METH) . . . . . . . . . . . . . . . . . . 133
fbDNP3O_InfObjList040.mFC01_Read (METH) . . . . . . . . . . . . . . 133
fbDNP3O_InfObjList040.mFC04_Cntr (METH) . . . . . . . . . . . . . . 133
fbDNP3O_InfObjList040.mFC22_AssignClass (METH) . . . . . . . . 134
fbDNP3O_InfObjList121 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 134
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
fbDNP3O_InfObjList121.mInit (METH) . . . . . . . . . . . . . . . . . . 134

xiii
fbDNP3O_InfObjList121.AddFB (ACT) . . . . . . . . . . . . . . . . . . . 134
fbDNP3O_InfObjList121.mExit (METH) . . . . . . . . . . . . . . . . . . 134
fbDNP3O_InfObjList121.mFC01_R_ead (ACT) . . . . . . . . . . . . . . 134
fbDNP3O_InfObjList121.mFC01_Read (METH) . . . . . . . . . . . . . . 134
031 InfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
fbDNP3O_InfObjBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
fbDNP3O_InfObjBase.FB_Init (METH) . . . . . . . . . . . . . . . . . . 135
fbDNP3O_InfObjBase.mCfgEvTimeRead (METH) . . . . . . . . . . . . . 135
fbDNP3O_InfObjBase.mCfgEvTimeWrite (METH) . . . . . . . . . . . . 135
fbDNP3O_InfObjBase.mCfgInit (METH) . . . . . . . . . . . . . . . . . . 135
fbDNP3O_InfObjBase.mCfgRetain (METH) . . . . . . . . . . . . . . . . 135
fbDNP3O_InfObjBase.mCfgWrite (METH) . . . . . . . . . . . . . . . . . 136
fbDNP3O_InfObjBase.mCycleImp (METH) . . . . . . . . . . . . . . . . . 136
fbDNP3O_InfObjBase.mFC22_AssignClass (METH) . . . . . . . . . . 136
fbDNP3O_InfObjGr001 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 136
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
fbDNP3O_InfObjGr001.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 136
fbDNP3O_InfObjGr001.mCfgRead (METH) . . . . . . . . . . . . . . . . . 136
fbDNP3O_InfObjGr001.mCfgWrite (METH) . . . . . . . . . . . . . . . . 137
fbDNP3O_InfObjGr001.mCycleImp (METH) . . . . . . . . . . . . . . . . 137
fbDNP3O_InfObjGr003 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 137
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
fbDNP3O_InfObjGr003.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 137
fbDNP3O_InfObjGr003.mCfgRead (METH) . . . . . . . . . . . . . . . . . 137
fbDNP3O_InfObjGr003.mCfgWrite (METH) . . . . . . . . . . . . . . . . 137
fbDNP3O_InfObjGr003.mCycleImp (METH) . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 138
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010.mCfgRead (METH) . . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010.mCfgWrite (METH) . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010.mCycleImp (METH) . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010.mExit (METH) . . . . . . . . . . . . . . . . . . . 138
fbDNP3O_InfObjGr010.mFC04_Operate (METH) . . . . . . . . . . . . . 139
fbDNP3O_InfObjGr020 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 139
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
fbDNP3O_InfObjGr020.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 139
fbDNP3O_InfObjGr020.mCfgRead (METH) . . . . . . . . . . . . . . . . . 139
fbDNP3O_InfObjGr020.mCfgWrite (METH) . . . . . . . . . . . . . . . . 139
fbDNP3O_InfObjGr020.mCycleImp (METH) . . . . . . . . . . . . . . . . 140
fbDNP3O_InfObjGr020.mExit (METH) . . . . . . . . . . . . . . . . . . . 140
fbDNP3O_InfObjGr020.mFC07_Freeze (METH) . . . . . . . . . . . . . . 140
fbDNP3O_InfObjGr030 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 140
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
fbDNP3O_InfObjGr030.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 140
fbDNP3O_InfObjGr030.mCfgRead (METH) . . . . . . . . . . . . . . . . . 140
fbDNP3O_InfObjGr030.mCfgWrite (METH) . . . . . . . . . . . . . . . . 141
fbDNP3O_InfObjGr030.mCycleImp (METH) . . . . . . . . . . . . . . . . 141
fbDNP3O_InfObjGr030.mExit (METH) . . . . . . . . . . . . . . . . . . . 141
fbDNP3O_InfObjGr030.mWrite_db (METH) . . . . . . . . . . . . . . . . 141
fbDNP3O_InfObjGr040 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 141
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
fbDNP3O_InfObjGr040.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 141
fbDNP3O_InfObjGr040.mCfgRead (METH) . . . . . . . . . . . . . . . . . 142
fbDNP3O_InfObjGr040.mCfgWrite (METH) . . . . . . . . . . . . . . . . 142
fbDNP3O_InfObjGr040.mCycleImp (METH) . . . . . . . . . . . . . . . . 142
fbDNP3O_InfObjGr040.mExit (METH) . . . . . . . . . . . . . . . . . . . 142

xiv
fbDNP3O_InfObjGr040.mFC04_Operate (METH) . . . . . . . . . . . . . 142
fbDNP3O_InfObjGr121 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 142
fbDNP3O_InfObjGr121.mPutEV (METH) . . . . . . . . . . . . . . . . . . 142
itfDNP3O_InfObj (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
itfDNP3O_InfObj.mCycleImp (METH) . . . . . . . . . . . . . . . . . . . 143
6.3.4 040 Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
01 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._Get (ACT) . . . . . . . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._LoggScroll (ACT) . . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._RollBack (ACT) . . . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._UpdateCnt (ACT) . . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._WriteProlog (ACT) . . . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._WriteTimeBase (ACT) . . . . . . . . . . . . . 143
fbDNP3O_EventBuffer._refRetainEV (ACT) . . . . . . . . . . . . . . . 144
10 ACTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer._AddTyp_002Obj (ACT) . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer._AddTyp_011Obj (ACT) . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer._AddTyp_022Obj (ACT) . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer._AddTyp_032Obj (ACT) . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer._AddTyp_122Obj (ACT) . . . . . . . . . . . . . 144
90 TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer.mExport (METH) . . . . . . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer.mDel (METH) . . . . . . . . . . . . . . . . . . . . 144
fbDNP3O_EventBuffer.mEventFileLoad (METH) . . . . . . . . . . . . 144
fbDNP3O_EventBuffer.mEventFileLoadFin (METH) . . . . . . . . . . 144
fbDNP3O_EventBuffer.mEventFileSaveFin (METH) . . . . . . . . . . 145
fbDNP3O_EventBuffer.mInit (METH) . . . . . . . . . . . . . . . . . . . 145
fbDNP3O_EventBuffer.mPutEvList (METH) . . . . . . . . . . . . . . . 145
fbDNP3O_EventFile (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
fbDNP3O_EventFile._ACT_Start (ACT) . . . . . . . . . . . . . . . . . . 145
fbDNP3O_EventFile.mIdel (METH) . . . . . . . . . . . . . . . . . . . . . 145
fbDNP3O_EventFile.mLoad (METH) . . . . . . . . . . . . . . . . . . . . . 145
fbDNP3O_EventFile.mSave (METH) . . . . . . . . . . . . . . . . . . . . . 145
tyDNP3O_UnsEventTrg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
tyDNP3_Event (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
tyDNP3_EventFileBuffer (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 146
tyDNP3_EventFileInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 146
tyDNP3_EventFileSaveState (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 147
tyDNP3_EventGetPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
tyDNP3_EventGetVars (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
tyDNP3_EventInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
tyDNP3_EventRetain (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
6.3.5 050 Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
fbDNP3O_EtherLink (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
fbDNP3O_EtherLink.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . 148
fbDNP3O_EtherLink.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 149
fbDNP3O_EtherLink.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 149
fbDNP3O_EtherLink.FC09 (ACT) . . . . . . . . . . . . . . . . . . . . . . . 149
fbDNP3O_EtherLink.HandleRxPriMsg (ACT) . . . . . . . . . . . . . . . 149
fbDNP3O_EtherLink.HandleRxSecMsg (ACT) . . . . . . . . . . . . . . . 149
fbDNP3O_EtherLink.PRM (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 150
fbDNP3O_EtherLink.mAccept (METH) . . . . . . . . . . . . . . . . . . . 150
fbDNP3O_EtherLink.mClose (METH) . . . . . . . . . . . . . . . . . . . . 150
fbDNP3O_EtherLink.mDiscon (METH) . . . . . . . . . . . . . . . . . . . 150
fbDNP3O_EtherLink.mInit (METH) . . . . . . . . . . . . . . . . . . . . . 150

xv
fbDNP3O_EtherLink.mReceive (METH) . . . . . . . . . . . . . . . . . . 150
fbDNP3O_EtherListener (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 151
fbDNP3O_EtherListener.FB_Exit (METH) . . . . . . . . . . . . . . . . 151
fbDNP3O_EtherListener.mClose (METH) . . . . . . . . . . . . . . . . . 151
fbDNP3O_EtherListener.mCompare (METH) . . . . . . . . . . . . . . . 151
fbDNP3O_EtherListener.mInit (METH) . . . . . . . . . . . . . . . . . . 151
fbDNP3O_EtherListener.mOpen (METH) . . . . . . . . . . . . . . . . . . 151
fbDNP3O_EtherListener.mSend (METH) . . . . . . . . . . . . . . . . . . 152
fbDNP3O_IP_Main (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
001 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
fbDNP3O_IP_Main.FB_Exit (METH) . . . . . . . . . . . . . . . . . . . . . 152
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
fbDNP3O_IP_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . 152
fbDNP3O_IP_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . 152
fbDNP3O_IP_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . 153
fbDNP3O_IP_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 153
fbDNP3O_IP_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 153
Seriell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
fbDNP3O_COM_Main (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
001 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
fbDNP3O_COM_Main.FB_Exit (METH) . . . . . . . . . . . . . . . . . . . . 153
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
fbDNP3O_COM_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . 153
fbDNP3O_COM_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . 154
fbDNP3O_COM_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 154
fbDNP3O_COM_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 154
fbDNP3O_COM_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 154
fbDNP3O_SeriellLink (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 154
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
fbDNP3O_SeriellLink.FC09 (ACT) . . . . . . . . . . . . . . . . . . . . . 154
fbDNP3O_SeriellLink.HandleRxPriMsg (ACT) . . . . . . . . . . . . . 155
fbDNP3O_SeriellLink.HandleRxSecMsg (ACT) . . . . . . . . . . . . . 155
fbDNP3O_SeriellLink.PRM (ACT) . . . . . . . . . . . . . . . . . . . . . . 155
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
fbDNP3O_SeriellLink.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 155
fbDNP3O_SeriellLink.mCfgRead (METH) . . . . . . . . . . . . . . . . . 155
fbDNP3O_SeriellLink.mCfgWrite (METH) . . . . . . . . . . . . . . . . 156
fbDNP3O_SeriellLink.yTPDU_SIZE (PROP) . . . . . . . . . . . . . . . . 156
fbDNP3O_SeriellLink.mClose (METH) . . . . . . . . . . . . . . . . . . 156
fbDNP3O_SeriellLink.mOpen (METH) . . . . . . . . . . . . . . . . . . . 156
fbTCBase_RowDataLogger (FB) . . . . . . . . . . . . . . . . . . . . . . . . 156
Tetra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
fbTCBase_SerialHdl_TETRA (FB) . . . . . . . . . . . . . . . . . . . . . . 156
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
fbTCBase_SerialHdl_TETRA._DOKU (ACT) . . . . . . . . . . . . . . . . 157
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
fbTCBase_SerialHdl_TETRA.mCfgRead (METH) . . . . . . . . . . . . . 157
fbTCBase_SerialHdl_TETRA.mLogg (METH) . . . . . . . . . . . . . . . 157
fbTCBase_SerialHdl_TETRA.mSimModem (METH) . . . . . . . . . . . . 157
fbTCBase_SerialHdl_TETRA.mTx (METH) . . . . . . . . . . . . . . . . . 157
fbDNP3O_AppLink (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
fbDNP3O_AppLink.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . 158
fbDNP3O_AppLink.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . 158
fbDNP3O_AppLink.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . 158
fbDNP3O_AppLink._FC32_AuthenticationRequest (ACT) . . . . . . 158
fbDNP3O_AppLink._SecMsgResponse (ACT) . . . . . . . . . . . . . . . . 158
fbDNP3O_AppLink._SecRequest (ACT) . . . . . . . . . . . . . . . . . . . 158

xvi
fbDNP3O_AppLink._UnSolic (ACT) . . . . . . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mConClose (ACT) . . . . . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC00_Confirm (METH) . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC01_Read (METH) . . . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC03_Select (METH) . . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC04_Operate (METH) . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC05_OperateDirect (METH) . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC07_Freeze (METH) . . . . . . . . . . . . . . . . . 159
fbDNP3O_AppLink.mFC22_AssignClass (METH) . . . . . . . . . . . . . 160
fbDNP3O_AppLink.mHandelRxPriTPDU (METH) . . . . . . . . . . . . . . 160
fbDNP3O_AppLink.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 160
fbDNP3O_AppLink.mLoopEnd (METH) . . . . . . . . . . . . . . . . . . . . 160
tyDNP3_LinkPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
tyDNP3_LinkParaEth (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
uDNP3_PhyLinkPara (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
6.3.6 080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
DUT APP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
tyDNP3O_InfObjAppCfg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 161
tyDNP3O_InfObjPD_C10 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 161
tyDNP3O_InfObjPD_C40 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 161
tyDNP3O_InfObjPD_M01 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 162
tyDNP3O_InfObjPD_M03 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 162
tyDNP3O_InfObjPD_M20 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 162
tyDNP3O_InfObjPD_M30 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 162
uDNP3O_InfObjPD (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
fbDNP3O_InfObjList (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_InfObjAdd_C10 (METH) . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_InfObjAdd_C40 (METH) . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_InfObjAdd_M01 (METH) . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_InfObjAdd_M03 (METH) . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_InfObjAdd_M20 (METH) . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_InfObjAdd_M30 (METH) . . . . . . . . . . 163
fbDNP3O_InfObjList.mApp_SortList (METH) . . . . . . . . . . . . . . 164
6.3.7 090 VISU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_01 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_03 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_10 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_20 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_30 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_40 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.ACT_OsCon (ACT) . . . . . . . . . . . . . . . . . . . . . . 164
prgDNP3O_Visu.mCntlStateString (METH) . . . . . . . . . . . . . . . 164
tyDNP3O_Visu_ObjList (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 164
uDNP3O_Visu_FbPointer (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . 165
6.3.8 prgDNP3O_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
prgDNP3O_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . 165
prgDNP3O_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . 165
prgDNP3O_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . 165
090 VISU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
prgDNP3O_Main.mVisu_UpdateList (METH) . . . . . . . . . . . . . . . 165
prgDNP3O_Main.mAddEvBufferFb (METH) . . . . . . . . . . . . . . . . . . . . . 166
prgDNP3O_Main.mAppEventPut (METH) . . . . . . . . . . . . . . . . . . . . . . 166
prgDNP3O_Main.mEventPut (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 166
prgDNP3O_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
prgDNP3O_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
prgDNP3O_Main.mInitFinish (METH) . . . . . . . . . . . . . . . . . . . . . . . 167

xvii
prgDNP3O_Main.mLogger (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 167
prgDNP3O_Main.mPreeStart (METH) . . . . . . . . . . . . . . . . . . . . . . . . 167
prgDNP3O_Main.mRetainInit (METH) . . . . . . . . . . . . . . . . . . . . . . . 167
6.4 020 Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
6.4.1 010 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
10 OBJ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
tyDNP3M_Qu_000 (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
tyDNP3M_Qu_001 (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
tyDNP3M_RxObj (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_RxObjList (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 168
uDNP3M_GrpVar (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
eDNP3M_WaitForResp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_EventPrio (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_MaParaCOM (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_MaParaTCP (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_MaParaTLS (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_MaParaTeF (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_MaParaUDP (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
tyDNP3M_OsPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
uDNP3M_MaPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
6.4.2 030 Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
fbDNP3M_EventBuffer (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
fbDNP3M_EventBuffer.mGet (METH) . . . . . . . . . . . . . . . . . . . . 169
fbDNP3M_EventBuffer.mInit (METH) . . . . . . . . . . . . . . . . . . . 169
fbDNP3M_EventBuffer.mPut (METH) . . . . . . . . . . . . . . . . . . . . 170
fbDNP3M_SQLiteExport (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
fbDNP3M_SQLiteExport.mEvToStr (METH) . . . . . . . . . . . . . . . . 170
fbDNP3M_SQLiteExport.mStart (METH) . . . . . . . . . . . . . . . . . . 170
tyDNP3M_EventData (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
6.4.3 050 InfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
InfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBase.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBase.mCfgWrite (METH) . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBase.FB_Init (METH) . . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBase.mRxData (METH) . . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBaseC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 171
fbDNP3M_InfObjBaseC.mCycleImp (METH) . . . . . . . . . . . . . . . . 172
fbDNP3M_InfObjBaseM (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 172
fbDNP3M_InfObjGr001 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 172
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
fbDNP3M_InfObjGr001.mCfgRead (METH) . . . . . . . . . . . . . . . . . 172
fbDNP3M_InfObjGr001.mCfgWrite (METH) . . . . . . . . . . . . . . . . 172
fbDNP3M_InfObjGr001.mRxData (METH) . . . . . . . . . . . . . . . . . . 172
fbDNP3M_InfObjGr003 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 172
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
fbDNP3M_InfObjGr003.mCfgRead (METH) . . . . . . . . . . . . . . . . . 173
fbDNP3M_InfObjGr003.mCfgWrite (METH) . . . . . . . . . . . . . . . . 173
fbDNP3M_InfObjGr003.mRxData (METH) . . . . . . . . . . . . . . . . . . 173
fbDNP3M_InfObjGr010 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 173
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
fbDNP3M_InfObjGr010.mCfgRead (METH) . . . . . . . . . . . . . . . . . 173
fbDNP3M_InfObjGr010.mCfgWrite (METH) . . . . . . . . . . . . . . . . 174
fbDNP3M_InfObjGr010.mCycleImp (METH) . . . . . . . . . . . . . . . . 174
fbDNP3M_InfObjGr010.mRxData (METH) . . . . . . . . . . . . . . . . . . 174
fbDNP3M_InfObjGr020 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 174
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

xviii
fbDNP3M_InfObjGr020.mCfgRead (METH) . . . . . . . . . . . . . . . . . 174
fbDNP3M_InfObjGr020.mCfgWrite (METH) . . . . . . . . . . . . . . . . 174
fbDNP3M_InfObjGr020.mExit (METH) . . . . . . . . . . . . . . . . . . . 175
fbDNP3M_InfObjGr020.mRxData (METH) . . . . . . . . . . . . . . . . . . 175
fbDNP3M_InfObjGr030 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 175
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
fbDNP3M_InfObjGr030.mCfgRead (METH) . . . . . . . . . . . . . . . . . 175
fbDNP3M_InfObjGr030.mCfgWrite (METH) . . . . . . . . . . . . . . . . 175
fbDNP3M_InfObjGr030.mRxData (METH) . . . . . . . . . . . . . . . . . . 175
fbDNP3M_InfObjGr040 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 176
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
fbDNP3M_InfObjGr040.mCfgRead (METH) . . . . . . . . . . . . . . . . . 176
fbDNP3M_InfObjGr040.mCfgWrite (METH) . . . . . . . . . . . . . . . . 176
fbDNP3M_InfObjGr040.mExit (METH) . . . . . . . . . . . . . . . . . . . 176
fbDNP3M_InfObjGr040.mCycleImp (METH) . . . . . . . . . . . . . . . . 176
fbDNP3M_InfObjGr040.mRxData (METH) . . . . . . . . . . . . . . . . . . 176
itfDNP3M_InfObj (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
itfDNP3M_InfObj.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . 177
itfDNP3M_InfObj.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . 177
itfDNP3M_InfObj.mRxData (METH) . . . . . . . . . . . . . . . . . . . . . 177
Listen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
fbDNP3M_InfObjListC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 177
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
fbDNP3M_InfObjListC.mAdd_C_ANO (METH) . . . . . . . . . . . . . . . 177
fbDNP3M_InfObjListC.mAdd_C_SBO (METH) . . . . . . . . . . . . . . . 177
fbDNP3M_InfObjListC.mInit (METH) . . . . . . . . . . . . . . . . . . . 178
fbDNP3M_InfObjListC.mCycle (METH) . . . . . . . . . . . . . . . . . . 178
fbDNP3M_InfObjListC.mFindAndCall_ANO (METH) . . . . . . . . . . 178
fbDNP3M_InfObjListC.mFindAndCall_SBO (METH) . . . . . . . . . . 178
fbDNP3M_InfObjListM (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 178
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
fbDNP3M_InfObjListM.mAdd_M_ANI (METH) . . . . . . . . . . . . . . . 178
fbDNP3M_InfObjListM.mAdd_M_CTI (METH) . . . . . . . . . . . . . . . 178
fbDNP3M_InfObjListM.mAdd_M_DBI (METH) . . . . . . . . . . . . . . . 178
fbDNP3M_InfObjListM.mAdd_M_SBI (METH) . . . . . . . . . . . . . . . 179
fbDNP3M_InfObjListM.mInit (METH) . . . . . . . . . . . . . . . . . . . 179
fbDNP3M_InfObjListM.mFindAndCall_ANI (METH) . . . . . . . . . . 179
fbDNP3M_InfObjListM.mFindAndCall_CTI (METH) . . . . . . . . . . 179
fbDNP3M_InfObjListM.mFindAndCall_DBI (METH) . . . . . . . . . . 179
fbDNP3M_InfObjListM.mFindAndCall_SBI (METH) . . . . . . . . . . 179
6.4.4 060 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
fbDNP3M_CntrlBlock (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
fbDNP3M_CntrlBlock.mEvListInit (METH) . . . . . . . . . . . . . . . 180
fbDNP3M_CntrlBlock.mEvListPut (METH) . . . . . . . . . . . . . . . . 180
fbDNP3M_CntrlBlock.mJobPrep (METH) . . . . . . . . . . . . . . . . . . 180
fbDNP3M_CntrlBlock.mMsgSend (METH) . . . . . . . . . . . . . . . . . . 180
tyDNP3M_CntrlEvents (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
tyDNP3M_CntrlJob (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
tyDNP3M_InfObjGr012 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
uDNP3M_CObjData (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
6.4.5 070 Outstation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
10 OS Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
fbDNP3M_ServiceBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 181
10 PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
fbDNP3M_ServiceBase._mRUN (METH) . . . . . . . . . . . . . . . . . . . 181
fbDNP3M_ServiceBase.mRequest (METH) . . . . . . . . . . . . . . . . . 181
fbDNP3M_ServiceBase.mResetTimer (METH) . . . . . . . . . . . . . . 181

xix
fbDNP3M_ServiceBase.mResponse (METH) . . . . . . . . . . . . . . . . 181
fbDNP3M_ServiceFC01_60vX (FB) . . . . . . . . . . . . . . . . . . . . . . 182
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
fbDNP3M_ServiceFC01_60vX.mCfgRead (METH) . . . . . . . . . . . . . 182
fbDNP3M_ServiceFC01_60vX.mCfgWrite (METH) . . . . . . . . . . . . 182
fbDNP3M_ServiceFC01_60vX.mRUN (METH) . . . . . . . . . . . . . . . . 182
fbDNP3M_ServiceFC01_60vX.mRequest (METH) . . . . . . . . . . . . . 182
fbDNP3M_ServiceFC02_50v1 (FB) . . . . . . . . . . . . . . . . . . . . . . 182
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
fbDNP3M_ServiceFC02_50v1.mCfgRead (METH) . . . . . . . . . . . . . 183
fbDNP3M_ServiceFC02_50v1.mCfgWrite (METH) . . . . . . . . . . . . 183
fbDNP3M_ServiceFC02_50v1.mRUN (METH) . . . . . . . . . . . . . . . . 183
fbDNP3M_ServiceFC02_50v1.mRequest (METH) . . . . . . . . . . . . . 183
fbDNP3M_ServiceFC07_FC10 (FB) . . . . . . . . . . . . . . . . . . . . . . 183
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
fbDNP3M_ServiceFC07_FC10.mCfgRead (METH) . . . . . . . . . . . . . 184
fbDNP3M_ServiceFC07_FC10.mCfgWrite (METH) . . . . . . . . . . . . 184
fbDNP3M_ServiceFC07_FC10.mRUN (METH) . . . . . . . . . . . . . . . . 184
fbDNP3M_ServiceFC07_FC10.mRequest (METH) . . . . . . . . . . . . . 184
fbDNP3M_ServiceFC13_FC14 (FB) . . . . . . . . . . . . . . . . . . . . . . 184
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
fbDNP3M_ServiceFC13_FC14.mCfgRead (METH) . . . . . . . . . . . . . 184
fbDNP3M_ServiceFC13_FC14.mCfgWrite (METH) . . . . . . . . . . . . 185
fbDNP3M_ServiceFC13_FC14.mRUN (METH) . . . . . . . . . . . . . . . . 185
fbDNP3M_ServiceFC13_FC14.mRequest (METH) . . . . . . . . . . . . . 185
fbDNP3M_ServiceFC20_FC21 (FB) . . . . . . . . . . . . . . . . . . . . . . 185
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
fbDNP3M_ServiceFC20_FC21.mCfgRead (METH) . . . . . . . . . . . . . 185
fbDNP3M_ServiceFC20_FC21.mCfgWrite (METH) . . . . . . . . . . . . 185
fbDNP3M_ServiceFC20_FC21.mRUN (METH) . . . . . . . . . . . . . . . . 186
fbDNP3M_ServiceFC20_FC21.mRequest (METH) . . . . . . . . . . . . . 186
fbDNP3M_ServiceSchedule (FB) . . . . . . . . . . . . . . . . . . . . . . . 186
fbDNP3M_ServiceSchedule.mInit (METH) . . . . . . . . . . . . . . . . 186
fbDNP3M_ServiceSchedule.mMark (METH) . . . . . . . . . . . . . . . . 186
fbDNP3M_Outstation (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
fbDNP3M_Outstation.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 187
fbDNP3M_Outstation.mCfgWrite (METH) . . . . . . . . . . . . . . . . . 187
01 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
RX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
fbDNP3M_Outstation._NotSupportedQua (ACT) . . . . . . . . . . . . 187
fbDNP3M_Outstation._NotSupportedVar (ACT) . . . . . . . . . . . . 187
fbDNP3M_Outstation._mAdrCnt (METH) . . . . . . . . . . . . . . . . . . 187
fbDNP3M_Outstation._mRspAsduInterpreter (METH) . . . . . . . . 187
fbDNP3M_Outstation._mRxGr001 (METH) . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRxGr003 (METH) . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRxGr010 (METH) . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRxGr020 (METH) . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRxGr030 (METH) . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRxGr040 (METH) . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRx_CL (METH) . . . . . . . . . . . . . . . . . . 188
fbDNP3M_Outstation._mRx_DA (METH) . . . . . . . . . . . . . . . . . . 189
fbDNP3M_Outstation._mRx_II (METH) . . . . . . . . . . . . . . . . . . 189
fbDNP3M_Outstation._mRx_TD (METH) . . . . . . . . . . . . . . . . . . 189
fbDNP3M_Outstation.mExit (METH) . . . . . . . . . . . . . . . . . . . . 189
fbDNP3M_Outstation.mInit (METH) . . . . . . . . . . . . . . . . . . . . 189
fbDNP3M_Outstation.mResetNeedTime (METH) . . . . . . . . . . . . . 189
6.4.6 090 VISU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

xx
prgDNP3M_Visu (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
prgDNP3M_Visu.ACT_01 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.ACT_03 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.ACT_10 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.ACT_20 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.ACT_30 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.ACT_40 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.mACT_OS (METH) . . . . . . . . . . . . . . . . . . . . . . 190
prgDNP3M_Visu.mCntlStateString (METH) . . . . . . . . . . . . . . . 190
tyDNP3M_Visu_IndexSel (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 190
6.4.7 fbDNP3M_Master (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
fbDNP3M_Master.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . 190
fbDNP3M_Master.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . 191
fbDNP3M_Master.mGetConnector (METH) . . . . . . . . . . . . . . . . . 191
fbDNP3M_Master.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
6.4.8 prgDNP3M_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
prgDNP3M_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . 191
prgDNP3M_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . 191
prgDNP3M_Main.mEventPrio (METH) . . . . . . . . . . . . . . . . . . . . . . . . 191
prgDNP3M_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
prgDNP3M_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
prgDNP3M_Main.mInitFinish (METH) . . . . . . . . . . . . . . . . . . . . . . . 192
prgDNP3M_Main.mPreeStart (METH) . . . . . . . . . . . . . . . . . . . . . . . . 192
6.5 080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
6.5.1 001 Outstation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
eDNP3O_ServerTyp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
tyDNP30_ParaOS (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
tyDNP30_ParaOS_App (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
tyDNP3O_ParaOS_LinkCom (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 194
tyDNP3O_ParaOS_LinkEth (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 194
tyDNP3O_ParaOS_RTU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
tyDNP3O_ParaOS_UnsRsp (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 195
uDNP3O_ParaOS_Link (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
6.5.2 tyDNP3_UserAppPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
6.6 DNP3_GC (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
6.7 DNP3_GR (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
6.8 DNP3_GV (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
6.9 prgDNP3_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
6.9.1 010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
prgDNP3_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
prgDNP3_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 203
prgDNP3_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 203
6.9.2 prgDNP3_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
6.9.3 prgDNP3_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
6.9.4 prgDNP3_Main.mPreeStart (METH) . . . . . . . . . . . . . . . . . . . . . . . . 203
6.9.5 prgDNP3_Main.mRetainInit (METH) . . . . . . . . . . . . . . . . . . . . . . . 203
6.9.6 prgDNP3_Main.mRtnObjIx (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 203
6.9.7 prgDNP3_Main.mStartReboot (METH) . . . . . . . . . . . . . . . . . . . . . . 204

7 TC_IEC60870 205
7.1 001 Common . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
7.1.1 080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
ty870_UserAppPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
7.1.2 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Retain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
ty870_RetainC_BO (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 205

xxi
ty870_RetainC_SE (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 205
ty870_RetainC_xC (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 205
u870_RetainUnion (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . 206
e870_CPTyp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
e870_ExeState (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
e870_InfObj_TK (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
ty870_BufIx (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
ty870_BufMsg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
ty870_BufProlog (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
ty870_CP16 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
ty870_CP24 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
ty870_CP32 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
ty870_CP56 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
ty870_ConnParaEth (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
ty870_GlobalParameter (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 209
ty870_IecMsg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
ty870_IecMsgC (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
ty870_IecProlog (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
ty870_InfObjMapping (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
ty870_InfObjStruct (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
ty870_OnlineConfig (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
ty870_ParaASDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
ty870_ParaLink104 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
ty870_ServerAsduInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 211
7.1.3 POU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
10 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
fb870_Clock (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
fb870_Clock._act_U64 (ACT) . . . . . . . . . . . . . . . . . . . . . . . . 211
fb870_Clock._mDst (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 211
fb870_Clock.mCP56_TO_DT (METH) . . . . . . . . . . . . . . . . . . . . . 211
fb870_Clock.mCP56_TO_ST (METH) . . . . . . . . . . . . . . . . . . . . . 212
fb870_Clock.mDT_TO_CP56 (METH) . . . . . . . . . . . . . . . . . . . . . 212
fb870_Clock.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 212
fb870_Clock.mRxMsg (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 212
30 File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
_fb870_MsgList (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
_fb870_MsgList.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . 212
_fb870_MsgList.mTxMsgGet (METH) . . . . . . . . . . . . . . . . . . . . 213
_fb870_MsgList.mTxMsgPut (METH) . . . . . . . . . . . . . . . . . . . . 213
e870_FileResult (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
fb870_FileManager (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
10 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
fb870_FileManager._mFileList (METH) . . . . . . . . . . . . . . . . . 213
fb870_FileManager.mExit (METH) . . . . . . . . . . . . . . . . . . . . . 213
fb870_FileManager.mInit (METH) . . . . . . . . . . . . . . . . . . . . . 214
fb870_FileManager.mMsgRx (METH) . . . . . . . . . . . . . . . . . . . . 214
ty870_DirInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
ty870_FileDirInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 214
ty870_FileList (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
ty870_FileReceive (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 215
ty870_FileRequest (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 217
ty870_FileSection (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 218
40 ArchivVal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
fb870S_ItArchivVal (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
fb870S_ItArchivVal.mSendVal (METH) . . . . . . . . . . . . . . . . . . 218
fb870S_MeArchivVal (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
fb870S_MeArchivVal.mINT (METH) . . . . . . . . . . . . . . . . . . . . . 218

xxii
fb870S_MeArchivVal.mREAL (METH) . . . . . . . . . . . . . . . . . . . . 219
fb870S_MeArchivVal.mSendVal (METH) . . . . . . . . . . . . . . . . . . 219
fb870_FlgNoCntrl (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
fb870_FlgNoCntrl.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 219
fb870_FlgNoCntrl.mRxI (METH) . . . . . . . . . . . . . . . . . . . . . . 219
fb870_FlgNoCntrl.mRxS (METH) . . . . . . . . . . . . . . . . . . . . . . 219
fb870_FlgNoCntrl.mRxU (METH) . . . . . . . . . . . . . . . . . . . . . . 220
fb870_FlgNoCntrl.mTxI (METH) . . . . . . . . . . . . . . . . . . . . . . 220
fb870_FlgNoCntrl.mTxU (METH) . . . . . . . . . . . . . . . . . . . . . . 220
fb870_FlgNoCntrl.xEFN_Quitt (PROP) . . . . . . . . . . . . . . . . . . 220
fb870_FlgNoCntrl.xTxEnable (PROP) . . . . . . . . . . . . . . . . . . . 220
fb870_TestFrmCntrl (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
fb870_TestFrmCntrl.mInit (METH) . . . . . . . . . . . . . . . . . . . . 220
fb870_TestFrmCntrl.xACT (PROP) . . . . . . . . . . . . . . . . . . . . . 220
fb870_TestFrmCntrl.xCON (PROP) . . . . . . . . . . . . . . . . . . . . . 220
7.1.4 f870_Version (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
7.2 010 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
7.2.1 020 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
00 Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
fb870_ServerBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
001 PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
fb870_ServerBase._mCallC (METH) . . . . . . . . . . . . . . . . . . . . 221
fb870_ServerBase._mCallM (METH) . . . . . . . . . . . . . . . . . . . . 221
fb870_ServerBase._mGeneralnParRead (METH) . . . . . . . . . . . . 221
fb870_ServerBase._mGeneralnParWrite (METH) . . . . . . . . . . . 221
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
fb870_ServerBase.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . 221
fb870_ServerBase.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . 222
fb870_ServerBase.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 222
fb870_ServerBase.mCycleImp (METH) . . . . . . . . . . . . . . . . . . 222
fb870_ServerBase.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 222
fb870_ServerBase.mIsMyAsdu (METH) . . . . . . . . . . . . . . . . . . 222
fb870_ServerBase.mLoadEvFile (METH) . . . . . . . . . . . . . . . . . 222
fb870_Server101 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
fb870_Server101._mCfg (METH) . . . . . . . . . . . . . . . . . . . . . . 223
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
fb870_Server101.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . 223
fb870_Server101.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . 223
fb870_Server101.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . 223
fb870_Server101.mCycleImp (METH) . . . . . . . . . . . . . . . . . . . 223
fb870_Server101.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 223
fb870_Server101.mLoadEvFile (METH) . . . . . . . . . . . . . . . . . . 224
fb870_Server104 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
fb870_Server104._mCfg (METH) . . . . . . . . . . . . . . . . . . . . . . 224
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
fb870_Server104.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . 224
fb870_Server104.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . 224
fb870_Server104.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . 224
fb870_Server104.mCycleImp (METH) . . . . . . . . . . . . . . . . . . . 225
fb870_Server104.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 225
fb870_Server104.mLoadEvFile (METH) . . . . . . . . . . . . . . . . . . 225
fb870_Server104.mSetTyp (METH) . . . . . . . . . . . . . . . . . . . . . 225
7.2.2 030 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
fb870S_ConnBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225

xxiii
fb870S_ConnBase.mLogg01 (METH) . . . . . . . . . . . . . . . . . . . . . 225
fb870S_ConnBase.mLogg02 (METH) . . . . . . . . . . . . . . . . . . . . . 226
fb870S_ConnBase.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 226
Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
fb870S_Conn104 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
fb870S_Conn104.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . 227
fb870S_Conn104.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . 227
fb870S_Conn104.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . 227
fb870S_Conn104.mEthAccept (METH) . . . . . . . . . . . . . . . . . . . 227
fb870S_Conn104.mEthClose (METH) . . . . . . . . . . . . . . . . . . . . 227
fb870S_Conn104.mEthServer (METH) . . . . . . . . . . . . . . . . . . . 228
fb870S_ListenEth (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
fb870S_ListenEth.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . 228
fb870S_ListenEth.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . 228
fb870S_ListenEth.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 228
fb870S_ListenEth.FB_Exit (METH) . . . . . . . . . . . . . . . . . . . . 229
fb870S_ListenEth.mClose (METH) . . . . . . . . . . . . . . . . . . . . . 229
fb870S_ListenEth.mConnAdd (METH) . . . . . . . . . . . . . . . . . . . 229
fb870S_ListenEth.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 229
Seriell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
fb870S_Conn101 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
fb870S_Conn101.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . 230
fb870S_Conn101.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . 230
fb870S_Conn101.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . 230
PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
fb870S_Conn101._S (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 230
fb870S_Conn101._U (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 230
fb870S_Conn101._COM (ACT) . . . . . . . . . . . . . . . . . . . . . . . . . 230
fb870S_Conn101.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . 230
ty870S_101LinkState (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 231
ty870S_ParaLink10x (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 231
7.2.3 040 Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
60870 EvBuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
fb870S_EventBuffer (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
01 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
fb870S_EventBuffer._refRetainEV (ACT) . . . . . . . . . . . . . . . . 232
02 RETAIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
fb870S_EventBuffer.mEventFileLoad (METH) . . . . . . . . . . . . . 232
fb870S_EventBuffer.mEventFileLoadFin (METH) . . . . . . . . . . 232
fb870S_EventBuffer.mEventFileSaveFin (METH) . . . . . . . . . . 232
90 TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
fb870S_EventBuffer.mExport (METH) . . . . . . . . . . . . . . . . . . 232
fb870S_EventBuffer.mEvBufferClear (METH) . . . . . . . . . . . . . 232
fb870S_EventBuffer.mEvPut (METH) . . . . . . . . . . . . . . . . . . . 233
fb870S_EventBuffer.mInit (METH) . . . . . . . . . . . . . . . . . . . . 233
fb870S_EventBuffer.mLinkState (METH) . . . . . . . . . . . . . . . . 233
fb870S_EventBuffer.mMsgGet (METH) . . . . . . . . . . . . . . . . . . 233
fb870S_EventBuffer.mMsgPut (METH) . . . . . . . . . . . . . . . . . . 233
fb870S_EventBuffer.mMsgPutC (METH) . . . . . . . . . . . . . . . . . . 234
fb870S_EventBuffer.mMsgPutCA (METH) . . . . . . . . . . . . . . . . . 234
fb870S_EventBuffer.mMsgQuitt (METH) . . . . . . . . . . . . . . . . . 234
fb870S_EventFile (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
fb870S_EventFile._ACT_Start (ACT) . . . . . . . . . . . . . . . . . . . 234
fb870S_EventFile.mIdel (METH) . . . . . . . . . . . . . . . . . . . . . . 234
fb870S_EventFile.mLoad (METH) . . . . . . . . . . . . . . . . . . . . . . 234

xxiv
fb870S_EventFile.mSave (METH) . . . . . . . . . . . . . . . . . . . . . . 235
fb870S_EventFile.sFile (PROP) . . . . . . . . . . . . . . . . . . . . . . 235
ty870S_Event (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
ty870S_EventCTA (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 235
ty870S_EventFileBuffer (STRUCT) . . . . . . . . . . . . . . . . . . . . 235
ty870S_EventFileInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 235
ty870S_EventFileSaveState (STRUCT) . . . . . . . . . . . . . . . . . . 236
ty870S_EventInfo (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 236
ty870S_EventRetain (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 236
ty870S_EventV2Get (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 236
u870S_EvTCA (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.byCOT (PROP) . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.byOA (PROP) . . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.bySK (PROP) . . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.mClear (METH) . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.mExit (METH) . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.mInit (METH) . . . . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.mMoveMsg (METH) . . . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.mPutInfOjCi (METH) . . . . . . . . . . . . . . . . 237
fb870S_InfObj_FLB.mPutInfOjEv (METH) . . . . . . . . . . . . . . . . 238
fb870S_InfObj_FLB.mPutInfOjSt (METH) . . . . . . . . . . . . . . . . 238
fb870_MsgFiFo (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
fb870_MsgFiFo.mClear (METH) . . . . . . . . . . . . . . . . . . . . . . . 238
fb870_MsgFiFo.mGet (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 238
fb870_MsgFiFo.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . 238
fb870_MsgFiFo.mPut (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 239
7.2.4 050 ASDU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
fb870S_Asdu (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
000 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
fb870S_Asdu._mLogg (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 239
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
fb870S_Asdu._mMsg_TO_Ms_gC (METH) . . . . . . . . . . . . . . . . . . 239
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
fb870S_Asdu.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . . . 240
fb870S_Asdu.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . . 240
fb870S_Asdu.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . . 240
010 M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
fb870S_Asdu.mM_InfObj (METH) . . . . . . . . . . . . . . . . . . . . . . 240
fb870S_Asdu.mM_InfObj_CT (METH) . . . . . . . . . . . . . . . . . . . . 240
020 I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
fb870S_Asdu.mI_InfObj (METH) . . . . . . . . . . . . . . . . . . . . . . 241
040 SYS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
fb870S_Asdu._mCI (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 241
fb870S_Asdu._mCI_GetInfObj (METH) . . . . . . . . . . . . . . . . . . 241
fb870S_Asdu._mIC_GetInfObj (METH) . . . . . . . . . . . . . . . . . . 241
fb870S_Asdu._mIC_MarkInfObj (METH) . . . . . . . . . . . . . . . . . . 241
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
fb870S_Asdu.mApp_InfObjDel (METH) . . . . . . . . . . . . . . . . . . 242
30 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
fb870S_Asdu.mC_CpValid (METH) . . . . . . . . . . . . . . . . . . . . . . 242
fb870S_Asdu.mC_InfObj (METH) . . . . . . . . . . . . . . . . . . . . . . 242
fb870S_Asdu.mCallC (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 242
fb870S_Asdu.mCallM (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 242
fb870S_Asdu.mCycleEnd (METH) . . . . . . . . . . . . . . . . . . . . . . 243
fb870S_Asdu.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 243
fb870S_Asdu.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 243
fb870S_Asdu.mMsgGet (METH) . . . . . . . . . . . . . . . . . . . . . . . . 243

xxv
fb870S_Asdu.mMsgPut (METH) . . . . . . . . . . . . . . . . . . . . . . . . 243
7.2.5 060 InfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
00 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
ty870S_BCR (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
01 Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
fb870S_InfObjBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
fb870S_InfObjBase.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . . 244
fb870S_InfObjBase.mCfgEvTimeRead (METH) . . . . . . . . . . . . . . 244
fb870S_InfObjBase.mCfgEvTimeWrite (METH) . . . . . . . . . . . . . 244
fb870S_InfObjBase.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 244
fb870S_InfObjBase.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 244
fb870S_InfObjBase.mEvTimeRead (METH) . . . . . . . . . . . . . . . . 244
02 PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
fb870S_InfObjBase.mAppTrgCOT_ (METH) . . . . . . . . . . . . . . . . 245
fb870S_InfObjBase.mLogger (METH) . . . . . . . . . . . . . . . . . . . 245
fb870S_InfObjBase.mMsg_to_CMsg (METH) . . . . . . . . . . . . . . . 245
fb870S_InfObjBase.mCfgRetain (METH) . . . . . . . . . . . . . . . . . 245
fb870S_InfObjBase.mCycleImp (METH) . . . . . . . . . . . . . . . . . . 245
fb870S_InfObjBase.mRxMsg (METH) . . . . . . . . . . . . . . . . . . . . 245
10 M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M01SP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 246
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M01SP.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M01SP.mCfgRead (METH) . . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M01SP.mCfgWrite (METH) . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M01SP.mCycleImp (METH) . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M01SP.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 246
fb870S_InfObj_M03DP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 247
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
fb870S_InfObj_M03DP.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 247
fb870S_InfObj_M03DP.mCfgRead (METH) . . . . . . . . . . . . . . . . . 247
fb870S_InfObj_M03DP.mCfgWrite (METH) . . . . . . . . . . . . . . . . 247
fb870S_InfObj_M03DP.mCycleImp (METH) . . . . . . . . . . . . . . . . 247
fb870S_InfObj_M03DP.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 247
fb870S_InfObj_M05ST (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 248
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
fb870S_InfObj_M05ST.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 248
fb870S_InfObj_M05ST.mCfgRead (METH) . . . . . . . . . . . . . . . . . 248
fb870S_InfObj_M05ST.mCfgWrite (METH) . . . . . . . . . . . . . . . . 248
fb870S_InfObj_M05ST.mCycleImp (METH) . . . . . . . . . . . . . . . . 248
fb870S_InfObj_M05ST.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 248
fb870S_InfObj_M07BO (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 249
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
fb870S_InfObj_M07BO.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 249
fb870S_InfObj_M07BO.mCfgRead (METH) . . . . . . . . . . . . . . . . . 249
fb870S_InfObj_M07BO.mCfgWrite (METH) . . . . . . . . . . . . . . . . 249
fb870S_InfObj_M07BO.mCycleImp (METH) . . . . . . . . . . . . . . . . 249
fb870S_InfObj_M07BO.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 249
fb870S_InfObj_M09ME (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 250
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
fb870S_InfObj_M09ME._mHyst (METH) . . . . . . . . . . . . . . . . . . 250
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
fb870S_InfObj_M09ME.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 250
fb870S_InfObj_M09ME.mCfgRead (METH) . . . . . . . . . . . . . . . . . 250
fb870S_InfObj_M09ME.mCfgWrite (METH) . . . . . . . . . . . . . . . . 250
fb870S_InfObj_M09ME.mCycleImp (METH) . . . . . . . . . . . . . . . . 250
fb870S_InfObj_M09ME.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 251

xxvi
fb870S_InfObj_M17EP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 251
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
fb870S_InfObj_M17EP.mCfgRead (METH) . . . . . . . . . . . . . . . . . 251
fb870S_InfObj_M17EP.mCfgWrite (METH) . . . . . . . . . . . . . . . . 251
fb870S_InfObj_M17EP.mCycleImp (METH) . . . . . . . . . . . . . . . . 251
20 I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
fb870S_InfObj_M15IT (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 251
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
fb870S_InfObj_M15IT.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 252
fb870S_InfObj_M15IT.mCfgRead (METH) . . . . . . . . . . . . . . . . . 252
fb870S_InfObj_M15IT.mCfgWrite (METH) . . . . . . . . . . . . . . . . 252
fb870S_InfObj_M15IT.mCI (METH) . . . . . . . . . . . . . . . . . . . . . 252
fb870S_InfObj_M15IT.mCycleImp (METH) . . . . . . . . . . . . . . . . 252
30 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C45SC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 253
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C45SC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C45SC.mCfgRead (METH) . . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C45SC.mCfgWrite (METH) . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C45SC.mCycleImp (METH) . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C45SC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 253
fb870S_InfObj_C46DC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 254
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
fb870S_InfObj_C46DC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 254
fb870S_InfObj_C46DC.mCfgRead (METH) . . . . . . . . . . . . . . . . . 254
fb870S_InfObj_C46DC.mCfgWrite (METH) . . . . . . . . . . . . . . . . 254
fb870S_InfObj_C46DC.mCycleImp (METH) . . . . . . . . . . . . . . . . 254
fb870S_InfObj_C46DC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 255
fb870S_InfObj_C47RC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 255
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
fb870S_InfObj_C47RC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 255
fb870S_InfObj_C47RC.mCfgRead (METH) . . . . . . . . . . . . . . . . . 255
fb870S_InfObj_C47RC.mCfgWrite (METH) . . . . . . . . . . . . . . . . 255
fb870S_InfObj_C47RC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 255
fb870S_InfObj_C48SE (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 256
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
fb870S_InfObj_C48SE.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 256
fb870S_InfObj_C48SE.mCfgRead (METH) . . . . . . . . . . . . . . . . . 256
fb870S_InfObj_C48SE.mCfgWrite (METH) . . . . . . . . . . . . . . . . 256
fb870S_InfObj_C48SE.mCycleImp (METH) . . . . . . . . . . . . . . . . 256
fb870S_InfObj_C48SE.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 256
fb870S_InfObj_C51BO (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 257
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
fb870S_InfObj_C51BO.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 257
fb870S_InfObj_C51BO.mCfgRead (METH) . . . . . . . . . . . . . . . . . 257
fb870S_InfObj_C51BO.mCfgWrite (METH) . . . . . . . . . . . . . . . . 257
fb870S_InfObj_C51BO.mCycleImp (METH) . . . . . . . . . . . . . . . . 257
fb870S_InfObj_C51BO.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 257
fb870S_SysInfObj (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
fb870S_SysInfObj.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 258
fb870S_SysInfObj.mMsgGet (METH) . . . . . . . . . . . . . . . . . . . . 258
fb870S_SysInfObj.mMsgPut (METH) . . . . . . . . . . . . . . . . . . . . 258
7.2.6 080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
AppInfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
ty870S_InfObjPD_C45SC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 258
ty870S_InfObjPD_C46DC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259
ty870S_InfObjPD_C47RC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259
ty870S_InfObjPD_C48NA (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259

xxvii
ty870S_InfObjPD_C49NB (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259
ty870S_InfObjPD_C50NC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259
ty870S_InfObjPD_C51BO (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259
ty870S_InfObjPD_M01SP (STRUCT) . . . . . . . . . . . . . . . . . . . . . 259
ty870S_InfObjPD_M03DP (STRUCT) . . . . . . . . . . . . . . . . . . . . . 260
ty870S_InfObjPD_M05ST (STRUCT) . . . . . . . . . . . . . . . . . . . . . 260
ty870S_InfObjPD_M07BO (STRUCT) . . . . . . . . . . . . . . . . . . . . . 260
ty870S_InfObjPD_M09ME (STRUCT) . . . . . . . . . . . . . . . . . . . . . 260
ty870S_InfObjPD_M11ME (STRUCT) . . . . . . . . . . . . . . . . . . . . . 260
ty870S_InfObjPD_M13ME (STRUCT) . . . . . . . . . . . . . . . . . . . . . 261
ty870S_InfObjPD_M15IT (STRUCT) . . . . . . . . . . . . . . . . . . . . . 261
ty870S_InfObjPD_MExt (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 261
u870S_InfObjPD (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
e870S_RtuTyp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
fb870S_AppCfg (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
fb870S_AppCfg.mApp_InfObjAdd_C45SC (METH) . . . . . . . . . . . . 262
fb870S_AppCfg.mApp_InfObjAdd_C46DC (METH) . . . . . . . . . . . . 262
fb870S_AppCfg.mApp_InfObjAdd_C47RC (METH) . . . . . . . . . . . . 263
fb870S_AppCfg.mApp_InfObjAdd_C48NA (METH) . . . . . . . . . . . . 263
fb870S_AppCfg.mApp_InfObjAdd_C49NB (METH) . . . . . . . . . . . . 263
fb870S_AppCfg.mApp_InfObjAdd_C50NC (METH) . . . . . . . . . . . . 263
fb870S_AppCfg.mApp_InfObjAdd_C51BO (METH) . . . . . . . . . . . . 263
fb870S_AppCfg.mApp_InfObjAdd_M01SP (METH) . . . . . . . . . . . . 264
fb870S_AppCfg.mApp_InfObjAdd_M03DP (METH) . . . . . . . . . . . . 264
fb870S_AppCfg.mApp_InfObjAdd_M05ST (METH) . . . . . . . . . . . . 264
fb870S_AppCfg.mApp_InfObjAdd_M07BO (METH) . . . . . . . . . . . . 264
fb870S_AppCfg.mApp_InfObjAdd_M09NA (METH) . . . . . . . . . . . . 265
fb870S_AppCfg.mApp_InfObjAdd_M11NB (METH) . . . . . . . . . . . . 265
fb870S_AppCfg.mApp_InfObjAdd_M13NC (METH) . . . . . . . . . . . . 265
fb870S_AppCfg.mApp_InfObjAdd_M15IT (METH) . . . . . . . . . . . . 265
fb870S_AppCfg.mApp_InfObjDel (METH) . . . . . . . . . . . . . . . . . 266
ty870S_InfObjAppCfg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
ty870S_ParaSvr (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
ty870S_ParaSvr_ASDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
ty870S_ParaSvr_RTU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
ty870S_ParaSvr_RTU101 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 268
ty870S_ParaSvr_RTU104 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 268
u870S_ParaSvr_Link (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
7.2.7 090 VISU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
prg870S_Visu (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
ty870S_Visu_IndexSel (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 269
ty870S_Visu_ObjHnd (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
u870S_Visu_FbPointer (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
7.2.8 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
ty870C_103InfObjPar (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
ty870S_Conn104 (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
ty870S_InfObjCr (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
ty870S_InfObjEv (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
ty870S_InfObjPar (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
ty870S_SysInfObj (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
7.2.9 e870S_Logg (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
7.2.10 prg870S_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
prg870S_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . . 271
prg870S_Main.mCfgRead_101 (METH) . . . . . . . . . . . . . . . . . . . 271
prg870S_Main.mCfgRead_104 (METH) . . . . . . . . . . . . . . . . . . . 272
prg870S_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . . 272
prg870S_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272

xxviii
prg870S_Main.mGet_ServerAsdu (METH) . . . . . . . . . . . . . . . . . . . . . 272
prg870S_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
prg870S_Main.mPreeStart (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 272
7.3 020 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
7.3.1 001 Common . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
fb870C_SQLiteCollector (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
fb870C_SQLiteCollector.mAdd (METH) . . . . . . . . . . . . . . . . . . 273
fb870C_SQLiteCollector.mGetDS (METH) . . . . . . . . . . . . . . . . 273
fb870C_SQLiteCollector.mInit (METH) . . . . . . . . . . . . . . . . . 273
fb870C_SQLiteCollector.mSetASDU (METH) . . . . . . . . . . . . . . 273
fb870C_SQLiteExport (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
fb870C_SQLiteExport.mInit (METH) . . . . . . . . . . . . . . . . . . . 274
fb870C_SQLiteExport.mOpen (METH) . . . . . . . . . . . . . . . . . . . 274
fb870C_SQLiteExport.mSQLExecute (METH) . . . . . . . . . . . . . . 274
fb870C_SQLiteExport.mStart (METH) . . . . . . . . . . . . . . . . . . 274
ty870C_PreeStartState (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 274
ty870C_SQLiteDat_aSet (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 275
ty870C_SQLiteDataSetList (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 275
7.3.2 IEC60870-5-101/104 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
010 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
001 Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
fb870C_Client_Base (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
fb870C_Client_Base.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 275
fb870C_Client_Base.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 276
fb870C_Client_Base.mExit (METH) . . . . . . . . . . . . . . . . . . . . 276
fb870C_Client_Base.mGetPara (METH) . . . . . . . . . . . . . . . . . . 276
fb870C_Client_Base.mInit (METH) . . . . . . . . . . . . . . . . . . . . 276
fb870C_Client_Base.mPreeStart (METH) . . . . . . . . . . . . . . . . 276
fb870C_Client_Base.prpDataBaseName (PROP) . . . . . . . . . . . . 276
fb870C_Client_Base.prpTypIndex (PROP) . . . . . . . . . . . . . . . . 276
fb870C_Client_RtuBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 276
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
fb870C_Client_RtuBase._mAddByte (METH) . . . . . . . . . . . . . . 277
fb870C_Client_RtuBase._mCycleImp (METH) . . . . . . . . . . . . . . 277
fb870C_Client_RtuBase._mHandelMsg (METH) . . . . . . . . . . . . . 277
fb870C_Client_RtuBase._mInfObjC (METH) . . . . . . . . . . . . . . 277
fb870C_Client_RtuBase._mLogg (METH) . . . . . . . . . . . . . . . . . 277
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
fb870C_Client_RtuBase.mCfgApp (METH) . . . . . . . . . . . . . . . . 277
fb870C_Client_RtuBase.mCfgRead (METH) . . . . . . . . . . . . . . . 278
fb870C_Client_RtuBase.mCreateJob (METH) . . . . . . . . . . . . . . 278
fb870C_Client_RtuBase.mDisconnected (METH) . . . . . . . . . . . 278
fb870C_Client_RtuBase.mExit (METH) . . . . . . . . . . . . . . . . . . 278
010 ASDU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
fb870C_Client_Asdu (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
fb870C_Client_Asdu.mCfgApp (METH) . . . . . . . . . . . . . . . . . . 278
fb870C_Client_Asdu.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 278
fb870C_Client_Asdu.mDisconnected (METH) . . . . . . . . . . . . . . 279
fb870C_Client_Asdu.mExit (METH) . . . . . . . . . . . . . . . . . . . . 279
fb870C_Client_Asdu.mHandelMsg (METH) . . . . . . . . . . . . . . . . 279
fb870C_Client_Asdu.mInfObjC (METH) . . . . . . . . . . . . . . . . . . 279
fb870C_Client_Asdu.mVerifyExe (METH) . . . . . . . . . . . . . . . . 279
fb870C_Client_Asdu.tSelTime (PROP) . . . . . . . . . . . . . . . . . . 279
101 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
101 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
fb870C_Client101 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279

xxix
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
fb870C_Client101._mCfgApp (METH) . . . . . . . . . . . . . . . . . . . 280
fb870C_Client101.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . 280
PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
fb870C_Client101.mMsgRpt (METH) . . . . . . . . . . . . . . . . . . . . 280
fb870C_Client101.mMsgSnd (METH) . . . . . . . . . . . . . . . . . . . . 280
fb870C_Client101.mGetPara (METH) . . . . . . . . . . . . . . . . . . . 280
fb870C_Client101.prpTypIndex (PROP) . . . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 281
001 PRIVATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU._S (ACT) . . . . . . . . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU._U (ACT) . . . . . . . . . . . . . . . . . . . . . . 281
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU.mCfgApp (METH) . . . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU.mCfgRead (METH) . . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU.mCycleImp (METH) . . . . . . . . . . . . . . . 281
fb870C_Client101_RTU.mRecive (METH) . . . . . . . . . . . . . . . . . 282
104 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
fb870C_Client104 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
fb870C_Client104._mCfgApp (METH) . . . . . . . . . . . . . . . . . . . 282
fb870C_Client104.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . 282
fb870C_Client104.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 282
fb870C_Client104.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 283
fb870C_Client104.prpTypIndex (PROP) . . . . . . . . . . . . . . . . . 283
fb870C_Client104_RTU (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 283
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
fb870C_Client104_RTU.mCfgApp (METH) . . . . . . . . . . . . . . . . . 283
fb870C_Client104_RTU.mCfgRead (METH) . . . . . . . . . . . . . . . . 283
fb870C_Client104_RTU.mCycleImp (METH) . . . . . . . . . . . . . . . 283
fb870C_Client104_RTU.mSendS (METH) . . . . . . . . . . . . . . . . . . 283
fb870C_Client104_RTU.mSendU (METH) . . . . . . . . . . . . . . . . . . 284
fb870C_FlgNoCntrl (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
fb870C_FlgNoCntrl.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . 284
fb870C_FlgNoCntrl.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 284
fb870C_FlgNoCntrl.mClose (METH) . . . . . . . . . . . . . . . . . . . . 284
fb870C_FlgNoCntrl.mInit (METH) . . . . . . . . . . . . . . . . . . . . . 284
fb870C_FlgNoCntrl.mRxI (METH) . . . . . . . . . . . . . . . . . . . . . . 285
fb870C_FlgNoCntrl.mRxS (METH) . . . . . . . . . . . . . . . . . . . . . . 285
fb870C_FlgNoCntrl.mRxU (METH) . . . . . . . . . . . . . . . . . . . . . . 285
fb870C_FlgNoCntrl.mTxI (METH) . . . . . . . . . . . . . . . . . . . . . . 285
fb870C_FlgNoCntrl.mTxS (METH) . . . . . . . . . . . . . . . . . . . . . . 285
fb870C_FlgNoCntrl.mTxU (METH) . . . . . . . . . . . . . . . . . . . . . . 285
fb870C_FlgNoCntrl.xTxEnable (PROP) . . . . . . . . . . . . . . . . . . 285
050 InfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
01 Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBase (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
001 PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBase.mLogger (METH) . . . . . . . . . . . . . . . . . . . 286
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBase.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBase.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBase.byInfObjAdrLen (PROP) . . . . . . . . . . . . . . 286
fb870C_InfObjBase.mExit (METH) . . . . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBase.mRxMsg (METH) . . . . . . . . . . . . . . . . . . . . 286
fb870C_InfObjBaseC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
001 PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

xxx
fb870C_InfObjBaseC._mAddCP56 (METH) . . . . . . . . . . . . . . . . . 287
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
fb870C_InfObjBaseC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 287
fb870C_InfObjBaseC.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 287
fb870C_InfObjBaseC.byExeState (PROP) . . . . . . . . . . . . . . . . 287
fb870C_InfObjBaseC.mCycleImp (METH) . . . . . . . . . . . . . . . . . 287
fb870C_InfObjBaseC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . . 287
fb870C_InfObjBaseC.mTxMsg (METH) . . . . . . . . . . . . . . . . . . . 288
fb870C_InfObjBaseC.tTimeOut (PROP) . . . . . . . . . . . . . . . . . . 288
fb870C_InfObjBaseM (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
fb870C_InfObjBaseM.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 288
fb870C_InfObjBaseM.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 288
fb870C_InfObjBaseM.mCycleImp (METH) . . . . . . . . . . . . . . . . . 288
fb870C_InfObjBaseM.mDisconnected (METH) . . . . . . . . . . . . . . 288
fb870C_InfObjBaseM.mRxMsg (METH) . . . . . . . . . . . . . . . . . . . 289
10 M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
fb870C_InfObj_M01SP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 289
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
fb870C_InfObj_M01SP.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 289
fb870C_InfObj_M01SP.mCfgRead (METH) . . . . . . . . . . . . . . . . . 289
fb870C_InfObj_M01SP.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 289
fb870C_InfObj_M03DP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 289
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M03DP.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M03DP.mCfgRead (METH) . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M03DP.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M05ST (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 290
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M05ST.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M05ST.mCfgRead (METH) . . . . . . . . . . . . . . . . . 290
fb870C_InfObj_M05ST.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 291
fb870C_InfObj_M07BO (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 291
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
fb870C_InfObj_M07BO.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 291
fb870C_InfObj_M07BO.mCfgRead (METH) . . . . . . . . . . . . . . . . . 291
fb870C_InfObj_M07BO.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 291
fb870C_InfObj_M09ME (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 291
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M09ME.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M09ME.mCfgRead (METH) . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M09ME.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M15IT (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 292
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M15IT.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M15IT.mCfgRead (METH) . . . . . . . . . . . . . . . . . 292
fb870C_InfObj_M15IT.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 293
fb870C_InfObj_M17EP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 293
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
fb870C_InfObj_M17EP.mCfgRead (METH) . . . . . . . . . . . . . . . . . 293
fb870C_InfObj_M17EP.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 293
30 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
fb870C_InfObj_C45SC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 293
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
fb870C_InfObj_C45SC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 294
fb870C_InfObj_C45SC.mCfgRead (METH) . . . . . . . . . . . . . . . . . 294
fb870C_InfObj_C45SC.mRmApp (METH) . . . . . . . . . . . . . . . . . . 294
fb870C_InfObj_C45SC.mCycleImp (METH) . . . . . . . . . . . . . . . . 294

xxxi
fb870C_InfObj_C45SC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 294
fb870C_InfObj_C46DC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 294
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C46DC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C46DC.mCfgRead (METH) . . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C46DC.mCycleImp (METH) . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C46DC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C47RC (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 295
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C47RC.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 295
fb870C_InfObj_C47RC.mCfgRead (METH) . . . . . . . . . . . . . . . . . 296
fb870C_InfObj_C47RC.mCycleImp (METH) . . . . . . . . . . . . . . . . 296
fb870C_InfObj_C47RC.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 296
fb870C_InfObj_C48SE (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 296
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
fb870C_InfObj_C48SE.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 296
fb870C_InfObj_C48SE.mCfgRead (METH) . . . . . . . . . . . . . . . . . 296
fb870C_InfObj_C48SE.mCycleImp (METH) . . . . . . . . . . . . . . . . 297
fb870C_InfObj_C48SE.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 297
fb870C_InfObj_C51BO (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 297
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
fb870C_InfObj_C51BO.mCfgAPP (METH) . . . . . . . . . . . . . . . . . . 297
fb870C_InfObj_C51BO.mCfgRead (METH) . . . . . . . . . . . . . . . . . 297
fb870C_InfObj_C51BO.mCycleImp (METH) . . . . . . . . . . . . . . . . 297
fb870C_InfObj_C51BO.mRxMsg (METH) . . . . . . . . . . . . . . . . . . 298
ty870C_InfObjC_Data (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 298
080 Online Config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
101 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
ty870C_Para101Clt (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 298
ty870C_Para101Specific (STRUCT) . . . . . . . . . . . . . . . . . . . . 298
104 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
ty870C_Para104Clt (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 299
ty870C_Para104Specific (STRUCT) . . . . . . . . . . . . . . . . . . . . 299
AppInfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
ty870C_InfObjPD_C45SC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 299
ty870C_InfObjPD_C46DC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 299
ty870C_InfObjPD_C47RC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 300
ty870C_InfObjPD_C48NA (STRUCT) . . . . . . . . . . . . . . . . . . . . . 300
ty870C_InfObjPD_C49NB (STRUCT) . . . . . . . . . . . . . . . . . . . . . 300
ty870C_InfObjPD_C50NC (STRUCT) . . . . . . . . . . . . . . . . . . . . . 300
ty870C_InfObjPD_C51BO (STRUCT) . . . . . . . . . . . . . . . . . . . . . 300
ty870C_InfObjPD_M01SP (STRUCT) . . . . . . . . . . . . . . . . . . . . . 301
ty870C_InfObjPD_M03DP (STRUCT) . . . . . . . . . . . . . . . . . . . . . 301
ty870C_InfObjPD_M05ST (STRUCT) . . . . . . . . . . . . . . . . . . . . . 301
ty870C_InfObjPD_M07BO (STRUCT) . . . . . . . . . . . . . . . . . . . . . 301
ty870C_InfObjPD_M09ME (STRUCT) . . . . . . . . . . . . . . . . . . . . . 302
ty870C_InfObjPD_M11ME (STRUCT) . . . . . . . . . . . . . . . . . . . . . 302
ty870C_InfObjPD_M13ME (STRUCT) . . . . . . . . . . . . . . . . . . . . . 302
ty870C_InfObjPD_M15IT (STRUCT) . . . . . . . . . . . . . . . . . . . . . 302
u870C_InfObjPD (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
e870C_RtuTyp (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
fb870C_AppCfg (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
fb870C_AppCfg.mApp_InfObjAdd_C45SC (METH) . . . . . . . . . . . . 303
fb870C_AppCfg.mApp_InfObjAdd_C46DC (METH) . . . . . . . . . . . . 303
fb870C_AppCfg.mApp_InfObjAdd_C47RC (METH) . . . . . . . . . . . . 304
fb870C_AppCfg.mApp_InfObjAdd_C48NA (METH) . . . . . . . . . . . . 304
fb870C_AppCfg.mApp_InfObjAdd_C49NB (METH) . . . . . . . . . . . . 304
fb870C_AppCfg.mApp_InfObjAdd_C50NC (METH) . . . . . . . . . . . . 304

xxxii
fb870C_AppCfg.mApp_InfObjAdd_C51BO (METH) . . . . . . . . . . . . 304
fb870C_AppCfg.mApp_InfObjAdd_M01SP (METH) . . . . . . . . . . . . 304
fb870C_AppCfg.mApp_InfObjAdd_M03DP (METH) . . . . . . . . . . . . 305
fb870C_AppCfg.mApp_InfObjAdd_M05ST (METH) . . . . . . . . . . . . 305
fb870C_AppCfg.mApp_InfObjAdd_M07BO (METH) . . . . . . . . . . . . 305
fb870C_AppCfg.mApp_InfObjAdd_M09NA (METH) . . . . . . . . . . . . 305
fb870C_AppCfg.mApp_InfObjAdd_M11NB (METH) . . . . . . . . . . . . 305
fb870C_AppCfg.mApp_InfObjAdd_M13NC (METH) . . . . . . . . . . . . 306
fb870C_AppCfg.mApp_InfObjAdd_M15IT (METH) . . . . . . . . . . . . 306
ty870C_InfObjAppCfg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . 306
ty870C_ParaASDU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 306
ty870C_ParaClt (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
ty870C_ParaRTU (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
u870C_ParaClt_Link (UNION) . . . . . . . . . . . . . . . . . . . . . . . . 308
ty870C_10xJob (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
ty870C_InfObjPar (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
ty870C_MsgPrototy (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
ty870C_ParaLink10x (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
ty870C_SQLitePrio (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
7.3.3 IEC60870-5-103 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
010 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
fb870C_Client103 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
fb870C_Client103.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . 309
fb870C_Client103.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 310
PROTECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
fb870C_Client103.mSendMsg (METH) . . . . . . . . . . . . . . . . . . . 310
fb870C_Client103.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . 310
fb870C_Client103.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 310
fb870C_Client103_RTU (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 310
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
fb870C_Client103_RTU.mCfgRead (METH) . . . . . . . . . . . . . . . . 310
fb870C_Client103_RTU.mCfgWrite (METH) . . . . . . . . . . . . . . . 311
fb870C_Client103_RTU._mLogg (METH) . . . . . . . . . . . . . . . . . . 311
fb870C_Client103_RTU.mJOB_IC (METH) . . . . . . . . . . . . . . . . . 311
fb870C_Client103_RTU.mJOB_InfObj (METH) . . . . . . . . . . . . . . 311
fb870C_Client103_RTU.mRecive (METH) . . . . . . . . . . . . . . . . . 311
050 InfObj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
01 Base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
fb870_Client103_InfObjBase (FB) . . . . . . . . . . . . . . . . . . . . . 311
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
fb870_Client103_InfObjBase.mCfgConnect (METH) . . . . . . . . . 312
fb870_Client103_InfObjBase.mCfgRead (METH) . . . . . . . . . . . 312
fb870_Client103_InfObjBase.mCfgWrite (METH) . . . . . . . . . . 312
fb870_Client103_InfObjBase.mC_GenMsg (METH) . . . . . . . . . . 312
fb870_Client103_InfObjBase.mCycleImp (METH) . . . . . . . . . . 312
fb870_Client103_InfObjBase.mRxMsg (METH) . . . . . . . . . . . . . 312
10 M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
fb870_Client103_InfObjM_DPI (FB) . . . . . . . . . . . . . . . . . . . . 312
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
fb870_Client103_InfObjM_DPI.mCfgConnect (METH) . . . . . . . . 313
fb870_Client103_InfObjM_DPI.mCfgRead (METH) . . . . . . . . . . 313
fb870_Client103_InfObjM_DPI.mCfgWrite (METH) . . . . . . . . . . 313
fb870_Client103_InfObjM_DPI.mRxMsg (METH) . . . . . . . . . . . . 313
fb870_Client103_InfObjM_MWN (FB) . . . . . . . . . . . . . . . . . . . . 313
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
fb870_Client103_InfObjM_MWN.mCfgRead (METH) . . . . . . . . . . 313
fb870_Client103_InfObjM_MWN.mCfgWrite (METH) . . . . . . . . . . 314

xxxiii
fb870_Client103_InfObjM_MWN.mRxMsg (METH) . . . . . . . . . . . . 314
fb870_Client103_InfObjM_MWT (FB) . . . . . . . . . . . . . . . . . . . . 314
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
fb870_Client103_InfObjM_MWT.mCfgRead (METH) . . . . . . . . . . 314
fb870_Client103_InfObjM_MWT.mCfgWrite (METH) . . . . . . . . . . 314
fb870_Client103_InfObjM_MWT.mRxMsg (METH) . . . . . . . . . . . . 314
30 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
fb870_Client103_InfObjC_20DC (FB) . . . . . . . . . . . . . . . . . . . 314
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
fb870_Client103_InfObjC_20DC.mCfgConnect (METH) . . . . . . . 315
fb870_Client103_InfObjC_20DC.mCfgRead (METH) . . . . . . . . . . 315
fb870_Client103_InfObjC_20DC.mCfgWrite (METH) . . . . . . . . . 315
fb870_Client103_InfObjC_20DC.CS23 (ACT) . . . . . . . . . . . . . . 315
fb870_Client103_InfObjC_20DC.mCallBackM_DPI (METH) . . . . . 315
fb870_Client103_InfObjC_20DC.mCycleImp (METH) . . . . . . . . . 315
fb870_Client103_InfObjC_20DC.mRxMsg (METH) . . . . . . . . . . . 316
ty870_103Job (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
ty870_103Msg (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
u870_103InfObjPointer (UNION) . . . . . . . . . . . . . . . . . . . . . . . . . . 316
7.3.4 e870C_Logg (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
7.3.5 prg870C_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
prg870C_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . . 317
prg870C_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . 317
prg870C_Main.mCfgRead_101 (METH) . . . . . . . . . . . . . . . . . . . 318
prg870C_Main.mCfgRead_103 (METH) . . . . . . . . . . . . . . . . . . . 318
prg870C_Main.mCfgRead_104 (METH) . . . . . . . . . . . . . . . . . . . 318
prg870C_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
prg870C_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
prg870C_Main.mPreeStart (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 318
prg870C_Main.mRetainInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . 318
7.4 TC60870_GC (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
7.5 TC60870_GR (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
7.6 TC60870_GV (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
7.7 prg870_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
7.7.1 010 CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
prg870_Main.mCfgApp (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
prg870_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
prg870_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 323
7.7.2 prg870_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
7.7.3 prg870_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
7.7.4 prg870_Main.mPreeStart (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 324
7.7.5 prg870_Main.mRetainInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . 324
7.7.6 prg870_Main.mRtnObjIx (METH) . . . . . . . . . . . . . . . . . . . . . . . . . . 324
7.7.7 prg870_Main.mStartReboot (METH) . . . . . . . . . . . . . . . . . . . . . . . 324

8 TC_IEC61850 325
8.1 010 Common . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
8.1.1 010 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
Enum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
eIEC61850_OrCat (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
tyIEC61850_AnalogueValue (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . 325
tyIEC61850_Boolean (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
tyIEC61850_Check (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
tyIEC61850_CodedEnum (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
tyIEC61850_Currency (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
tyIEC61850_Dbpos (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_EntryTime (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 326

xxxiv
tyIEC61850_Enumerated (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_Float32 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_Float64 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_GOOSEDstAddress (STRUCT) . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT128 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT128U (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT16 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT16U (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT24 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT24U (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT32 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT32U (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT64 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT64U (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT8 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_INT8U (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_MMSString255 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_Objref (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_Octet255 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
tyIEC61850_Octet6 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_Octet64 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_Octet65 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_Octet8 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_OptFlds (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_Origin (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_Quality (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_SvOptFlds (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_Tcmd (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_TimeStamp (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_TrgOps (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_UCString255 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_VisString129 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_VisString255 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_VisString32 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_VisString64 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 327
tyIEC61850_VisString65 (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . 327
8.1.2 020 POU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
fIEC61850_CreateDatapoint (FUN) . . . . . . . . . . . . . . . . . . . . . . . . 327
fIEC61850_InitDatapoint (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . . 328
8.1.3 040 Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
ITCBase_Logging (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
ITCBase_Logging.LastError (PROP) . . . . . . . . . . . . . . . . . . . . 328
ITCBase_Logging.mAdd (METH) . . . . . . . . . . . . . . . . . . . . . . . 328
eTCBase_Logging_Dir (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
eTCBase_Logging_Event (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . 328
eTCBase_Logging_Type (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
fbTCBase_Logging (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
fbTCBase_Logging.FB_Init (METH) . . . . . . . . . . . . . . . . . . . . 331
fbTCBase_Logging.LastError (PROP) . . . . . . . . . . . . . . . . . . . 331
fbTCBase_Logging.mAdd (METH) . . . . . . . . . . . . . . . . . . . . . . 331
fbTCBase_Logging.mClear (METH) . . . . . . . . . . . . . . . . . . . . . 331
fbTCBase_Logging.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . 331
tyTCBase_Logging (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
8.2 020 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
8.2.1 020 POU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
prgIEC61850S_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
prgIEC61850S_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 332

xxxv
prgIEC61850S_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 332
prgIEC61850S_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . 332
8.3 030 Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
8.3.1 010 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
eIEC61850C_ControlAddCause (ENUM) . . . . . . . . . . . . . . . . . . . . . . 332
eIEC61850C_ControlError (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 333
eIEC61850C_ControlState (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 334
eIEC61850C_DynDSObjectState (ENUM) . . . . . . . . . . . . . . . . . . . . . 334
eIEC61850C_LoggerEV (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
eIEC61850C_RequestPara (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 335
eIEC61850C_RequestState (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 335
eIEC61850C_ServerState (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 335
eIEC61850C_ServiceState (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . 336
tyIEC61850C_ControlStatus (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 336
tyIEC61850C_GoosePara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . 337
tyIEC61850C_Initiate (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . . . 337
tyIEC61850C_ReportData (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 337
tyIEC61850C_ReportPara (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 338
tyIEC61850C_RequestJob (STRUCT) . . . . . . . . . . . . . . . . . . . . . . . . 338
tyIEC61850C_RequestStatus (STRUCT) . . . . . . . . . . . . . . . . . . . . . . 338
tyIEC61850_Enum (ALIAS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
8.3.2 020 POU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
10 ISO Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
10 DUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
ASN.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
eIEC61850C_ASN1_Class (ENUM) . . . . . . . . . . . . . . . . . . . . . . 338
eIEC61850C_ASN1_MMS_TAG (ENUM) . . . . . . . . . . . . . . . . . . . . . 339
eIEC61850C_ASN1_MMS_UNIVERSAL_TAG (ENUM) . . . . . . . . . . . . . 339
tyIEC61850C_ASN1_Object (STRUCT) . . . . . . . . . . . . . . . . . . . 340
uIEC61850C_ASN1_Data (UNION) . . . . . . . . . . . . . . . . . . . . . . . 341
ISO8073 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
tyIEC61850C_ISO8073_CR_Para (STRUCT) . . . . . . . . . . . . . . . . 341
ISO8327 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
tyIEC61850C_ISO8327_AC_Data (STRUCT) . . . . . . . . . . . . . . . . 341
tyIEC61850C_ISO8327_AC_DataAcceptItem (STRUCT) . . . . . . . . 342
tyIEC61850C_ISO8327_AC_DataIdent (STRUCT) . . . . . . . . . . . . 342
tyIEC61850C_ISO8327_Header (STRUCT) . . . . . . . . . . . . . . . . . 342
ISO8650 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
tyIEC61850C_ISO8650_Data (STRUCT) . . . . . . . . . . . . . . . . . . . 343
ISO8823 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
tyIEC61850C_ISO8823_CP_Data (STRUCT) . . . . . . . . . . . . . . . . 344
tyIEC61850C_ISO8823_ContextList (STRUCT) . . . . . . . . . . . . . 344
tyIEC61850C_ISO8823_ContextName (STRUCT) . . . . . . . . . . . . . 344
tyIEC61850C_ISO8823_DataUser (STRUCT) . . . . . . . . . . . . . . . 344
tyIEC61850C_ISO8823_NormalModePara (STRUCT) . . . . . . . . . . . 345
tyIEC61850C_ISO8823_ResultList (STRUCT) . . . . . . . . . . . . . . 345
eIEC61850C_ISO (ENUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
tyIEC61850C_ISO_Parameter (STRUCT) . . . . . . . . . . . . . . . . . . 347
fbIEC61850C_ISO8327 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
fbIEC61850C_ISO8327.mRX_DN (METH) . . . . . . . . . . . . . . . . . . 347
fbIEC61850C_ISO8327.mReceive (METH) . . . . . . . . . . . . . . . . . 347
fbIEC61850C_ISO8327.mRx_AB (METH) . . . . . . . . . . . . . . . . . . 347
fbIEC61850C_ISO8327.mRx_AC (METH) . . . . . . . . . . . . . . . . . . 347
fbIEC61850C_ISO8327.mRx_DT (METH) . . . . . . . . . . . . . . . . . . 348
Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8327.mTx_CN (METH) . . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8327.mTx_DT (METH) . . . . . . . . . . . . . . . . . . 348

xxxvi
fbIEC61850C_ISO8327.mTx_FN (METH) . . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8650 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8650.mReceive (METH) . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8650.mRx_AARE (METH) . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8650.mRx_AARQ (METH) . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8650.mRx_ABRT (METH) . . . . . . . . . . . . . . . . . 348
fbIEC61850C_ISO8650.mRx_MMS_Service (METH) . . . . . . . . . . . 349
fbIEC61850C_ISO8650.mRx_RLRE (METH) . . . . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8650.mRx_RLRQ (METH) . . . . . . . . . . . . . . . . . 349
Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8650.mTx_AARQ (METH) . . . . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8650.mTx_RLRQ (METH) . . . . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8823 (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8823.mRx_ARU_PPDU (METH) . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8823.mRx_CPA_PPDU (METH) . . . . . . . . . . . . . . 349
fbIEC61850C_ISO8823.mRx_UserData (METH) . . . . . . . . . . . . . . 350
Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
fbIEC61850C_ISO8823.mTx_CP_TYPE (METH) . . . . . . . . . . . . . . 350
fbIEC61850C_ISO8823.mTx_UserData (METH) . . . . . . . . . . . . . . 350
fbIEC61850C_TransportLayer (FB) . . . . . . . . . . . . . . . . . . . . . 350
fbIEC61850C_TransportLayer.mDisconnect (METH) . . . . . . . . . 350
fbIEC61850C_TransportLayer.mSend (METH) . . . . . . . . . . . . . . 350
prgIEC61850C_ISO8073 (PRG) . . . . . . . . . . . . . . . . . . . . . . . . 350
Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
prgIEC61850C_ISO8073.mNonCompleteMsgCheck (METH) . . . . . . 350
prgIEC61850C_ISO8073.mReceive (METH) . . . . . . . . . . . . . . . . 351
prgIEC61850C_ISO8073.mRx_DT (METH) . . . . . . . . . . . . . . . . . . 351
Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
prgIEC61850C_ISO8073.mTx_DT (METH) . . . . . . . . . . . . . . . . . . 351
prgIEC61850C_ISO8073.mTx_DT_TPDUHeader (METH) . . . . . . . . . 351
20 Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
10 Unconfirmed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
fbIEC61850C_MMS_UnconfirmedPDU (FB) . . . . . . . . . . . . . . . . . 351
fbIEC61850C_MMS_UnconfirmedPDU.mResponse (METH) . . . . . . . 351
20 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
IIEC61850C_Service (ITF) . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
IIEC61850C_Service.Status (PROP) . . . . . . . . . . . . . . . . . . . . 352
IIEC61850C_Service.mRequest (METH) . . . . . . . . . . . . . . . . . . 352
IIEC61850C_Service.mReset (METH) . . . . . . . . . . . . . . . . . . . 352
IIEC61850C_Service.mResponse (METH) . . . . . . . . . . . . . . . . . 352
IIEC61850C_Service_Response (ITF) . . . . . . . . . . . . . . . . . . . 352
IIEC61850C_Service_Response.mResponse (METH) . . . . . . . . . . 352
IIEC61850C_UnconfirmedReport (ITF) . . . . . . . . . . . . . . . . . . . 352
IIEC61850C_UnconfirmedReport.mCall (METH) . . . . . . . . . . . . 352
fbIEC61850C_MMS_COTP (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 352
fbIEC61850C_MMS_COTP.Status (PROP) . . . . . . . . . . . . . . . . . . 352
fbIEC61850C_MMS_COTP.mRequest (METH) . . . . . . . . . . . . . . . . 352
fbIEC61850C_MMS_COTP.mReset (METH) . . . . . . . . . . . . . . . . . . 352
fbIEC61850C_MMS_COTP.mResponse (METH) . . . . . . . . . . . . . . . 352
fbIEC61850C_MMS_Conclude (FB) . . . . . . . . . . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Conclude.Status (PROP) . . . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Conclude.mRequest (METH) . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Conclude.mReset (METH) . . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Conclude.mResponse (METH) . . . . . . . . . . . . 353
fbIEC61850C_MMS_Initiate (FB) . . . . . . . . . . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Initiate.Status (PROP) . . . . . . . . . . . . . . . 353

xxxvii
fbIEC61850C_MMS_Initiate.mRequest (METH) . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Initiate.mReset (METH) . . . . . . . . . . . . . . 353
fbIEC61850C_MMS_Initiate.mResponse (METH) . . . . . . . . . . . . 353
fbIEC61850C_MMS_Read (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 353
Private . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Read._mSetRejectPara (METH) . . . . . . . . . . 354
fbIEC61850C_MMS_Read.Status (PROP) . . . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Read.mRequest (METH) . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Read.mReset (METH) . . . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Read.mResponse (METH) . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Reject (FB) . . . . . . . . . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Reject.Status (PROP) . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Reject.mRequest (METH) . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Reject.mReset (METH) . . . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Reject.mResponse (METH) . . . . . . . . . . . . . . 354
fbIEC61850C_MMS_Release (FB) . . . . . . . . . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Release.Status (PROP) . . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Release.mRequest (METH) . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Release.mReset (METH) . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Release.mResponse (METH) . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Write (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 355
Private . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Write._mSetRejectPara (METH) . . . . . . . . . . 355
fbIEC61850C_MMS_Write.Status (PROP) . . . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Write.mRequest (METH) . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Write.mReset (METH) . . . . . . . . . . . . . . . . . 355
fbIEC61850C_MMS_Write.mResponse (METH) . . . . . . . . . . . . . . 355
fbIEC61850C_Service (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 356
fbIEC61850C_Service.mExecute (METH) . . . . . . . . . . . . . . . . . 356
fbIEC61850C_Service.mReset (METH) . . . . . . . . . . . . . . . . . . 356
fbIEC61850C_Service.mResponse (METH) . . . . . . . . . . . . . . . . 356
30 Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
fbIEC61850C_DataSet (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 356
fbIEC61850C_DataSetItem (FB) . . . . . . . . . . . . . . . . . . . . . . . 356
fbIEC61850C_Datapoint (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 356
fbIEC61850C_Goose (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
fbIEC61850C_Report (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
fbIEC61850C_Request (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . 357
fbIEC61850C_Request.mRead (METH) . . . . . . . . . . . . . . . . . . . 357
fbIEC61850C_Request.mWrite (METH) . . . . . . . . . . . . . . . . . . 357
fbIEC61850C_RequestItem (FB) . . . . . . . . . . . . . . . . . . . . . . . 357
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
fbIEC61850C_RequestItem.mCfgRead (METH) . . . . . . . . . . . . . . 357
fbIEC61850C_RequestItem.mCfgWrite (METH) . . . . . . . . . . . . . 357
fbIEC61850C_RequestItem.mAddDataPointItem (METH) . . . . . . 358
fbIEC61850C_RequestItem.mFromDataSetItem (METH) . . . . . . . 358
fbIEC61850C_Server (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
fbIEC61850C_Server.mInit (METH) . . . . . . . . . . . . . . . . . . . . 358
40 Helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
fIEC61850C_ASN1_GetLen (FUN) . . . . . . . . . . . . . . . . . . . . . . . 358
fIEC61850C_ASN1_GetLenPtr (FUN) . . . . . . . . . . . . . . . . . . . . 358
fIEC61850C_Bits_SwapLeft (FUN) . . . . . . . . . . . . . . . . . . . . . 358
fIEC61850C_Bits_SwapRight (FUN) . . . . . . . . . . . . . . . . . . . . 359
fIEC61850C_GetNextReportDataIx (FUN) . . . . . . . . . . . . . . . . 359
fIEC61850C_GetRequestPara (FUN) . . . . . . . . . . . . . . . . . . . . 359
fIEC61850C_MMSType_To_String (FUN) . . . . . . . . . . . . . . . . . . 359
fIEC61850C_MemCpyAndSwap (FUN) . . . . . . . . . . . . . . . . . . . . . 359
fIEC61850C_OidStringToArray (FUN) . . . . . . . . . . . . . . . . . . . 359

xxxviii
fIEC61850C_RFI_To_String (FUN) . . . . . . . . . . . . . . . . . . . . . 360
fIEC61850C_ReadWord (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 360
fIEC61850C_To_MMS_Tag (FUN) . . . . . . . . . . . . . . . . . . . . . . . 360
fbIEC61850C_InvokeID (FB) . . . . . . . . . . . . . . . . . . . . . . . . . 360
fbIEC61850C_InvokeID.mAddToMsg (METH) . . . . . . . . . . . . . . . 360
fbIEC61850C_InvokeID.mCheck (METH) . . . . . . . . . . . . . . . . . . 360
fbIEC61850C_InvokeID.mReset (METH) . . . . . . . . . . . . . . . . . . 360
fbIEC61850C_RequestJob (FB) . . . . . . . . . . . . . . . . . . . . . . . . 360
fbIEC61850C_RequestJob.mAdd (METH) . . . . . . . . . . . . . . . . . . 360
fbIEC61850C_RequestJob.mGetNext (METH) . . . . . . . . . . . . . . 361
50 Get Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
fIEC61850C_GetGoose (FUN) . . . . . . . . . . . . . . . . . . . . . . . . . 361
fIEC61850C_GetReport (FUN) . . . . . . . . . . . . . . . . . . . . . . . . 361
fIEC61850C_GetRequest (FUN) . . . . . . . . . . . . . . . . . . . . . . . 361
60 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
prgIEC61850C_Clock (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . 361
fbIEC61850C_Buffer (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Without Increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
fbIEC61850C_Buffer.mGet_ASN1_TagAndLen (METH) . . . . . . . . . 362
fbIEC61850C_Buffer.mDecode_ASN1 (METH) . . . . . . . . . . . . . . 362
fbIEC61850C_Buffer.mDecode_Byte (METH) . . . . . . . . . . . . . . 362
fbIEC61850C_Buffer.mDecode_DWord (METH) . . . . . . . . . . . . . . 362
fbIEC61850C_Buffer.mDecode_Data (METH) . . . . . . . . . . . . . . 362
fbIEC61850C_Buffer.mDecode_Float32 (METH) . . . . . . . . . . . . 363
fbIEC61850C_Buffer.mDecode_String (METH) . . . . . . . . . . . . . 363
fbIEC61850C_Buffer.mDecode_WString (METH) . . . . . . . . . . . . 363
fbIEC61850C_Buffer.mDecode_Word (METH) . . . . . . . . . . . . . . 363
Encode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
fbIEC61850C_Buffer.mEncode_Block (METH) . . . . . . . . . . . . . . 363
fbIEC61850C_Buffer.mEncode_Data (METH) . . . . . . . . . . . . . . 363
fbIEC61850C_Buffer.mEncode_Size (METH) . . . . . . . . . . . . . . 364
fbIEC61850C_Buffer.mEncode_Specific (METH) . . . . . . . . . . . 364
fbIEC61850C_Buffer.mEncode_Specific_Byte (METH) . . . . . . . 364
fbIEC61850C_Buffer.mEncode_Specific_DWord (METH) . . . . . . 364
fbIEC61850C_Buffer.mEncode_Specific_Word (METH) . . . . . . . 364
fbIEC61850C_Buffer.mEncode_Struct (METH) . . . . . . . . . . . . . 364
fbIEC61850C_Buffer.IsDataAvailable (PROP) . . . . . . . . . . . . 365
LowLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
fbIEC61850C_Buffer.mAddBlk_ToRx (METH) . . . . . . . . . . . . . . 365
fbIEC61850C_Buffer.mAddByte (METH) . . . . . . . . . . . . . . . . . . 365
fbIEC61850C_Buffer.mAddWord (METH) . . . . . . . . . . . . . . . . . . 365
fbIEC61850C_Buffer.Reset (METH) . . . . . . . . . . . . . . . . . . . . 365
fbIEC61850C_Buffer.mAddLogging (METH) . . . . . . . . . . . . . . . 365
fbIEC61850C_Buffer.mRemoveBulk (METH) . . . . . . . . . . . . . . . 365
prgIEC61850M_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
prgIEC61850M_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . 366
prgIEC61850M_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . 366
prgIEC61850M_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . 366
prgIEC61850M_Main.mLogger (METH) . . . . . . . . . . . . . . . . . . . 366
8.3.3 040 Visu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
8.3.4 IEC61850C_GC (GVL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
8.4 prgIEC61850_Main (PRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
8.4.1 00 SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
prgIEC61850_Main.mCfgRead (METH) . . . . . . . . . . . . . . . . . . . . . . . 367
prgIEC61850_Main.mCfgWrite (METH) . . . . . . . . . . . . . . . . . . . . . . 367
8.4.2 prgIEC61850_Main.mExit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 368

xxxix
8.4.3 prgIEC61850_Main.mInit (METH) . . . . . . . . . . . . . . . . . . . . . . . . . 368

9 fTCBase_Version (FUN) 369

10 grgDebugEntry (PRG) 370

11 prgWagoAppRTU_HP (PRG) 371

12 prgWagoAppRTU_LP (PRG) 372

13 Library Reference 373


13.1 CAA File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
13.1.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
13.1.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
13.2 CmpErrors Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
13.2.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
13.2.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
13.3 Standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.3.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.3.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.4 Standard64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.4.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.4.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.5 SysDir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.5.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.5.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
13.6 SysFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.6.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.6.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.7 SysMem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.7.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.7.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.8 SysProcess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.8.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.8.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.9 SysSocket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.9.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
13.9.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.10 SysTask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.10.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.10.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.11 SysTimeRtc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.11.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.11.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.12 SysTypes Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.12.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
13.12.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.13 VisuElem3DPath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.13.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.13.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.13.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.14 VisuElemCamDisplayer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.14.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.14.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.14.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.15 VisuElemMeter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.15.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
13.15.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.16 VisuElemTextEditor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378

xl
13.16.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.16.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.17 VisuElemTrace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.17.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.17.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.18 VisuElemXYChart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.18.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.18.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
13.19 VisuElems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.19.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.19.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.20 VisuElemsAlarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.20.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.20.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.21 VisuElemsDateTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.21.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.21.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
13.22 VisuElemsSpecialControls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.22.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.22.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.23 VisuElemsWinControls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.23.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.23.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.24 VisuInputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.24.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.24.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.25 VisuNativeControl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.25.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
13.25.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.26 WagoAppCom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.26.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.26.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.26.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.27 WagoAppConfigTool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.27.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.27.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.27.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
13.28 WagoAppTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.28.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.28.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.29 WagoSysKbusAsyncCom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.29.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.29.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.30 WagoSysKbusTerminalControl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.30.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.30.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.31 WagoSysModuleBase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.31.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
13.31.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
13.31.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
13.32 WagoSysModule_75x_65x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
13.32.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
13.32.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.32.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.33 WagoSysSQL_SQLite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.33.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.33.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.34 WagoSysSSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384

xli
13.34.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.34.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.35 WagoTypesBusServices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.35.1 Library Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
13.35.2 Library Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
13.35.3 Library Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385

xlii
CHAPTER 1

Description

This document is automatically generated. Because of this, the chapter 30 Visualization is not shown in this
document. If you are interested in getting to know more about visualization, we refer to the library manager of
e!Cockpit.
Subject to Changes
WAGO Kontakttechnik GmbH & Co. KG reserves the right to provide for any alterations or modifications. WAGO
Kontakttechnik GmbH & Co. KG owns all rights arising from the granting of patents or from the legal protection
of utility patents. Third-party products are always mentioned without any reference to patent rights. Thus, the
existence of such rights cannot be excluded.
Personnel Qualification
All tasks that are carried out with libraries made for the e!COCKPIT software must only be performed by qualified
electrical specialists instructed in PLC programming according to IEC 61131-3.
All tasks that have an effect on the properties or the behavior of automation hardware or software products must
only be performed by qualified employees with a thorough knowledge of handling the products concerned.
Intended Use of e!COCKPIT Libraries
Libraries created for the e!COCKPIT software are used to simplify the development of application projects in the
IEC 61131-3 programming languages.
For automation tasks, WAGO offers programmable logic controllers in a wide variety of performance classes.
In combination with a wide range of I/O modules, the controllers can process standard types of field signals.
Controllers can be implemented centrally or in decentralized configurations. The controllers offer interfaces for
the most commonly used fieldbuses for use in decentralized configurations. Fieldbus independent I/O modules
are then linked via fieldbus couplers. WAGO controllers offer a runtime environment for user programs called
e!RUNTIME. Software projects for implementation in e!RUNTIME environments can be created in e!COCKPIT.
The programming environment in e!COCKPIT is based on the established CODESYS 3 industrial standard. Users
with a previous knowledge of CODESYS 3 will thus find this environment largely familiar. The following pro-
gramming languages of the IEC 61131-3 standard are available:
• Structured Text (ST)
• Ladder Diagram (LD)
• Function Block Diagram (FBD)
• Instruction List (IL)
• Sequential Function Chart (SFC)

1
WagoAppRTU, Release 1.2.13.1

• Continuous Function Chart (CFC)


The individual programming languages can also be combined as required during the development of the software.
A portfolio of prepared libraries can be accessed for many frequently used functions in order to make software
development more efficient. This document provides an overview of the WagoAppRTU that WAGO offers for
e!COCKPIT.
Library for communication with Telecontrol protocols DNP3, IEC60870 and IEC618501
Further library information are summerized here:
Company WAGO
Title WagoAppRTU
Version 1.2.13.1
Categories WAGO BusinessView|Energy Automation; WAGO FunctionalView|Connectivity;
WAGO LayerView|App; Application
Namespace WagoAppRTU
Author WAGO/u090884
Placeholder WagoAppRTU

Based on WagoAppRTU.library, last modified 23.10.2020, 14:02:07. LibDoc 3.5.15.30

2
CHAPTER 2

Bibliotheksinformation

2.1 GetLibVersion (FUN)


Interface variables

Scope Name Type


Return GetLibVersion VERSION
This function has been automatically generated from the project information.

2.2 GetLibVersionNumber (FUN)


Interface variables

Scope Name Type


Return GetLibVersionNumber DWORD
This function has been automatically generated from the project information.

2.3 IsLibReleased (FUN)


Interface variables

Scope Name Type


Return IsLibReleased BOOL
This function has been automatically generated from the project information.

3
CHAPTER 3

GlobalTextList (Text List)

4
CHAPTER 4

Projektinformationen

4.1 GetBooleanProperty (FUN)


Interface variables

Scope Name Type


Return GetBooleanProperty BOOL
Input stKey WSTRING
This function has been automatically generated from the project information.

4.2 GetCompany (FUN)


Interface variables

Scope Name Type


Return GetCompany WSTRING
This function has been automatically generated from the project information.

4.3 GetNumberProperty (FUN)


Interface variables

Scope Name Type


Return GetNumberProperty DINT
Input stKey WSTRING
This function has been automatically generated from the project information.

4.4 GetTextProperty (FUN)


Interface variables

5
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return GetTextProperty WSTRING
Input stKey WSTRING
This function has been automatically generated from the project information.

4.5 GetTextProperty2 (FUN)


Interface variables

Scope Name Type


Return GetTextProperty2 POINTER TO WSTRING
Input stKey WSTRING
This function has been automatically generated from the project information.

4.6 GetTitle (FUN)


Interface variables

Scope Name Type


Return GetTitle WSTRING
This function has been automatically generated from the project information.

4.7 GetVersion (FUN)


Interface variables

Scope Name Type


Return GetVersion VERSION
This function has been automatically generated from the project information.

4.8 GetVersionProperty (FUN)


Interface variables

Scope Name Type


Return GetVersionProperty VERSION
Input stKey WSTRING
This function has been automatically generated from the project information.

4.5. GetTextProperty2 (FUN) 6


CHAPTER 5

TC_Base

5.1 010 DUT


5.1.1 EventFile
tyTCBase_EventFileLoadState (STRUCT)

Name Type Comment


iLoadState INT
sFileName STRING(63)
xReserve1 : BOOL;
xReserve2 : BOOL;
iEvToDelInRetain :
INT; aEvToDelInFile
: ARRAY[0..3] OF
INT; // Zwischen-
speicher für die
InOut: Anzahl der Events
je Klasse die schon
wieder gelöscht
werden müssen,
während des speich-
erns auf SD-Card.
dwEVBufferSize :
DWORD;
// dwSavedCntFile : DWORD; //
dtSavedDtFile : DT;

5.1.2 Local Vars


tyTCBase_VarInfo (STRUCT)

Name Type
InOut: wSize WORD
pVal POINTER TO BYTE

7
WagoAppRTU, Release 1.2.13.1

uTCBase_60870 (UNION)

Name Type
tyCP56 ty870_CP56
InOut: tyCP32 ty870_CP32
tyCP24 ty870_CP24
tyCP16 ty870_CP16

uTCBase_DNP3 (UNION)

Name Type
InOut:
tyTime tyDNP3_Clock

uTCBase_LocalVar (UNION)

Name Type
s7 STRING(7)
uDNP3 uTCBase_DNP3
u60870 uTCBase_60870
aD ARRAY [0..1] OF DWORD
aW ARRAY [0..3] OF WORD
aB ARRAY [0..7] OF BYTE
lrVal LREAL
lwVal LWORD
InOut:
liVal LINT
rVal REAL
dwVal DWORD
diVal DINT
wVal WORD
iVal INT
byVal BYTE
siVal SINT
xVal BOOL

5.1.3 eTCBase_CFGMode (ENUM)


Attributes:
qualified_only
Name Initial
0
eINIT

InOut: eCFG_FILE
eCFG_PRG
eCFG_APP

5.1.4 eTCBase_COLORS (ENUM)


Attributes:
qualified_only

5.1. 010 DUT 8


WagoAppRTU, Release 1.2.13.1

Name Initial Comment


0
eINFO
1
eERROR
2
_e02
3
eTIMEOUT
4
_e04
5
InOut: eRX
6
_e06
7
_e07
8
_e08
9 eBlack := 0, eRed , eGreen ,
eTX eBlue , eYellow , eOrange ,
eBrown ,
eGreyD := 13, eGreyL := 14,
eWhite := 15

5.1.5 eTCBase_MainState (ENUM)


Attributes:
qualified_only
Name Initial Comment
0 Main-State Initialisierung
eMS_000_BOOTUP
eMS_001_PLC_INIT
eMS_002_DRM_INIT
eMS_003_KBUS_INIT
InOut:
eMS_010_CFG_READ
90
eMS_090_PREE_START
100
eMS_100_RUNNING
900
eMS_900_CFG_CHANGE_SEL
901
eMS_901_CFG_CHANGE_EXE

5.1.6 eTCBase_ObjClass (ENUM)


Attributes:
qualified_only

5.1. 010 DUT 9


WagoAppRTU, Release 1.2.13.1

Name Initial Comment


0
eNULL
ePoint ,
ePrPoProcess
eIoFB
eInfObjGrp
InOut:
eInfObj
eConector
eBuffer
eMainFunc
eLAST

5.1.7 eTCBase_ProcessIO_Cl (ENUM)


Attributes:
qualified_only
InOut:

Name Initial Comment


Empty 16#0 INPUT / Output Prefix
eIX_K 16#584925 ‘%IX’ K-Bus
eIX_P 16#584923 ‘#IX’ Pre-Prozess
eIW_K 16#574925 ‘%IW’ K-Bus
eIW_P 16#574923 ‘#IW’ Pre-Prozess
eQX_K 16#585125 ‘%QX’ K-Bus
eQX_P 16#585123 ‘#QX’ Pre-Prozess
eQW_K 16#575125 ‘%QW’ K-Bus
eQW_P 16#575123 ‘#QW’ Pre-Prozess
eLV_x 16#78564C ‘LVx’ Lokale Variablen BOOL
eLV_s 16#73564C ‘LVs’ Lokale Variablen SINT
eLV_b 16#62564C ‘LVb’ Lokale Variablen BYTE
eLV_i 16#69564C ‘LVi’ Lokale Variablen INT
eLV_w 16#77564C ‘LVw’ Lokale Variablen WORD
eLV_d 16#64564C ‘LVd’ Lokale Variablen DINT / DWORD
eLV_r 16#72564C ‘LVr’ Lokale Variablen REAL
eLV_t 16#74564C ‘LVt’ Lokale Variablen ZEIT (flexibles Format z.B CP24, CP32, CP56 aber auch DNP3_Clock ode
eLV_p 16#70564C ‘LVp’ Lokale Variablen POINTER
eXV_x 16#785623 ‘#Vx’ Lokale Variablen Pre/Post-Prozess BOOL
eXV_s 16#735623 ‘#Vs’ Lokale Variablen Pre/Post-Prozess SINT
eXV_b 16#625623 ‘#Vb’ Lokale Variablen Pre/Post-Prozess BYTE
eXV_i 16#695623 ‘#Vi’ Lokale Variablen Pre/Post-Prozess INT
eXV_w 16#775623 ‘#Vw’ Lokale Variablen Pre/Post-Prozess WORD
eXV_d 16#645623 ‘#Vd’ Lokale Variablen Pre/Post-Prozess DINT / DWORD
eXV_r 16#725623 ‘#Vr’ Lokale Variablen Pre/Post-Prozess REAL
eXV_t 16#745623 ‘#Vt’ Lokale Variablen Pre/Post-Prozess ZEIT (flexibles Format z.B CP24, CP32, CP56 aber auch D
efI_x 16#784966 ‘fIx’ Functional Input BOOL
efI_b 16#624966 ‘fIb’ Functional Input SINT / BYTE
efI_i 16#694966 ‘fIi’ Functional Input INT / WORD
efI_d 16#644966 ‘fId’ Functional Input DINT / DWORD
C

5.1. 010 DUT 10


WagoAppRTU, Release 1.2.13.1

Table 5.1 – continued from previous page


Name Initial Comment
efI_r 16#724966 ‘fIr’ Functional Input REAL
efQ_x 16#785166 ‘fQx’ Functional Output BOOL
efQ_b 16#625166 ‘fQb’ Functional Output SINT / BYTE
efQ_i 16#695166 ‘fQi’ Functional Output INT / WORD
efQ_d 16#645166 ‘fQd’ Functional Output DINT / DWORD
efQ_r 16#725166 ‘fQr’ Functional Output REAL
Last 16#FFFFFFFF

{attribute ‘strict’ := ‘’}

5.1.8 tyTCBase_Buffer0300 (STRUCT)


Name Type
InOut: aBY ARRAY [0..299] OF BYTE
iLen INT

5.1.9 tyTCBase_FileInfo (STRUCT)


Name Type Comment
xExist BOOL FALSE: nicht vorhanden, TRUE: File existiert im
Flash
xIsChanged BOOL zeigt an, wenn sich irgendwas geändert hat
InOut:
wCRC WORD
dwFileSize DWORD
tyFileTime SysFile.
SYS_FILETIME

5.1.10 tyTCBase_KBusIOAdressInfo (STRUCT)


Name Type
iWordCntI INT
iWordCntQ INT
InOut: iBoolCntI INT
iBoolCntQ INT
iBinOfsI INT
iBinOfsQ INT

5.1.11 tyTCBase_ProcessIO_Con (STRUCT)


Name Type Comment
p64Bit POINTER TO p32Bit : POINTER TO uTCBase_32Bit;
uTCBase_64Bit
xValid BOOL
byR1 BYTE
InOut:
wSize WORD
eCfgTyp eTCBase_ProcessIO_Cl Merker für die verknüpfte Variable aus der
Konfigurations- Datei
uCfgIndex uTCBase_16Bit
byCfgBit BYTE

5.1. 010 DUT 11


WagoAppRTU, Release 1.2.13.1

5.1.12 tyTCBase_ProcessIO_Map (STRUCT)


Name Type Comment
iIX INT Index auf das letzte benutzte Input 8 Bit-Feld (für Digitalsignale) im Prozess-Abbild
iQX INT Index auf das letzte benutzte Output 8 Bit-Feld (für Digitalsignale) im
InOut: Prozess-Abbild
iIW INT Index auf das letzte benutzte Input Union (für Analogwerte) im Prozess-Abbild
iQW INT Index auf das letzte benutzte Output Union (für Analogwerte) im Prozess-Abbild
iCOM INT Anzahl bzw. Nummer der nächsten COM Schnittstelle

5.1.13 tyTCBase_ProcessIO_Name (STRUCT)


Name Type Comment
InOut:
byPrefix BYTE 0 = ???, 1 = %IX, 2

5.1.14 tyTCBase_ProcessIO_Point (STRUCT)


Name Type
InOut: uRaw uTCBase_32Bit
uPro uTCBase_32Bit

5.1.15 tyTCBase_ProcessIO_Used (STRUCT)


Name Type
InOut: u32 uTCBase_32Bit
iIx INT

5.1.16 tyTCBase_TcpClient (STRUCT)


Name Type Initial
hSocket SysTypes.RTS_IEC_HANDLE SysTypes.RTS_INVALID_HANDLE
InOut: dwIPAdress DWORD
wPort WORD
stIPAddress STRING(23)

5.1.17 tyTCBase_TokenList (STRUCT)


Name Type
diLineNo DINT
InOut:
aTxt ARRAY [1..TCBase_GC.C_MAX_TOKEN] OF STRING(255)
iCnt INT

5.1.18 uTCBase_16Bit (UNION)


Name Type
s1 STRING(1)
aB ARRAY [0..1] OF BYTE
aX ARRAY [0..1] OF BOOL
InOut:
wVal WORD
iVal INT
byVal BYTE
siVal SINT

5.1. 010 DUT 12


WagoAppRTU, Release 1.2.13.1

5.1.19 uTCBase_24Bit (UNION)


Name Type
s2 STRING(2)
aB ARRAY [0..2] OF BYTE
aX ARRAY [0..2] OF BOOL
InOut: wVal WORD
iVal INT
byVal BYTE
siVal SINT
xVal BOOL

5.1.20 uTCBase_256BYTE (UNION)


Name Type
s255 STRING(255)
aX ARRAY [0..255] OF BOOL
aBY ARRAY [0..255] OF BYTE
aSI ARRAY [0..255] OF SINT
InOut:
aW ARRAY [0..127] OF WORD
aI ARRAY [0..127] OF INT
aR ARRAY [0..63] OF REAL
aDW ARRAY [0..63] OF DWORD
aDI ARRAY [0..63] OF DINT

5.1.21 uTCBase_32Bit (UNION)


Name Type
s3 STRING(3)
aW ARRAY [0..1] OF WORD
aB ARRAY [0..3] OF BYTE
aX ARRAY [0..3] OF BOOL
rVal REAL
tVal TIME
InOut:
dwVal DWORD
diVal DINT
wVal WORD
iVal INT
byVal BYTE
siVal SINT
xVal BOOL

5.1. 010 DUT 13


WagoAppRTU, Release 1.2.13.1

5.1.22 uTCBase_64Bit (UNION)


Name Type
s7 STRING(7)
ws3 WSTRING(3)
uDNP3 uTCBase_DNP3
u60870 uTCBase_60870
aR ARRAY [0..1] OF REAL
aDW ARRAY [0..1] OF DWORD
aDI ARRAY [0..1] OF DINT
aW ARRAY [0..3] OF WORD
aI ARRAY [0..3] OF INT
aBY ARRAY [0..7] OF BYTE
aSI ARRAY [0..7] OF SINT
aX ARRAY [0..7] OF BOOL
lwVal LWORD
InOut:
liVal LINT
lrVal LREAL
u32 uTCBase_32Bit
dtDate DT
dDate DATE
tTime TIME
dwVal DWORD
diVal DINT
rVal REAL
wVal WORD
iVal INT
byVal BYTE
siVal SINT
xVal BOOL

5.1.23 uTCBase_96Bit (UNION)


Name Type
s11 STRING(11)
aR ARRAY [0..2] OF REAL
aDW ARRAY [0..2] OF DWORD
aDI ARRAY [0..2] OF DINT
aW ARRAY [0..5] OF WORD
aI ARRAY [0..5] OF INT
aBY ARRAY [0..11] OF BYTE
aSI ARRAY [0..11] OF SINT
aX ARRAY [0..11] OF BOOL
InOut: lwVal LWORD
liVal LINT
lrVal LREAL
dwVal DWORD
diVal DINT
rVal REAL
wVal WORD
iVal INT
byVal BYTE
siVal SINT
xVal BOOL

5.1. 010 DUT 14


WagoAppRTU, Release 1.2.13.1

5.1.24 uTCBase_KBusIO (UNION)


Name Type
InOut: aB ARRAY [0..1023] OF BYTE
aW ARRAY [0..511] OF WORD

5.1.25 uTCBase_Pointer (UNION)


Name Type
pBOOL POINTER TO BOOL
pSINT POINTER TO SINT
pBYTE POINTER TO BYTE
pINT POINTER TO INT
pWORD POINTER TO WORD
pDINT POINTER TO DINT
InOut: pDWORD POINTER TO DWORD
pLINT POINTER TO LINT
pLWORD POINTER TO LWORD
pTIME POINTER TO TIME
pREAL POINTER TO REAL
pLREAL POINTER TO LREAL
pSTRING POINTER TO STRING
ptyProcessIO POINTER TO tyTCBase_ProcessIO_Con

5.2 020 CONNECTOR


5.2.1 fbTCBase_ConnectorBase (FB)
Interface variables

Scope Name Type Initial Comment


Input xEnable BOOL TRUE
wState WORD BIT 00: initalisiert/verbunden/geöffnet: FALSE = Nein,
TRUE = Ja
Output
fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden von Daten: FALSE = Nein,
TRUE = Ja BIT 02: Daten im Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME
tRespTime300
TIME

010 CFG
fbTCBase_ConnectorBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ConnectorBase.mCfgWrite (METH)

Interface variables

5.2. 020 CONNECTOR 15


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

10 PROTECTED
fbTCBase_ConnectorBase._mBufferFlush (METH)

Interface variables

Scope Name Type


Return _mBufferFlush BOOL

fbTCBase_ConnectorBase.RemoteStation (PROP)
fbTCBase_ConnectorBase.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_ConnectorBase.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

fbTCBase_ConnectorBase.mInit (METH)
fbTCBase_ConnectorBase.mSend (METH)
Interface variables

Scope Name Type


Return mSend WORD
Inout fbSend fbTCBase_ComBuffer

5.2.2 fbTCBase_ConnectorCom (FB)


Interface variables

Scope Name Type Initial Comment Inherited


from
Input xEnable BOOL TRUE fbTCBase_ConnectorBase
wState WORD BIT 00: initalisiert/verbunden/geöffnet: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja
Output fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden von Daten: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja BIT 02:
Daten im Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME fbTCBase_ConnectorBase
tRespTime300
TIME fbTCBase_ConnectorBase
xConnected BOOL

5.2. 020 CONNECTOR 16


WagoAppRTU, Release 1.2.13.1

010 CFG
fbTCBase_ConnectorCom.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ConnectorCom.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_ConnectorCom.mComOpen (METH)
fbTCBase_ConnectorCom.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

5.2.3 fbTCBase_ConnectorTcpCL (FB)


Interface variables

Scope Name Type Initial Comment Inherited


from
Input xEnable BOOL TRUE fbTCBase_ConnectorBase
wState WORD BIT 00: initalisiert/verbunden/geöffnet: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja
Output fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden von Daten: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja BIT 02:
Daten im Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME fbTCBase_ConnectorBase
tRespTime300
TIME fbTCBase_ConnectorBase
xConnected BOOL

010 CFG
fbTCBase_ConnectorTcpCL.mCfgApp (METH)

Interface variables

5.2. 020 CONNECTOR 17


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgApp BOOL
sIpAdrSrv STRING(23)
wPort WORD
Input tKeepAlive TIME
tRespTime TIME
tT0 TIME

fbTCBase_ConnectorTcpCL.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ConnectorTcpCL.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_ConnectorTcpCL.RemoteStation (PROP)
fbTCBase_ConnectorTcpCL.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_ConnectorTcpCL.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

fbTCBase_ConnectorTcpCL.mInit (METH)

5.2.4 fbTCBase_ConnectorTcpSV (FB)


Interface variables

5.2. 020 CONNECTOR 18


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial Comment Inherited


from
Input xEnable BOOL TRUE fbTCBase_ConnectorBase
wState WORD BIT 00: fbTCBase_ConnectorBase
initalisiert/verbunden/geöffnet:
Output
FALSE = Nein, TRUE = Ja
fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden fbTCBase_ConnectorBase
von Daten: FALSE = Nein,
TRUE = Ja BIT 02: Daten im
Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME fbTCBase_ConnectorBase
tRespTime300
TIME fbTCBase_ConnectorBase
tyLinkPara ty870_ParaLink104
Inout afbConn ARRAY
[1..TC60870_GC.C_LAST_CONNECTOR_S]
OF
fb870S_Conn104
byLinkOkMask
BYTE
xOpen BOOL xEnable : BOOL;
xIpFilter BOOL
Output wPort WORD
wMaxClientsWORD
hSocket SysTypes. SysTypes.RTS_INVALID_HANDLE
Socket-Id for connection
RTS_IEC_HANDLE session

010 CFG
fbTCBase_ConnectorTcpSV.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
wInPort WORD
Input iInClients INT
xInIpFilter BOOL

fbTCBase_ConnectorTcpSV.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ConnectorTcpSV.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

5.2. 020 CONNECTOR 19


WagoAppRTU, Release 1.2.13.1

fbTCBase_ConnectorTcpSV.FB_Exit (METH)
Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

fbTCBase_ConnectorTcpSV.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_ConnectorTcpSV.mConnAdd (METH)
Interface variables

Scope Name Type


Return mConnAdd BOOL
Input pfbConnEth POINTER TO fb870S_Conn101

fbTCBase_ConnectorTcpSV.mInit (METH)

5.2.5 fbTCBase_ConnectorTcp_SV (FB)


Interface variables

Scope Name Type Initial Comment Inherited


from
Input xEnable BOOL TRUE fbTCBase_ConnectorBase
wState WORD BIT 00: initalisiert/verbunden/geöffnet: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja
Output
fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden von Daten: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja BIT 02:
Daten im Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME fbTCBase_ConnectorBase
tRespTime300
TIME fbTCBase_ConnectorBase

fbTCBase_ConnectorTcp_SV.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

5.2.6 fbTCBase_ConnectorTlsCL (FB)


Interface variables

5.2. 020 CONNECTOR 20


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial Comment Inherited


from
Input xEnable BOOL TRUE fbTCBase_ConnectorBase
wState WORD BIT 00: initalisiert/verbunden/geöffnet: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja
Output fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden von Daten: fbTCBase_ConnectorBase
FALSE = Nein, TRUE = Ja BIT 02:
Daten im Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME fbTCBase_ConnectorBase
tRespTime300
TIME fbTCBase_ConnectorBase
xConnected BOOL

010 CFG
fbTCBase_ConnectorTlsCL.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ConnectorTlsCL.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_ConnectorTlsCL.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

fbTCBase_ConnectorTlsCL.mInit (METH)

5.2.7 fbTCBase_ConnectorTlsSV (FB)


Interface variables

5.2. 020 CONNECTOR 21


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial Comment Inherited


from
Input xEnable BOOL TRUE fbTCBase_ConnectorBase
wState WORD BIT 00: fbTCBase_ConnectorBase
initalisiert/verbunden/geöffnet:
Output
FALSE = Nein, TRUE = Ja
fbRx fbTCBase_ComBuffer BIT 01: bereit zum versenden fbTCBase_ConnectorBase
von Daten: FALSE = Nein,
TRUE = Ja BIT 02: Daten im
Empfangsbuffer anstehend:
FALSE = Nein, TRUE = Ja
tRespTime050
TIME fbTCBase_ConnectorBase
tRespTime300
TIME fbTCBase_ConnectorBase
tyLinkPara ty870_ParaLink104
Inout afbConn ARRAY
[1..TC60870_GC.C_LAST_CONNECTOR_S]
OF
fb870S_Conn104
byLinkOkMask
BYTE
xOpen BOOL xEnable : BOOL;
xIpFilter BOOL
Output wPort WORD
wMaxClientsWORD
hSocket SysTypes. SysTypes.RTS_INVALID_HANDLE
Socket-Id for connection
RTS_IEC_HANDLE session

010 CFG
fbTCBase_ConnectorTlsSV.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
wInPort WORD
Input iInClients INT
xInIpFilter BOOL

fbTCBase_ConnectorTlsSV.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ConnectorTlsSV.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

5.2. 020 CONNECTOR 22


WagoAppRTU, Release 1.2.13.1

fbTCBase_ConnectorTlsSV.FB_Exit (METH)
Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

fbTCBase_ConnectorTlsSV.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_ConnectorTlsSV.mConnAdd (METH)
Interface variables

Scope Name Type


Return mConnAdd BOOL
Input pfbConnEth POINTER TO fb870S_Conn101

fbTCBase_ConnectorTlsSV.mInit (METH)

5.2.8 tyTCBase_ParaConnectorTcpCL (STRUCT)


Name Type
sIPAdr STRING(47)
InOut:
wPort WORD
tyKeepAlive SysSocket.RTS_SOCKET_SO_VALUE_TCP_KEEPALIVE

5.3 020 Hilfsfunktionen


5.3.1 _SYS (PRG)
Interface variables

5.3. 020 Hilfsfunktionen 23


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


sProjectName
STRING(63) sProjectName : STRING(79) :=
TO_STRING(GetTextProperty2(“Project”)^);
sUTC STRING(23)
tyUTC SysTimeRtc.
SYSTIMEDATE
dtUTC DT
todUTC TOD
dateUTC DATE
sLOC STRING(23)
tyLOC SysTimeRtc.
SYSTIMEDATE
Output
dtLOC DT
todLOC TOD
dateLOC DATE
sUhr STRING(23)
sFileDT STRING(23)
x0250ms BOOL
x0500ms BOOL
x1000ms BOOL
xSep0500ms BOOL
xSep1000ms BOOL
aNums1 ARRAY [0..9] OF
STRING(1)
aNums2 ARRAY [0..99] OF
STRING(2)
aNums3 ARRAY [0..999] OF
STRING(3)
aNums4 ARRAY [0..9999] OF
STRING(4)

100 60870
_SYS.mCP24_TO_String (METH)

Interface variables

Scope Name Type


Return mCP24_TO_String STRING(23)
Input tyCP56 ty870_CP56

_SYS.mCP56_TO_String (METH)

Interface variables

Scope Name Type


Return mCP56_TO_String STRING(23)
Input tyCP56 ty870_CP56

_SYS._Lg1 (METH)
Interface variables

5.3. 020 Hilfsfunktionen 24


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return _Lg1 STRING(127)
xMode BOOL
Input s0 STRING(127)
s1 STRING(63)

_SYS._Lg2 (METH)
Interface variables

Scope Name Type


Return _Lg2 STRING(127)
xMode BOOL
s0 STRING(127)
Input
s1 STRING(63)
s2 STRING(63)

_SYS.aNums5 (METH)
Interface variables

Scope Name Type


Return aNums5 STRING(5)
Input wI WORD

_SYS.aNums6 (METH)
Interface variables

Scope Name Type


Return aNums6 STRING(6)
Input dwI DWORD

_SYS.aNums7 (METH)
Interface variables

Scope Name Type


Return aNums7 STRING(6)
Input dwI DWORD

_SYS.aNums8 (METH)
Interface variables

Scope Name Type


Return aNums8 STRING(6)
Input dwI DWORD

_SYS.fHex16 (METH)
Interface variables

Scope Name Type


Return fHex16 STRING(4)
Input wVal WORD

5.3. 020 Hilfsfunktionen 25


WagoAppRTU, Release 1.2.13.1

_SYS.fHex32 (METH)
Interface variables

Scope Name Type


Return fHex32 STRING(8)
Input dwVal DWORD

_SYS.mConcat03 (METH)
Interface variables

Scope Name Type


Return mConcat03 STRING(255)
sTxt01 STRING(255)
Input sTxt02 STRING(255)
sTxt03 STRING(255)

_SYS.mConcat04 (METH)
Interface variables

Scope Name Type


Return mConcat04 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
Input
sTxt03 STRING(255)
sTxt04 STRING(255)

_SYS.mConcat05 (METH)
Interface variables

Scope Name Type


Return mConcat05 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
Input sTxt03 STRING(255)
sTxt04 STRING(255)
sTxt05 STRING(255)

_SYS.mConcat06 (METH)
Interface variables

Scope Name Type


Return mConcat06 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
sTxt03 STRING(255)
Input
sTxt04 STRING(255)
sTxt05 STRING(255)
sTxt06 STRING(255)

5.3. 020 Hilfsfunktionen 26


WagoAppRTU, Release 1.2.13.1

_SYS.mConcat07 (METH)
Interface variables

Scope Name Type


Return mConcat07 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
sTxt03 STRING(255)
Input sTxt04 STRING(255)
sTxt05 STRING(255)
sTxt06 STRING(255)
sTxt07 STRING(255)

_SYS.mConcat08 (METH)
Interface variables

Scope Name Type


Return mConcat08 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
sTxt03 STRING(255)
sTxt04 STRING(255)
Input
sTxt05 STRING(255)
sTxt06 STRING(255)
sTxt07 STRING(255)
sTxt08 STRING(255)

_SYS.mConcat09 (METH)
Interface variables

Scope Name Type


Return mConcat09 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
sTxt03 STRING(255)
sTxt04 STRING(255)
Input sTxt05 STRING(255)
sTxt06 STRING(255)
sTxt07 STRING(255)
sTxt08 STRING(255)
sTxt09 STRING(255)

_SYS.mConcat10 (METH)
Interface variables

5.3. 020 Hilfsfunktionen 27


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mConcat10 STRING(255)
sTxt01 STRING(255)
sTxt02 STRING(255)
sTxt03 STRING(255)
sTxt04 STRING(255)
sTxt05 STRING(255)
Input
sTxt06 STRING(255)
sTxt07 STRING(255)
sTxt08 STRING(255)
sTxt09 STRING(255)
sTxt10 STRING(255)

_SYS.mCopy02 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..1] OF BYTE
Input
pS POINTER TO ARRAY [0..1] OF BYTE

_SYS.mCopy03 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..2] OF BYTE
Input
pS POINTER TO ARRAY [0..2] OF BYTE

_SYS.mCopy04 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..3] OF BYTE
Input
pS POINTER TO ARRAY [0..3] OF BYTE

_SYS.mCopy05 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..4] OF BYTE
Input
pS POINTER TO ARRAY [0..4] OF BYTE

_SYS.mCopy06 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..5] OF BYTE
Input
pS POINTER TO ARRAY [0..5] OF BYTE

_SYS.mCopy07 (METH)
Interface variables

5.3. 020 Hilfsfunktionen 28


WagoAppRTU, Release 1.2.13.1

Scope Name Type


pD POINTER TO ARRAY [0..6] OF BYTE
Input
pS POINTER TO ARRAY [0..6] OF BYTE

_SYS.mCopy08 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..7] OF BYTE
Input
pS POINTER TO ARRAY [0..7] OF BYTE

_SYS.mCopy09 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..8] OF BYTE
Input
pS POINTER TO ARRAY [0..8] OF BYTE

_SYS.mCopy10 (METH)
Interface variables

Scope Name Type


pD POINTER TO ARRAY [0..9] OF BYTE
Input
pS POINTER TO ARRAY [0..9] OF BYTE

_SYS.mDebugPrint (METH)
Interface variables

Scope Name Type


Return mDebugPrint BOOL
Input sTxt STRING(255)

_SYS.mMM_SS (METH)
Interface variables

Scope Name Type


Return mMM_SS STRING(11)
Input dwS DWORD

_SYS.mReplaceChar (METH)
Interface variables

Scope Name Type


Return mReplaceChar INT
pTxt POINTER TO STRING(255)
Input sSearch STRING(1)
sReplace STRING(1)

5.3. 020 Hilfsfunktionen 29


WagoAppRTU, Release 1.2.13.1

_SYS.mUserParaCheck (METH)
Interface variables

Scope Name Type


Return mUserParaCheck BOOL
yPar __SYSTEM.AnyType
Input sTag STRING(79)
sLimits STRING(255)
Inout sResult STRING

5.3.2 fTCBase_StrToBitIx (FUN)


Interface variables

Scope Name Type


Return fTCBase_StrToBitIx INT
Input sTxt STRING(47)

5.3.3 fTCBase_StringToUpper (FUN)


Interface variables

Scope Name Type


Return fTCBase_StringToUpper BOOL
Inout sInOutText STRING(31)

5.3.4 fbTCBase_ComBuffer (FB)


Interface variables

Scope Name Type


aData ARRAY [0..TCBase_GC.C_COM_BUFFER_SIZE] OF BYTE
Input
iCnt INT

20 DNP3
fbTCBase_ComBuffer.mAddHexStr (METH)

Interface variables

Scope Name Type


Return mAddHexStr INT
pS POINTER TO ARRAY [0..1] OF BYTE
Input
iLenOfTxt INT

fbTCBase_ComBuffer.mDnp3_Find0x0564 (METH)

Interface variables

Scope Name Type


Return mDnp3_Find0x0564 BOOL

5.3. 020 Hilfsfunktionen 30


WagoAppRTU, Release 1.2.13.1

fbTCBase_ComBuffer.mAddBlk (METH)
Interface variables

Scope Name Type


Return mAddBlk INT
pBlk POINTER TO BYTE
Input
iLen INT

fbTCBase_ComBuffer.mAddBuf (METH)
Interface variables

Scope Name Type


Return mAddBuf INT
Inout fbBuff fbTCBase_ComBuffer

fbTCBase_ComBuffer.mAddStg (METH)
Interface variables

Scope Name Type


Return mAddStg INT
Input sTxt STRING(255)

fbTCBase_ComBuffer.mBCC (METH)
Interface variables

Scope Name Type


Return mBCC BYTE
i INT
Input
iEnd INT

fbTCBase_ComBuffer.mClear (METH)
fbTCBase_ComBuffer.mCopy (METH)
Interface variables

Scope Name Type


Return mCopy INT
Inout fbBuff fbTCBase_ComBuffer

fbTCBase_ComBuffer.mRemove (METH)
Interface variables

Scope Name Type


Return mRemove INT
Input iNums INT

fbTCBase_ComBuffer.mRemoveTill (METH)
Interface variables

5.3. 020 Hilfsfunktionen 31


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRemoveTill INT
Input byChar BYTE

fbTCBase_ComBuffer.mRemoveTill2 (METH)
Interface variables

Scope Name Type


Return mRemoveTill2 INT
byChar1 BYTE
Input
byChar2 BYTE

5.3.5 fbTCBase_MemManager (FB)


Interface variables

Scope Name Type Comment


Output aClassCnt ARRAY in diesem Array werde die Anzahl
[eTCBase_ObjClass.eNULL..eTCBase_ObjClass.eLAST]
der Objekte je Classe hoch gezählt
OF DINT

fbTCBase_MemManager.mAlloc (METH)
Interface variables

Scope Name Type Comment


Return mAlloc POINTER TO DWORD
diSize DINT erforderliche Größe in Byte
Input
eClass eTCBase_ObjClass

fbTCBase_MemManager.mAllocCom_FR (METH)
Interface variables

Scope Name Type


Return mAllocCom_FR POINTER TO fbTCBase_SerialHdl_Base
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_MemManager.mAllocCom_PA (METH)
Interface variables

Scope Name Type


Return mAllocCom_PA POINTER TO fbTCBase_SerialHdl_Base
iComPort INT
Input iComType INT
dwBaudRate DWORD

fbTCBase_MemManager.mReset (METH)
Interface variables

Scope Name Type


Return mReset BOOL

5.3. 020 Hilfsfunktionen 32


WagoAppRTU, Release 1.2.13.1

5.3.6 fbTCBase_Nums (FB)


Interface variables

Scope Name Type


a1 ARRAY [0..9] OF STRING(1)
a2 ARRAY [0..99] OF STRING(2)
Output
a3 ARRAY [0..999] OF STRING(3)
a4 ARRAY [0..9999] OF STRING(4)

fbTCBase_Nums.FB_Init (METH)
Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_Nums.a5 (METH)
Interface variables

Scope Name Type


Return a5 STRING(5)
Input wI WORD

fbTCBase_Nums.a6 (METH)
Interface variables

Scope Name Type


Return a6 STRING(6)
Input dwI DWORD

fbTCBase_Nums.a7 (METH)
Interface variables

Scope Name Type


Return a7 STRING(6)
Input dwI DWORD

fbTCBase_Nums.a8 (METH)
Interface variables

Scope Name Type


Return a8 STRING(6)
Input dwI DWORD

fbTCBase_Nums.m103_TypInfFu_to_STR (METH)
Interface variables

5.3. 020 Hilfsfunktionen 33


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return m103_TypInfFu_to_STR STRING(31)
Input uTypAdr uTCBase_32Bit

fbTCBase_Nums.m870C_TypAdr_to_STR (METH)
Interface variables

Scope Name Type


Return m870C_TypAdr_to_STR STRING(31)
Inout tyInfObj ty870C_InfObjPar

fbTCBase_Nums.m870S_TypAdr_to_STR (METH)
Interface variables

Scope Name Type


Return m870S_TypAdr_to_STR STRING(31)
Input uTypAdr uTCBase_32Bit

fbTCBase_Nums.m870_Asdu_to_STR (METH)
Interface variables

Scope Name Type


Return m870_Asdu_to_STR STRING(31)
Input uASDU uTCBase_16Bit

fbTCBase_Nums.m870_CP56_to_STR (METH)
Interface variables

Scope Name Type Comment


Return m870_CP56_to_STR STRING(31)
Input tyCP56 ty870_CP56 00..03

fbTCBase_Nums.m870_Event_to_STR (METH)
Interface variables

Scope Name Type


Return m870_Event_to_STR STRING(79)
Inout tyEvent ty870S_Event

fbTCBase_Nums.mBitAdr (METH)
Interface variables

Scope Name Type


Return mBitAdr STRING(15)
Input iIx INT

fbTCBase_Nums.mByteArray_to_STR (METH)
Interface variables

5.3. 020 Hilfsfunktionen 34


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mByteArray_to_STR STRING(63)
pArray POINTER TO ARRAY [1..16] OF BYTE
Input
byCnt BYTE

fbTCBase_Nums.mDNP3_Event_to_STR (METH)
Interface variables

Scope Name Type


Return mDNP3_Event_to_STR STRING(79)
Inout tyEvent tyDNP3_Event

fbTCBase_Nums.mDNP3_GrpVar_to_STR (METH)
Interface variables

Scope Name Type Comment


Return mDNP3_GrpVar_to_STR STRING(31)
Input wInfObjGrp WORD Info-Objekt Gruppe / Variante

fbTCBase_Nums.mDNP3_Time_to_STR (METH)
Interface variables

Scope Name Type Comment


Return mDNP3_Time_to_STR STRING(31)
dwTimeLow DWORD 00..03
Input
wTimeHigh WORD 04..05

5.3.7 fbTCBase_SysManager (FB)


Interface variables

Scope Name Type Initial Comment


Inout fbTCBase_FileHandler
fbFileWriter
xWait BOOL TRUE
xOnBoardComBOOL FALSE xOk : BOOL := FALSE;
wTargetID WORD
sTarget STRING(79)
Output sFirmware STRING(79)
sApplication
STRING(47)
sLicenseInfo
STRING(79)
aIP ARRAY [1..2]
OF
STRING(23)
sTmp STRING Wegen der Compiler-Fehler im Simulations Modus
(String- Variable ‘xyz’ ist zu kurz für VAR_IN_OUT
Parameter)

fbTCBase_SysManager.mInit (METH)
Interface variables

5.3. 020 Hilfsfunktionen 35


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mInit BOOL
Input sAppName STRING(47)

fbTCBase_SysManager.mReboot (METH)

5.4 030 Serial


5.4.1 10 COM WATCH
fbTCBase_ComWatch (FB)
Interface variables

Scope Name Type Initial


xLogg BOOL TRUE
iIxLine INT
Input
iIxRaw INT
byLast BYTE
Output aLine ARRAY [0..23] OF tyTCBase_ComWatchLine

fbTCBase_ComWatch.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_ComWatch.mLoggRx (METH)

Interface variables

Scope Name Type


Return mLoggRx BOOL
Inout fbBuffer fbTCBase_ComBuffer
Input xHex BOOL

fbTCBase_ComWatch.mLoggText (METH)

Interface variables

Scope Name Type


Return mLoggText BOOL
Input sText STRING(130)

fbTCBase_ComWatch.mLoggTx (METH)

Interface variables

Scope Name Type


Return mLoggTx BOOL
Inout fbBuffer fbTCBase_ComBuffer
Input xHex BOOL

5.4. 030 Serial 36


WagoAppRTU, Release 1.2.13.1

fbTCBase_ComWatch.mScroll (METH)

Interface variables

Scope Name Type


Return mScroll BOOL
Input dwColor DWORD

tyTCBase_ComWatchLine (STRUCT)

Name Type
InOut: dwColor DWORD
uData uTCBase_ComWatchData

uTCBase_ComWatchData (UNION)

Name Type
InOut: sTXT STRING(127)
aDW ARRAY [0..31] OF DWORD

5.4.2 fbTCBase_SerialHdl_Base (FB)


Interface variables

5.4. 030 Serial 37


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


xOpen BOOL
wState :
WORD;
Output
// BIT
00: inital-
isiert/verbunden/geöffnet:
FALSE =
Nein, TRUE
= Ja
BIT 01: bereit zum
versenden von Daten:
FALSE = Nein, TRUE
= Ja BIT 02: Daten im
Empfangsbuffer anste-
hend: FALSE = Nein,
TRUE = Ja
xInit :
BOOL;

bySlot BYTE
xRDP :
BOOL; //
received
data pend-
ing xRTS :
BOOL; //
Ready to
send
folgende Daten werden
von der Init-Methode
beschrieben
sID STRING(47) wTerminalNo : WORD;
dwRxCnt DWORD
dwTxCnt DWORD

010 CFG
fbTCBase_SerialHdl_Base.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
iComPort INT
Input iComType INT
dwBaudRate DWORD

fbTCBase_SerialHdl_Base.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_SerialHdl_Base.RTS (PROP)

5.4. 030 Serial 38


WagoAppRTU, Release 1.2.13.1

fbTCBase_SerialHdl_Base.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_SerialHdl_Base.mInit (METH)
Interface variables

Scope Name Type Comment


Return mInit BOOL
byIx BYTE
sIdent STRING(47)
Input
pI POINTER TO BYTE wArtikelNo : WORD;
pQ POINTER TO BYTE

fbTCBase_SerialHdl_Base.mOpen (METH)
Interface variables

Scope Name Type


Return mOpen BOOL
Input eParity WagoTypesCom.eTTYParity

fbTCBase_SerialHdl_Base.mReceive (METH)
Interface variables

Scope Name Type


Return mReceive INT
Inout fbRx fbTCBase_ComBuffer

fbTCBase_SerialHdl_Base.mReceiveX (METH)
Interface variables

Scope Name Type


Return mReceiveX INT
fbRx fbTCBase_ComBuffer
Inout
fbCW fbTCBase_ComWatch

fbTCBase_SerialHdl_Base.mSend (METH)
Interface variables

Scope Name Type


Return mSend INT
Inout fbTx fbTCBase_ComBuffer

fbTCBase_SerialHdl_Base.mSendTxt (METH)
Interface variables

5.4. 030 Serial 39


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Input sTxt STRING(255)

fbTCBase_SerialHdl_Base.mSetPar (METH)
Interface variables

Scope Name Type


Return mSetPar BOOL
iComPort INT
Input iComType INT
dwBaudRate DWORD

5.4.3 fbTCBase_SerialHdl_COMx (FB)


Interface variables

5.4. 030 Serial 40


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment Inherited from


xOpen BOOL fbTCBase_SerialHdl_Base
wState
:
Output
WORD;
// BIT
00:
inital-
isiert/verbunden/geöffnet:
FALSE
=
Nein,
TRUE
= Ja
BIT 01: bereit
zum versenden von
Daten: FALSE =
Nein, TRUE = Ja
BIT 02: Daten im
Empfangsbuffer
anstehend: FALSE
= Nein, TRUE = Ja
xInit :
BOOL;

bySlot BYTE fbTCBase_SerialHdl_Base


xRDP
:
BOOL;
// re-
ceived
data
pend-
ing
xRTS
:
BOOL;
//
Ready
to
send
folgende Daten
werden von der
Init-Methode
beschrieben
sID STRING(47) wTerminalNo : fbTCBase_SerialHdl_Base
WORD;
dwRxCnt DWORD fbTCBase_SerialHdl_Base
dwTxCnt DWORD fbTCBase_SerialHdl_Base

fbTCBase_SerialHdl_COMx.RTS (PROP)
fbTCBase_SerialHdl_COMx.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

5.4. 030 Serial 41


WagoAppRTU, Release 1.2.13.1

fbTCBase_SerialHdl_COMx.mOpen (METH)
Interface variables

Scope Name Type


Return mOpen BOOL
Input eParity WagoTypesCom.eTTYParity

fbTCBase_SerialHdl_COMx.mReceive (METH)
Interface variables

Scope Name Type


Return mReceive INT
Inout fbRx fbTCBase_ComBuffer

fbTCBase_SerialHdl_COMx.mReceiveX (METH)
Interface variables

Scope Name Type


Return mReceiveX INT
fbRx fbTCBase_ComBuffer
Inout
fbCW fbTCBase_ComWatch

fbTCBase_SerialHdl_COMx.mSend (METH)
Interface variables

Scope Name Type


Return mSend INT
Inout fbTx fbTCBase_ComBuffer

fbTCBase_SerialHdl_COMx.mSendTxt (METH)
Interface variables

Scope Name Type


Input sTxt STRING(255)

5.4.4 fbTCBase_SerialHdl_KBUS (FB)


Interface variables

5.4. 030 Serial 42


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment Inherited from


xOpen BOOL fbTCBase_SerialHdl_Base
wState
:
Output
WORD;
// BIT
00:
inital-
isiert/verbunden/geöffnet:
FALSE
=
Nein,
TRUE
= Ja
BIT 01: bereit
zum versenden von
Daten: FALSE =
Nein, TRUE = Ja
BIT 02: Daten im
Empfangsbuffer
anstehend: FALSE
= Nein, TRUE = Ja
xInit :
BOOL;

bySlot BYTE fbTCBase_SerialHdl_Base


xRDP
:
BOOL;
// re-
ceived
data
pend-
ing
xRTS
:
BOOL;
//
Ready
to
send
folgende Daten
werden von der
Init-Methode
beschrieben
sID STRING(47) wTerminalNo : fbTCBase_SerialHdl_Base
WORD;
dwRxCnt DWORD fbTCBase_SerialHdl_Base
dwTxCnt DWORD fbTCBase_SerialHdl_Base

001 PRIVATE
fbTCBase_SerialHdl_KBUS._mInitRegList (METH)

010 CFG
fbTCBase_SerialHdl_KBUS.mCfgApp (METH)

Interface variables

5.4. 030 Serial 43


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgApp BOOL
iComPort INT
Input iComType INT
dwBaudRate DWORD

fbTCBase_SerialHdl_KBUS.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler
Input iComPort INT

fbTCBase_SerialHdl_KBUS.RTS (PROP)
fbTCBase_SerialHdl_KBUS.mClose (METH)
Interface variables

Scope Name Type


Return mClose BOOL

fbTCBase_SerialHdl_KBUS.mInit (METH)
Interface variables

Scope Name Type Comment


Return mInit BOOL
byIx BYTE
sIdent STRING(47)
Input
pI POINTER TO BYTE wArtikelNo : WORD;
pQ POINTER TO BYTE

fbTCBase_SerialHdl_KBUS.mOpen (METH)
Interface variables

Scope Name Type


Return mOpen BOOL
Input eParity WagoTypesCom.eTTYParity

fbTCBase_SerialHdl_KBUS.mReceive (METH)
Interface variables

Scope Name Type


Return mReceive INT
Inout fbRx fbTCBase_ComBuffer

fbTCBase_SerialHdl_KBUS.mSend (METH)
Interface variables

5.4. 030 Serial 44


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mSend INT
Inout fbTx fbTCBase_ComBuffer

fbTCBase_SerialHdl_KBUS.mSendTxt (METH)
Interface variables

Scope Name Type


Input sTxt STRING(255)

fbTCBase_SerialHdl_KBUS.mSetPar (METH)
Interface variables

Scope Name Type


Return mSetPar BOOL
iComPort INT
Input iComType INT
dwBaudRate DWORD

5.4.5 tyTCBase_ComPara (STRUCT)


Name Type Initial Comment
iComPort INT
iComType INT
I_Port WagoTypesCom.
I_WagoSysComBase
dwBaudrate DWORD 9600 Baudrate (9600 = 9k6, 0=default)
byDataBits BYTE 8 Number OF Bits per frame (5..8, 0=default)
eParity WagoTypesCom. WagoType- Parity
eTTYParity sCom.eTTYParity.Even
eStopBits WagoTypesCom. WagoType- Number of Stop-Bits, see note (1)
eTTYStopBits sCom.eTTYStopBits.One
eHandshake WagoTypesCom. WagoType- Type of handshake (XON/XOFF, etc)
eTTYHandshake sCom.eTTYHandshake.None
InOut:
ePhysical WagoTypesCom. WagoType- RS232, RS422, RS485, etc
sCom.eTTYPhysicalLayer.RS232
eTTYPhysicalLayer
wRtsPreTimeWORD 0
wRtsPostTime
WORD 0
tTransmitTime040
TIME Neu eingefügrt für die Berechung der
Wartezeit auf ein Respons von der
Gegenstelle (z.B. für IEC60870-103)
tTransmitTime250
TIME Neu eingefügrt für die Berechung der
Wartezeit auf ein Respons von der
Gegenstelle (z.B. für IEC60870-103)
tTransmitTime300
TIME Neu eingefügrt für die Berechung der
Wartezeit auf ein Respons von der
Gegenstelle (z.B. für IEC60870-103)

5.4. 030 Serial 45


WagoAppRTU, Release 1.2.13.1

5.4.6 tyTCBase_RegisterCom (STRUCT)


Name Type
iIx INT
byRegNo BYTE
InOut: wVal WORD
xDone BOOL
xError BOOL
eState eResultCode

5.4.7 tyTCBase_debugAusgabeCom (STRUCT)


Name Type Initial Comment
iDebugNo INT 1
pTxBuffer POINTER TO ARRAY [0..2047] OF
BYTE
udiTxNBytes DWORD
pRxBuffer POINTER TO ARRAY [0..2047] OF
BYTE
udiRxBufferSize DWORD
xResetStatus BOOL
I_Port WagoTypesCom. Initalisierungs-
I_WagoSysComBase Parameter
udiBaudrate DWORD Initalisierungs-
Parameter
usiDataBits BYTE Initalisierungs-
Parameter
InOut: eParity INT Initalisierungs-
Parameter
eStopBits INT Initalisierungs-
Parameter
eHandshake INT Initalisierungs-
Parameter
ePhysical INT Initalisierungs-
Parameter
udiRxIndex DWORD VAR_IN_OUT
xTxTrigger BOOL VAR_IN_OUT
oStatus FbResult
xIsOpen BOOL VAR_OUTPUT
xIsIdle BOOL VAR_OUTPUT
xError BOOL VAR_OUTPUT
xRxBufferFull BOOL VAR_OUTPUT
xRxOverflow BOOL VAR_OUTPUT

5.5 040 DRM / IO-Accsess


5.5.1 10 LIB-Version
_fbTCBase_LibKbusModul (FB)
Interface variables

5.5. 040 DRM / IO-Accsess 46


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


bySlotIx BYTE
byModuleTypBYTE 0 = Digital, 1 = Analog , 2 = Spezial oder Kommunikations- Modul
z.b. 75x-652
xHaveI BOOL Zeigt an, das dieses Modul Eingänge hat und die Methode
Output mUpdateI aufgerufen werden muss
xHaveQ BOOL Zeigt an, das dieses Modul Ausgänge hat und die Methode
mUpdateQ aufgerufen werden muss
dwModulID DWORD
sModulID STRING(15)
sInfoTxt STRING(79)
pApp_I POINTER Pointer auf den Speicher derauf der SPS Seite für die Input’s vom
TO BYTE K-Bus-Moduls <SysMemCpy(pCodesys_I, pModul_I, xxx);>
pApp_Q POINTER Pointer auf den Speicher derauf der SPS Seite für die Output’s zum
TO BYTE K-Bus-Moduls <SysMemCpy(pModul_Q, pCodesys_Q, xxx);>

_fbTCBase_LibKbusModul.mWriteReg (METH)

Interface variables

Scope Name Type


Input pRegList POINTER TO ARRAY [1..64] OF tyTCBase_RegisterCom
Inout iState INT

fbTCBase_IOAccess_LIB (FB)
Interface variables

Scope Name Type Initial Comment


ARRAY
aModulListVisu
[1..C_LAST_MODUL] OF
Output
STRING(39)
aModulList ARRAY [0..0] OF
_fbTCBase_LibKbusModul
iModulCnt INT 0 aFileInfo :
ARRAY[1..C_LAST_MODUL+10] OF
STRING(127);
xDrmValid BOOL

fbTCBase_IOAccess_LIB.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbTCBase_IOAccess_LIB.mFbAccess_Load (METH)

Interface variables

Scope Name Type


Return mFbAccess_Load BOOL
iIx INT
Input
sVarName STRING(23)
Inout tyProcessCon tyTCBase_ProcessIO_Con

5.5. 040 DRM / IO-Accsess 47


WagoAppRTU, Release 1.2.13.1

fbTCBase_IOAccess_LIB.mFbAccess_Write (METH)

Interface variables

Scope Name Type


Return mFbAccess_Write BOOL
Input sAttribut STRING(79)
tyPC tyTCBase_ProcessIO_Con
Inout
fbFW fbTCBase_FileHandler

fbTCBase_IOAccess_LIB.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbTCBase_IOAccess_LIB.mReset (METH)

Interface variables

Scope Name Type


Return mReset BOOL

fbTCBase_IOAccess_LIB.mScan (METH)

Interface variables

Scope Name Type


Return mScan BOOL
Input xOnBoardCom BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbFileWriter fbTCBase_FileHandler

fbTCBase_IOAccess_LIB.mUpdateI (METH)

Interface variables

Scope Name Type


Return mUpdateI BOOL

fbTCBase_IOAccess_LIB.mUpdateQ (METH)

Interface variables

Scope Name Type


Return mUpdateQ BOOL

fbTCBase_IOAccess_LIB.xStandalone (PROP)

5.5.2 eTCBase_DrmLiceneTyp (ENUM)


Attributes:
qualified_only

5.5. 040 DRM / IO-Accsess 48


WagoAppRTU, Release 1.2.13.1

Name Initial
1
e60870_S
e60870_C
InOut: eDNP3_OS
eDNP3_MA
e61850_S
e61850_C

5.5.3 fbTCBase_ProcessIO (FB)


Interface variables

Scope Name Type Initial Comment


aIx ARRAY [0..C_LAST] OF uTCBase_32Bit;
uTCBase_64Bit
aIx_ ARRAY [0..C_LAST] OF uTCBase_32Bit;
uTCBase_64Bit
aQx ARRAY [0..C_LAST] OF uTCBase_32Bit;
uTCBase_64Bit
Input aQx_ ARRAY [0..C_LAST] OF uTCBase_32Bit;
uTCBase_64Bit
aIW ARRAY [0..C_LAST] OF direkt vom K-Bus
WORD
aIW_ ARRAY [0..C_LAST] OF uTCBase_32Bit; //
uTCBase_64Bit Pree-Process Output
aQW ARRAY [0..C_LAST] OF direkt zum K-Bus
WORD
aQW_ ARRAY [0..C_LAST] OF uTCBase_32Bit; //
uTCBase_64Bit Post-Process Input
aLoc ARRAY [0..C_LAST] OF Locale Variablen für den
uTCBase_LocalVar integrierten Konfigurator
aLoc_ ARRAY [0..C_LAST] OF Locale Variablen
uTCBase_LocalVar (Pree-Process) für den
integrierten Konfigurator
aExt ARRAY [0..C_LAST] OF Pointer auf die lokalen
tyTCBase_VarInfo Valiablen aLoc deer
ProcessIO
uKBusI uTCBase_KBusIO
uKBusQ uTCBase_KBusIO
u0 uTCBase_32Bit STRUCT(xVal :=
FALSE)
u1 uTCBase_32Bit STRUCT(xVal :=
Output TRUE)
tyIOMap tyTCBase_ProcessIO_Map STRUCT(iIX := 8, iQX
:= 0, iIW := 1, iQW :=
0, iCOM := 1)
apFbPree ARRAY [1..C_LAST] OF Anzahl bzw. Nummer der
POINTER TO nächsten COM
fbTCBase_PreePostBase Schnittstelle
iFbPreeCnt INT
apFbPost ARRAY [1..C_LAST] OF
POINTER TO
fbTCBase_PreePostBase
iFbPostCnt INT

5.5. 040 DRM / IO-Accsess 49


WagoAppRTU, Release 1.2.13.1

000 SYSTEM
fbTCBase_ProcessIO.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_ProcessIO.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_ProcessIO.mAdrToIx (METH)
Interface variables

Scope Name Type


Return mAdrToIx BOOL
Input uIoAdr uTCBase_96Bit
Output iIx INT

fbTCBase_ProcessIO.mBitsI (METH)
Interface variables

Scope Name Type


Return mBitsI BOOL
pModule POINTER TO BYTE
Input iIx INT
iCnt INT

fbTCBase_ProcessIO.mBitsQ (METH)
Interface variables

Scope Name Type


Return mBitsQ BOOL
pModule POINTER TO BYTE
Input iIx INT
iCnt INT

fbTCBase_ProcessIO.mCOM (METH)
Interface variables

Scope Name Type


Return mCOM INT

5.5. 040 DRM / IO-Accsess 50


WagoAppRTU, Release 1.2.13.1

fbTCBase_ProcessIO.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL

fbTCBase_ProcessIO.mGetCon (METH)
Interface variables

Scope Name Type


Return mGetCon tyTCBase_ProcessIO_Con

fbTCBase_ProcessIO.mInit (METH)
Interface variables

Scope Name Type


Return mInit BOOL

fbTCBase_ProcessIO.mMap (METH)
Interface variables

Scope Name Type


Return mMap tyTCBase_ProcessIO_Map
byModuleTyp BYTE
iISizeByte INT
Input iISizeBits INT
iQSizeByte INT
iQSizeBits INT

fbTCBase_ProcessIO.mPostProcess (METH)
Interface variables

Scope Name Type


Return mPostProcess BOOL

fbTCBase_ProcessIO.mPreeProcess (METH)
Interface variables

Scope Name Type


Return mPreeProcess BOOL

fbTCBase_ProcessIO.mReset (METH)
Interface variables

Scope Name Type


Return mReset BOOL

5.5. 040 DRM / IO-Accsess 51


WagoAppRTU, Release 1.2.13.1

5.6 050 Pree/Post-Process


5.6.1 INPUT
fbTCBase_PreeProcessIW (FB)
00 SYSTEM

fbTCBase_PreeProcessIW.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessIW.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessIW.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessIW.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessIX (FB)
00 SYSTEM

fbTCBase_PreeProcessIX.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

5.6. 050 Pree/Post-Process 52


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreeProcessIX.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessIX.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessIX.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

5.6.2 LOCAL
fbTCBase_PreeProcessLB (FB)
00 SYSTEM

fbTCBase_PreeProcessLB.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessLB.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessLB.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

5.6. 050 Pree/Post-Process 53


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreeProcessLB.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessLD (FB)
00 SYSTEM

fbTCBase_PreeProcessLD.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessLD.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessLD.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessLD.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessLR (FB)
00 SYSTEM

fbTCBase_PreeProcessLR.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

5.6. 050 Pree/Post-Process 54


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreeProcessLR.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessLR.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessLR.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessLT (FB)
00 SYSTEM

fbTCBase_PreeProcessLT.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessLT.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessLT.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

5.6. 050 Pree/Post-Process 55


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreeProcessLT.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessLW (FB)
00 SYSTEM

fbTCBase_PreeProcessLW.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessLW.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessLW.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessLW.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessLX (FB)
00 SYSTEM

fbTCBase_PreeProcessLX.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

5.6. 050 Pree/Post-Process 56


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreeProcessLX.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessLX.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessLX.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

5.6.3 OUTPUT
fbTCBase_PreeProcessQW (FB)
00 SYSTEM

fbTCBase_PreeProcessQW.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessQW.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessQW.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

5.6. 050 Pree/Post-Process 57


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreeProcessQW.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

fbTCBase_PreeProcessQX (FB)
00 SYSTEM

fbTCBase_PreeProcessQX.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

fbTCBase_PreeProcessQX.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreeProcessQX.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreeProcessQX.mCall (METH)

Interface variables

Scope Name Type


Return mCall BOOL

5.6.4 fbTCBase_PreePostBase (FB)


00 SYSTEM
fbTCBase_PreePostBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
uIoAdr uTCBase_96Bit

5.6. 050 Pree/Post-Process 58


WagoAppRTU, Release 1.2.13.1

fbTCBase_PreePostBase.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbTCBase_PreePostBase.FB_Init (METH)
Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbTCBase_PreePostBase.mCall (METH)
Interface variables

Scope Name Type


Return mCall BOOL

5.7 060 Functional FB's


5.7.1 01 BASE
fbTCBase_FunctionalBase (FB)
Interface variables

Scope Name Type


xEnable BOOL
bySlot BYTE
Output
wTerminalNo WORD
sID STRING(47)

fbTCBase_FunctionalBase.mAccess_Load (METH)

Interface variables

Scope Name Type


Return mAccess_Load BOOL
Input sVarName STRING(23)
Inout tyProcessCon tyTCBase_ProcessIO_Con

fbTCBase_FunctionalBase.mAccess_Write (METH)

Interface variables

5.7. 060 Functional FB's 59


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mAccess_Write STRING(127)
Input sAttribut STRING(79)
tyPC tyTCBase_ProcessIO_Con
Inout
fbFW fbTCBase_FileHandler

fbTCBase_FunctionalBase.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
byIx BYTE
sIdent STRING(47)
Input wArtikelNo WORD
pI POINTER TO BYTE
pQ POINTER TO BYTE

fbTCBase_FunctionalBase.mUpdateI (METH)

Interface variables

Scope Name Type


Return mUpdateI BOOL

fbTCBase_FunctionalBase.mUpdateQ (METH)

Interface variables

Scope Name Type


Return mUpdateQ BOOL

fbTCBase_FunctionalBase.mWrite_CSV (METH)

Interface variables

Scope Name Type


Return mWrite_CSV STRING(127)
Inout fbFW fbTCBase_FileHandler

5.7.2 49x
fbTCBase_Functional_49x (FB)
Interface variables

Scope Name Type Inherited from


xEnable BOOL fbTCBase_FunctionalBase
bySlot BYTE fbTCBase_FunctionalBase
Output
wTerminalNo WORD fbTCBase_FunctionalBase
sID STRING(47) fbTCBase_FunctionalBase

5.7. 060 Functional FB's 60


WagoAppRTU, Release 1.2.13.1

fbTCBase_Functional_49x.mAccess_Load (METH)

Interface variables

Scope Name Type


Return mAccess_Load BOOL
Input sVarName STRING(23)
Inout tyProcessCon tyTCBase_ProcessIO_Con

fbTCBase_Functional_49x.mAccess_Write (METH)

Interface variables

Scope Name Type


Return mAccess_Write STRING(127)
Input sAttribut STRING(79)
tyPC tyTCBase_ProcessIO_Con
Inout
fbFW fbTCBase_FileHandler

fbTCBase_Functional_49x.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
byIx BYTE
sIdent STRING(47)
Input wArtikelNo WORD
pI POINTER TO BYTE
pQ POINTER TO BYTE

fbTCBase_Functional_49x.mUpdateI (METH)

Interface variables

Scope Name Type


Return mUpdateI BOOL

fbTCBase_Functional_49x.mUpdateQ (METH)

Interface variables

Scope Name Type


Return mUpdateQ BOOL

fbTCBase_Functional_49x.mWrite_CSV (METH)

Interface variables

Scope Name Type


Return mWrite_CSV STRING(127)
Inout fbFW fbTCBase_FileHandler

5.7. 060 Functional FB's 61


WagoAppRTU, Release 1.2.13.1

tyTCBase_75x_49xI (STRUCT)

Name Type Comment


byCom BYTE 07: COM Kommunikationsmode: 0 = Prozessdatenkommunikation, 1 =
Registerkommunikation
byStSel BYTE 07: WARN Warnung Einschwingvorgang Messwertkollektion aktiv: 0 =
Ok, 1 = Die selektierten Messwerte der Kollektion sind noch nicht stabil;
ein Einschwingvorgang muss noch abgewartet werden.
byState BYTE Bit | Sel = 0..2 (Lx = L1 / L2 / L3) | Sel = 3 (Status Busklemme) |
byColID BYTE —-+————————————————————+———————
———————————————————————-| 07 |
Unterspannung Lx: 0 = Ok, 1 = unterschritten | keine Bedeutung | 06 |
Überpannung Lx: 0 = Ok, 1 = überschritten | Drehfeldindikator: 0 =
Drehfeld korrekt L1-L2-L3, 1 = falsch Linkslauf | 05 | Überstrom Lx: 0 =
Ok, 1 = überschritten | keine Bedeutung | 04 | Nulldurchgänge Lx: 0 =
InOut:
Ok, 1 = keine Nulldurchgänge | keine Bedeutung | 03 |
Clipping-Spannung Lx: 0 = Ok, 1 = Messbereichsgrenze | keine
Bedeutung | 02 | Clipping-Strom Lx: 0 = Ok, 1 = Messbereichsgrenze |
keine Bedeutung | 01 | Unterschreitung ZC Lx: 0 = Ok, 1 =
Unterschreitung | keine Bedeutung | 00 | keine Bedeutung | keine
Bedeutung | —-+————————————————————+——
————————————————————————————-|
aMetID ARRAY
[1..4] OF
BYTE
aPW ARRAY
[1..4] OF
uTCBase_32Bit

tyTCBase_75x_49xMessChannel (STRUCT)

Name Type Comment


iIx INT
byID BYTE
iBT INT Alternative zu iID, die Bit Nummer für Boolsche Daten
byAv BYTE Verfügbar in Klemme C_494_xxx, C_xxx_495 oder C_494_495
xRA BOOL Voreinstellung für xReadAlways : diesen Wert auslesen, auch wenn er
nicht referenziert wird
InOut:
sTag STRING(11)
sVarName STRING(23)
sEinheit STRING(3)
rSkal_000 REAL
rSkal_001 REAL
uTyp uTCBase_32Bit
uVal uTCBase_32BituRoh : uTCBase_32Bit;

5.7. 060 Functional FB's 62


WagoAppRTU, Release 1.2.13.1

tyTCBase_75x_49xQ (STRUCT)

Name Type Comment


byCom BYTE 07: COM Kommunikations-
mode: 0 = Prozessdatenkommu-
nikation, 1 = Registerkommu-
nikation
byStSel BYTE 07: -
byRes BYTE 06: - 05: - 04: - 03: - 02: - 01-
00: STAT Ausgangsdaten ange-
forderten Statusabfrage: 0 = Sta-
tus Phase L1
InOut: 1 = Status Phase L2 2
= Status Phase L3 3 =
Status Busklemme

byColID BYTE 7 = DC-Messwerte, 9 = AC-


Messwerte
aMetID ARRAY [1..4] OF BYTE
aNotUsed ARRAY [1..4] OF byMetID_01 : BYTE;
uTCBase_32Bit byMetID_02 : BYTE;
byMetID_03 : BYTE;
byMetID_04 : BYTE;

5.7.3 tyTCBase_FunctionalChannel (STRUCT)


Name Type
iIx INT
iID INT
InOut: eTyp INT
sTag STRING(15)
sIdentifier STRING(31)
uVal uTCBase_32Bit

5.8 070 File


5.8.1 fbTCBase_FileHandler (FB)
Interface variables

Scope Name Type Comment


sFileName STRING(79)
diLines DINT
Output diReadLineNo
DINT
tyToL tyTCBase_TokenList
:= (sFileName :=
tyFileInfo tyTCBase_FileInfo
_SYS.mConcat03(TCBase_GC.C_OS_PFAD_FLASH,
TCBase_GC.C_OS_SLASH, ‘ProjectCfg.txt’));

10 BASICS
fbTCBase_FileHandler.mCmpFileInfo (METH)

Interface variables

5.8. 070 File 63


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCmpFileInfo BOOL
Inout tyFI tyTCBase_FileInfo

fbTCBase_FileHandler.mEqual (METH)

Interface variables

Scope Name Type


Return mEqual BOOL
Inout fbFH fbTCBase_FileHandler

fbTCBase_FileHandler.mLineBack (METH)

Interface variables

Scope Name Type


Return mLineBack BOOL

fbTCBase_FileHandler.mOpenR (METH)

Interface variables

Scope Name Type


Return mOpenR BOOL
Input sName STRING(79)

fbTCBase_FileHandler.mReadLine (METH)

Interface variables

Scope Name Type


Return mReadLine BOOL

fbTCBase_FileHandler.mReadStrg (METH)

Interface variables

Scope Name Type


Return mReadStrg BOOL
Input sLine STRING(1023)

fbTCBase_FileHandler.mReplaceChar (METH)

Interface variables

Scope Name Type


Return mReplaceChar BOOL
byOld BYTE
Input
byNew BYTE

5.8. 070 File 64


WagoAppRTU, Release 1.2.13.1

fbTCBase_FileHandler.mReset (METH)

Interface variables

Scope Name Type


Return mReset BOOL

fbTCBase_FileHandler.mSave (METH)

Interface variables

Scope Name Type


Return mSave BOOL
Input sName STRING(79)

fbTCBase_FileHandler.mSplit (METH)

Interface variables

Scope Name Type


Return mSplit BOOL
Input dwLineNr DWORD

fbTCBase_FileHandler.mSplitByName (METH)

Interface variables

Scope Name Type


Return mSplitByName BOOL
Input sName STRING

fbTCBase_FileHandler.mToTextList (METH)

Interface variables

Scope Name Type


Return mToTextList BOOL

20 LOAD
PRIVATE

fbTCBase_FileHandler._mLoad (METH)

Interface variables

Scope Name Type


Return _mLoad STRING(127)
sTag STRING(79)
Input
sDefault STRING(79)
Inout xValid BOOL

5.8. 070 File 65


WagoAppRTU, Release 1.2.13.1

fbTCBase_FileHandler.mLoad_Access (METH)

Interface variables

Scope Name Type


Return mLoad_Access BOOL
Input sTag STRING(79)
Inout tyProcessCon tyTCBase_ProcessIO_Con

fbTCBase_FileHandler.mLoad_BOOL (METH)

Interface variables

Scope Name Type


Return mLoad_BOOL BOOL
sTag STRING(79)
Input
xDefault BOOL

fbTCBase_FileHandler.mLoad_BYTE (METH)

Interface variables

Scope Name Type


Return mLoad_BYTE BYTE
sTag STRING(79)
Input
byDefault BYTE

fbTCBase_FileHandler.mLoad_DINT (METH)

Interface variables

Scope Name Type


Return mLoad_DINT DINT
sTag STRING(79)
Input
diDefault DINT

fbTCBase_FileHandler.mLoad_DWORD (METH)

Interface variables

Scope Name Type


Return mLoad_DWORD DWORD
sTag STRING(79)
Input
dwDefault DWORD

fbTCBase_FileHandler.mLoad_INT (METH)

Interface variables

Scope Name Type


Return mLoad_INT INT
sTag STRING(79)
Input
iDefault INT

5.8. 070 File 66


WagoAppRTU, Release 1.2.13.1

fbTCBase_FileHandler.mLoad_REAL (METH)

Interface variables

Scope Name Type


Return mLoad_REAL REAL
sTag STRING(79)
Input
rDefault REAL

fbTCBase_FileHandler.mLoad_STRING (METH)

Interface variables

Scope Name Type


Return mLoad_STRING STRING(255)
sTag STRING(255)
Input
sDefault STRING(255)

fbTCBase_FileHandler.mLoad_TIME (METH)

Interface variables

Scope Name Type


Return mLoad_TIME TIME
sTag STRING(79)
Input
tDefault TIME

fbTCBase_FileHandler.mLoad_WORD (METH)

Interface variables

Scope Name Type


Return mLoad_WORD WORD
sTag STRING(79)
Input
wDefault WORD

30 WRITE
fbTCBase_FileHandler.mWriteAttribut (METH)

Interface variables

Scope Name Type


Return mWriteAttribut BYTE
sTag STRING(79)
Input
_Any __SYSTEM.AnyType

fbTCBase_FileHandler.mWriteTxt (METH)

Interface variables

Scope Name Type


Return mWriteTxt BOOL
Input sTxt STRING(255)

5.8. 070 File 67


WagoAppRTU, Release 1.2.13.1

5.9 080 SQLite


5.9.1 fbTCBase_SQLiteConnector (FB)
Interface variables

Scope Name Type


Input sSQL_Query STRING(255)
xIsOpen BOOL
Output
xIsPrepared BOOL

010 PRIVATE
fbTCBase_SQLiteConnector.mFinalize (METH)

Interface variables

Scope Name Type


Return mFinalize DINT

fbTCBase_SQLiteConnector.mPrepare (METH)

Interface variables

Scope Name Type


Return mPrepare DINT
Input pQuery POINTER TO BYTE

fbTCBase_SQLiteConnector.mStep (METH)

Interface variables

Scope Name Type


Return mStep DINT

fbTCBase_SQLiteConnector.FB_exit (METH)
Interface variables

Scope Name Type Comment


Return FB_exit BOOL
Input bInCopyCodeBOOL TRUE: The exit method is called in order to leave the instance, which will
be copied afterwards (Online-Change).

fbTCBase_SQLiteConnector.mClose (METH)
Interface variables

Scope Name Type


Return mClose DINT

fbTCBase_SQLiteConnector.mColumn (METH)
Interface variables

5.9. 080 SQLite 68


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mColumn BOOL
diColumn DINT Welche Spalte? (beginnend mit 0)
Input
_VAL __SYSTEM.AnyType

fbTCBase_SQLiteConnector.mDelCntOfRow (METH)
Interface variables

Scope Name Type


Return mDelCntOfRow BOOL
sTable STRING(79)
Input
diCntToDel DINT
Inout diResult DINT

fbTCBase_SQLiteConnector.mGetCntOfRow (METH)
Interface variables

Scope Name Type


Return mGetCntOfRow DINT
Input sTable STRING(79)
Inout diResult DINT

fbTCBase_SQLiteConnector.mGetErrMsg (METH)
Interface variables

Scope Name Type


Return mGetErrMsg STRING

fbTCBase_SQLiteConnector.mLSTR_Add (METH)
Interface variables

Scope Name Type


Return mLSTR_Add INT
Input sTxt STRING(255)

fbTCBase_SQLiteConnector.mLSTR_Init (METH)
Interface variables

Scope Name Type


Return mLSTR_Init INT
Input sTxt STRING(255)

fbTCBase_SQLiteConnector.mOpen (METH)
Interface variables

Scope Name Type


Return mOpen BOOL
Input sFilename STRING
Inout diResult DINT

5.9. 080 SQLite 69


WagoAppRTU, Release 1.2.13.1

fbTCBase_SQLiteConnector.mSQLExecute (METH)
Interface variables

Scope Name Type


Return mSQLExecute BOOL
Input pQuery POINTER TO BYTE
Inout diResult DINT

5.10 090 HTML-Logger


5.10.1 fbTCBase_HtmlLogger (FB)
Interface variables

Scope Name Type


sHtmlFile STRING(79)
aColore_ ARRAY [0..7] OF DWORD
Output
aLogg_ ARRAY [0..7] OF STRING(191)
iFileLine INT

fbTCBase_HtmlLogger.mInit_ (METH)
Interface variables

Scope Name Type


Return mInit_ BOOL
Input sFileName STRING(47)

fbTCBase_HtmlLogger.mLogg01 (METH)
Interface variables

Scope Name Type


Return mLogg01 BOOL
eCOLOR eTCBase_COLORS
Input
sTxt01 STRING(127)

fbTCBase_HtmlLogger.mLogg02 (METH)
Interface variables

Scope Name Type


Return mLogg02 BOOL
eCOLOR eTCBase_COLORS
Input sTxt01 STRING(127)
sTxt02 STRING(127)

fbTCBase_HtmlLogger.mLogg03 (METH)
Interface variables

5.10. 090 HTML-Logger 70


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mLogg03 BOOL
eCOLOR eTCBase_COLORS
sTxt01 STRING(127)
Input
sTxt02 STRING(127)
sTxt03 STRING(127)

5.10.2 fbTCBase_HtmlLoggerML (FB)


Interface variables

Scope Name Type


Output sLoggFile STRING(79)

fbTCBase_HtmlLoggerML.mInit_ (METH)
Interface variables

Scope Name Type


Return mInit_ BOOL
Input sFileName STRING(47)

fbTCBase_HtmlLoggerML.mLogg (METH)
Interface variables

Scope Name Type


Return mLogg BOOL
eT INT
eC INT
sTxt STRING(127)
Input s1 STRING(79)
s2 STRING(79)
s3 STRING(79)
s4 STRING(79)

5.10.3 uTCBase_LoggEnums (UNION)


Name Type
iVal INT
eSys INT
e60870S e870S_Logg
InOut: e60870C e870C_Logg
eDnp3OS eDNP3_LoggerEV
eDnp3MS eDNP3_LoggerEV
e61850S INT
e61850C INT

5.11 400 VISU


5.12 500 User App
5.12.1 itfUserApp_870C (ITF)

5.11. 400 VISU 71


WagoAppRTU, Release 1.2.13.1

itfUserApp_870C.mAppCFG (METH)
Interface variables

Scope Name Type


Return mAppCFG INT
Inout fbAppCfg fb870C_AppCfg

5.12.2 itfUserApp_870S (ITF)


itfUserApp_870S.mAppCFG (METH)
Interface variables

Scope Name Type


Return mAppCFG INT
Inout fbAppCfg fb870S_AppCfg

5.12.3 itfUserApp_DNP3S (ITF)


itfUserApp_DNP3S.mAppCFG (METH)
Interface variables

Scope Name Type


Return mAppCFG INT
Inout fbRTU fbDNP3O_InfObjList

5.12.4 tyTCBase_UserAppPara (STRUCT)


Name Type Initial Comment
xEnable BOOL
byClockSource
BYTE 1 0 = Nur Systemzeit, ohne Synchronisierung, 1 = NTC, 2 =
InOut: Protokoll spezifisch, 3 = NTC und als Fallback Protokoll
spezifisch
ty870 ty870_UserAppPara
tyDNP3 tyDNP3_UserAppPara

5.13 TCBase_GC (GVL)


Attributes:
qualified_only

Scope Name Type


C_TCBase_LastMemMangerDWORD DINT
C_COM_BUFFER_SIZE INT
C_CRLF STRING(2)
C_OS_SLASH STRING(1)
C_HOME_PATH_PLCLOGIC STRING(39)
C_HOME_PATH_PARA STRING(39)
C_HOME_PATH_FILES STRING(39)
C_SDCARD_PATH_FILES STRING(39)
C_RAMDISK_PATH STRING(39)
C_EVENT_FILE_PATH STRING(63)
C_MAX_TOKEN INT

5.13. TCBase_GC (GVL) 72

Constant
WagoAppRTU, Release 1.2.13.1

Scope Name Type


C_DEZ_TO_HEXCHAR ARRAY [0..15] OF BYTE
C_BYTE_BIT ARRAY [0..7] OF BYTE
C_USE_BYTE_ADRESSING BOOL
C_XML_END_BRACKET_LF STRING(7)
C_COMPORT_LASTE INT
C_16BYTE_NULL ARRAY [0..15] OF BYTE
C_LOGG_COLOR_TX DWORD
C_LOGG_COLOR_RX DWORD
U_HASH_I uTCBase_24Bit
U_PERC_I uTCBase_24Bit
U_HASH_Q uTCBase_24Bit
U_PERC_Q uTCBase_24Bit
U_CHAR_LV uTCBase_24Bit
C_LAST_INFOBJ INT
C_U32_NULL uTCBase_32Bit
C_LOGG_FILL_COLOR ARRAY [eTCBase_COLORS.eINFO..eTCBase_COLORS.eTX] OF DWO
C_BIT_00 ARRAY [0..1] OF BYTE
C_BIT_01 ARRAY [0..1] OF BYTE
C_BIT_02 ARRAY [0..1] OF BYTE
C_BIT_03 ARRAY [0..1] OF BYTE
C_BIT_04 ARRAY [0..1] OF BYTE
C_BIT_05 ARRAY [0..1] OF BYTE
C_BIT_06 ARRAY [0..1] OF BYTE
C_BIT_07 ARRAY [0..1] OF BYTE

5.14 TCBase_GV (GVL)


Attributes:
qualified_only

5.14. TCBase_GV (GVL) 73


WagoAppRTU, Release 1.2.13.1

Name Type Comment


Diese folgenden beiden zeilen sind Alternativen. für die ladbare
fbTCBase_IOAccess_LIB
gf-
standalone Version wird fbTCBase_IOAccess_APP benötigt
bIO_Access
gfbIO_Access : fbTCBase_IOAccess_APP; für die e!COCKIPT
Bibliotheks Version wird fbTCBase_IOAccess_LIB benötigt
fbTCBase_MemManager
gfbMem-
Manager
fbTCBase_SysManager
gfbSyst-
Manager
fbTCBase_Nums
gfbNums
fbTCBase_ProcessIO
gfbProces-
sIO
Array mit Pointern auf die Bausteine COM Schnittstetten
fbTCBase_SerialHdl_Base
gfbCOM00
tyTCBase_debugAusgabeCom
tyComDe-
bug
DWORD
gdwCycel-
Cnt
DINT
gdiCycel-
Time
WORD wird alle 100ms um eins erhöht
gwCnt100ms
BOOL TRUE, wenn beim Systemstart eine SD-Card gefunden und das
gxSD-
Verzeichnis WagoAppRtu_Files vorhanden ist
Card_Ready

5.15 fbAppRtuMain_FbExit (FB)


5.15.1 fbAppRtuMain_FbExit.FB_Exit (METH)
Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

5.16 prgAppRtuMain (PRG)


Interface variables

5.15. fbAppRtuMain_FbExit (FB) 74


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial Comment


xEnable BOOL TRUE
sApplication
STRING(47)
Input
aComDef ARRAY [1..9] OF
WagoType-
sCom.I_WagoSysComBase
tyTCBase_UserAppPara
tyUserAppPara
eState eTCBase_MainState
sLicenseInfo
STRING(79)
xStateRun BOOL
uSysTime uTCBase_64Bit
tySysDT_UTCSysTimeRtc.
SYSTIMEDATE
dtSysTimeUTC
DT
sDtStringUTC
STRING(27)
Output
tySysDT_LOCSysTimeRtc.
SYSTIMEDATE
dtSysTimeLOC
DT
sDtStringLOC
STRING(27)
byClockSource
BYTE 0 = Nur Systemzeit, ohne Synchronisierung, 1 =
NTC, 2 = Protokoll spezifisch, 3 = NTC und als
Fallback Protokoll spezifisch
xNtpValid BOOL
sLoggHeaderHtml
STRING(47)
sLoggHeaderCSV
STRING(47)
wEvTriggersWORD
eCnfMode eTCBase_CFGMode eINIT, eCFG_FILE, eCFG_PRG, eCFG_APP

5.16.1 010 CFG


prgAppRtuMain.mCfgCode (METH)
Interface variables

Scope Name Type


Return mCfgCode INT
dwLen DWORD
Input
pTxt POINTER TO BYTE

prgAppRtuMain.mCfgRead (METH)
Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgAppRtuMain.mCfgWrite (METH)
Interface variables

Scope Name Type


Return mCfgWrite BOOL
Input sFileName STRING(79)

5.16. prgAppRtuMain (PRG) 75


WagoAppRTU, Release 1.2.13.1

5.16.2 prgAppRtuMain._Clock (ACT)


00000000001111111111222 01234567890123456789012 ‘YYYY-MM-DD-hh:mm:ss.msm’

5.16.3 prgAppRtuMain.mExit (METH)


Interface variables

Scope Name Type


Return mExit BOOL
Input xFB_Exit BOOL

5.16.4 prgAppRtuMain.mReset (METH)


Interface variables

Scope Name Type


Return mReset BOOL

5.16. prgAppRtuMain (PRG) 76


CHAPTER 6

TC_DNP3

6.1 00 DEL
6.1.1 fDNP3_Version (FUN)
Interface variables

Scope Name Type


Return fDNP3_Version STRING(63)

6.2 01 Common
6.2.1 010 Hilfsbausteine
‘‘ Debug‘‘
prgDNP3_Debugger (PRG)

prgDNP3_Debugger.mRequ (METH)

Interface variables

Scope Name Type


Return mRequ BOOL
Inout tyAPDU tyDNP3_RequAPDU

prgDNP3_Debugger.mResp (METH)

Interface variables

Scope Name Type


Return mResp BOOL
Inout tyAPDU tyDNP3_RespAPDU

77
WagoAppRTU, Release 1.2.13.1

Message
fDNP3_APDU_App (FUN)

Interface variables

Scope Name Type


Return fDNP3_APDU_App BOOL
tyTxAPDU tyDNP3_RespAPDU
Inout
tyData tyDNP3_ComBuffer

fDNP3_AppendGrpHeaderC (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendGrpHeaderC INT
byGrp BYTE
Input
byVar BYTE
Inout tyBuff tyDNP3_ComBuffer
Diese Funktion kopiert einen Informations-Objekt Header (mit Anzahl der Informationsobjekte) in einen Buffer
Sie liefert als Rückgabe den index des Counters, der dann z.B. bei den Events später noch modifiziert werden kann

fDNP3_AppendGrpHeaderR (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendGrpHeaderR BOOL
byGrp BYTE
byVar BYTE
Input
wStr WORD
wEnd WORD
Inout tyBuff tyDNP3_ComBuffer

fDNP3_AppendINT (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendINT BOOL
Input iVal INT
Inout tyBuff tyDNP3_ComBuffer

fDNP3_AppendINTWithIx (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendINTWithIx BOOL
iVal INT
Input
byIx BYTE
Inout tyBuff tyDNP3_ComBuffer

6.2. 01 Common 78
WagoAppRTU, Release 1.2.13.1

fDNP3_AppendLPDU (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendLPDU BOOL
tyLPDU tyDNP3_LPDU
Inout
fbComB fbTCBase_ComBuffer

fDNP3_AppendTxt (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendTxt BOOL
sTxt STRING(255)
Input
iLen INT
Inout tyComB tyDNP3_ComBuffer

fDNP3_AppendUINT (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendUINT BOOL
Input uiVal UINT
Inout tyBuff tyDNP3_ComBuffer

fDNP3_AppendUINTwithIx (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendUINTwithIx BOOL
uiVal UINT
Input
byIx BYTE
Inout tyBuff tyDNP3_ComBuffer

fDNP3_AppendVSTR (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendVSTR BOOL
Input sVSTR STRING
Inout tyBuff tyDNP3_ComBuffer

fDNP3_AppendVSTRwithIx (FUN)

Interface variables

6.2. 01 Common 79
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fDNP3_AppendVSTRwithIx BOOL
sVSTR STRING
Input
byIx BYTE
Inout tyBuff tyDNP3_ComBuffer

fDNP3_CmdMsgSetState (FUN)

Interface variables

Scope Name Type


Return fDNP3_CmdMsgSetState BYTE
Input byState BYTE
Inout tyRx tyDNP3_RequAPDU

fDNP3_HandleFC002_80 (FUN)

Interface variables

Scope Name Type


Return fDNP3_HandleFC002_80 BOOL
tyRxAPDU tyDNP3_RequAPDU
Inout
wII WORD

fDNP3_HandleFC021_22 (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_HandleFC021_22 BOOL
tyRxAPDU tyDNP3_RequAPDU Empfangene APDU
Inout tyLinkPara tyDNP3_ParaAppLink
byEnable BYTE

fDNP3_HandleFC022 (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_HandleFC022 BOOL
Input iClientIx INT
tyRxAPDU tyDNP3_RequAPDU Empfangene APDU
Inout
tyAcRequ tyDNP3_AssignClassRequ

fDNP3_InfObjRangeValid (FUN)

Interface variables

6.2. 01 Common 80
WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return fDNP3_InfObjRangeValid BOOL
byGrp BYTE
Input wStrAdr WORD byVar : BYTE;
wEndAdr WORD
wStrIx WORD
Inout
iCnt INT

fDNP3_QualInterpreter (FUN)

Interface variables

Scope Name Type


Return fDNP3_QualInterpreter POINTER TO BYTE
pRx POINTER TO ARRAY [0..1999] OF BYTE
Input wObjAdrFirst WORD
wObjAdrLast WORD
Inout tyQuali tyDNP3_QualInfo

fDNP3_RequestMirror (FUN)

Interface variables

Scope Name Type


Return fDNP3_RequestMirror BOOL
tyRx tyDNP3_RequAPDU
Inout
tyTx tyDNP3_RespAPDU

fDNP3_SetDeviceAttr (FUN)

Interface variables

Scope Name Type


Return fDNP3_SetDeviceAttr BOOL
byIx BYTE
Input byDTC BYTE
pAdr POINTER TO BYTE
Inout aObjList ARRAY [209..255] OF tyDNP3_DeviceAttrObj

fbDNP3_APDU_Requ (FB)

Interface variables

Scope Name Type


Input tyTxAPDU tyDNP3_RequAPDU
Output bySeqNo BYTE

fbDNP3_APDU_Requ.mAPDU_Prep (METH)

Interface variables

Scope Name Type


Return mAPDU_Prep BYTE
byFC BYTE
Input
bySEQ BYTE

6.2. 01 Common 81
WagoAppRTU, Release 1.2.13.1

fbDNP3_APDU_Requ.mAppend01_BYTE (METH)

Interface variables

Scope Name Type


Return mAppend01_BYTE BOOL
Input byIN BYTE

fbDNP3_APDU_Requ.mAppend02_WORD (METH)

Interface variables

Scope Name Type


Return mAppend02_WORD BOOL
Input wIN WORD

fbDNP3_APDU_Requ.mAppend04_DWORD (METH)

Interface variables

Scope Name Type


Return mAppend04_DWORD BOOL
Input dwIN DWORD

fbDNP3_APDU_Requ.mAppendByteX (METH)

Interface variables

Scope Name Type


Return mAppendByteX BOOL
pData POINTER TO BYTE
Input
wLen WORD

fbDNP3_APDU_Requ.mAppendClock (METH)

Interface variables

Scope Name Type


Return mAppendClock BOOL

fbDNP3_APDU_Requ.mGetObjCnt (METH)

Interface variables

Scope Name Type


Return mGetObjCnt WORD
iPrologSize INT
Input
iObjektSize INT

fbDNP3_APDU_Resp (FB)

Interface variables

6.2. 01 Common 82
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Input tyAPDU tyDNP3_RespAPDU
Output bySeqNo BYTE

10 PRIVATE

fbDNP3_APDU_Resp._Grp000_DA (ACT)

fbDNP3_APDU_Resp._Grp001_BI (ACT)

fbDNP3_APDU_Resp._Grp003_DBI (ACT)

fbDNP3_APDU_Resp._Grp010_BQ (ACT)

fbDNP3_APDU_Resp._Grp020_CI (ACT)

fbDNP3_APDU_Resp._Grp030_AI (ACT)

fbDNP3_APDU_Resp._Grp040_AQ (ACT)

fbDNP3_APDU_Resp._Grp060_CL (ACT)

fbDNP3_APDU_Resp.mAPDU_Close (METH)

Interface variables

Scope Name Type


Return mAPDU_Close BOOL
Inout wII WORD

fbDNP3_APDU_Resp.mAPDU_Prep (METH)

Interface variables

Scope Name Type Comment


Return mAPDU_Prep BYTE
xFIR BOOL First
Input
bySEQ BYTE

fbDNP3_APDU_Resp.mAppendGrpHeader (METH)

Interface variables

Scope Name Type


Return mAppendGrpHeader BOOL
byGrp BYTE
byVar BYTE
Input
wStr WORD
wCnt WORD

fbDNP3_APDU_Resp.mAppendObjData01 (METH)

Interface variables

Scope Name Type


Return mAppendObjData01 BOOL
Input byFlag BYTE

6.2. 01 Common 83
WagoAppRTU, Release 1.2.13.1

fbDNP3_APDU_Resp.mAppendObjData02 (METH)

Interface variables

Scope Name Type


Return mAppendObjData02 BOOL
Input pData POINTER TO BYTE

fbDNP3_APDU_Resp.mAppendObjData03 (METH)

Interface variables

Scope Name Type


Return mAppendObjData03 BOOL
byFlag BYTE
Input
pData POINTER TO BYTE

fbDNP3_APDU_Resp.mAppendObjData03T (METH)

Interface variables

Scope Name Type


Return mAppendObjData03T BOOL
byFlag BYTE
Input pData POINTER TO BYTE
pTime POINTER TO tyDNP3_Clock

fbDNP3_APDU_Resp.mAppendObjData04 (METH)

Interface variables

Scope Name Type


Return mAppendObjData04 BOOL
Input pData POINTER TO BYTE

fbDNP3_APDU_Resp.mAppendObjData05 (METH)

Interface variables

Scope Name Type


Return mAppendObjData05 BOOL
byFlag BYTE
Input
pData POINTER TO BYTE

fbDNP3_APDU_Resp.mAppendObjData05T (METH)

Interface variables

Scope Name Type


Return mAppendObjData05T BOOL
byFlag BYTE
Input pData POINTER TO BYTE
pTime POINTER TO tyDNP3_Clock

6.2. 01 Common 84
WagoAppRTU, Release 1.2.13.1

fbDNP3_APDU_Resp.mGetObjCnt (METH)

Interface variables

Scope Name Type


Return mGetObjCnt WORD
iPrologSize INT
Input
iObjektSize INT

fbDNP3_APDU_Resp.mSetSeqNo (METH)

Interface variables

Scope Name Type


Return mSetSeqNo BYTE
Input byNo BYTE

fbDNP3_APDU_Resp.mSplitt (METH)

Interface variables

Scope Name Type


Return mSplitt BOOL
Inout tyObjList tyDNP3M_RxObjList

Private
tyDNP3_InfObjPar (STRUCT)

Name Type Comment


iIx INT
InOut: wAdr WORD
byGrp BYTE DNP3 Adresse < Laden/Speichern im Basis-FB >
byVar BYTE DNP3 Gruppe < Laden/Speichern im Basis-FB >

tyDNP3_LPDU (STRUCT)

Name Type Initial Comment


wLinkHeaderWORD 16#6405
byLenght BYTE
byControl BYTE
wDestiAdr WORD
wSourceAdr WORD
wHeaderCRC WORD
InOut:
aData ARRAY
[0..281] OF
BYTE
iLPDU_Len INT
wIp_Port WORD neu eingeführt um Nachrichten ein UDP, TCP und TLS
dem Empfänger bzw. Absender zuordnen zu können
dwIp_Adr DWORD

6.2. 01 Common 85
WagoAppRTU, Release 1.2.13.1

tyDNP3_LPDU_List (STRUCT)

Name Type
InOut: aLPDU ARRAY [1..4] OF tyDNP3_LPDU
iCnt INT

tyDNP3_SrvPar (STRUCT)

Name Type Comment


InOut: wMaLinkAdr WORD Master-Station Link-Adresse
wSlLinkAdr WORD Eigene Link-Adresse

tyDNP3_TPDU (STRUCT)

Name Type Comment


aData ARRAY [0..250] 0 ist der Header, 1..250 die Daten
OF BYTE
InOut: byTPDU_Len BYTE
wIp_Port WORD neu eingeführt um Nachrichten ein UDP, TCP und TLS dem
Empfänger bzw. Absender zuordnen zu können
dwIp_Adr DWORD

Rx/Tx
fDNP3_AppendCRC16 (FUN)

Interface variables

Scope Name Type


Return fDNP3_AppendCRC16 BOOL
pData POINTER TO BYTE
Input
iLen INT

fDNP3_Append_LinkMSG (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_Append_LinkMSG BOOL
byControl BYTE
Input wDestiAdr WORD
wSourceAdr WORD
Inout fbComB fbTCBase_ComBuffer fbComB : tyDNP3_ComBuffer;

fDNP3_CompareCRC16 (FUN)

Interface variables

Scope Name Type


Return fDNP3_CompareCRC16 BOOL
pData POINTER TO BYTE
Input
iLen INT

6.2. 01 Common 86
WagoAppRTU, Release 1.2.13.1

fDNP3_LPDU_2_TPDU (FUN)

Interface variables

Scope Name Type


Return fDNP3_LPDU_2_TPDU INT
tyComB tyDNP3_ComBuffer
Inout tyLPDU tyDNP3_LPDU
tyTPDU tyDNP3_TPDU

fbDNP3_Lpdu (FB)

Interface variables

Scope Name Type


tyLPDU tyDNP3_LPDU
Input
tyTPDU tyDNP3_TPDU

fbDNP3_Lpdu.mRxAdd (METH)

Interface variables

Scope Name Type


Inout fbRx fbTCBase_ComBuffer

fbDNP3_Lpdu.mRxDecoder (METH)

Interface variables

Scope Name Type


Return mRxDecoder INT

fbDNP3_TpduList (FB)

Interface variables

Scope Name Type


Output xTxData BOOL

fbDNP3_TpduList.mAddTPDU (METH)

Interface variables

Scope Name Type


Return mAddTPDU BOOL
Inout tyTPDU tyDNP3_TPDU

fbDNP3_TpduList.mRpAPDU_to_TPDU (METH)

Interface variables

6.2. 01 Common 87
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRpAPDU_to_TPDU BOOL
tyAPDU tyDNP3_RespAPDU
Inout
bySegNo BYTE

fbDNP3_TpduList.mRqAPDU_to_TPDU (METH)

Interface variables

Scope Name Type


Return mRqAPDU_to_TPDU BOOL
tyAPDU tyDNP3_RequAPDU
Inout
bySegNo BYTE

fbDNP3_TpduList.mTPDU_to_LPDU (METH)

Interface variables

Scope Name Type


Return mTPDU_to_LPDU BOOL
byControl BYTE
Input wDestiAdr WORD
wSourceAdr WORD
Inout tyLPDU tyDNP3_LPDU

fbDNP3_TpduList.mTPDU_to_RpAPDU (METH)

Interface variables

Scope Name Type


Return mTPDU_to_RpAPDU BOOL
Inout tyAPDU tyDNP3_RespAPDU

fbDNP3_TpduList.mTPDU_to_RqAPDU (METH)

Interface variables

Scope Name Type


Return mTPDU_to_RqAPDU BOOL
Inout tyAPDU tyDNP3_RequAPDU

fbDNP3_TpduList.yTPDU_SIZE (PROP)

tyDNP3_TPDU_Header (STRUCT)

Name Type Comment


byTPDU_Header BYTE
InOut:
byTPDU_Len BYTE Länge einschließlich Header
pData POINTER TO BYTE Pointer auf die Nutzdaten (ohen Header)

Secure Authentication

6.2. 01 Common 88
WagoAppRTU, Release 1.2.13.1

WCRYPTO_fAddAllAlgorithm (FUN)

Interface variables

Scope Name Type


Return WCRYPTO_fAddAllAlgorithm BOOL
Generated on: 01.09.2017 14:36:51 DNP3 configurator version: 1.9.1 - 2017-06-23

WCRYPTO_fAesKeyUnwrap (FUN)

Interface variables

Scope Name Type


Return WCRYPTO_fAesKeyUnwrap DINT
pabWrappedData POINTER TO BYTE
diWrappedLen DINT
Input pabKek POINTER TO BYTE
diKekBits DINT
pabKeyData POINTER TO BYTE
Generated on: 01.09.2017 14:36:51 DNP3 configurator version: 1.9.1 - 2017-06-23

WCRYPTO_fGmac (FUN)

Interface variables

Scope Name Type


Return WCRYPTO_fGmac DINT
pabAad POINTER TO BYTE
diAadLen DINT
sCipher STRING
pIv POINTER TO BYTE
Input diIvLen DINT
pKey POINTER TO BYTE
diKeyLen DINT
pabTag POINTER TO BYTE
diTagLen DINT
Generated on: 01.09.2017 14:36:51 DNP3 configurator version: 1.9.1 - 2017-06-23

WCRYPTO_fHmac (FUN)

Interface variables

Scope Name Type


Return WCRYPTO_fHmac DINT
pabMsg POINTER TO BYTE
diMsgLen DINT
Input sAlg STRING
pKey POINTER TO BYTE
diKeyLen DINT
Inout abSignature ARRAY [0..DNP3_GC.WCRYPT_EVP_MAX_MD_SIZE] OF BYTE
Generated on: 01.09.2017 14:36:51 DNP3 configurator version: 1.9.1 - 2017-06-23

6.2. 01 Common 89
WagoAppRTU, Release 1.2.13.1

fDNP3_APDU_Prep_SA (FUN)

Interface variables

Scope Name Type


Return fDNP3_APDU_Prep_SA BOOL
xFIR BOOL
Input xUnSolic BOOL
byFC BYTE
tyTxAPDU tyDNP3_RespAPDU
Inout
bySEQ BYTE

fDNP3_AggrReq (FUN)

Interface variables

Scope Name Type


Return fDNP3_AggrReq BOOL
tyRxAPDU tyDNP3_RequAPDU
tyRxAuthPara tyDNP3_AuthPara
Inout tyLocalAuthPara tyDNP3_AuthPara
tyMAC_Tx_v1 tyDNP3_RespAPDU
tyLinkParaMAC tyDNP3_LinkPara

fDNP3_CheckUsrRole (FUN)

Interface variables

Scope Name Type


Return fDNP3_CheckUsrRole BOOL
tyRxAPDU tyDNP3_RequAPDU
Inout
tyLocalAuthPara tyDNP3_AuthPara

fDNP3_CreateRandom (FUN)

Interface variables

Scope Name Type


Return fDNP3_CreateRandom BOOL
Inout tyLocalAuthPara tyDNP3_AuthPara

fDNP3_DeleteSessKey (FUN)

Interface variables

Scope Name Type


Return fDNP3_DeleteSessKey BOOL
Input iIx INT

fDNP3_DeleteUpKey (FUN)

Interface variables

6.2. 01 Common 90
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fDNP3_DeleteUpKey BOOL
Input iIx INT

fDNP3_DeleteUser (FUN)

Interface variables

Scope Name Type


Return fDNP3_DeleteUser BOOL
Input iIx INT

fDNP3_GenHeader (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_GenHeader BOOL
byGr BYTE Gruppe
byVar BYTE Variation
Input
byQua BYTE Qaulifier
byCnt BYTE Anzahl
Inout tyTxAPDU tyDNP3_RespAPDU

fDNP3_GetSessionKey (FUN)

Interface variables

Scope Name Type


Return fDNP3_GetSessionKey BOOL
tyRxAPDU tyDNP3_RequAPDU
tyLocalAuthPara tyDNP3_AuthPara
Inout
tyRxAuthPara tyDNP3_AuthPara
tyMAC_Tx tyDNP3_RespAPDU

fDNP3_GetUpdateKey (FUN)

Interface variables

Scope Name Type


Return fDNP3_GetUpdateKey BOOL
tyRxAPDU tyDNP3_RequAPDU
Inout tyLocalAuthPara tyDNP3_AuthPara
tyRxAuthPara tyDNP3_AuthPara

fDNP3_InitMAC (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_InitMAC BOOL
Input xSerialLink BOOL TRUE = Serial Connection, FALSE = Ethernet
Connection
Inout tyLocalAuthPara tyDNP3_AuthPara

6.2. 01 Common 91
WagoAppRTU, Release 1.2.13.1

fDNP3_InitSecPara (FUN)

Interface variables

Scope Name Type


Return fDNP3_InitSecPara BOOL
Input byKeyWrapAlgorithm BYTE

fDNP3_InitUpdateKey (FUN)

Interface variables

Scope Name Type


Return fDNP3_InitUpdateKey ARRAY [1..32] OF BYTE
by01 BYTE
by02 BYTE
by03 BYTE
by04 BYTE
by05 BYTE
by06 BYTE
by07 BYTE
by08 BYTE
by09 BYTE
by10 BYTE
by11 BYTE
by12 BYTE
by13 BYTE
by14 BYTE
by15 BYTE
by16 BYTE
Input by17 BYTE
by18 BYTE
by19 BYTE
by20 BYTE
by21 BYTE
by22 BYTE
by23 BYTE
by24 BYTE
by25 BYTE
by26 BYTE
by27 BYTE
by28 BYTE
by29 BYTE
by30 BYTE
by31 BYTE
by32 BYTE
bySize BYTE

fDNP3_IvGmac (FUN)

Interface variables

6.2. 01 Common 92
WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return fDNP3_IvGmac BOOL
Input byVar BYTE Variation bestimmt die Daten
tyLocalAuthPara tyDNP3_AuthPara
Inout tyLinkParaMAC tyDNP3_LinkPara
abyIv ARRAY [0..11] OF BYTE

fDNP3_IvGmac_v10 (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_IvGmac_v10 BOOL
Input byVar BYTE Variation bestimmt die Daten
tyMAC_Rx tyDNP3_RequAPDU
tyLocalAuthPara tyDNP3_AuthPara
Inout
tyLinkParaMAC tyDNP3_LinkPara
abyIv ARRAY [0..11] OF BYTE

fDNP3_MAC_AggrReq (FUN)

Interface variables

Scope Name Type


Return fDNP3_MAC_AggrReq BOOL
tyMAC_Tx_v1 tyDNP3_RespAPDU
tyLocalAuthPara tyDNP3_AuthPara
Inout
tyRxAPDU tyDNP3_RequAPDU
tyLinkParaMAC tyDNP3_LinkPara

fDNP3_MAC_v10 (FUN)

Interface variables

Scope Name Type


Return fDNP3_MAC_v10 BOOL
tyMAC_Rx tyDNP3_RequAPDU
Inout tyLocalAuthPara tyDNP3_AuthPara
tyLinkParaMAC tyDNP3_LinkPara

fDNP3_MAC_v15_Req (FUN)

Interface variables

Scope Name Type


Return fDNP3_MAC_v15_Req BOOL
tyMAC_Rx tyDNP3_RequAPDU
Inout tyLocalAuthPara tyDNP3_AuthPara
tyLinkParaMAC tyDNP3_LinkPara

fDNP3_MAC_v15_Res (FUN)

Interface variables

6.2. 01 Common 93
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fDNP3_MAC_v15_Res BOOL
tyMAC_Rx tyDNP3_RequAPDU
tyLocalAuthPara tyDNP3_AuthPara
Inout
tyLinkParaMAC tyDNP3_LinkPara
tyTxAPDU tyDNP3_RespAPDU

fDNP3_MAC_v2 (FUN)

Interface variables

Scope Name Type Comment


Return fDNP3_MAC_v2 BOOL
Input xCFc BOOL TRUE = Challenging a critical function.
tyMAC_Tx_v1 tyDNP3_RespAPDU
Inout tyLocalAuthPara tyDNP3_AuthPara
tyLinkParaMAC tyDNP3_LinkPara

fDNP3_MAC_v5 (FUN)

Interface variables

Scope Name Type


Return fDNP3_MAC_v5 BOOL
tyMAC_Rx_v6 tyDNP3_RequAPDU
Inout tyLocalAuthPara tyDNP3_AuthPara
tyLinkParaMAC tyDNP3_LinkPara

fDNP3_ReqUser (FUN)

Interface variables

Scope Name Type


Return fDNP3_ReqUser BOOL
Input byVar BYTE
tyRxAPDU tyDNP3_RequAPDU
Inout tyLocalAuthPara tyDNP3_AuthPara
tyRxAuthPara tyDNP3_AuthPara

fDNP3_SetUpKeyTime (FUN)

Interface variables

Scope Name Type


Return fDNP3_SetUpKeyTime BOOL
Input iIx INT

fDNP3_Thresholds (FUN)

Interface variables

6.2. 01 Common 94
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fDNP3_Thresholds BOOL
Input byIx BYTE
tyLocalAuthPara tyDNP3_AuthPara
Inout
tyRxAPDU tyDNP3_RequAPDU

fDNP3_g120_v10_UserChange (FUN)

Interface variables

Scope Name Type


Return fDNP3_g120_v10_UserChange BOOL
tyRxAPDU tyDNP3_RequAPDU
Inout
tyLocalAuthPara tyDNP3_AuthPara

fDNP3_g120_v12_UpdateKeyReply (FUN)

Interface variables

Scope Name Type


Return fDNP3_g120_v12_UpdateKeyReply BOOL
tyTxAPDU tyDNP3_RespAPDU
Inout
tyLocalAuthPara tyDNP3_AuthPara

fDNP3_g120_v1_ChallengeData (FUN)

Interface variables

Scope Name Type


Return fDNP3_g120_v1_ChallengeData BOOL
tyTxAPDU tyDNP3_RespAPDU
Inout
tyLocalAuthPara tyDNP3_AuthPara

fDNP3_g120_v2_ReplyData (FUN)

Interface variables

Scope Name Type


Return fDNP3_g120_v2_ReplyData BOOL
tyRxAPDU tyDNP3_RequAPDU
Inout tyRxAuthPara tyDNP3_AuthPara
tyLocalAuthPara tyDNP3_AuthPara

fDNP3_g120_v5_KeyStatus (FUN)

Interface variables

Scope Name Type


Return fDNP3_g120_v5_KeyStatus BOOL
tyTxAPDU tyDNP3_RespAPDU
Inout
tyLocalAuthPara tyDNP3_AuthPara

6.2. 01 Common 95
WagoAppRTU, Release 1.2.13.1

fDNP3_g120_v7_Error (FUN)

Interface variables

Scope Name Type


Return fDNP3_g120_v7_Error BOOL
Input tyAuthErr tyDNP3_AuthErr
tyTxAPDU tyDNP3_RespAPDU
Inout
tyLocalAuthPara tyDNP3_AuthPara

fInitSecKeyDW (FUN)

Interface variables

Scope Name Type


Return fInitSecKeyDW ARRAY [1..32] OF BYTE
dw01 DWORD
dw02 DWORD
dw03 DWORD
dw04 DWORD
Input
dw05 DWORD
dw06 DWORD
dw07 DWORD
dw08 DWORD

prgDNP3_SecAuth_Timer (PRG)

Interface variables

Scope Name Type


Input iState INT

fDNP3_ArrayToWord (FUN)
Interface variables

Scope Name Type


Return fDNP3_ArrayToWord WORD
Input pIn POINTER TO ARRAY [0..1] OF BYTE

fDNP3_CheckModemInit (FUN)
Interface variables

Scope Name Type


Return fDNP3_CheckModemInit BOOL
tyExtPara tyDNP3_SerialExtPara
Inout
sLastModemError STRING(255)

fDNP3_ModemAnswer (FUN)
Interface variables

6.2. 01 Common 96
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fDNP3_ModemAnswer BOOL
sTxt STRING
Input
sRx STRING

fDNP3_ModemTxt (FUN)
Interface variables

Scope Name Type


Return fDNP3_ModemTxt BOOL
sModemRx STRING(32)
Inout
localRx tyDNP3_ComBuffer

fDNP3_RestartTON (FUN)
Interface variables

Scope Name Type


Return fDNP3_RestartTON BOOL
Input tTime TIME
Inout fbTON Standard.TON

fDNP3_SysComSendTx (FUN)
Interface variables

Scope Name Type


Return fDNP3_SysComSendTx BOOL
Input sTxt STRING
Inout localTx tyDNP3_ComBuffer

fDNP3_WordToArray (FUN)
Interface variables

Scope Name Type


Return fDNP3_WordToArray BOOL
wVal WORD
Input
pIn POINTER TO ARRAY [0..1] OF BYTE

fbDNP3_WriteReqList (FB)
Interface variables

6.2. 01 Common 97
WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


xActiv BOOL
byClassMask BYTE
Input byClassMaskAll BYTE
byClassState BYTE
wSubGrp60Done WORD wird für die Verwal-
tung von APDU’s
mit mehreren Frames
benötigt (siehe Funktion
“fDNP3_HandleFC001”).
Wird ab V 01.01.12
Bitweise verwendet
tyRequ tyDNP3_ReadRequLine
Output xQualInfoValid BOOL
tyQualInfo tyDNP3_QualInfo

fbDNP3_WriteReqList.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3_WriteReqList.mLoopEnd (METH)

Interface variables

Scope Name Type


Return mLoopEnd BYTE
xCont BOOL
Input
wAdr WORD

fbDNP3_WriteReqList.mMapp (METH)

Interface variables

Scope Name Type


Return mMapp BOOL
wObjAdrStr WORD
Input
wObjAdrEnd WORD

fbDNP3_WriteReqList.mNext (METH)

Interface variables

Scope Name Type


Return mNext INT

fbDNP3_WriteReqList.mReadRequest (METH)

Interface variables

6.2. 01 Common 98
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mReadRequest BYTE
tyRxAPDU tyDNP3_RequAPDU
Inout
fbEvent fbDNP3O_EventBuffer

fbDNP3_WriteReqList.mSet (METH)

Interface variables

Scope Name Type


Return mSet BOOL
byGrp BYTE
Input byVar BYTE
byQul BYTE

fbDNP3_WriteReqList.mSetIx (METH)

Interface variables

Scope Name Type


Return mSetIx BOOL
iIx INT
byGrp BYTE
Input
byVar BYTE
byQul BYTE

6.2.2 020 Clock


60870/61850 TO DNP3
fDNP3_CLK_FROM_IEC60870 (FUN)

Interface variables

Scope Name Type


Return fDNP3_CLK_FROM_IEC60870 BOOL
Input pTimeStamp POINTER TO tyDNP3_IEC60870_CP56
Inout tyDNP3Time tyDNP3_AbsTime

fDNP3_CLK_FROM_IEC61850 (FUN)

Interface variables

Scope Name Type


Return fDNP3_CLK_FROM_IEC61850 BOOL
Input pTimeStamp POINTER TO tyDNP3_IEC61850_TimeStamp
Inout tyDNP3Time tyDNP3_AbsTime

fDNP3_CLK_FROM_DT (FUN)
Interface variables

6.2. 01 Common 99
WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fDNP3_CLK_FROM_DT DWORD
dtIn DT
Input
dwMS DWORD
dwLow DWORD
Inout
wHigh WORD

fDNP3_CLK_TO_DT (FUN)
Interface variables

Scope Name Type


Return fDNP3_CLK_TO_DT DT
dwLow DWORD
Input
wHigh WORD

fbDNP3_Clock (FB)
Interface variables

Scope Name Type Initial Comment


bySyncMode BYTE 2 0 = deaktiviert, 1 = einmalig nach
Input Verbindungsaufbau, 2 = nach
Verbindungsaufbau und zyklisch
tonNeedTimeStandard. STRUCT(PT :=
TON TIME#10m0s0ms)
xSetRTC BOOL TRUE If TRUE, received data will by written to
Controller RTC
dwLow DWORD
wHigh WORD
Output xNeverSync BOOL TRUE Ist TRUE, wenn die Uhr noch nie
synchronisiert wurde
xNeedTime BOOL TRUE
diCycle DINT 20

fbDNP3_Clock.mInit (METH)

Interface variables

Scope Name Type Initial Comment


Return mInit BOOL
tNTP TIME TIME#10m0s0ms
Input
xRTC BOOL TRUE Time afer Outstation automatic set ‘Needtime-Bit in II’

fbDNP3_Clock.mRxTime (METH)

Interface variables

Scope Name Type Comment


Return mRxTime BOOL
pRx POINTER TO ARRAY [0..5] OF BYTE
Input
xSetNeedTime BOOL pointer to the Time-Date

6.2. 01 Common 100


WagoAppRTU, Release 1.2.13.1

6.2.3 090 VISU


6.2.4 eDNP3_LoggerEV (ENUM)
Attributes:
qualified_only
Name Initial Comment
3000 eNULL := 0,
eFIRST
‘, FB_EXIT z.B. durch Down-
eOS_FB_EXIT load, ‘;
‘, Konfiguration geändert, ‘;
eOS_CONFIG_CHANGED
‘, Reset RTU empfangen, ‘;
eOS_REMOTE_RTU_RESET
‘, TCP-Verbindung verweigert,
eOS_TCP_CONNETION_REJECTED weil: ‘;
‘, Empfangenes Paket wird ig-
eOS_RxPackage_NOT_HANDELT noriert, weil: ‘;
‘, Empfangenes Paket wird ig-
eOS_RxPackage_NOT_PROCESSED noriert, weil: ‘;
‘, FC01 Read Fehler weil: ‘;
eOS_FC01_READ
‘, FC02 Write Fehler weil: ‘;
eOS_FC02_WRITE
‘, FC03 Select verweigert weil:
eOS_FC03_SELECT ‘;
‘, FC04 Operate verweigert
eOS_FC04_OPERATE weil: ‘;
‘, FC05/06 Direct Operate ver-
eOS_FC05_OPERATE_DIRECT weigert weil: ‘;
‘, FC07 Freeze verweigert weil:
InOut: eOS_FC07_FREEZE ‘;
‘, Ethernet-Linkverbindung ‘;
eOS_ETH_LINK_STATE
‘, Serielle-Linkverbindung ‘;
eOS_COM_LINK_STATE
‘, Socket-Fehler beim SysSock-
eOS_SysSockSend_ERROR Send, ‘;
‘, Socket-Fehler beim SysSock-
eOS_SysSockRecv_ERROR Recv, ‘;
‘, Retain Event Overflow
eOS_ReatinEV_Overflow (schreiben auf SD-Card zu
langsam), ‘;
‘, Fehler beim schreiben oder
eOS_RetainEV_FileError lesen der Event-File von SD-
Card, ‘;
‘, Allgemein: Fehler beim Alloc
eCM_AllocFailt (nicht genug freier Speicher), ‘;
‘, Allgemein: Fehler beim
eCM_CountFailt Erzeugen (zuviele Elemente), ‘;

eLAST prgDNP3O_Main.mLogger(eEvent := eDNP3_L


sInfo :=
_SYS.mConcat03(‘FC
in last Message: ‘,
BYTE_TO_STRING(tyRxAPDU_.byFc),
‘, expected: 3’));

6.2. 01 Common 101


WagoAppRTU, Release 1.2.13.1

6.2.5 tyDNP3_Clock (STRUCT)


Name Type
InOut: dwLow DWORD
wHigh WORD

6.2.6 tyDNP3_FirstLevelEventBuffer (STRUCT)


Name Type Comment
aEV ARRAY [0..100] OF
tyDNP3_Event
aCL ARRAY [0..100] OF
InOut: uDNP3_EvClassList
iCnt INT
aClientCnt ARRAY für jeden Client vorab die Information, wieviele
[1..DNP3_GC.C_NUMS_OF_CLIENTS]
Event’s für Ihne bestimmt sind
OF INT

6.2.7 tyDNP3_GVQ (STRUCT)


Name Type
InOut: byGrp BYTE
byVar BYTE

6.2.8 tyDNP3_ObjRxData (STRUCT)


Name Type Comment
uObjCnt uTCBase_32Bit
wAdrFirst WORD
wAdrLast WORD
InOut:
iAdrLen INT
byQua BYTE
tyEV tyDNP3M_EventData Die folgenden Danten werden für die Übergabe an die FB’s
verwendet

6.3 010 Outstation


6.3.1 010 DUT
10 PARA

6.3. 010 Outstation 102


WagoAppRTU, Release 1.2.13.1

tyDNP3_ParaAppLink (STRUCT)

Name Type Comment


xUNS_Supported
BOOL
byUNS_Mode BYTE Unsolicited responses sind aus der Konfiguration
freigegeben oder eben gesperrt
tUNS_ConfirmTime
TIME Mode | Hold-Count | Hold-Timer | Timer-Mode |
Anregung der Übertragung wenn:
iUNS_Retrys INT Zeit die auf die Konfiguration einer Unsolicited responses
InOut:
gewartet wird
tUNS_RetryTimer
TIME Anzahl der Wiederholungen die ein Unsolicited responses
gesendet wird, wenn er nicht bestätigt wird
iUnsClsConfigMode
INT 0 oder 1: alle Classen verwenden die gleichen Parameter,
> 1 Parameter je Klasse seperat
aUNS_ClsParaARRAY [1..3] OF
tyDNP3_ParaAppUNS

tyDNP3_ParaAppUNS (STRUCT)

Name Type Initial Comment


xUNS_ClsEnable
BOOL TRUE WAT30267: ab Version 01.01.11.00 es können aus der
Konfiguration einzelne Klassen für die Übertragung per Unsolicited
InOut:
ausgeschlossen werden
iUNS_ClsInhibitCnt
INT
tUNS_ClsInhibitTime
TIME Verzögerung-Counter für das Auslösen eines Unsolicited Respons

6.3. 010 Outstation 103


WagoAppRTU, Release 1.2.13.1

tyDNP3_ParaGlobal (STRUCT)

Name Type Initial Comment


BYTE 1
byDfltVrn_Gr121 Security Statistic 32-Bit: (1 = with flag)
BYTE 1
byDfltVrn_Gr122 Security Statistic Event 32-Bit: (2 = with Time)
BYTE 16#10
byQualObjPrefixCode Wenn möglich (höchste Objekt Adresse < 256), wird 1
Octet (0x1_) für den Object Prefix verwendet
BYTE 16#7
byQualRangeSpeciCode Standardmäßig wird 1 Octet (0x_7) für den Qualifer Range
verwendet.
xLevel_II_Restriction
BOOL Wenn TRUE, unterstützt die Bibliothek ausschließlich
Level 2 Funktionalitäten
iMaxRespApduSize
INT 2048 1.5.1) Maximum number of octets Transmitted In An
Application Layer Fragment other than File Transfer
iMaxRequApduSize
INT 2048 1.5.????) Maximum number of octets Recieve In An
Application Layer Fragment other than File Transfer
4
iMaxNumsOfCntrPerReq
INT 1.5.5) Maximum Number of Objects Allowed in a Single
InOut: Control Request for CROB
BOOL TRUE
xSupportOfMixCntrReq 1.5.8) Supports Mixing Object Groups (AOBs, CROBs,
and Data Sets) in the Same Control Request
tDefaultCntrTime
TIME TIME#1s0ms
tSelOperTimeout
TIME TIME#500ms Default Ausführungszeit, für Operation, wenn vom Master
Zeit = 0 übertragen wird
TIME TIME#10s0ms Timeout-Überwachung zwischen einem Select- und einem
tAppConfirmTimeout
Operate-Request
DINT 4000
diEventsPerClient Timeout-Überwachung für das warten auf ein
Applikationconfirm vom Master
BYTE 0
byEventBufRetain maximale Anzahl der Events die verarbeitet werden
(immer ein ganzes vielfaches von 200)
BYTE 0
byEventBufMode Eventspeicher Verhalten bei Überlauf: (0 = neuste Events
werden verworfen, 1 = älteste Events werden
überschrieben)

90 AUTH
DNP3_ENUM_ERRCODE (ENUM)

Name Initial Comment


0 <0> := not used
DNP3_ERR_NONE_
1 <1> := Authentication failed
DNP3_ERR_AUTHENTICATION_FAIL
4 <4> := Aggressive Mode not supported
DNP3_ERR_AGGR_MODE_NOT_SUPPORTED
5 <5> := MAC algorithm not supported
DNP3_ERR_MAC_NOT_SUPPORTED
6 <6> := Key Wrap algorithm not supported
DNP3_ERR_KEY_WRAP_NOT_SUPPORTED
InOut: 7 <7> := Authorization failed
DNP3_ERR_AUTHORIZATION_FAIL
8 <8> := Update Key Change Method not
DNP3_ERR_UPDATE_KEY_CHANGE
permitted
9 <9> := Invalid Signature
DNP3_ERR_INVALID_SIGNATURE
10 <10> := Invalid Certification Data
DNP3_ERR_INVALID_CERTIFICATION
11 <11> := Unknown User
DNP3_ERR_UKNOWN_USER
12 <12> := Max Session Key Status Requests
DNP3_ERR_MAX_SESSION_KEY_REQ
Exceeded

6.3. 010 Outstation 104


WagoAppRTU, Release 1.2.13.1

DNP3_ENUM_KEYSTATUS (ENUM)

Name Initial Comment


0 <0> := not used.
DNP3_KEY_NONE
1 <1> := OK
DNP3_KEY_OK
InOut: 2 <2> := NOT_INIT
DNP3_KEY_NOT_INIT
3 <3> := COMM_FAIL
DNP3_KEY_COMM_FAIL
4 <4> := AUTH_FAIL.
DNP3_KEY_AUTH_FAIL

DNP3_ENUM_SSLSOCKSTATE (ENUM)

Name Initial
0
SocketState_Invalide
1
SocketState_Valide
2
SocketState_Connecting
InOut: 3
SocketState_Connected
4
SocketState_Reading
5
SocketState_Assepting
6
SocketState_AsseptFull

tyDNP3_AuthErr (STRUCT)

Name Type Comment


xKeyErr BOOL TRUE = Transmit Key Change Sequence Number, FALSE =
InOut:
Transmit Challenge Sequence Number
eErrCode DNP3_ENUM_ERRCODE

6.3. 010 Outstation 105


WagoAppRTU, Release 1.2.13.1

tyDNP3_AuthPara (STRUCT)

Name Type Initial Comment


xGMAC BOOL
dwCSQ DWORD Challenge Sequence
Number (CSQ)
dwCSQ_UNS DWORD Challenge Sequence
Number (CSQ) sent
in DNP3 unsolicited
responses
dwKSQ DWORD Key change sequence
number (KSQ)
dwHelp DWORD Help Variable for copy
wUSR WORD
User Number <0>
= Unknown,
<1> = default,
<2..65535> =
Chosen by the
master station
to be associated
with a particular
user

wLen WORD Länge für die zu


kopierenden Daten
byChangeReason BYTE 1
Reason for Challenge,
<0> := not used.
<1> := CRITI-
CAL. Challeng-
ing a critical
function. The
Responder shall
include the
entire
previous
ASDU
trans-
mitted
by the
Re-
sponder
when
calcu-
lating
the
MAC
Value,
as well
as any
further
protocol-
specific
infor-
InOut: mation.
<2..255> := re-
served for future
use.

6.3. 010 byLocalMAC


Outstation BYTE Local MAC Algorithm,
106
depends on type of
Connection Ethernet or
Serial
WagoAppRTU, Release 1.2.13.1

6.3. 010 Outstation 107


WagoAppRTU, Release 1.2.13.1

tyDNP3_AuthUser (STRUCT)

Name Type Initial Comment


sName STRING(79) User Name
aUpdateKey ARRAY [1..32] OF Users Update Key
BYTE
aMonSKey ARRAY [1..32] OF Users Monitoring Di-
BYTE rection Session Key
aConSKey ARRAY [1..32] OF Users Control Direc-
BYTE tion Session Key
dwSCS DWORD Status Change Se-
quence Number (SCS)
wAID WORD 0
This value shall uniquely identify the a
which the error
occurred. The
definition of a
DNP3 associ-
ation may be
found in Annex
C. Because of
the variety of
configurations of
implementations,
the Association
ID may corre-
spond to different
combinations of
DNP3 addresses,
IP addresses, and
port numbers or
identifiers on the
InOut:
master and out-
station. However,
whatever map-
ping is used, the
combination of
User Number and
Association ID
shall be unique
within the device.

wUSR WORD User Number


wUsrRole WORD User Role
wExpInterval WORD Expire Interval for
User Role (Days)
wKeyMsgCount WORD
wKeyStatusCount WORD
wLen WORD
tExpire TIME Rest der Expire Zeit für
den Update Key
tonKeyChange Standard.TON Key Change Timer, in
dieser Zeit wird ein
Key Change message
erwartet
tyUsrThresholds tyDNP3_UsrThresholds
eKeyStatus DNP3_ENUM_KEYSTATUS 2 <2> := NOT_INIT
xValidUpdateKey BOOL TRUE wenn Upate Key
nach Change erneuert
6.3. 010 xValidSessionKey
Outstation BOOL TRUE wenn Upate108
Key
nach Change erneuert
WagoAppRTU, Release 1.2.13.1

tyDNP3_IniSecAuth (STRUCT)

Name Type
InOut: xInitSecAuth BOOL
dwKSQ_GMAC DWORD

tyDNP3_Thresholds (STRUCT)

Name Type Initial Comment


wUnExpMsg WORD 0 Unexpected Messages
wAuthorFail WORD 1 Authorization Failures
wAuthenFail WORD 2 Authentication Failures
wReplyTimeout WORD 3 Reply Timeouts
wAuthReKeys WORD 4 Rekeys Due to Authentication Failure
wTotalMsgSent WORD 5 Total Messages Sent
wTotalMsgReceived WORD 6 Total Messages Received
wCriticalMsgSent WORD 7 Critical Messages Sent
wCriticalReceived WORD 8 Critical Messages Sent
wDiscardedMsg WORD 9 Discarded Messages
wErrMsgSent WORD 10 Error Messages Sent
InOut:
wErrorMsgReceived WORD 11 Error Messages Received
wSuccsessfulAuth WORD 12 Successful Authentications
wSessKeyChanged WORD 13 Session Key Changes
wSessKeyChangedFail WORD 14 Failed Session Key Changes
wUpdateKeyChanged WORD 15 Update Key Changes
wUpdateKeyChangedFail WORD 16 Failed Update Key Changes
wReyKeysRestart WORD 0 17 Rekeys Due to Restarts, Only for Master
wAuthenFail_ WORD
wReplyTimeout_ WORD
wAuthReKeys_ WORD
wErrMsgSent_ WORD
tRepTimeOut TIME

tyDNP3_UserUpKey (STRUCT)

Name Type
InOut:
atonUserUpKey ARRAY [1..DNP3_GC.C_DNP3_AUTH_MAX_USERS] OF TON

tyDNP3_UsrThresholds (STRUCT)

Name Type
wKeyMsgCount WORD
InOut:
wKeyStatusCount WORD
tExKeyChangeTimeOut TIME

eDNP3_ConnectorTyp (ENUM)
Attributes:
qualified_only

6.3. 010 Outstation 109


WagoAppRTU, Release 1.2.13.1

Name Initial
0
eDNP3_CT_NULL
eDNP3_CT_UDP
InOut:
eDNP3_CT_TCP
eDNP3_CT_TLS
100
eDNP3_CT_COM

eDNP3_Target (ENUM)

Name
ENUMDNP3_TARGET_87x
InOut: ENUMDNP3_TARGET_88x
ENUMDNP3_TARGET_IPC
ENUMDNP3_TARGET_PFC200

tyDNP3O_WriteGrp034 (STRUCT)

Name Type
byVar BYTE
InOut: wAdrStart WORD
wAdrEnd WORD
uVal uTCBase_32bit

tyDNP3_AbsTime (STRUCT)

Name Type
InOut: dwLow DWORD
wHigh WORD

tyDNP3_AdrGrp (STRUCT)

Name Type Initial


InOut: wStartAdr WORD
iSubTypIx INT 1

tyDNP3_AnaOutObj (ALIAS)
tyDNP3_AssignClassDOH (STRUCT)

Name Type Comment


byGrp BYTE Gruppe
byVar BYTE Variation
byQual BYTE 16#00: Range mit Start- und Stop-Index (jeweils 1 Byte für die beiden Index)
byClass BYTE 16#01: Range mit Start- und Stop-Index (jeweils 2 Byte für die beiden Index)
InOut: 16#06: alle 16#17: Liste bestehend aus Anzahl (1 Byte) und dann vor jedem
Objekt einen Index (ebenfalls 1 Byte) 16#28: Liste bestehend aus Anzahl (2
Byte) und dann vor jedem Objekt einen Index (ebenfalls 2 Byte) ELSE: nicht
unterstützt
wStartIx WORD optional wenn byQual <> 16#06
iCnt INT optional

6.3. 010 Outstation 110


WagoAppRTU, Release 1.2.13.1

tyDNP3_AssignClassRequ (STRUCT)

Name Type Comment


aDOH ARRAY [1..100] OF tyDNP3_AssignClassDOH
InOut:
iCnt INT Anzahl
sResult STRING(79) Ergebnis des Interpreters

6.3. 010 Outstation 111


WagoAppRTU, Release 1.2.13.1

tyDNP3_BinOutControl (STRUCT)

Name Type Comment


xClear BOOL in DNP3 gibt es eine Vielzahl
von Output-Control Modis
definiert. Um diese besser
bearbeiten zu können, werden
die gepackt empfangenen Daten
zunächst mal in diese Struktur
entpackt.
byOpType [BYTE;
(* siehe
A.8.1.3.2 *)] (*
0 = NUL ) ( 1 =
PULSE_ON
) ( 2 =
PULSE_OFF ) (
3 = LATCH_ON
) ( 4 =
LATCH_OFF
) ( 5..15 =
UNDEFINED
*)
xQU : BOOL; xCR
: BOOL; byTCC :
BYTE; (* siehe *)
(* 0 = NUL
) ( 1 =
CLOSE ) (
2 = TRIP )
( 3 = RE-
SERVED
*)
InOut:
byCntr BYTE
byCnt BYTE
byState BYTE siehe Tabelle 11-7
diOnTime DINT
0 = SUCCESS 1
= TIMEOUT 2
= NO_SELECT
3 = FOR-
MAT_ERROR 4 =
NOT_SUPPORTED
5 = AL-
READY_ACTIVE
6 = HARD-
WARE_ERROR
7 = LOCAL 8 =
TOO_MANY_OBJS
9 =
NOT_AUTHORIZED
10 = AUTOMA-
TION_INHIBIT
11 = PROCESS-
ING_LIMITED 12 =
OUT_OF_RANGE
13 .. 125 = RESERVED 126 =
NON_PARTICIPATING
127 = UNDEFINED
6.3. 010 Outstation 112
diOffTime DINT
diTimer DINT
iCnt INT
WagoAppRTU, Release 1.2.13.1

tyDNP3_BinOutObj (ALIAS)
tyDNP3_CertificationPara (STRUCT)

Name Type
xDiabaleInfObj_001 BOOL
xDiabaleInfObj_003 BOOL
xDiabaleInfObj_010 BOOL
InOut: xDiabaleInfObj_012 BOOL
xDiabaleInfObj_020 BOOL
xDiabaleInfObj_030 BOOL
xDiabaleInfObj_040 BOOL
xDiabaleInfObj_041 BOOL

tyDNP3_CntrData (STRUCT)

Name Type
byGrp BYTE
InOut:
byVar BYTE
pData POINTER TO ARRAY [0..15] OF BYTE

tyDNP3_CntrDataList40 (STRUCT)

Name Type
iCnt INT
InOut:
aAdr ARRAY [0..63] OF WORD
aData ARRAY [0..63] OF uTCBase_32Bit

tyDNP3_ComBuffer (STRUCT)

Name Type Comment


fbComB fbTCBase_ComBufferaData : ARRAY[0..DNP3_GC.C_DNP3_MAX_BUFFER] OF
InOut: BYTE; iLen : INT;
xConfirm BOOL
xFragmFull BOOL

tyDNP3_CounterObj (STRUCT)

Name Type Initial Comment


dwVal DWORD aktueller Zählerstand
dwVal_ DWORD alter Wert für die Events
InOut:
dwFrzVal DWORD Freez-Wert
tyFrzTime tyDNP3_Clock Freez-Time
byFlags BYTE 16#1

6.3. 010 Outstation 113


WagoAppRTU, Release 1.2.13.1

tyDNP3_DeviceAttrObj (STRUCT)

Name Type Comment


xPresent BOOL TRUE, wenn Attribut unterstützt
wird sonst FASLE
byIx BYTE 0 = nicht implementiert
209..255 sind in der Norm
beschrieben
byProp BYTE 0 = Read Only, 1 = Read / Write
(derzeit wird kein Write unter-
stützt)
byDataTypeCode BYTE
1 = VSTR [Visible characters suitable for print

2 = UINT [Un-
signed Integer]
InOut: 3 = INT [Signed
Integer] 4 = FLT
[Floating-point]
5 = OSTR [Octet
String] 6 = BSTR
[Bit String]
254 = U8BS8LIST [List of
UNIT8-BSTR8 pairs] 255
= U8BS8EXLIST [Exten-
detlist of UNIT8-BSTR8
pairs]

pData POINTER TO ARRAY [0..63]


OF BYTE

tyDNP3_FreezeCounter (STRUCT)

Name Type
uVal uTCBase_32Bit
InOut:
tyTime tyDNP3_Clock
byFlags BYTE

tyDNP3_IEC60870_CP56 (STRUCT)

Name Type Initial Comment


wMilliSec WORD
byMinuten BYTE 16#80 BIT 7 = IV (0=gültig/1=ungültig), BIT 6 = Reserve
InOut: byStunde BYTE BIT 7 = SU (0=normalzeit/1=Sommerzeit), BIT 6,5 = Reserve
byTag BYTE BIT 7,6,5 = Wochentag, BIT 4,3,2,1,0 = Tag im Monat
byMonat BYTE BIT 7,6,5,4 = Reserve, BIT 3,2,1,0 = Monat
byJahr BYTE Bit 7 = Reserve, BIT 6..0 = Jahr

tyDNP3_IEC61850_TimeStamp (STRUCT)

Name Type
InOut: dtDT DT
dwQuality DWORD

6.3. 010 Outstation 114


WagoAppRTU, Release 1.2.13.1

tyDNP3_InfObjIdent (STRUCT)

Name Type Comment


wGroupVar WORD im High-Byte steht die Gruppe, im Low-Byte die Variante
wObjIndex WORD Index innerhalb des Types (immer mit 0 beginnend)
aClass ARRAY [0..1] OF ([0] = MASKE, [1] = Wenn eine Objekt mehrere Klassen
InOut:
BYTE haben kann
byClassNo BYTE
byGrp BYTE Gruppe
byTyp BYTE Default-Variation

tyDNP3_LPDU_1 (STRUCT)

Name Type Initial


wLinkHeader WORD 16#6405
byLenght BYTE
byControl BYTE
InOut: wDestiAdr WORD
wSourceAdr WORD
wHeaderCRC WORD
aData ARRAY [0..281] OF BYTE
iLPDU_Len INT

tyDNP3_ModemInitPara (STRUCT)

Name Type
sSend STRING(79)
sResp STRING(31)
InOut:
tWait TIME
wOpt WORD
xValidEntry BOOL

tyDNP3_QualInfo (STRUCT)

Name Type Comment


wTyp WORD
wAdrStr WORD 0x00: A single point or range of static points (jeweils 1 Byte für Start- und
Stop-Index) 0x01: A single point or range of static points (jeweils 2 Byte für
Start- und Stop-Index) 0x06: Alle Objekte 0x07: A limited quantity of
Info-Obj. (genau 1 Byte für die Anzahl Objekte) 0x08: A limited quantity of
InOut:
Info-Obj. (genau 2 Byte für die Anzahl Objekte) 0x17: A limited quantity of
Info-Obj. (genau 1 Byte für die Anzahl Objekte + 1 Byte Info-Obj. Adresse vor
jedem Info-Obj. 0x28: A limited quantity of Info-Obj. (genau 2 Byte für die
Anzahl Objekte + 2 Byte Info-Obj. Adresse vor jedem Info-Obj.
wAdrEnd WORD
wIxSize WORD

6.3. 010 Outstation 115


WagoAppRTU, Release 1.2.13.1

tyDNP3_ReadRequLine (STRUCT)

Name Type Comment


byGrp BYTE pReqest : POINTER TO ARRAY[0..9] OF BYTE;
byVar BYTE
byQul BYTE 16#00, 16#01, 16#06, 16#07, 16#08, 16#17 und 16#28
InOut:
by_ BYTE
wStartAdr WORD
wEndAdr WORD
wCount WORD

tyDNP3_ReadRequList (STRUCT)

Name Type Comment


xActiv BOOL
byClassMask BYTE
byClassMaskAll BYTE
byClassState BYTE
BIT 0 = TRUE, wenn alle Klasse 0 Daten in Fra
BIT 1 = TRUE, wenn alle
Klasse 1..3 Daten in
Fragment kopiert sind

wSubGrp60Done WORD wird für die Verwaltung von


APDU’s mit mehreren Frames
InOut: benötigt (siehe Funktion
“fDNP3_HandleFC001”).
Wird ab V 01.01.12 Bitweise
verwendet
iNext INT hier steht drin, welche Zeile als
nächstes bearbeitet werden muss
0 = Fertig
aLine ARRAY [1..100] OF
tyDNP3_ReadRequLine
tyRequAPDU tyDNP3_RequAPDU
xQualInfoValid BOOL
tyQualInfo tyDNP3_QualInfo
In diese Struktur wird ein kompletter Request aufgedröselt

tyDNP3_RequAPDU (STRUCT)

Name Type Comment


byAC BYTE
byFc BYTE Application Control
aASDU ARRAY [0..2048] Function Code
InOut:
OF BYTE
iAPDU_Len INT beim Response-Header starten die Daten bei 2, 0 und 1 sind
dann IIN (internal indications)
iIx INT

6.3. 010 Outstation 116


WagoAppRTU, Release 1.2.13.1

tyDNP3_RespAPDU (STRUCT)

Name Type Initial Comment


byAC BYTE Application Control
byFc BYTE Function Code
aASDU ARRAY [0..2048] OF beim Request-Header starten die Daten bei 0,
BYTE
InOut: iAPDU_Len INT Index auf den Daten Buffer
iIx INT was ist hiermit zu tun? 0 = nichts, 1 = versenden, 2 =
bearbeiten
iState INT eindeutige Fragment Nummer mit dem dieses Event
versendet wurde
wFragmentNoWORD 1

tyDNP3_RetainInfObjDS (STRUCT)

Name Type Comment


xUsed BOOL
byGrp BYTE wird TRUE
InOut: wAdr WORD Gruppe des Informations-Objekts
uEvClsListA uDNP3_EvClassList Adresse des Informations-Objekts
uEvClsListB uDNP3_EvClassList
uVal uTCBase_32Bit
Retain Dataset für jedes DNP3 Informations-Objekt verbraucht 16 Byte * 800 Informations-Objekte = 12.800
Byte

tyDNP3_SSLSocket (STRUCT)

Name Type Comment


iSSL_Method INT hSocket : UDINT; eSslState :
DNP3_ENUM_SSLSOCKSTATE; hSslSocket : UDINT;
InOut: iSSL_FileType INT
sSSL_CA_CertFile STRING(79)
sSSL_Device_KeyFile
STRING(79)
sSSL_Device_CertFile
STRING(79)

6.3. 010 Outstation 117


WagoAppRTU, Release 1.2.13.1

tyDNP3_SecureOptions (STRUCT)

Name Type Comment


xSecureAuth BOOL If TRUE, Secure Authentication
is enabled
xUseErrorMsg BOOL
If disabled, the master and outstation will simp
respond if an error such as
an authentication failure
occurs.

xUseAggrMode BOOL
If disabled, DNP3-SA will use much more band
better replay protection
because random challenge
data is generated more
often. However, even
with Aggressive Mode
Enabled, replay protection
is good, so Enabled is the
recommended setting.

byVariantion BYTE
<0> := Pre-shared Key, Symmetric Cryptograp
<1> := Downloaded Keys,
Symmetric Cryptography
<2> := Downloaded Keys,
Asymmetric Cryptography
(Not Supported in this
Version

byMACAlgorithm BYTE
MAC algorithm, truncated to either leftmost 8
<0> := not used. <1> :=
HMAC SHA-1 truncated
to 4 octets (serial). No
longer recommended.
<2> := HMAC SHA-1
InOut: truncated to 10 octets
(networked). <3> :=
HMAC SHA-256 trun-
cated to 8 octets (serial).
<4> := HMAC SHA-256
truncated to 16 octets
(networked). <5> :=
HMAC SHA-1 truncated
to 8 octets (serial). <6>
:= AES-GMAC (output
is 12 octets). <7..127> :=
reserved for future use.
<128..255> := reserved for
vendor-specific choices.
Not guaranteed to be
interoperable.

byKeyWrapAlgorithm BYTE
Key wrap algorithm, <0> :=
not used. <1> := AES-128
Key Wrap Algorithm,
Update Key Length = 126
(bits). <2> := AES-256
Key Wrap Algorithm,
6.3. 010 Outstation Update Key Length118=
256 (bits). <3..127> :=
reserved for future use.
<128..255> := reserved for
WagoAppRTU, Release 1.2.13.1

tyDNP3_SerialExtPara (STRUCT)

Name Type Comment


xModemUsed BOOL
xWakeUpCall BOOL
iCallReason INT
0 = nie, 1 = class 1 event 2 =
class 2 event 3 = class 1
event & class 2 event

tRedialTime TIME
tInitCycleTime TIME
sRecall STRING(31)
sConnect STRING(31) Rückruferkennung, das Modem
InOut: zeigt damit an das der Master
aufgeweckt wurde
sDisconnect STRING(31) Verbindungserkennung, das
Modem zeigt damit an das eine
Verbindung besteht
sBlacklist STRING(32) Erkennung Verbindungsende,
das Modem zeigt an das die
Verbindung geschlossen wurde
sReactBlacklist STRING(32) Erkennung Blacklist
aPhoneNumber ARRAY [1..4] OF STRING(31) Antwort String auf Blacklist
atyModemInit ARRAY [1..8] OF
tyDNP3_ModemInitPara
xUseCycleInit BOOL

tyDNP3_SubTypInfo (STRUCT)

Name Type Comment


iObjNums INT Anzahl der parametrierten Objekte dieser Gruppe
wIxFirstObj WORD Index auf das erste Objekte diesen Types also z.B. auf den Messwert vom
InOut:
Typ 32 Bit
wObjAdrFirst WORD Adresse des ersten Objekts dieser Gruppe
wObjAdrLast WORD Adresse des letzen Objekts dieser Gruppe

uDNP3_EvClassList (UNION)

Name Type Comment


InOut: dwEvCls DWORD
aEvCls ARRAY [1..4] OF BYTE aktuelle Eventklassen für Client 1..4

6.3.2 020 Hilfsbausteine


fDNP3O_CmdMsgCheck (FUN)
Interface variables

Scope Name Type


Return fDNP3O_CmdMsgCheck BYTE
Inout tyRx tyDNP3_RequAPDU
byState BYTE
Input
eLoggerEV eDNP3_LoggerEV

6.3. 010 Outstation 119


WagoAppRTU, Release 1.2.13.1

fbDNP3O_ReadReqList (FB)
Interface variables

Scope Name Type Comment


xActiv BOOL
byClassMask BYTE
Input byClassMaskAll BYTE
byClassState BYTE
wSubGrp60Done WORD wird für die Verwal-
tung von APDU’s
mit mehreren Frames
benötigt (siehe Funktion
“fDNP3_HandleFC001”).
Wird ab V 01.01.12
Bitweise verwendet
tyRequ tyDNP3_ReadRequLine
Output xQualInfoValid BOOL
tyQualInfo tyDNP3_QualInfo

fbDNP3O_ReadReqList.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3O_ReadReqList.mLoopEnd (METH)

Interface variables

Scope Name Type


Return mLoopEnd BYTE
xCont BOOL
Input
wAdr WORD

fbDNP3O_ReadReqList.mMapp (METH)

Interface variables

Scope Name Type


Return mMapp BOOL
wObjAdrStr WORD
Input
wObjAdrEnd WORD

fbDNP3O_ReadReqList.mNext (METH)

Interface variables

Scope Name Type


Return mNext INT

fbDNP3O_ReadReqList.mReadRequest (METH)

Interface variables

6.3. 010 Outstation 120


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mReadRequest BYTE
tyRxAPDU tyDNP3_RequAPDU
Inout
fbEvent fbDNP3O_EventBuffer

fbDNP3O_ReadReqList.mSet (METH)

Interface variables

Scope Name Type


Return mSet BOOL
byGrp BYTE
Input byVar BYTE
byQul BYTE

fbDNP3O_ReadReqList.mSetIx (METH)

Interface variables

Scope Name Type


Return mSetIx BOOL
iIx INT
byGrp BYTE
Input
byVar BYTE
byQul BYTE

6.3.3 030 Info Objekte


030 Listen
fbDNP3O_InfObjList000 (FB)

Interface variables

Scope Name Type Initial


tyBuff tyDNP3_ComBuffer
pVOID POINTER TO ARRAY [0..1999] OF BYTE
uDA_SecureAuthVer UINT 0
uDA_NumsOfSecureStat UINT 0
sDA_IdentOfSuppUSA STRING(31) ‘’
uDA_NumsOfMsDefDataSetPrTy UINT 0
uDA_NumsOfOsDefDataSetPrTy UINT 0
uDA_NumsOfMsDefDataSet UINT 0
uDA_NumsOfOsDefDataSet UINT 0
uDA_LocalTimeAccuracy UINT 20
uDA_DurationTimeAccuracy UINT 100
xDA_SupportOfAnaO_EV BOOL FALSE
uDA_MaxAnaO_Index UINT 0
uDA_NumsOfAnaO UINT 0
xDA_SupportOfBinO_EV BOOL FALSE
uDA_MaxBinO_Index UINT 0
uDA_NumsOfBinO UINT 0
xDA_SupportOfFCnt_EV BOOL FALSE
xDA_SupportOfFCnt BOOL FALSE
xDA_SupportOfCnt_EV BOOL FALSE

Input

6.3. 010 Outstation 121


WagoAppRTU, Release 1.2.13.1

Table 6.2 – continued from previous page


Scope Name Type Initial
uDA_MaxCnt_Index UINT 0
uDA_NumsOfCnt UINT 0
xDA_SupportOfFAnaI BOOL FALSE
xDA_SupportOfAnaI_EV BOOL FALSE
uDA_MaxAnaI_Index UINT 0
uDA_NumsOfAnaI UINT 0
xDA_SupportOfDBinI_EV BOOL FALSE
uDA_MaxDBinI_Index UINT 0
uDA_NumsOfDBinI UINT 0
xDA_SupportOfBinI_EV BOOL FALSE
uDA_MaxBinI_Index UINT 0
uDA_NumsOfBinI UINT 0
uDA_MaxTransmitFragSize UINT 249
uDA_MaxReceiveFragSize UINT 249
sDA_DeviceManuSoftVers STRING(31) ‘V 00.00.02’
sDA_DeviceManuHardVers STRING(31) ‘V 01.00.00’
sDA_UserAssignedLocName STRING(31) ‘’
sDA_UserAssignedID_Num STRING(31) ‘’
sDA_UserAssignedDevName STRING(31) ‘’
sDA_DeviceSerialNum STRING(31) ‘’
sDA_DeviceDnp3SubSet STRING(31) ‘2:2009’
sDA_DeviceManuProdName STRING(31) ‘WAGO DNP3-LIB’
sDA_DeviceManuName STRING(31) ‘WAGO Kontakttechnik Gmb
Output wError WORD

001 PRIVATE

fbDNP3O_InfObjList000.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

010 CFG

fbDNP3O_InfObjList000.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaOs tyDNP30_ParaOS

fbDNP3O_InfObjList000.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

6.3. 010 Outstation 122


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList000.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_InfObjList000.mInit (ACT)

fbDNP3O_InfObjList000.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList001 (FB)

000 SYSTEM

fbDNP3O_InfObjList001.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

010 CFG

fbDNP3O_InfObjList001.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaApp tyDNP30_ParaOS_App

fbDNP3O_InfObjList001.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjList001.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

6.3. 010 Outstation 123


WagoAppRTU, Release 1.2.13.1

080 Online Config

fbDNP3O_InfObjList001.mApp_InfObDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObDel INT
byVar BYTE
Input
wAdr WORD

fbDNP3O_InfObjList001.mApp_InfObjAdd (METH)

Interface variables

Scope Name Type


Return mApp_InfObjAdd INT
byVar BYTE
Input
byEvc02 BYTE

fbDNP3O_InfObjList001.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList001.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

fbDNP3O_InfObjList001.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
Input iClientIx INT
Inout tyDOH tyDNP3_AssignClassDOH

fbDNP3O_InfObjList003 (FB)

001 SYSTEM

fbDNP3O_InfObjList003.mInit (METH)

Interface variables

6.3. 010 Outstation 124


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mInit BOOL

010 CFG

fbDNP3O_InfObjList003.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaApp tyDNP30_ParaOS_App

fbDNP3O_InfObjList003.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjList003.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

080 Online Config

fbDNP3O_InfObjList003.mApp_InfObDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObDel INT
byVar BYTE
Input
wAdr WORD

fbDNP3O_InfObjList003.mApp_InfObjAdd (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd INT
byVar BYTE
Input
byEvc04 BYTE wAdr : WORD;

fbDNP3O_InfObjList003.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

6.3. 010 Outstation 125


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList003.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

fbDNP3O_InfObjList003.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
Input iClientIx INT
Inout tyDOH tyDNP3_AssignClassDOH

fbDNP3O_InfObjList010 (FB)

000 SYSTEM

fbDNP3O_InfObjList010.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

010 CFG

fbDNP3O_InfObjList010.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaApp tyDNP30_ParaOS_App

fbDNP3O_InfObjList010.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjList010.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

6.3. 010 Outstation 126


WagoAppRTU, Release 1.2.13.1

080 Online Config

fbDNP3O_InfObjList010.mApp_InfObDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObDel INT
byVar BYTE
Input
wAdr WORD

fbDNP3O_InfObjList010.mApp_InfObjAdd (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd INT
byVar BYTE
Input xRetain BOOL wAdr : WORD;
byCModel BYTE

fbDNP3O_InfObjList010.mAdrValid (METH)

Interface variables

Scope Name Type


Return mAdrValid BOOL
wObjAdr WORD
Input
eLoggerEV eDNP3_LoggerEV

fbDNP3O_InfObjList010.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList010.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

fbDNP3O_InfObjList010.mFC04_Cntr (METH)

Interface variables

Scope Name Type Comment


Input pRxAPDU POINTER TO Pointer auf die empfangene APDU (wird für die
tyDNP3_RequAPDU Operate Funktion benötigt)

6.3. 010 Outstation 127


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList010.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
Input iClientIx INT
Inout tyDOH tyDNP3_AssignClassDOH

fbDNP3O_InfObjList020 (FB)

000 SYSTEM

fbDNP3O_InfObjList020.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

010 CFG

fbDNP3O_InfObjList020.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaApp tyDNP30_ParaOS_App

fbDNP3O_InfObjList020.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjList020.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

080 Online Config

fbDNP3O_InfObjList020.mApp_InfObDel (METH)

Interface variables

6.3. 010 Outstation 128


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mApp_InfObDel INT
byVar BYTE
Input
wAdr WORD

fbDNP3O_InfObjList020.mApp_InfObjAdd (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd INT
byVar BYTE
xRetain BOOL wAdr : WORD;
byInTyp BYTE
Input
byEvc22 BYTE
dwHystVal DWORD
wEvTime WORD

fbDNP3O_InfObjList020.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList020.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

fbDNP3O_InfObjList020.mFC07_Freeze (METH)

Interface variables

Scope Name Type


Return mFC07_Freeze INT
Inout tyRxAPDU tyDNP3_RequAPDU

fbDNP3O_InfObjList020.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
Input iClientIx INT
Inout tyDOH tyDNP3_AssignClassDOH

6.3. 010 Outstation 129


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList030 (FB)

Interface variables

Scope Name Type Initial Comment


Output bySupportGrp34 BYTE 0 0 = keine Unterstützung für

00 SYSTEM

fbDNP3O_InfObjList030.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

010 CFG

fbDNP3O_InfObjList030.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaApp tyDNP30_ParaOS_App

fbDNP3O_InfObjList030.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjList030.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

080 Online Config

fbDNP3O_InfObjList030.mApp_InfObDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObDel INT
byVar BYTE
Input
wAdr WORD

6.3. 010 Outstation 130


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList030.mApp_InfObjAdd (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd INT
byVar BYTE
xRetain BOOL wAdr : WORD;
byInTyp BYTE
Input byEvc32 BYTE
byHyMode BYTE 0 = keine, 1 = Absolute-Hysterese, 2 = Integrale-Hysterese
rHysterese REAL
wEvTime WORD

fbDNP3O_InfObjList030.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList030.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

fbDNP3O_InfObjList030.mFC02_Write (METH)

Interface variables

Scope Name Type


Return mFC02_Write BYTE
Inout tyRxAPDU tyDNP3_RequAPDU

fbDNP3O_InfObjList030.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
Input iClientIx INT
Inout tyDOH tyDNP3_AssignClassDOH

fbDNP3O_InfObjList040 (FB)

00 SYSTEM

6.3. 010 Outstation 131


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList040.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

010 CFG

fbDNP3O_InfObjList040.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaApp tyDNP30_ParaOS_App

fbDNP3O_InfObjList040.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjList040.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

080 Online Config

fbDNP3O_InfObjList040.mApp_InfObDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObDel INT
byVar BYTE
Input
wAdr WORD

fbDNP3O_InfObjList040.mApp_InfObjAdd (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd INT
byVar BYTE
Input xRetain BOOL wAdr : WORD;
byOutTyp BYTE

6.3. 010 Outstation 132


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList040.mAdrValid (METH)

Interface variables

Scope Name Type


Return mAdrValid BOOL
wObjAdr WORD
Input wGrpVar WORD
eLoggerEV eDNP3_LoggerEV

fbDNP3O_InfObjList040.mCDL_Add (METH)

Interface variables

Scope Name Type


Return mCDL_Add BOOL
wObjAdr WORD
Input wGrpVar WORD
pData POINTER TO BYTE

fbDNP3O_InfObjList040.mCDL_Init (METH)

Interface variables

Scope Name Type


Return mCDL_Init BOOL

fbDNP3O_InfObjList040.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList040.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

fbDNP3O_InfObjList040.mFC04_Cntr (METH)

Interface variables

Scope Name Type Comment


Input pRxAPDU POINTER TO Pointer auf die empfangene APDU (wird für die
tyDNP3_RequAPDU Operate Funktion benötigt)

6.3. 010 Outstation 133


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList040.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
Input iClientIx INT
Inout tyDOH tyDNP3_AssignClassDOH

fbDNP3O_InfObjList121 (FB)

Interface variables

Scope Name Type Comment


tyBuff tyDNP3_ComBuffer Hier stehen die Daten die z.B. bei einer
Input Anfrage erzeugt wurden
aObjList ARRAY [0..255] OF POINTER TO
fbDNP3O_InfObjGr121
pVOID POINTER TO ARRAY [0..1999] OF
BYTE

00 SYSTEM

fbDNP3O_InfObjList121.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3O_InfObjList121.AddFB (ACT)

fDNP3_UpdateClassNo(aObjList[iObjNums]^.tyIdent); fDNP3_UpdateClassNo(aObjList[iObjNums]^.tyInfObj);

fbDNP3O_InfObjList121.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fbDNP3O_InfObjList121.mFC01_R_ead (ACT)

[0] = Gruppe, [1] = Variation, [2] = Quality

fbDNP3O_InfObjList121.mFC01_Read (METH)

Interface variables

Scope Name Type Comment


Return mFC01_Read BOOL
:= (tyQualInfo := (wTyp := 16#FFFF)); /// ... wartet, werden
fbReadList fbDNP3O_ReadReqList
Inout
READ-Request aufgeschoben
fbApp fbDNP3O_AppLink

6.3. 010 Outstation 134


WagoAppRTU, Release 1.2.13.1

031 InfObj
fbDNP3O_InfObjBase (FB)

Interface variables

Scope Name Type


Output tyInfObj tyDNP3_InfObjPar

00 SYSTEM

fbDNP3O_InfObjBase.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbDNP3O_InfObjBase.mCfgEvTimeRead (METH)

Interface variables

Scope Name Type


Return mCfgEvTimeRead WORD
Input wEvTime WORD

fbDNP3O_InfObjBase.mCfgEvTimeWrite (METH)

Interface variables

Scope Name Type


Return mCfgEvTimeWrite WORD
Inout fbFileWriter fbTCBase_FileHandler
Input wEvTimeMask WORD

fbDNP3O_InfObjBase.mCfgInit (METH)

Interface variables

Scope Name Type Comment


Return mCfgInit BOOL
byGrp BYTE
byVar BYTE
Input
wAdr WORD
byCfgEvCls BYTE xCfgRetain : BOOL;

fbDNP3O_InfObjBase.mCfgRetain (METH)

Interface variables

6.3. 010 Outstation 135


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRetain BOOL
Input xCfgRetain BOOL
Inout u32 uTCBase_32Bit

fbDNP3O_InfObjBase.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_InfObjBase.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjBase.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL
iClientIx INT
Input
byClass BYTE

fbDNP3O_InfObjGr001 (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase

00 SYSTEM

fbDNP3O_InfObjGr001.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp INT
byVar BYTE
Input wAdr WORD
byEvc02 BYTE

fbDNP3O_InfObjGr001.mCfgRead (METH)

Interface variables

6.3. 010 Outstation 136


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjGr001.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_InfObjGr001.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjGr003 (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase

00 SYSTEM

fbDNP3O_InfObjGr003.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp INT
byVar BYTE
Input wAdr WORD
byEvc04 BYTE

fbDNP3O_InfObjGr003.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjGr003.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

6.3. 010 Outstation 137


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjGr003.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjGr010 (FB)

Interface variables

Scope Name Type Comment Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase
Output
uQ uTCBase_32Bit [0] = xQ_Close, [1] = xQ_Trip

00 SYSTEM

fbDNP3O_InfObjGr010.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp INT
byVar BYTE
wAdr WORD
Input
xRetain BOOL
byCModel BYTE

fbDNP3O_InfObjGr010.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjGr010.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_InfObjGr010.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjGr010.mExit (METH)

Interface variables

6.3. 010 Outstation 138


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mExit INT

fbDNP3O_InfObjGr010.mFC04_Operate (METH)

Interface variables

Scope Name Type


Return mFC04_Operate INT
Input tyCntrData tyDNP3_CntrData

fbDNP3O_InfObjGr020 (FB)

Interface variables

Scope Name Type Initial Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase
byFlags BYTE 16#1
Output
uVal uTCBase_32Bit
tyFrz tyDNP3_FreezeCounter

00 SYSTEM

fbDNP3O_InfObjGr020.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp INT
byVar BYTE
wAdr WORD
xRetain BOOL
Input byInTyp BYTE
byEvc22 BYTE
dwHystVal DWORD
wEvTime WORD

fbDNP3O_InfObjGr020.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjGr020.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

6.3. 010 Outstation 139


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjGr020.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjGr020.mExit (METH)

Interface variables

Scope Name Type


Return mExit INT

fbDNP3O_InfObjGr020.mFC07_Freeze (METH)

Interface variables

Scope Name Type Comment


Return mFC07_Freeze INT
Input byFC BYTE 1 = FREEZE, <> 1 = CLEAR

fbDNP3O_InfObjGr030 (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase
Input uVal uTCBase_32Bit

00 SYSTEM

fbDNP3O_InfObjGr030.mCfgApp (METH)

Interface variables

Scope Name Type Comment


Return mCfgApp INT
byVar BYTE
wAdr WORD
xRetain BOOL
byInTyp BYTE
Input
byEvc32 BYTE
byHyMode BYTE 0 = keine, 1 = Absolute-Hysterese, 2 = Integrale-Hysterese
rHysterese REAL
wEvTime WORD

fbDNP3O_InfObjGr030.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

6.3. 010 Outstation 140


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjGr030.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_InfObjGr030.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjGr030.mExit (METH)

Interface variables

Scope Name Type


Return mExit INT

fbDNP3O_InfObjGr030.mWrite_db (METH)

Interface variables

Scope Name Type


Return mWrite_db BOOL
Input pData POINTER TO BYTE

fbDNP3O_InfObjGr040 (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase
Input pRetain POINTER TO tyDNP3_AnaOutObj
Output uVal uTCBase_32Bit

00 SYSTEM

fbDNP3O_InfObjGr040.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp INT
byVar BYTE
wAdr WORD
Input
xRetain BOOL
byOutTyp BYTE

6.3. 010 Outstation 141


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjGr040.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_InfObjGr040.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_InfObjGr040.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

fbDNP3O_InfObjGr040.mExit (METH)

Interface variables

Scope Name Type


Return mExit INT

fbDNP3O_InfObjGr040.mFC04_Operate (METH)

Interface variables

Scope Name Type


Return mFC04_Operate INT
Input uData uTCBase_32Bit

fbDNP3O_InfObjGr121 (FB)

Interface variables

Scope Name Type Initial Inherited from


Output tyInfObj tyDNP3_InfObjPar fbDNP3O_InfObjBase
byFlags BYTE 16#1
wID WORD 16#0
Input dwValue DWORD
tyIdent tyDNP3_InfObjIdent
pEvTime POINTER TO tyDNP3_AbsTime

fbDNP3O_InfObjGr121.mPutEV (METH)

Interface variables

6.3. 010 Outstation 142


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mPutEV INT

itfDNP3O_InfObj (ITF)

itfDNP3O_InfObj.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT

6.3.4 040 Events


fbDNP3O_EventBuffer (FB)
Interface variables

Scope Name Type Initial


Comment
tyPar Hier stehen die Daten die z.B. bei einer Anfrage
tyDNP3_EventGetPara
erzeugt wurden
Input
tyBuff STRUCT(xConfirm
tyDNP3_ComBuffer Bit 0: Freigabe von UNS-Response für Events der
:= TRUE) Klasse 1, Bit 1: Freigabe von UNS-Response für
Events der Klasse 2 ...
byUNS_Enable
BYTE Aktive Bit-Maske für alle Classen die für
UNS-Response freigegeben sind (Berücksichigt ist
bereits die Erweiterung für WAT30267)
_sRollBack STRING(79)
Inout tyParaApp tyDNP3_ParaAppLink Application-Parameter
tyEV_Info tyDNP3_EventInfo
Output
byUNS_Response
BYTE xUNS_Response : BOOL;

01 PRIVATE

fbDNP3O_EventBuffer._Get (ACT)

Diese Aktion Überträgt Events in den übergebenen Kommunikations Buffer

fbDNP3O_EventBuffer._LoggScroll (ACT)

FOR iDiagnose := 15 TO 1 BY -1 DO aDiagnose[iDiagnose] := aDiagnose[iDiagnose-1]; END_FOR

fbDNP3O_EventBuffer._RollBack (ACT)

Diese Aktion löscht für alle Events, aus der Event-Liste das “versendet” Flag.

fbDNP3O_EventBuffer._UpdateCnt (ACT)

fbDNP3O_EventBuffer._WriteProlog (ACT)

Diese Aktion wird aus der Action GET aufgerufen. Sie überträgt oder aktualisiert die den Header im Sende Buffer

fbDNP3O_EventBuffer._WriteTimeBase (ACT)

Diese Aktion wird aus der Action GET aufgerufen, wenn Absolutzeit-Stempel für Objekte mit Relativzeit er-
forderlich werden

6.3. 010 Outstation 143


WagoAppRTU, Release 1.2.13.1

fbDNP3O_EventBuffer._refRetainEV (ACT)

10 ACTIONS

fbDNP3O_EventBuffer._AddTyp_002Obj (ACT)

Anzahl der Events decremeintieren

fbDNP3O_EventBuffer._AddTyp_011Obj (ACT)

Anzahl der Events decremeintieren

fbDNP3O_EventBuffer._AddTyp_022Obj (ACT)

Anzahl der Events decremeintieren

fbDNP3O_EventBuffer._AddTyp_032Obj (ACT)

Anzahl der Events decremeintieren

fbDNP3O_EventBuffer._AddTyp_122Obj (ACT)

Anzahl der Events decremeintieren

90 TOOLS

fbDNP3O_EventBuffer.mExport (METH)

Interface variables

Scope Name Type


Input sFileName STRING(79)

fbDNP3O_EventBuffer.mDel (METH)

Interface variables

Scope Name Type


Return mDel BOOL

fbDNP3O_EventBuffer.mEventFileLoad (METH)

Interface variables

Scope Name Type


Return mEventFileLoad BOOL

fbDNP3O_EventBuffer.mEventFileLoadFin (METH)

Interface variables

Scope Name Type


Return mEventFileLoadFin BOOL
Input iResult INT
Inout tyEFB tyDNP3_EventFileBuffer

6.3. 010 Outstation 144


WagoAppRTU, Release 1.2.13.1

fbDNP3O_EventBuffer.mEventFileSaveFin (METH)

Interface variables

Scope Name Type


Return mEventFileSaveFin BOOL
Input iResult INT

fbDNP3O_EventBuffer.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
Input iClIx INT
Inout tyParaApp tyDNP3_ParaAppLink

fbDNP3O_EventBuffer.mPutEvList (METH)

Interface variables

Scope Name Type


Return mPutEvList BOOL
Inout tyFlEvBu tyDNP3_FirstLevelEventBuffer

fbDNP3O_EventFile (FB)
fbDNP3O_EventFile._ACT_Start (ACT)

fbDNP3O_EventFile.mIdel (METH)

Interface variables

Scope Name Type


Return mIdel BOOL

fbDNP3O_EventFile.mLoad (METH)

Interface variables

Scope Name Type


Return mLoad BOOL
Inout fbEvBuffer fbDNP3O_EventBuffer

fbDNP3O_EventFile.mSave (METH)

Interface variables

Scope Name Type


Return mSave BOOL
Inout fbEvBuffer fbDNP3O_EventBuffer

6.3. 010 Outstation 145


WagoAppRTU, Release 1.2.13.1

tyDNP3O_UnsEventTrg (STRUCT)

Name Type Initial Comment


iHoldCnt INT Anzahl der Events, die zu einem UNS-Response
führen, auch wenn der Timer noch nicht abgelaufen
ist siehe Norm 4.6.2.2
tonTimer Standard. STRUCT(PT
InOut:
TON :=
TIME#30s0ms)
xNotNull BOOL TRUE, wenn Enable und mindestens ein Event der
Klasse ansteht
iEventCnt_ INT diEventCnt : DINT; diEventCnt_ : DINT;

tyDNP3_Event (STRUCT)

Name Type Comment


dwTimeLow DWORD Time-Stamp
wTimeHigh WORD 04..05
wInfObjAdr WORD Info-Objekt Adresse
wInfObjGrp WORD Info-Objekt Gruppe / Variante
byClassMask BYTE Event Klasse (Maske: 0x01 = Class 1, 0x02 = Class 2, 0x04
InOut: = Class 3
byFlags BYTE 11
aData ARRAY [0..5] OF 12..17
BYTE
byConfMark BYTE eindeutige Fragment Nummer mit dem dieses Event
versendet wurde
byReserve01 BYTE 19

tyDNP3_EventFileBuffer (STRUCT)

Name Type Comment


dwSizeHeader
DWORD 000000 .. 000003
dwSizeEvents
DWORD 000004 .. 000007
dwOffsetEvents
DWORD 000008 .. 000011
dwSizeFile DWORD 000012 .. 000015
InOut: tyEV_Info tyDNP3_EventInfo 000016 .. xxxxxx
aReserve ARRAY [(16 + xxxxxx .. xx0199 Damit wird deser Buffer etwas
SIZEOF(tyDNP3_EventInfo))..199]
unempfindlicher gegen Änderungen an
OF BYTE “tyDNP3_EventInfo”
aEV ARRAY [0..100000] OF 000200 ..
tyDNP3_Event

tyDNP3_EventFileInfo (STRUCT)

Name Type Comment


dtSavedDtFile DT Zeitstempel, wann die Dateien (A und B) das letzte mal geschrieben
InOut:
wurden
dwSavedCntFile DWORD Zähler wie oft die Dateien (A und B) gespeichert wurden

6.3. 010 Outstation 146


WagoAppRTU, Release 1.2.13.1

tyDNP3_EventFileSaveState (STRUCT)

Name Type Comment


sFileName STRING(63) Inital-Werte, die beim Init
iSaveState INT 0 = Nichts zu tun
iEvToDelInRetain
INT Hier merke ich mir, wiviele Events aus dem Retain bereich gelöscht
InOut: werden können, wenn das schreiben des Datei auf die SD-Card
abgschlossen ist.
ARRAY
aEvToDelInFile Zwischenspeicher für die Anzahl der Events je Klasse die schon wieder
[1..3] OF gelöscht werden müssen, während des speicherns auf SD-Card.
DINT

tyDNP3_EventGetPara (STRUCT)

Name Type Comment


byClassMask BYTE Bitcodiert Classe 1 .. 3, ansonsten Abfrage nach Gruppen-Nummer
byGrp BYTE Wenn byClass = 0, dann gilt die Gruppen-Nummer und ...
byVar BYTE die Variation
InOut:
byMark BYTE Markierung für Events die abgefragt wurden (wird für das löschen
benötigt)
wInfObjNums WORD Maximale Anzahl von Info-Objekten
iAppendIx INT Index für erweitern von Fragment Daten

tyDNP3_EventGetVars (STRUCT)

Name Type Comment


wInfObjGrp WORD Gruppe des Objekts, dass ich gerade bearbeite
wInfObjGrp_WORD Wenn weitere Objekt(e) des gleichen Typs eingetragen werden ...
Gesamtzahl an Informationsobjekten (wenn die anzahl durch die Anfrage
iIxInfObjHeaderCnt
INT
begrenzt ist)
wInfObjCnt WORD zwischen variable für die Relativ-Zeit
WORD Variation die verwendet wird
wRelativTime
byInfObjVrnBYTE Zähler für Objekte gleichen Typs
InOut: BYTE Variablen zur Steuerung der Applikation-Fragmente. Wenn im
byInfObjSameCnt
Zwischenbuffer bereits mehr als die hier angegebene Anzahl ...
iNewFragAt INT ... von Byte’s stehen, muss ein neues Fragment verwendet werden ObjTyp 02:
4 Byte Header, 2 Byte Adresse, 1 Byte Flags, 0 Byte Daten, 6 Byte Zeit = 13
ObjTyp 22: 4 Byte Header, 2 Byte Adresse, 1 Byte Flags, 4 Byte Daten, 6
Byte Zeit = 17 ObjTyp 32: 4 Byte Header, 2 Byte Adresse, 1 Byte Flags, 4
Byte Daten, 6 Byte Zeit = 17 Achtung, sollten irgend wann mal LREAL
unterstützt werden sieht die Rechung wie folgt aus ObjTyp 32: 4 Byte Header,
2 Byte Adresse, 1 Byte Flags, 8 Byte Daten, 6 Byte Zeit = 21
spezielle Variablen, die in der GET-Aktion des Bausteins fbDNP3_EventBuffer

6.3. 010 Outstation 147


WagoAppRTU, Release 1.2.13.1

tyDNP3_EventInfo (STRUCT)

Name Type Comment


xBufferOverflow
BOOL
xClass1EventsBOOL
xClass2EventsBOOL
xClass3EventsBOOL
byClassEventsBYTE Bit 0: Events der Klasse 1 stehen an, Bit 1: Events der Klasse
2 stehen an ...
diIxPut DINT Index für den Put
InOut:
diCntJustSendDINT Anzahl der Objekte die versendet aber noch nicht quittiert
sind
aClassCnt ARRAY [0..3] OF Anzahl der Events der entsprechenden Klassen in der Liste
DINT
aClassCntGet ARRAY [0..3] OF Anzahl der Events der entsprechenden Klassen in der Liste
DINT nach dem GET
aUnsClassRsp ARRAY [0..3] OF wird TRUE, wenn die Bedingungen für das Senden eines
BOOL UNS- Response erfüllt sind

tyDNP3_EventRetain (STRUCT)

Name Type Comment


xLoadFileB BOOL TRUE, wenn zuletzt der B-File erfolgreich geschrieben
wurde
xSaveFileB BOOL TRUE, wenn als nächstes der B-File geschrieben werden
soll (immer abwechselns File A und dann File B)
byReserve01BYTE
byReserve02BYTE
InOut:
ARRAY [1..3] OF
aEvToDelInFile wenn Events abgefragt werden die in der Datei gespeichert
DINT sind,
aEvFI ARRAY [0..1] OF
tyDNP3_EventFileInfo
iPutIx INT
aEV ARRAY [0..16#FF] OF
tyDNP3_Event

6.3.5 050 Link


Ethernet
fbDNP3O_EtherLink (FB)

Interface variables

Scope Name Type Initial Comment


Input tyLinkPara tyDNP3_LinkPara
Inout fbAppLink fbDNP3O_AppLink
xEnable BOOL FALSE
Output
xLinkOk BOOL Varibale zeigt Verbindungstatus an

010 CFG

fbDNP3O_EtherLink.mCfgApp (METH)

Interface variables

6.3. 010 Outstation 148


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU tyDNP3O_ParaOS_RTU

fbDNP3O_EtherLink.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_EtherLink.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_EtherLink.FC09 (ACT)

Primary Message, PRM = 1 +——————————————————- Direction (Slave => Master: 0, Master


=> Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from Pri.:
1) | | +——————————————- Frame count Bit | | | +————————————- Frame count Bit
valid (ignore FCB: 0, FCB is valid: 1) | | | | +—————+—————— Funktion-Code | | | | | | +—-+———
——-+—————————————+ | | | | | | | FC |Frame-Type | Service Funktion | FCV | | | | | | | +—-+—
————-+———————————+—–+ | | | | | | | 0 | Send-Conf.exp | Reset of remote link | 0 | | | | | | | | 1
| Send-Conf.exp | Reset of user process | 0 | | | | | | | | 2 | Send-Conf.exp | Test funktion for link | 1 | | | | | | | | 3 |
Send-Conf.exp | User Data | 1 | | | | | | | | 4 | Send-No Repl. | unconfimed User Data | 0 | | | | | | | | 9 | Requ.-Resp.exp
| Request link Status | 0 | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | FCB | FCV
|3|2|1|0|

fbDNP3O_EtherLink.HandleRxPriMsg (ACT)

Primary Message, PRM = 1 +——————————————————- Direction (Slave => Master: 0, Master


=> Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from Pri.:
1) | | +——————————————- Frame count Bit | | | +————————————- Frame count Bit
valid (ignore FCB: 0, FCB is valid: 1) | | | | +—————+—————— Funktion-Code | | | | | | +—-+———
——-+—————————————+ | | | | | | | FC |Frame-Type | Service Funktion | FCV | | | | | | | +—-+—
————-+———————————+—–+ | | | | | | | 0 | Send-Conf.exp | Reset of remote link | 0 | | | | | | | | 1
| Send-Conf.exp | Reset of user process | 0 | | | | | | | | 2 | Send-Conf.exp | Test funktion for link | 1 | | | | | | | | 3 |
Send-Conf.exp | User Data | 1 | | | | | | | | 4 | Send-No Repl. | unconfimed User Data | 0 | | | | | | | | 9 | Requ.-Resp.exp
| Request link Status | 0 | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | FCB | FCV
|3|2|1|0|

fbDNP3O_EtherLink.HandleRxSecMsg (ACT)

Secondary Message, PRM = 0 +——————————————————- Direction (Slave => Master: 0,


Master => Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from
Pri.: 1) | | +——————————————- Reserve = 0 | | | +————————————- Data flow control
(still ready to receive data: 0, Stop Buffer Overflow posible: 1) | | | |+——————————-+– Funktion-Code
| | | || | +—-+—————-+—————————————+ | | | || | | FC |Frame-Type| Service Funktion| | | | || |
+—-+—————-+—————————————+ | | | || | |0 | Confirm| ACKpositiv acknowledgement| | | | || |
|1 | Confirm| NACK Message not accepted, link busy| | | | || | | 11 | Respond| Status of link (DFC = 0 or 1) | | | | || |

6.3. 010 Outstation 149


WagoAppRTU, Release 1.2.13.1

| 14 || Link service not functioning| | | | || | | 15 || Link service not used or implemented| | | | || | +—-+—————-
+—————————————+ | DIR | PRM | RES | DFC | 3 | 2 | 1 | 0 |

fbDNP3O_EtherLink.PRM (ACT)

Primary Message, PRM = 1 +——————————————————- Direction (Slave => Master: 0, Master


=> Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from Pri.:
1) | | +——————————————- Frame count Bit | | | +————————————- Frame count Bit
valid (ignore FCB: 0, FCB is valid: 1) | | | | +—————+—————— Funktion-Code | | | | | | +—-+———
——-+—————————————+ | | | | | | | FC |Frame-Type | Service Funktion | FCV | | | | | | | +—-+—
————-+———————————+—–+ | | | | | | | 0 | Send-Conf.exp | Reset of remote link | 0 | | | | | | | | 1
| Send-Conf.exp | Reset of user process | 0 | | | | | | | | 2 | Send-Conf.exp | Test funktion for link | 1 | | | | | | | | 3 |
Send-Conf.exp | User Data | 1 | | | | | | | | 4 | Send-No Repl. | unconfimed User Data | 0 | | | | | | | | 9 | Requ.-Resp.exp
| Request link Status | 0 | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | FCB | FCV
|3|2|1|0|

fbDNP3O_EtherLink.mAccept (METH)

Interface variables

Scope Name Type


Return mAccept BOOL
Inout fbListener fbDNP3O_EtherListener
Output wResult WORD

fbDNP3O_EtherLink.mClose (METH)

Interface variables

Scope Name Type


Return mClose BOOL

fbDNP3O_EtherLink.mDiscon (METH)

Interface variables

Scope Name Type


Return mDiscon BOOL

fbDNP3O_EtherLink.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3O_EtherLink.mReceive (METH)

Interface variables

Scope Name Type


Return mReceive BOOL
Inout fbListener fbDNP3O_EtherListener
Output wResult WORD

6.3. 010 Outstation 150


WagoAppRTU, Release 1.2.13.1

fbDNP3O_EtherListener (FB)

Interface variables

Scope Name Type Comment


aLinkFB ARRAY
Inout
[1..DNP3_GC.C_NUMS_OF_ETH_CLIENTS]
OF fbDNP3O_EtherLink
iIxLastLinkINT
iResult INT
tyRx tyDNP3_ComBuffer
Output tyRxLPDU tyDNP3_LPDU Empfangs- und Sende-LPDU
(Link Protocol Data Unit)
tyRxTPDU tyDNP3_TPDU Empfangs- und Sende-LPDU
(Link Protocol Data Unit)
tySockAdr SysSocket.SOCKADDRESS

fbDNP3O_EtherListener.FB_Exit (METH)

Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

fbDNP3O_EtherListener.mClose (METH)

Interface variables

Scope Name Type


Return mClose BOOL
xLisener BOOL
Input
xClient BOOL

fbDNP3O_EtherListener.mCompare (METH)

Interface variables

Scope Name Type


Return mCompare BOOL
Inout fb fbDNP3O_EtherListener

fbDNP3O_EtherListener.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
Input iIx INT
Inout fbLink fbDNP3O_EtherLink

fbDNP3O_EtherListener.mOpen (METH)

Interface variables

6.3. 010 Outstation 151


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mOpen BOOL
Input tLinkTestTime TIME

fbDNP3O_EtherListener.mSend (METH)

Interface variables

Scope Name Type


Return mSend BOOL
Inout tyLinkPara tyDNP3_LinkPara

fbDNP3O_IP_Main (FB)

Interface variables

Scope Name Type Initial Comment


Input aLinkFB ARRAY
[1..DNP3_GC.C_NUMS_OF_ETH_CLIENTS]
OF fbDNP3O_EtherLink
Output iIxLastLinkINT 0 Wird beim einlesen auf den
Index der letzen Ethernet
Verbindung gesetzt

001 SYSTEM

fbDNP3O_IP_Main.FB_Exit (METH)

Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

010 CFG

fbDNP3O_IP_Main.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU tyDNP3O_ParaOS_RTU

fbDNP3O_IP_Main.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

6.3. 010 Outstation 152


WagoAppRTU, Release 1.2.13.1

fbDNP3O_IP_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_IP_Main.mExit (METH)

Interface variables

Scope Name Type


Input eEvent eDNP3_LoggerEV

fbDNP3O_IP_Main.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

Seriell
fbDNP3O_COM_Main (FB)

Interface variables

Scope Name Type Initial Comment


Input aLinkFB ARRAY
[1..DNP3_GC.C_NUMS_OF_COM_CLIENTS]
OF fbDNP3O_SeriellLink
Output iIxFirstLink
INT (DNP3_GC.C_NUMS_OF_COM_CLIENTS
Zuerst kommen die
+ 1) Ethernet Verbindungen.
Diese starten bei 1.

001 SYSTEM

fbDNP3O_COM_Main.FB_Exit (METH)

Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

010 CFG

fbDNP3O_COM_Main.mCfgApp (METH)

Interface variables

6.3. 010 Outstation 153


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU tyDNP3O_ParaOS_RTU

fbDNP3O_COM_Main.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_COM_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_COM_Main.mExit (METH)

Interface variables

Scope Name Type


Input eEvent eDNP3_LoggerEV

fbDNP3O_COM_Main.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3O_SeriellLink (FB)

Interface variables

Scope Name Type Initial Comment


Input tyLinkPara tyDNP3_LinkPara
Inout fbAppLink fbDNP3O_AppLink
xEnable BOOL FALSE
Output
xLinkOk BOOL Varibale zeigt Verbindungstatus an

001 PRIVATE

fbDNP3O_SeriellLink.FC09 (ACT)

Primary Message, PRM = 1 +——————————————————- Direction (Slave => Master: 0, Master


=> Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from Pri.:
1) | | +——————————————- Frame count Bit | | | +————————————- Frame count Bit
valid (ignore FCB: 0, FCB is valid: 1) | | | | +—————+—————— Funktion-Code | | | | | | +—-+———
——-+—————————————+ | | | | | | | FC |Frame-Type | Service Funktion | FCV | | | | | | | +—-+—
————-+———————————+—–+ | | | | | | | 0 | Send-Conf.exp | Reset of remote link | 0 | | | | | | | | 1

6.3. 010 Outstation 154


WagoAppRTU, Release 1.2.13.1

| Send-Conf.exp | Reset of user process | 0 | | | | | | | | 2 | Send-Conf.exp | Test funktion for link | 1 | | | | | | | | 3 |


Send-Conf.exp | User Data | 1 | | | | | | | | 4 | Send-No Repl. | unconfimed User Data | 0 | | | | | | | | 9 | Requ.-Resp.exp
| Request link Status | 0 | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | FCB | FCV
|3|2|1|0|

fbDNP3O_SeriellLink.HandleRxPriMsg (ACT)

Primary Message, PRM = 1 +——————————————————- Direction (Slave => Master: 0, Master


=> Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from Pri.:
1) | | +——————————————- Frame count Bit | | | +————————————- Frame count Bit
valid (ignore FCB: 0, FCB is valid: 1) | | | | +—————+—————— Funktion-Code | | | | | | +—-+———
——-+—————————————+ | | | | | | | FC |Frame-Type | Service Funktion | FCV | | | | | | | +—-+—
————-+———————————+—–+ | | | | | | | 0 | Send-Conf.exp | Reset of remote link | 0 | | | | | | | | 1
| Send-Conf.exp | Reset of user process | 0 | | | | | | | | 2 | Send-Conf.exp | Test funktion for link | 1 | | | | | | | | 3 |
Send-Conf.exp | User Data | 1 | | | | | | | | 4 | Send-No Repl. | unconfimed User Data | 0 | | | | | | | | 9 | Requ.-Resp.exp
| Request link Status | 0 | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | FCB | FCV
|3|2|1|0|

fbDNP3O_SeriellLink.HandleRxSecMsg (ACT)

Secondary Message, PRM = 0 +————————————— Direction (Slave => Master: 0, Master => Slave:
1) | +——————————— Primary Message (frame from Sec.: 0, frame from Pri.: 1) | | +———————
—— Reserve = 0 | | | +——————— Data flow control (still ready to receive data: 0, Stop Buffer Overflow
posible: 1) | | | | +—————+– Funktion-Code | | | | | | +—-+—————-+—————————————+ | | |
| | | | FC |Frame-Type | Service Funktion | | | | | | | +—-+—————-+—————————————+ | | | | | | | 0 |
Confirm | ACK positiv acknowledgement | | | | | | | | 1 | Confirm | NACK Message not accepted, link busy | | | | | | | |
11 | Respond | Status of link (DFC = 0 or 1) | | | | | | | | 14 | | Link service not functioning | | | | | | | | 15 | | Link service
not used or implemented | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | RES | DFC
|3|2|1|0|

fbDNP3O_SeriellLink.PRM (ACT)

Primary Message, PRM = 1 +——————————————————- Direction (Slave => Master: 0, Master


=> Slave: 1) | +————————————————- Primary Message (frame from Sec.: 0, frame from Pri.:
1) | | +——————————————- Frame count Bit | | | +————————————- Frame count Bit
valid (ignore FCB: 0, FCB is valid: 1) | | | | +—————+—————— Funktion-Code | | | | | | +—-+———
——-+—————————————+ | | | | | | | FC |Frame-Type | Service Funktion | FCV | | | | | | | +—-+—
————-+———————————+—–+ | | | | | | | 0 | Send-Conf.exp | Reset of remote link | 0 | | | | | | | | 1
| Send-Conf.exp | Reset of user process | 0 | | | | | | | | 2 | Send-Conf.exp | Test funktion for link | 1 | | | | | | | | 3 |
Send-Conf.exp | User Data | 1 | | | | | | | | 4 | Send-No Repl. | unconfimed User Data | 0 | | | | | | | | 9 | Requ.-Resp.exp
| Request link Status | 0 | | | | | | | +—-+—————-+—————————————+ | DIR | PRM | FCB | FCV
|3|2|1|0|

010 CFG

fbDNP3O_SeriellLink.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU tyDNP3O_ParaOS_RTU

fbDNP3O_SeriellLink.mCfgRead (METH)

Interface variables

6.3. 010 Outstation 155


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_SeriellLink.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_SeriellLink.yTPDU_SIZE (PROP)

fbDNP3O_SeriellLink.mClose (METH)

Interface variables

Scope Name Type


Return mClose BOOL

fbDNP3O_SeriellLink.mOpen (METH)

Interface variables

Scope Name Type


Return mOpen BOOL

fbTCBase_RowDataLogger (FB)

Tetra
fbTCBase_SerialHdl_TETRA (FB)

Interface variables

Scope Name Type Comment


fbCOM fbTCBase_SerialHdl_Base
Inout
fbRx fbTCBase_ComBuffer
xEnable BOOL
xRTS BOOL
xMsgOK BOOL
xMsgCMGS_Ack BOOL
xMsgCMGS_L2Ack BOOL
xMsgDNP3 BOOL
Output xMsgCTSDSR BOOL
byPI BYTE Protocol Identifier
byMT BYTE Message type
byMR BYTE Message reference
byTT BYTE Type of Text-Message
bySDSCnt BYTE
aRxIdent ARRAY [0..9] OF STRING(23)

001 PRIVATE

6.3. 010 Outstation 156


WagoAppRTU, Release 1.2.13.1

fbTCBase_SerialHdl_TETRA._DOKU (ACT)

The main purpose of AT commands is to allow a Computer/PLC (called Data Terminal Equipment or DTE) to
control a Modem (called Data Circuit termination Equipment or DCE) over serial data communication links:
RS232 and USB2.0.

010 CFG

fbTCBase_SerialHdl_TETRA.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbTCBase_SerialHdl_TETRA.mLogg (METH)

Interface variables

Scope Name Type


Return mLogg BOOL

fbTCBase_SerialHdl_TETRA.mSimModem (METH)

Interface variables

Scope Name Type


sTXT STRING(255)
Inout
fbRx fbTCBase_ComBuffer

fbTCBase_SerialHdl_TETRA.mTx (METH)

Interface variables

Scope Name Type


Return mTx BOOL
Inout fbTx fbTCBase_ComBuffer

fbDNP3O_AppLink (FB)
Interface variables

6.3. 010 Outstation 157


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial Comment


xLinkOk BOOL
wII WORD 0 = All stations message received
iClIx INT Client Index wenn über die SecAuth die
Verbindung geschlossen werden soll
Input byRxMsgTyp BYTE 0: Message an die Slave-Adresse, 1 = Broadcast
0xFFFD, 2 = Broadcast 0xFFFE, 3 = Broadcast
0xFFFF
STRUCT(xUnSolic
fbTxAPDU fbDNP3_APDU_Resp APDU. die versendet werden soll
:= FALSE)
STRUCT(xUnSolic
fbUsrAPDU fbDNP3_APDU_Resp APDU. die versendet werden soll
:= TRUE)
tyDNP3_AuthPara
tyLocalAuthPara Lokale Daten der RTU für die Secure
Authentication
tyDNP3_LinkPara
tyLinkParaMAC Adresse für die GMAC Berechnung
fbReadList fbDNP3O_ReadReqList := (tyQualInfo := (wTyp := 16#FFFF)); // ...
wartet, werden READ-Request aufgeschoben

010 CFG

fbDNP3O_AppLink.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaUnsRsp tyDNP3O_ParaOS_UnsRsp

fbDNP3O_AppLink.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3O_AppLink.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3O_AppLink._FC32_AuthenticationRequest (ACT)

Prüfen ob User-Nummer vorhanden ist

fbDNP3O_AppLink._SecMsgResponse (ACT)

fbDNP3O_AppLink._SecRequest (ACT)

Anfrage prüfen ob kritischer FC

6.3. 010 Outstation 158


WagoAppRTU, Release 1.2.13.1

fbDNP3O_AppLink._UnSolic (ACT)

fbDNP3O_AppLink.mConClose (ACT)

diese Action wird aufgerufen, wenn die Verbindung beendet wurde

fbDNP3O_AppLink.mFC00_Confirm (METH)

Interface variables

Scope Name Type


Return mFC00_Confirm BOOL

fbDNP3O_AppLink.mFC01_Read (METH)

Interface variables

Scope Name Type


Return mFC01_Read BYTE
Input xFIR BOOL

fbDNP3O_AppLink.mFC03_Select (METH)

Interface variables

Scope Name Type


Return mFC03_Select BOOL

fbDNP3O_AppLink.mFC04_Operate (METH)

Interface variables

Scope Name Type


Return mFC04_Operate BOOL

fbDNP3O_AppLink.mFC05_OperateDirect (METH)

Interface variables

Scope Name Type


Return mFC05_OperateDirect BOOL
Input byFC BYTE

fbDNP3O_AppLink.mFC07_Freeze (METH)

Interface variables

Scope Name Type


Return mFC07_Freeze BOOL

6.3. 010 Outstation 159


WagoAppRTU, Release 1.2.13.1

fbDNP3O_AppLink.mFC22_AssignClass (METH)

Interface variables

Scope Name Type


Return mFC22_AssignClass BOOL

fbDNP3O_AppLink.mHandelRxPriTPDU (METH)

Interface variables

Scope Name Type Comment


Return mHandelRxPriTPDU BOOL
byRxMsgTyp BYTE
Input
wSourceAdr WORD
Inout tyTPDU tyDNP3_TPDU Empfangs- und Sende-LPDU (Link Protocol Data
Unit)

fbDNP3O_AppLink.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
iIx INT
Input
xSerialLink BOOL

fbDNP3O_AppLink.mLoopEnd (METH)

Interface variables

Scope Name Type


Return mLoopEnd BYTE
Input wAdrLoopEnd WORD

tyDNP3_LinkPara (STRUCT)

Name Type Initial Comment


wMaLinkAdr WORD Master-Station Link-Adresse
wSlLinkAdr WORD Eigene Link-Adresse
iLinkTestMode INT 1 WAT31577: 0 = deaktiviert, 1 = Testtelegramm,
2 = Master Timeout
InOut:
tLinkTestTime TIME TIME#10s0ms
tLinkTestTimeOut
TIME TIME#3s0ms
xMasterAdrCheck
BOOL FALSE
fbTx fbTCBase_ComBuffer tyTx : tyDNP3_ComBuffer;
uPhy uDNP3_PhyLinkPara

6.3. 010 Outstation 160


WagoAppRTU, Release 1.2.13.1

tyDNP3_LinkParaEth (STRUCT)

Name Type Initial Comment


bySockTyp BYTE 0 = deaktiviert, 1 = UDP, , 1 = TCP, 3 >= TLS/SSL,
101 => COM 1 .. 115 => COM 15
byBindAt BYTE Optional Binden auf X1 oder X2, 0: nicht binden, 1:
Binden an X1, 2: Binden an X2
xIpAdrCheckBOOL FALSE
wPort WORD 20000
InOut:
asIpAdr ARRAY [1..4] OF
STRING(23)
tySSLSockettyDNP3_SSLSocket
wPortNet WORD
adwIpAdr ARRAY [1..4] OF Liste mit den zulässigen IP-Adressen
UDINT
dwClientIp DWORD

uDNP3_PhyLinkPara (UNION)

Name Type Comment


InOut:
tyEth tyDNP3_LinkParaEth tyCom : tyDNP3_LinkParaSer;

6.3.6 080 Online Config


DUT APP
tyDNP3O_InfObjAppCfg (STRUCT)

Name Type
byGrp BYTE
byVar BYTE
wAdr WORD
InOut: byEvCl_Change BYTE
byEvCl_Frozen BYTE
byEvCl_Control BYTE
xRetain BOOL
byCntrModel BOOL

tyDNP3O_InfObjPD_C10 (STRUCT)

Name Type Comment


xI_LF BOOL Flag local forced
InOut: xQ_Close BOOL bei allen byCntrModel erforderlich (Output)
xQ_Trip BOOL nur bei byCntrModel 3 (Output)
iQ_New INT wird bei jedem neuen Befehl incrementiert

tyDNP3O_InfObjPD_C40 (STRUCT)

Name Type Comment


xI_LF BOOL Flag local forced
InOut:
iQ_New INT wird bei jedem neuen Befehl incrementiert
uQ_Val uTCBase_32Bit

6.3. 010 Outstation 161


WagoAppRTU, Release 1.2.13.1

tyDNP3O_InfObjPD_M01 (STRUCT)

Name Type Comment


xI_EvTrg BOOL Externer Event Trigger
xI_OL BOOL Flag online
xI_RS BOOL Flag restart
InOut: xI_CL BOOL Flag comm lost
xI_RF BOOL Flag remote forced
xI_LF BOOL Flag local forced
xI_CF BOOL Flag chatter filter
xI_ST BOOL Flag Status (Bit 7)

tyDNP3O_InfObjPD_M03 (STRUCT)

Name Type Comment


xI_EvTrg BOOL Externer Event Trigger
xI_OL BOOL Flag online
xI_RS BOOL Flag restart
xI_CL BOOL Flag comm lost
InOut:
xI_RF BOOL Flag remote forced
xI_LF BOOL Flag local forced
xI_CF BOOL Flag chatter filter
xI_ST_L BOOL Flag Status-Low (Bit 6)
xI_ST_H BOOL Flag Status-High (Bit 7)

tyDNP3O_InfObjPD_M20 (STRUCT)

Name Type Comment


xI_EvTrg BOOL Externer Event Trigger
InOut:
xI_Cnt BOOL Input Bin Counter Increment
uI_Cnt uTCBase_32Bit

tyDNP3O_InfObjPD_M30 (STRUCT)

Name Type Comment


xI_EvTrg BOOL Externer Event Trigger
xI_OL BOOL Flag online
xI_RS BOOL Flag restart
xI_CL BOOL Flag comm lost
InOut:
xI_RF BOOL Flag remote forced
xI_LF BOOL Flag local forced
xI_OR BOOL
xI_RE BOOL Flag over range
uI_Val uTCBase_32Bit Flag reference error

uDNP3O_InfObjPD (UNION)

Name Type
tyM01 tyDNP3O_InfObjPD_M01
tyM03 tyDNP3O_InfObjPD_M03
InOut: tyM20 tyDNP3O_InfObjPD_M20
tyM30 tyDNP3O_InfObjPD_M30
tyC10 tyDNP3O_InfObjPD_C10
tyC40 tyDNP3O_InfObjPD_C40

6.3. 010 Outstation 162


WagoAppRTU, Release 1.2.13.1

fbDNP3O_InfObjList (FB)
fbDNP3O_InfObjList.mApp_InfObjAdd_C10 (METH)

Interface variables

Scope Name Type


Return mApp_InfObjAdd_C10 INT
xRetain BOOL
Input
byCModel BYTE

fbDNP3O_InfObjList.mApp_InfObjAdd_C40 (METH)

Interface variables

Scope Name Type


Return mApp_InfObjAdd_C40 INT
xRetain BOOL
Input
byOutTyp BYTE

fbDNP3O_InfObjList.mApp_InfObjAdd_M01 (METH)

Interface variables

Scope Name Type


Return mApp_InfObjAdd_M01 INT
Input byEvc02 BYTE

fbDNP3O_InfObjList.mApp_InfObjAdd_M03 (METH)

Interface variables

Scope Name Type


Return mApp_InfObjAdd_M03 INT
Input byEvc04 BYTE

fbDNP3O_InfObjList.mApp_InfObjAdd_M20 (METH)

Interface variables

Scope Name Type


Return mApp_InfObjAdd_M20 INT
byInTyp BYTE
xRetain BOOL
Input byEvc22 BYTE
dwHystVal DWORD
wEvTime WORD

fbDNP3O_InfObjList.mApp_InfObjAdd_M30 (METH)

Interface variables

6.3. 010 Outstation 163


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mApp_InfObjAdd_M30 INT
byInTyp BYTE
xRetain BOOL
byEvc32 BYTE
Input
byHyMode BYTE 0 = keine, 1 = Absolute-Hysterese, 2 = Integrale-Hysterese
rHysterese REAL
wEvTime WORD

fbDNP3O_InfObjList.mApp_SortList (METH)

6.3.7 090 VISU


prgDNP3O_Visu (PRG)
Interface variables

Scope Name Type


Input iMasterCnt INT

prgDNP3O_Visu.ACT_01 (ACT)

prgDNP3O_Visu.ACT_03 (ACT)

prgDNP3O_Visu.ACT_10 (ACT)

prgDNP3O_Visu.ACT_20 (ACT)

prgDNP3O_Visu.ACT_30 (ACT)

prgDNP3O_Visu.ACT_40 (ACT)

prgDNP3O_Visu.ACT_OsCon (ACT)

tyIxOsCon.iMin := 0; tyIxOsCon.iMax := tyIxOsCon.iCnt := (prgDNP3O_Main.fbInfObj.fbLi001.iObjNums - 1);


IF (tyIxOsCon.iIx <> tyIxOsCon.iIx_) THEN pOcCon := prgDNP3O_Main.fbInfObj.fbLi001.aObjList[tyIxOsCon.iIx];
tyIxOsCon.iIx_ := tyIxOsCon.iIx; END_IF IF (pOcCon = 16#0000_0000) THEN pOcCon := ADR(fbOsCon);
END_IF

prgDNP3O_Visu.mCntlStateString (METH)

Interface variables

Scope Name Type


Return mCntlStateString STRING(31)
Input byExeState BYTE

tyDNP3O_Visu_ObjList (STRUCT)

Name Type
InOut: uFB uDNP3O_Visu_FbPointer
tyIx tyDNP3M_Visu_IndexSel

6.3. 010 Outstation 164


WagoAppRTU, Release 1.2.13.1

uDNP3O_Visu_FbPointer (UNION)

Name Type
pMA POINTER TO fbDNP3m_Master
pOS POINTER TO fbDNP3m_Outstation
pIO POINTER TO fbDNP3O_InfObjBase
p01 POINTER TO fbDNP3O_InfObjGr001
InOut:
p03 POINTER TO fbDNP3O_InfObjGr003
p10 POINTER TO fbDNP3O_InfObjGr010
p20 POINTER TO fbDNP3O_InfObjGr020
p30 POINTER TO fbDNP3O_InfObjGr030
p40 POINTER TO fbDNP3O_InfObjGr040

6.3.8 prgDNP3O_Main (PRG)


Interface variables

Scope Name Type Comment


Input fbInfObj fbDNP3O_InfObjList
xEnable BOOL
Output
iRtnObjCnt INT Zähler für die Gesamtanzahl an Informationsobjekten,

010 CFG
prgDNP3O_Main.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyParaOs tyDNP30_ParaOS

prgDNP3O_Main.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgDNP3O_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

090 VISU
prgDNP3O_Main.mVisu_UpdateList (METH)

Interface variables

6.3. 010 Outstation 165


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mVisu_UpdateList BOOL
Input iLevel INT
Inout aObjList ARRAY [0..7] OF tyDNP3O_Visu_ObjList

prgDNP3O_Main.mAddEvBufferFb (METH)
Interface variables

Scope Name Type


Return mAddEvBufferFb BOOL
Input pEvFb POINTER TO fbDNP3O_EventBuffer

prgDNP3O_Main.mAppEventPut (METH)
Interface variables

Scope Name Type Comment


Return mAppEventPut
BOOL
byObjGrp BYTE Object-Group (02 = Binary Input Event, 04 = Doubel
Binary Input Event, 22 = Counter Event usw.)
byObjVar BYTE Event Variation
Input byEvClass BYTE 1, 2 or 3
wObjAdr WORD Object-Adress (0..16#FFFF)
byFlags BYTE Event-Flags (state, online, restart, commlost usw.)
pData POINTER TO in case of ObjGrp and ObjVar this can by 0 til 6 Byte of
uTCBase_64Bit Data
pTime POINTER TO if this is NULL, the local time will be used
ARRAY [0..5] OF
BYTE

prgDNP3O_Main.mEventPut (METH)
Interface variables

Scope Name Type


Return mEventPut BOOL
iObjIx INT
wObjGrp WORD
wObjAdr WORD
Input
byFlags BYTE
pData POINTER TO uTCBase_64Bit
pTime POINTER TO ARRAY [0..5] OF BYTE

prgDNP3O_Main.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

prgDNP3O_Main.mInit (METH)
Interface variables

6.3. 010 Outstation 166


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mInit BOOL

prgDNP3O_Main.mInitFinish (METH)
Interface variables

Scope Name Type


Return mInitFinish BOOL

prgDNP3O_Main.mLogger (METH)
Interface variables

Scope Name Type


Return mLogger WORD
eCOLOR eTCBase_COLORS
Input eEvent eDNP3_LoggerEV
sInfo STRING(79)

prgDNP3O_Main.mPreeStart (METH)
Interface variables

Scope Name Type


Return mPreeStart BOOL
Input eState eTCBase_MainState

prgDNP3O_Main.mRetainInit (METH)
Interface variables

Scope Name Type


Return mRetainInit BOOL

6.4 020 Master


6.4.1 010 DUT
10 OBJ
tyDNP3M_Qu_000 (UNION)

Name Type
InOut: wStart WORD
wEnde WORD

tyDNP3M_Qu_001 (UNION)

Name Type
InOut: byStart BYTE
byEnde BYTE

6.4. 020 Master 167


WagoAppRTU, Release 1.2.13.1

tyDNP3M_RxObj (STRUCT)

Name Type Comment


uGrpVar uTCBase_16Bit Gruppe / Variation
InOut:
uData uTCBase_64Bit hier passt hoffentlich alles rein
tyClock tyDNP3_Clock

tyDNP3M_RxObjList (STRUCT)

Name Type
InOut: iCnt INT
aObj ARRAY [1..5000] OF tyDNP3M_RxObj

uDNP3M_GrpVar (UNION)

Name Type
byDummi BYTE
InOut: byGrp BYTE
byVar BYTE
byQu BYTE

eDNP3M_WaitForResp (ENUM)
Attributes:
qualified_only
Name Initial
0
eIdel
1
InOut: eFC01
eFC02
eFCxx

tyDNP3M_EventPrio (STRUCT)

Name Type Comment


dtOldestEventDT Zeitstempel der letzten Leerung des Event-Buffer’s
POINTER TO
pfbOldestEvent Pointer auf den Outstation FB mit dem ältesten
fbDNP3M_Outstation Eventbuffer
InOut:
diMaxEventCntDINT anzahl der Events, die seit der letzen Leerung
eingetragen wurden
POINTER TO
pfbMaxEventCnt Pointer auf den Outstation FB mit den meisten
fbDNP3M_Outstation Events im Eventbuffer

tyDNP3M_MaParaCOM (STRUCT)
tyDNP3M_MaParaTCP (STRUCT)
tyDNP3M_MaParaTLS (STRUCT)
tyDNP3M_MaParaTeF (STRUCT)
tyDNP3M_MaParaUDP (STRUCT)

6.4. 020 Master 168


WagoAppRTU, Release 1.2.13.1

tyDNP3M_OsPara (STRUCT)

Name Type Comment


sDA_DeviceManuHardVers
STRING(79)
sDA_DeviceManuSoftVers
STRING(79)
sDA_UserAssignedLocName
STRING(79)
sDA_UserAssignedID_Num
STRING(79)
sDA_UserAssignedDevName
STRING(79)
InOut: sDA_DeviceSerialNum
STRING(79)
iMaxRequApduSizeINT
iMaxRespApduSizeINT
iMaxCtlObjects INT
wOutstationAdr WORD tClockSyncTime : TIME; tClassPollTime : TIME;
tResponseTimeOut : TIME; iEventsPerClient=”4000”;
wMasterAdr WORD

uDNP3M_MaPara (STRUCT)

Name Type Comment


tyCOM tyDNP3M_MaParaCOM serielle Verbindung
tyTCP tyDNP3M_MaParaTCP TCP Verbindung
InOut:
tyUDP tyDNP3M_MaParaUDP UDP Verbindung
tyTLS tyDNP3M_MaParaTLS TSL Verbindung
tyTeF tyDNP3M_MaParaTeF Tetrafunk

6.4.2 030 Events


fbDNP3M_EventBuffer (FB)
Interface variables

Scope Name Type


Input sLoggTableName STRING(79)
Output iCnt INT

fbDNP3M_EventBuffer.mGet (METH)

Interface variables

Scope Name Type Comment


Return mGet INT
aEvents ARRAY [0..DNP3_GC.C_DNP3M_EV_MAXINDEX] Index 0 wird nicht
Inout
OF tyDNP3M_EventData verwendet
sDataTable STRING(79)

fbDNP3M_EventBuffer.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
Input sDataTable STRING(79)

6.4. 020 Master 169


WagoAppRTU, Release 1.2.13.1

fbDNP3M_EventBuffer.mPut (METH)

Interface variables

Scope Name Type Comment


Return mPut BOOL
Input byVT BYTE Typ der Variable möglich sind:
DNP3_GC.C_DNP3_VT_NON
Inout tyRxObjData tyDNP3_ObjRxData

fbDNP3M_SQLiteExport (FB)
Interface variables

Scope Name Type


xActiv BOOL
Output sStateInfo STRING(127)
sErrorInfo STRING(127)

fbDNP3M_SQLiteExport.mEvToStr (METH)

Interface variables

Scope Name Type


Return mEvToStr STRING(255)
Input xFirst BOOL
Inout tyEV tyDNP3M_EventData

fbDNP3M_SQLiteExport.mStart (METH)

Interface variables

Scope Name Type


Return mStart BOOL
Inout fbOS fbDNP3M_Outstation
Input byMode BYTE

tyDNP3M_EventData (STRUCT)

Name Type Comment


byGrp BYTE
Die folgenden Danten werden für die Übergabe
tyGVQ : tyDNP3_GVQ;

byVar BYTE
wObjAdr WORD
byFlags BYTE
InOut: byTL BYTE TimeLen (Länge des Zeitstem-
pel)
byVT BYTE Typ der Variable möglich sind:
DNP3_GC.C_DNP3_VT_NON
u64 uTCBase_64Bit DNP3_GC.C_DNP3_VT_DINT
DNP3_GC.C_DNP3_VT_INT
DNP3_GC.C_DNP3_VT_REAL
DNP3_GC.C_DNP3_VT_LREAL:
tyTime tyDNP3_Clock

6.4. 020 Master 170


WagoAppRTU, Release 1.2.13.1

6.4.3 050 InfObj


InfObj
fbDNP3M_InfObjBase (FB)

Interface variables

Scope Name Type


Output tyInfObj tyDNP3_InfObjPar

00 SYSTEM

fbDNP3M_InfObjBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjBase.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjBase.FB_Init (METH)

Interface variables

Scope Name Type


Return FB_Init BOOL
bInitRetains BOOL
Input
bInCopyCode BOOL

fbDNP3M_InfObjBase.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

fbDNP3M_InfObjBaseC (FB)

Interface variables

Scope Name Type Comment Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
Output byExecType BYTE 1 Sel & Exe, 2 = direct Exe, 3 = direct Exe
no Resp. (Enum)
uVal uTCBase_32Bit

6.4. 020 Master 171


WagoAppRTU, Release 1.2.13.1

fbDNP3M_InfObjBaseC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbCntrl fbDNP3M_CntrlBlock

fbDNP3M_InfObjBaseM (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase

fbDNP3M_InfObjGr001 (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
Output byV01 BYTE
byV02 BYTE

00 SYSTEM

fbDNP3M_InfObjGr001.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjGr001.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjGr001.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

fbDNP3M_InfObjGr003 (FB)

Interface variables

6.4. 020 Master 172


WagoAppRTU, Release 1.2.13.1

Scope Name Type Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
Output byV03 BYTE
byV04 BYTE

00 SYSTEM

fbDNP3M_InfObjGr003.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjGr003.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjGr003.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

fbDNP3M_InfObjGr010 (FB)

Interface variables

Scope Name Type Comment Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
byExecType BYTE 1 Sel & Exe, 2 = direct Exe, 3 = direct Exe fbDNP3M_InfObjBaseC
no Resp. (Enum)
uVal uTCBase_32Bit fbDNP3M_InfObjBaseC
byV10 BYTE byCntlCode : BYTE;
Output
byV11 BYTE
byV12 BYTE
byV13 BYTE
xQ_Close BOOL
xQ_Trip BOOL
byExeState BYTE

00 SYSTEM

fbDNP3M_InfObjGr010.mCfgRead (METH)

Interface variables

6.4. 020 Master 173


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjGr010.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjGr010.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbCntrl fbDNP3M_CntrlBlock

fbDNP3M_InfObjGr010.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

fbDNP3M_InfObjGr020 (FB)

Interface variables

Scope Name Type Initial Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
byFlags BYTE 16#1
uV20 uTCBase_32Bit
Output
uV21 uTCBase_32Bit
uV22 uTCBase_32Bit
uV23 uTCBase_32Bit

00 SYSTEM

fbDNP3M_InfObjGr020.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjGr020.mCfgWrite (METH)

Interface variables

6.4. 020 Master 174


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjGr020.mExit (METH)

Interface variables

Scope Name Type


Return mExit INT

fbDNP3M_InfObjGr020.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

fbDNP3M_InfObjGr030 (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
Output uV30 uTCBase_32Bit
uV32 uTCBase_32Bit

00 SYSTEM

fbDNP3M_InfObjGr030.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjGr030.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjGr030.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

6.4. 020 Master 175


WagoAppRTU, Release 1.2.13.1

fbDNP3M_InfObjGr040 (FB)

Interface variables

Scope Name Type Comment Inherited from


tyInfObj tyDNP3_InfObjPar fbDNP3M_InfObjBase
Output byExecType BYTE 1 Sel & Exe, 2 = direct Exe, 3 = direct fbDNP3M_InfObjBaseC
Exe no Resp. (Enum)
uVal uTCBase_32Bit fbDNP3M_InfObjBaseC
Input pRetain POINTER TO
tyDNP3_AnaOutObj
uV40 uTCBase_32Bit
uV41 uTCBase_32Bit
Output uV42 uTCBase_32Bit
uV43 uTCBase_32Bit
byExeState BYTE Ausführungs-State

00 SYSTEM

fbDNP3M_InfObjGr040.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjGr040.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_InfObjGr040.mExit (METH)

Interface variables

Scope Name Type


Return mExit INT

fbDNP3M_InfObjGr040.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbCntrl fbDNP3M_CntrlBlock

fbDNP3M_InfObjGr040.mRxData (METH)

Interface variables

6.4. 020 Master 176


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

itfDNP3M_InfObj (ITF)

00 SYSTEM

itfDNP3M_InfObj.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

itfDNP3M_InfObj.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

itfDNP3M_InfObj.mRxData (METH)

Interface variables

Scope Name Type


Return mRxData INT
Inout tyRxObjData tyDNP3M_EventData

Listen
fbDNP3M_InfObjListC (FB)

00 SYSTEM

fbDNP3M_InfObjListC.mAdd_C_ANO (METH)

Interface variables

Scope Name Type


Return mAdd_C_ANO BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjListC.mAdd_C_SBO (METH)

Interface variables

Scope Name Type


Return mAdd_C_SBO BOOL
Inout fbFileReader fbTCBase_FileHandler

6.4. 020 Master 177


WagoAppRTU, Release 1.2.13.1

fbDNP3M_InfObjListC.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3M_InfObjListC.mCycle (METH)

Interface variables

Scope Name Type


Inout fbCntrl fbDNP3M_CntrlBlock

fbDNP3M_InfObjListC.mFindAndCall_ANO (METH)

Interface variables

Scope Name Type


Inout tyRxObjData tyDNP3_ObjRxData

fbDNP3M_InfObjListC.mFindAndCall_SBO (METH)

Interface variables

Scope Name Type


Inout tyRxObjData tyDNP3_ObjRxData

fbDNP3M_InfObjListM (FB)

00 SYSTEM

fbDNP3M_InfObjListM.mAdd_M_ANI (METH)

Interface variables

Scope Name Type


Return mAdd_M_ANI BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjListM.mAdd_M_CTI (METH)

Interface variables

Scope Name Type


Return mAdd_M_CTI BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjListM.mAdd_M_DBI (METH)

Interface variables

Scope Name Type


Return mAdd_M_DBI BOOL
Inout fbFileReader fbTCBase_FileHandler

6.4. 020 Master 178


WagoAppRTU, Release 1.2.13.1

fbDNP3M_InfObjListM.mAdd_M_SBI (METH)

Interface variables

Scope Name Type


Return mAdd_M_SBI BOOL
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_InfObjListM.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3M_InfObjListM.mFindAndCall_ANI (METH)

Interface variables

Scope Name Type


Inout tyRxObjData tyDNP3_ObjRxData

fbDNP3M_InfObjListM.mFindAndCall_CTI (METH)

Interface variables

Scope Name Type


Inout tyRxObjData tyDNP3_ObjRxData

fbDNP3M_InfObjListM.mFindAndCall_DBI (METH)

Interface variables

Scope Name Type


Inout tyRxObjData tyDNP3_ObjRxData

fbDNP3M_InfObjListM.mFindAndCall_SBI (METH)

Interface variables

Scope Name Type


Inout tyRxObjData tyDNP3_ObjRxData

6.4.4 060 Control


fbDNP3M_CntrlBlock (FB)
Interface variables

Scope Name Type Comment


Output byState BYTE 0 = Idle

6.4. 020 Master 179


WagoAppRTU, Release 1.2.13.1

fbDNP3M_CntrlBlock.mEvListInit (METH)

Interface variables

Scope Name Type


Input xLink BOOL

fbDNP3M_CntrlBlock.mEvListPut (METH)

Interface variables

Scope Name Type


Input xExe BOOL
Inout fbInfObjC fbDNP3M_InfObjBaseC

fbDNP3M_CntrlBlock.mJobPrep (METH)

Interface variables

Scope Name Type


Input xLink BOOL

fbDNP3M_CntrlBlock.mMsgSend (METH)

Interface variables

Scope Name Type


Return mMsgSend BOOL
byRequSEQ BYTE
Inout
fbRequAPDU fbDNP3_APDU_Requ

tyDNP3M_CntrlEvents (STRUCT)

Name Type Comment


byFC BYTE 3 = Select, 4 = Operate, 5 = dierect Operate, 6 = dierect Operate
without Response
InOut:
uGrpVar uTCBase_16Bit
uAdr uTCBase_16Bit
uData uDNP3M_CObjData

tyDNP3M_CntrlJob (STRUCT)

Name Type Comment


byFC BYTE
byCnt BYTE
InOut:
byState BYTE
aList ARRAY [1..16] OF byIx : BYTE; aData : ARRAY[0..255] OF
tyDNP3M_CntrlEvents BYTE;

6.4. 020 Master 180


WagoAppRTU, Release 1.2.13.1

tyDNP3M_InfObjGr012 (STRUCT)

Name Type
byV12 BYTE
InOut: byPlsCnt BYTE
tOnTime TIME
tOffTime TIME

uDNP3M_CObjData (UNION)

Name Type
InOut: tyGr012 tyDNP3M_InfObjGr012
tyGr041 uTCBase_64Bit

6.4.5 070 Outstation


10 OS Services
fbDNP3M_ServiceBase (FB)

Interface variables

Scope Name Type Comment


tNext TIME Zeit bis zur nächsten Aktivierung
Output
tDelay TIME Zeit die seit der Aktivierung bereits vestrichen ist für die Prioritätssteuerung

10 PROTECTED

fbDNP3M_ServiceBase._mRUN (METH)

Interface variables

Scope Name Type


Return _mRUN BOOL
Input xEnable BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceBase.mRequest (METH)

Interface variables

Scope Name Type


Return mRequest BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceBase.mResetTimer (METH)

Interface variables

Scope Name Type


Return mResetTimer BOOL

fbDNP3M_ServiceBase.mResponse (METH)

Interface variables

6.4. 020 Master 181


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mResponse BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC01_60vX (FB)

Interface variables

Scope Name Type Comment Inherited from


tNext TIME Zeit bis zur nächsten Aktivierung fbDNP3M_ServiceBase
Output
tDelay TIME Zeit die seit der Aktivierung bereits vestrichen ist für die fbDNP3M_ServiceBase
Prioritätssteuerung

00 SYSTEM

fbDNP3M_ServiceFC01_60vX.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbMaster fbDNP3M_Master

fbDNP3M_ServiceFC01_60vX.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_ServiceFC01_60vX.mRUN (METH)

Interface variables

Scope Name Type


Input xEnable BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC01_60vX.mRequest (METH)

Interface variables

Scope Name Type


Return mRequest BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC02_50v1 (FB)

Interface variables

6.4. 020 Master 182


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment Inherited from


tNext TIME Zeit bis zur nächsten Aktivierung fbDNP3M_ServiceBase
Output
tDelay TIME Zeit die seit der Aktivierung bereits vestrichen ist für die fbDNP3M_ServiceBase
Prioritätssteuerung

00 SYSTEM

fbDNP3M_ServiceFC02_50v1.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbMaster fbDNP3M_Master

fbDNP3M_ServiceFC02_50v1.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_ServiceFC02_50v1.mRUN (METH)

Interface variables

Scope Name Type


Input xEnable BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC02_50v1.mRequest (METH)

Interface variables

Scope Name Type


Return mRequest BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC07_FC10 (FB)

Interface variables

Scope Name Type Comment Inherited from


tNext TIME Zeit bis zur nächsten Aktivierung fbDNP3M_ServiceBase
Output tDelay TIME Zeit die seit der Aktivierung bereits vestrichen ist für fbDNP3M_ServiceBase
die Prioritätssteuerung
xTriggered BOOL

00 SYSTEM

6.4. 020 Master 183


WagoAppRTU, Release 1.2.13.1

fbDNP3M_ServiceFC07_FC10.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbMaster fbDNP3M_Master

fbDNP3M_ServiceFC07_FC10.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_ServiceFC07_FC10.mRUN (METH)

Interface variables

Scope Name Type


Input xEnable BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC07_FC10.mRequest (METH)

Interface variables

Scope Name Type


Return mRequest BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC13_FC14 (FB)

Interface variables

Scope Name Type Comment Inherited from


tNext TIME Zeit bis zur nächsten Aktivierung fbDNP3M_ServiceBase
Output tDelay TIME Zeit die seit der Aktivierung bereits vestrichen ist für die fbDNP3M_ServiceBase
Prioritätssteuerung
byFC BYTE

00 SYSTEM

fbDNP3M_ServiceFC13_FC14.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbMaster fbDNP3M_Master

6.4. 020 Master 184


WagoAppRTU, Release 1.2.13.1

fbDNP3M_ServiceFC13_FC14.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_ServiceFC13_FC14.mRUN (METH)

Interface variables

Scope Name Type


Return mRUN BOOL
Input xEnable BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC13_FC14.mRequest (METH)

Interface variables

Scope Name Type


Return mRequest BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC20_FC21 (FB)

Interface variables

Scope Name Type Comment Inherited from


tNext TIME Zeit bis zur nächsten Aktivierung fbDNP3M_ServiceBase
tDelay TIME Zeit die seit der Aktivierung bereits vestrichen ist für fbDNP3M_ServiceBase
Output
die Prioritätssteuerung
byEnableI BYTE IST
byEnableS BYTE SOLL

00 SYSTEM

fbDNP3M_ServiceFC20_FC21.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbMaster fbDNP3M_Master

fbDNP3M_ServiceFC20_FC21.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

6.4. 020 Master 185


WagoAppRTU, Release 1.2.13.1

fbDNP3M_ServiceFC20_FC21.mRUN (METH)

Interface variables

Scope Name Type


Return mRUN BOOL
Input xEnable BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceFC20_FC21.mRequest (METH)

Interface variables

Scope Name Type


Return mRequest BOOL
Inout fbOS fbDNP3M_Outstation

fbDNP3M_ServiceSchedule (FB)

Interface variables

Scope Name Type


pFB POINTER TO fbDNP3M_ServiceBase
Input
tMax TIME

fbDNP3M_ServiceSchedule.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3M_ServiceSchedule.mMark (METH)

Interface variables

Scope Name Type


Return mMark BOOL
Inout fbService fbDNP3M_ServiceBase

fbDNP3M_Outstation (FB)
Interface variables

6.4. 020 Master 186


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


xAcitv BOOL Übergeordnete Steuerung dieser Outstation FB darf den Connektor
gerade benutzen (erforderlich wenn mehrere serielle Stationen an
Input
einem Bus)
byRequApduSEQ
BYTE Request APDU Sequenz-Nummer
eDNP3M_WaitForResp
eWaitForResp
tonRespTimeOut
TON
Inout fbMaster fbDNP3M_Master
xLinkOk BOOL
xII_NeedTime
BOOL
Output uRxII uTCBase_16Bit
fbEvBuffer fbDNP3M_EventBuffer
sName STRING(31)

00 SYSTEM

fbDNP3M_Outstation.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbMaster fbDNP3M_Master

fbDNP3M_Outstation.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

01 PRIVATE

RX

fbDNP3M_Outstation._NotSupportedQua (ACT)

fbDNP3M_Outstation._NotSupportedVar (ACT)

fbDNP3M_Outstation._mAdrCnt (METH)

Interface variables

Scope Name Type


Return _mAdrCnt INT
Input i INT

fbDNP3M_Outstation._mRspAsduInterpreter (METH)

Interface variables

Scope Name Type


Return _mRspAsduInterpreter INT

6.4. 020 Master 187


WagoAppRTU, Release 1.2.13.1

fbDNP3M_Outstation._mRxGr001 (METH)

Interface variables

Scope Name Type


Return _mRxGr001 INT
Inout i INT

fbDNP3M_Outstation._mRxGr003 (METH)

Interface variables

Scope Name Type


Return _mRxGr003 INT
Inout i INT

fbDNP3M_Outstation._mRxGr010 (METH)

Interface variables

Scope Name Type


Return _mRxGr010 INT
Inout i INT

fbDNP3M_Outstation._mRxGr020 (METH)

Interface variables

Scope Name Type


Return _mRxGr020 INT
Inout i INT

fbDNP3M_Outstation._mRxGr030 (METH)

Interface variables

Scope Name Type


Return _mRxGr030 INT
Inout i INT

fbDNP3M_Outstation._mRxGr040 (METH)

Interface variables

Scope Name Type


Return _mRxGr040 INT
Inout i INT

fbDNP3M_Outstation._mRx_CL (METH)

Interface variables

6.4. 020 Master 188


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return _mRx_CL INT
Inout i INT

fbDNP3M_Outstation._mRx_DA (METH)

Interface variables

Scope Name Type


Return _mRx_DA INT
Inout i INT

fbDNP3M_Outstation._mRx_II (METH)

Interface variables

Scope Name Type


Return _mRx_II INT
Inout i INT

fbDNP3M_Outstation._mRx_TD (METH)

Interface variables

Scope Name Type


Return _mRx_TD INT
Inout i INT

fbDNP3M_Outstation.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

fbDNP3M_Outstation.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fbDNP3M_Outstation.mResetNeedTime (METH)

Interface variables

Scope Name Type


Return mResetNeedTime BOOL

6.4.6 090 VISU


prgDNP3M_Visu (PRG)

6.4. 020 Master 189


WagoAppRTU, Release 1.2.13.1

prgDNP3M_Visu.ACT_01 (ACT)

prgDNP3M_Visu.ACT_03 (ACT)

prgDNP3M_Visu.ACT_10 (ACT)

prgDNP3M_Visu.ACT_20 (ACT)

prgDNP3M_Visu.ACT_30 (ACT)

prgDNP3M_Visu.ACT_40 (ACT)

prgDNP3M_Visu.mACT_OS (METH)

Interface variables

Scope Name Type


Return mACT_OS BOOL

prgDNP3M_Visu.mCntlStateString (METH)

Interface variables

Scope Name Type


Return mCntlStateString STRING(31)
Input byExeState BYTE

tyDNP3M_Visu_IndexSel (STRUCT)

Name Type
iCnt INT
iIx INT
InOut:
iIx_ INT
iMin INT
iMax INT

6.4.7 fbDNP3M_Master (FB)


Interface variables

Scope Name Type Comment


xEnable BOOL
byTyp BYTE 0 = nicht beutzt, 1 = TCP, 2 = UDP, 3 = TLS, 100 = COM, 200 =
Output
Tetrafunk
iIx INT
sName STRING(19)

00 SYSTEM
fbDNP3M_Master.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

6.4. 020 Master 190


WagoAppRTU, Release 1.2.13.1

fbDNP3M_Master.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fbDNP3M_Master.mGetConnector (METH)

Interface variables

Scope Name Type


Return mGetConnector POINTER TO fbTCBase_ConnectorBase
Inout fbFileReader fbTCBase_FileHandler

fbDNP3M_Master.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

6.4.8 prgDNP3M_Main (PRG)


Interface variables

Scope Name Type


Output sDataBase STRING(79)

010 CFG
prgDNP3M_Main.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgDNP3M_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

prgDNP3M_Main.mEventPrio (METH)
Interface variables

6.4. 020 Master 191


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mEventPrio BOOL
Inout fbOS fbDNP3M_Outstation

prgDNP3M_Main.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

prgDNP3M_Main.mInit (METH)
Interface variables

Scope Name Type


Return mInit BOOL

prgDNP3M_Main.mInitFinish (METH)
Interface variables

Scope Name Type


Return mInitFinish BOOL

prgDNP3M_Main.mPreeStart (METH)
Interface variables

Scope Name Type


Return mPreeStart BOOL
Input eState eTCBase_MainState

6.5 080 Online Config


6.5.1 001 Outstation
eDNP3O_ServerTyp (ENUM)
Attributes:
qualified_only
Name Initial
0
eDISABLE
InOut:
eSERIELL
eETHERNET

6.5. 080 Online Config 192


WagoAppRTU, Release 1.2.13.1

tyDNP30_ParaOS (STRUCT)

Name Type Initial Comment


xEnable BOOL
itfUser-
itfUserAppDNP3s
App_DNP3S
iQuRangeSpecifierMode
INT 0 iQualifierRangeSpecifierMode=”0”;
iQuObjectPrefixMode
INT 0 iQualifierObjectPrefixMode=”0”;
sDA_DeviceManuHardVers
STRING(79) sDA_DeviceManuHardVers=””;
sDA_DeviceManuSoftVers
STRING(79) sDA_DeviceManuSoftVers=””;
sDA_UserAssignedLocName
STRING(79) sDA_UserAssignedLocName=””;
sDA_UserAssignedID_Num
STRING(79) sDA_UserAssignedID_Num=””;
sDA_UserAssignedDevName
STRING(79) sDA_UserAssignedDevName=””;
sDA_DeviceSerialNum
STRING(79) sDA_DeviceSerialNum=””;
iMaxRespApduSize
INT 2048 iMaxRespApduSize=”2048”;
iMaxRequApduSize
INT 2048 iMaxRequApduSize=”2048”;
iMaxCtlObjects
INT 10 iMaxCtlObjects=”10”;
InOut:
byClockSyncTimeMode
BYTE 2 byClockSyncTimeMode=”2” // WAT31547: 0 =
deaktiviert, 1 = einmalig nach Verbindungsaufbau,
2 = nach Verbindungsaufbau und zyklisch
tClockSyncTime
TIME TIME#30m0s0ms
tClockSyncTime=”t#30m”;
iEventsPerClient
INT 4000 iEventsPerClient=”4000”;
byEventBufRetain
BYTE 0 byEventBufRetain=”0”;
byEventBufMode
BYTE 0 byEventBufMode=”0”;
tSboTimout TIME TIME#1s0ms tSboTimout=”T#1S”;
tConfTimeout
TIME TIME#10s0ms tConfTimeout=”t#10s”;
tDefaultCntTime
TIME TIME#1s0ms tDefaultCntTrime=”T#1S”;
wOutstationAdr
WORD 1 wOutstationAdr=”1”;
tyDNP30_ParaOS_App
tyParaOs_App
aParaOs_RTUARRAY [1..4]
OF
tyDNP3O_ParaOS_RTU

tyDNP30_ParaOS_App (STRUCT)
InOut:

Name Type Initial Comment


wStartAdr_BI WORD 0 wStartAdr=”0”;
byDfltVrn_Gr01 BYTE 2 byDfltVrn_Gr01=”2”;
byDfltVrn_Gr02 BYTE 2 byDfltVrn_Gr02=”2”;
wStartAdr_DI WORD 0 wStartAdr=”0”;
byDfltVrn_Gr03 BYTE 2 byDfltVrn_Gr03=”2”;
byDfltVrn_Gr04 BYTE 2 byDfltVrn_Gr04=”2”;
wStartAdr_BO WORD 0 wStartAdr=”0”;
byDfltVrn_Gr10 BYTE 2 byDfltVrn_Gr10=”2”;
byDfltVrn_Gr11 BYTE 1 byDfltVrn_Gr11=”1”;
wStartAdr_CNd WORD 0 wStartAdr32Bit=”0”;
wStartAdr_CNi WORD 100 wStartAdr16Bit=”100”;
byDfltVrn_Gr20d BYTE 1 byDfltVrn_Gr20d=”1”;
byDfltVrn_Gr21d BYTE 1 byDfltVrn_Gr21d=”1”;
byDfltVrn_Gr22d BYTE 1 byDfltVrn_Gr22d=”1”;
byDfltVrn_Gr20i BYTE 2 byDfltVrn_Gr20i=”2”;
byDfltVrn_Gr21i BYTE 2 byDfltVrn_Gr21i=”2”;
Continued on next page

6.5. 080 Online Config 193


WagoAppRTU, Release 1.2.13.1

Table 6.3 – continued from previous page


Name Type Initial Comment
byDfltVrn_Gr22i BYTE 2 byDfltVrn_Gr22i=”2”;
wStartAdr_AId WORD 0 wStartAdr32Bit=”0”;
wStartAdr_AIi WORD 100 wStartAdr16Bit=”100”;
wStartAdr_AIr WORD 200 wStartAdrFloat=”200”;
bySupportGrp34 BYTE 1 bySupportGrp34=”1”;
byDfltVrn_Gr30d BYTE 1 byDfltVrn_Gr30d=”1”;
byDfltVrn_Gr32d BYTE 1 byDfltVrn_Gr32d=”1”;
byDfltVrn_Gr30i BYTE 2 byDfltVrn_Gr30i=”2”;
byDfltVrn_Gr32i BYTE 2 byDfltVrn_Gr32i=”2”;
byDfltVrn_Gr30r BYTE 5 byDfltVrn_Gr30r=”5”;
byDfltVrn_Gr32r BYTE 5 byDfltVrn_Gr32r=”5”;
wStartAdr_AOd WORD 0 wStartAdr32Bit=”0”;
wStartAdr_AOi WORD 100 wStartAdr16Bit=”100”;
wStartAdr_AOr WORD 200 wStartAdrFloat=”200”;
byDfltVrn_Gr40d BYTE 1 byDfltVrn_Gr40d=”1”;
byDfltVrn_Gr41d BYTE 1 byDfltVrn_Gr41d=”1”;
byDfltVrn_Gr40i BYTE 2 byDfltVrn_Gr40i=”2”;
byDfltVrn_Gr41i BYTE 2 byDfltVrn_Gr41i=”2”;
byDfltVrn_Gr40r BYTE 3 byDfltVrn_Gr40r=”3”;
byDfltVrn_Gr41r BYTE 3 byDfltVrn_Gr41r=”3”;

tyDNP3O_ParaOS_LinkCom (STRUCT)

Name Type Initial Comment


iComPort INT 1
iComType INT 0 0 = RS232 None
dwBaudrate DWORD 9600 1 = RS232 XOn/XOff 2 = RS232 RTS/CTS
InOut:
iLinkTestMode INT 1 WAT31577: 0 = deaktiviert, 1 = Testtelegramm, 2 =
Master Timeout
tLinkTestTime TIME TIME#10s0ms
tLinkTestTimeOut
TIME TIME#3s0ms

tyDNP3O_ParaOS_LinkEth (STRUCT)

Name Type Initial Comment


xMasterAdrCheck BOOL FALSE
bySockTyp BYTE 1 TCP = 1, UDP = 2
wPort WORD 20000
InOut: wLinkTestTime WORD 10
xIpAdrCheck BOOL TRUE
sIpAdrAccepted01 STRING(23) ‘0.0.0.0’
sIpAdrAccepted02 STRING(23) ‘0.0.0.0’
sIpAdrAccepted03 STRING(23) ‘0.0.0.0’

6.5. 080 Online Config 194


WagoAppRTU, Release 1.2.13.1

tyDNP3O_ParaOS_RTU (STRUCT)

Name Type Initial Comment


eSvrTyp eDNP3O_ServerTyp.eDISABLE
eDNP3O_ServerTyp zulässig
sind:
eDISABLE,
eSERIELL,
eETHER-
NET
xEnable BOOL FALSE
wMasterAdr WORD 1
InOut: tyParaUnsRsp STRUCT(byUnsMode := 5, tUnsTimeout :=
tyDNP3O_ParaOS_UnsRsp
TIME#10s0ms, iUnsRetries := 2, tUnsRetryTime :=
TIME#60m0s0ms, tUnsHoldTimeCls1 :=
TIME#10s0ms, iUnsHoldCntCls1 := 2,
tUnsHoldTimeCls2 := TIME#10s0ms,
iUnsHoldCntCls2 := 2, tUnsHoldTimeCls3 :=
TIME#10s0ms, iUnsHoldCntCls3 := 2,
xUnsClsEnable1 := TRUE, xUnsClsEnable2 := TRUE,
xUnsClsEnable3 := TRUE)
uLink uDNP3O_ParaOS_Link xUnsClsEn-
able3=”True”;

tyDNP3O_ParaOS_UnsRsp (STRUCT)

Name Type Initial Comment


byUnsMode BYTE 5 0 = Deaktiviert
tUnsTimeout TIME TIME#10s0ms tUnsTimeout=”t#10s”;
iUnsRetries INT 2 iUnsRetries=”2”;
tUnsRetryTime TIME TIME#60m0s0mstUnsRetryTime=”t#1h”;
xUnsClsEnable1 BOOL TRUE xUnsClsEnable1=”True”;
tUnsHoldTimeCls1TIME TIME#10s0ms tUnsHoldTimeCls1=”t#10s”; used if
iUnsClsConfigMode <> 0
iUnsHoldCntCls1 INT 1 iUnsHoldCntCls1=”1”; used if iUnsClsConfigMode
<> 0
InOut:
xUnsClsEnable2 BOOL TRUE xUnsClsEnable2=”True”;
tUnsHoldTimeCls2TIME TIME#10s0ms tUnsHoldTimeCls2=”t#10s”; used if
iUnsClsConfigMode <> 0
iUnsHoldCntCls2 INT 1 iUnsHoldCntCls2=”1”; used if iUnsClsConfigMode
<> 0
xUnsClsEnable3 BOOL TRUE xUnsClsEnable3=”True”;
tUnsHoldTimeCls3TIME TIME#10s0ms tUnsHoldTimeCls3=”t#10s”; used if
iUnsClsConfigMode <> 0
iUnsHoldCntCls3 INT 1 iUnsHoldCntCls3=”1”; used if iUnsClsConfigMode
<> 0

uDNP3O_ParaOS_Link (UNION)

Name Type
InOut: tyCom tyDNP3O_ParaOS_LinkCom
tyEth tyDNP3O_ParaOS_LinkEth

6.5.2 tyDNP3_UserAppPara (STRUCT)


Name Type
InOut:
tyParaOs tyDNP30_ParaOS

6.5. 080 Online Config 195


WagoAppRTU, Release 1.2.13.1

6.6 DNP3_GC (GVL)


Attributes:
qualified_only

Scope Name Type Initial Comment


INT 4 C_DNP_3_EVENTS_PRO_CLIENT
C_NUMS_OF_ETH_CLIENTS : INT := 4095;///
Count of events
per connectin
INT 4 Count of client
C_NUMS_OF_COM_CLIENTS connections (Eth-
ernet only)
INT 4 Count of client
C_NUMS_OF_CLIENTS connections (Se-
rial only)
STRING ‘/etc/certificates/3S_CA.cer’
Count of client
C_DNP3_VERIFYLOCATION connections
(Ethernet and
Serial togeter)
====================
TLS Parameter
====================
STRING ‘/etc/certificates/keys/3S_CA.der’
C_DNP3_PRIVATEKEY
STRING ‘/etc/certificates/Default.cer’
C_DNP3_CERTIFICATE
BYTE 255 Dummy because
WCRYPT_EVP_MAX_MD_SIZE Secure Authenti-
cation is not used
INT TCBase_GC.C_LAST_INFOBJ
C_LAST_INFOBJ
INT 150
Constant
C_LAST_EV_CLUSTER
Continued on next page

6.6. DNP3_GC (GVL) 196


WagoAppRTU, Release 1.2.13.1

Table 6.4 – continued from previous page


Scope Name Type Initial Comment
ARRAY [0..255] [16#0, 16#365E,
gDNP3_CRC16LockUp OF WORD 16#6CBC,
16#5AE2,
16#D978,
16#EF26,
16#B5C4,
16#839A,
16#FF89,
16#C9D7,
16#9335,
16#A56B,
16#26F1,
16#10AF,
16#4A4D,
16#7C13,
16#B26B,
16#8435,
16#DED7,
16#E889,
16#6B13,
16#5D4D,
16#7AF,
16#31F1,
16#4DE2,
16#7BBC,
16#215E,
16#1700,
16#949A,
16#A2C4,
16#F826,
16#CE78,
16#29AF,
16#1FF1,
16#4513,
16#734D,
16#F0D7,
16#C689,
16#9C6B,
16#AA35,
16#D626,
16#E078,
16#BA9A,
16#8CC4,
16#F5E,
16#3900,
16#63E2,
16#55BC,
16#9BC4,
16#AD9A,
16#F778,
16#C126,
16#42BC,
16#74E2,
16#2E00,
16#185E,
16#644D,
16#5213,
16#8F1,
6.6. DNP3_GC (GVL) 16#3EAF, 197
16#BD35,
16#8B6B,
16#D189,
WagoAppRTU, Release 1.2.13.1

Table 6.4 – continued from previous page


Scope Name Type Initial Comment
BYTE 0
C_DNP3_VARIATION_DEFAULT
WORD 2303
C_DNP3_MAX_BUFFER
INT 1
C_DNP3_HEADER_RANGE
ARRAY [0..15] [16#1, 16#2, Art des Headers
gDNP3_BISMASK_SET OF WORD 16#4, 16#8,
16#10, 16#20,
16#40, 16#80,
16#100, 16#200,
16#400, 16#800,
16#1000,
16#2000,
16#4000,
16#8000]
BYTE 0 240..255
C_DNP3_EV_CLASS_0
BYTE 1
C_DNP3_EV_CLASS_1
BYTE 2
C_DNP3_EV_CLASS_2
BYTE 4
C_DNP3_EV_CLASS_3
ARRAY [0..3] OF [STRUCT(dwEvCls
uDNP3_EvClassList :=
C_DNP3_UNION_EVCLASS 16#0),
STRUCT(dwEvCls
:= 16#1010101),
STRUCT(dwEvCls
:= 16#2020202),
STRUCT(dwEvCls
:= 16#4040404)]
BYTE 0
C_DNP3_DTC_NULL
BYTE 1 0 = wird nur
C_DNP3_DTC_VSTR intern verwendet
für nicht definiert
BYTE 2 1 = VSTR [Vis-
C_DNP3_DTC_UINT ible characters
suitable for print
and display]
BYTE 3 2 = UINT [Un-
C_DNP3_DTC_INT signed Integer]
BYTE 4 3 = INT [Signed
C_DNP3_DTC_FLT Integer]
BYTE 5 4 = FLT
C_DNP3_DTC_OSTR [Floating-point]
BYTE 6 5 = OSTR [Octet
C_DNP3_DTC_BSTR String]
BYTE 254 6 = BSTR [Bit
C_DNP3_DTC_U8BS8LIST String]
Continued on next page

6.6. DNP3_GC (GVL) 198


WagoAppRTU, Release 1.2.13.1

Table 6.4 – continued from previous page


Scope Name Type Initial Comment
BYTE 255 254 =
C_DNP3_DTC_U8BS8EXLIST U8BS8LIST
[List of UNIT8-
BSTR8 pairs] 255
= U8BS8EXLIST
[Extendetlist of
UNIT8-BSTR8
pairs]
ARRAY [0..7] OF [16#0, 16#1,
C_DNP3_CLASSNO_LIST
BYTE 16#2, 16#2,
16#3, 16#3, 16#3,
16#3]
ARRAY [0..15] [16#30, 16#31,
C_DNP3_HEXCHAROF BYTE 16#32, 16#33,
16#34, 16#35,
16#36, 16#37,
16#38, 16#39,
16#41, 16#42,
16#43, 16#44,
16#45, 16#46]
BYTE 0
C_DNP3_USN_REGISTRATION
BYTE 1
C_DNP3_USN_REGISTRATION_CNF
BYTE 2 Unsolicent Event
C_DNP3_USN_IDLE Response Leer-
lauf
BYTE 3 Unsolicent Event
C_DNP3_USN_EVENTSSEND_CNF Response warten
auf Confirm
BYTE 4
C_DNP3_USN_EVENTREPEAT
BYTE 5 Neu eingeführt,
C_DNP3_USN_DELAY wenn nach
eingestellter An-
zahl von Retay’s
keine Antwort
gekommen ist,
wird vor dem
nächten Versuch
tUnsRetryTime
gewartet
BYTE 0 Event-Poll leer-
C_DNP3_EVP_IDLE lauf
BYTE 3 Event-Poll warten
C_DNP3_EVP_EVENTSSEND_CNF auf Confirm
TIME TIME#1m30s0ms Wait for Recall
C_DNP3_MODEM_WAIT_FOR_RECALL from Master by
using dial-modem
INT 6 Max count of
C_DNP3_AUTH_MAX_USERS users by using
secure authentica-
tion
WORD 16 Security Statistic
C_DNP3_AUTH_STATISTIC_OBJ Objects
Continued on next page

6.6. DNP3_GC (GVL) 199


WagoAppRTU, Release 1.2.13.1

Table 6.4 – continued from previous page


Scope Name Type Initial Comment
ARRAY [0..12] [‘0x00 SUC- C_PROTOCOL_TCP
C_DNP3_TOOLTIP_C_STATECODE
OF STRING(31) CESS’, : BOOL
‘0x01 TIME- := FALSE;
OUT’, ‘0x02 C_PROTOCOL_UDP
NO_SELECT’, : BOOL
‘0x03 FOR- := TRUE;
MAT_ERROR’, C_DNP3_EV_FILE_MODE_SAVE
‘0x04 : BOOL
NOT_SUPPORTED’,:= TRUE;
‘0x05 AL- C_DNP3_EV_FILE_MODE_LOAD
READY_ACTIVE’, : BOOL
‘0x06 HARD- := FALSE;
WARE_ERROR’, C_DNP3_EV_FILE_NAME
‘0x07 LO- : STRING(63)
CAL’, ‘0x08 := CON-
TOO_MANY_OBJS’,CAT(TCBase_GC.C_SDCARD_DIR_FI
‘0x09 CON-
NOT_AUTHORIZED’, CAT(TCBase_GC.C_OS_SLASH,
‘0x0A AU- ‘DNP3_OutStationCL_‘));
TOMA-
TION_INHIBIT’,
‘0x0B PRO-
CESS-
ING_LIMITED’,
‘0x0C
OUT_OF_RANGE’]
Continued on next page

6.6. DNP3_GC (GVL) 200


WagoAppRTU, Release 1.2.13.1

Table 6.4 – continued from previous page


Scope Name Type Initial Comment
ARRAY [0..3] OF [’—-‘, ‘Sel & 12
C_DNP3M_EXEC_MODE STRING(15) Exe’, ‘Direct ‘=>
Exe’, ‘Direct Exe (SEL_SEND)’,
NR’] // 15
‘=>
(EXE_SEND)’,
// 16
‘=>
(DI-
RECT_EXE_SEND)’,
// 17
‘=>
(DI-
RECT_EXE_NR_SEND)’];
// 18
‘0x7E
NON_PARTICIPATING’,
// 13
‘0x7F
UN-
DE-
FINED’];
// 14
C_DNP3_TOOLTIP_C_STATECODE
: WSTRING(447)
:= “0x00 SUC-
CESS$n$r0x01
TIME-
OUT$n$r0x02
NO_SELECT$n$r0x03
FOR-
MAT_ERROR$n$r0x04
NOT_SUPPORTED$n$r0x05
AL-
READY_ACTIVE$n$r0x06
HARD-
WARE_ERROR$n$r0x07
LOCAL$n$r0x08
TOO_MANY_OBJS$n$r0x09
NOT_AUTHORIZED$n$r0x0A
AUTOMA-
TION_INHIBIT$n$r0x0B
PROCESS-
ING_LIMITED$n$r0x0C
OUT_OF_RANGE$n$r0x30
(SEL_SEND)$n$r0x40
(EXE_SEND)$n$r0x50
(DI-
RECT_EXE_SEND)$n$r0x60
(DI-
RECT_EXE_NR_SEND)$n$r0x7E
NON_PARTICIPATING$n$r0x7F
UNDEFINED”;
Continued on next page

6.6. DNP3_GC (GVL) 201


WagoAppRTU, Release 1.2.13.1

Table 6.4 – continued from previous page


Scope Name Type Initial Comment
ARRAY [0..3] OF [’—-‘, ‘Act.-
C_DNP3M_BINOUTPUT_TYPE
STRING(15) Mode’, ‘1C
Comp. Latch’,
‘2C Comp.
Latch’]
INT 499
C_DNP3M_EV_MAXINDEX
BYTE 0
C_DNP3_VT_NON
BYTE 1
C_DNP3_VT_DINT
BYTE 2
C_DNP3_VT_INT
BYTE 3
C_DNP3_VT_REAL
BYTE 4
C_DNP3_VT_LREAL
BYTE 101
C_DNP3_VT_GR01
BYTE 103
C_DNP3_VT_GR03
BYTE 110
C_DNP3_VT_GR10
ARRAY [0..3] OF [‘00$’,$’‘,
C_DNP3_DI_FLAGSSTRING(7) ‘01$’,$’‘,
‘10$’,$’‘,
‘11$’,$’‘]

6.7 DNP3_GR (GVL)


6.8 DNP3_GV (GVL)
6.9 prgDNP3_Main (PRG)
Interface variables

Scope Name Type Comment


xEnable BOOL
Output
iInfObjCnt INT Zähler für die Gesamtanzahl an Informationsobjekten,
############################################################# prgDNP3_Main
#################################################################

6.9.1 010 CFG


prgDNP3_Main.mCfgApp (METH)
Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyPara tyDNP3_UserAppPara

6.7. DNP3_GR (GVL) 202


WagoAppRTU, Release 1.2.13.1

prgDNP3_Main.mCfgRead (METH)
Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgDNP3_Main.mCfgWrite (METH)
Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

6.9.2 prgDNP3_Main.mExit (METH)


Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eDNP3_LoggerEV

6.9.3 prgDNP3_Main.mInit (METH)


Interface variables

Scope Name Type


Return mInit BOOL

6.9.4 prgDNP3_Main.mPreeStart (METH)


Interface variables

Scope Name Type


Return mPreeStart BOOL
Input eState eTCBase_MainState

6.9.5 prgDNP3_Main.mRetainInit (METH)


Interface variables

Scope Name Type


Return mRetainInit BOOL

6.9.6 prgDNP3_Main.mRtnObjIx (METH)


Interface variables

Scope Name Type


Return mRtnObjIx INT

6.9. prgDNP3_Main (PRG) 203


WagoAppRTU, Release 1.2.13.1

6.9.7 prgDNP3_Main.mStartReboot (METH)


Interface variables

Scope Name Type


Input sInfo STRING(79)

6.9. prgDNP3_Main (PRG) 204


CHAPTER 7

TC_IEC60870

7.1 001 Common


7.1.1 080 Online Config
ty870_UserAppPara (STRUCT)

Name Type
InOut: tyParaSvr ty870S_ParaSvr
tyParaClt ty870C_ParaClt

7.1.2 DUT
Retain
ty870_RetainC_BO (STRUCT)

Name Type
InOut:
dwBO DWORD

ty870_RetainC_SE (STRUCT)

Name Type
InOut:
uVal uTCBase_32Bit

ty870_RetainC_xC (STRUCT)

Name Type
xStatic BOOL
InOut: xBit0 BOOL
xBit1 BOOL
byQU BYTE

205
WagoAppRTU, Release 1.2.13.1

u870_RetainUnion (UNION)

Name Type
u64 uTCBase_64Bit
tyM_IT ty870S_BCR
InOut:
tyC_xC ty870_RetainC_xC
tyC_SE ty870_RetainC_SE
tyC_BO uTCBase_32Bit

e870_CPTyp (ENUM)
Attributes:
qualified_only
Name Initial
0
eCP_00
2
eCP_16
InOut: 3
eCP_24
4
eCP_32
7
eCP_56

e870_ExeState (ENUM)
Attributes:
qualified_only
Name
eIDLE
eWAIT_CONFIRM
eWAIT_RESPOND
eWAIT_RESPOND_MON
InOut:
eDONE
eERROR
eRM_FAULT
eTIMEOFF
eWRONG_LEN

e870_InfObj_TK (ENUM)
Attributes:
qualified_only
InOut:

Name Initial
eM_01SP 1
eM_02SP 2
eM_03DP 3
Continued on next page

7.1. 001 Common 206


WagoAppRTU, Release 1.2.13.1

Table 7.1 – continued from previous page


Name Initial
eM_04DP 4
eM_05SP 5
eM_06SP 6
eM_07BO 7
eM_08BO 8
eM_09ME 9
eM_10ME 10
eM_11ME 11
eM_12ME 12
eM_13ME 13
eM_14ME 14
eM_15IT 15
eM_16IT 16
eM_33BO 33
eM_34BO 34
eM_35BO 35
eM_36ME 36
eM_30SP 30
eM_31DP 31
eM_32SP 32
eM_37IT 37
eC_45SC 45
eC_46DC 46
eC_47RC 47
eC_48SE 48
eC_49SE 49
eC_50SE 50
eC_51BO 51
eC_58SC 58
eC_59DC 59
eC_60RC 60
eC_61SE 61
eC_62SE 62
eC_63SE 63
eC_64BO 64

ty870_BufIx (STRUCT)

Name Type Comment


dwIxPut DWORD Index auf die Zelle für den nächsten PUT Befehl
dwIxGet DWORD Index auf die Zelle für den nächsten GET Befehl
dwIxDel DWORD Index auf die Zelle für den nächsten DEL Befehl
InOut:
dwIxQui DWORD Index auf die Zelle für den nächsten QUITT Befehl
wTlgToGet WORD wCntGet : WORD; // Anzahl der Telegramme die eingetregane aber noch
nicht wCntDel : WORD; wCntQui : WORD;
wTlgToDel WORD

ty870_BufMsg (STRUCT)

Name Type
InOut: tyBuProlog ty870_BufProlog
tyIecMsg ty870_IecMsg

7.1. 001 Common 207


WagoAppRTU, Release 1.2.13.1

ty870_BufProlog (STRUCT)

Name Type
InOut: wLenInDW WORD
wTFNo WORD

ty870_CP16 (STRUCT)

Name Type
InOut:
uMilliSec uTCBase_16Bit

ty870_CP24 (STRUCT)

Name Type Initial Comment


InOut: uMilliSec uTCBase_16Bit
byMinuten BYTE 16#80 BIT 7 = IV (0=gültig/1=ungültig), BIT 6 = Reserve

ty870_CP32 (STRUCT)

Name Type Initial Comment


uMilliSec uTCBase_16Bit
InOut: byMinuten BYTE 16#80 BIT 7 = IV (0=gültig/1=ungültig), BIT 6 = Reserve
byStunde BYTE BIT 7 = SU (0=normalzeit/1=Sommerzeit), BIT 6,5 =
Reserve

ty870_CP56 (STRUCT)

Name Type Initial Comment


uMilliSec uTCBase_16Bit
byMinuten BYTE 16#80 BIT 7 = IV (0=gültig/1=ungültig), BIT 6 = Reserve
byStunde BYTE BIT 7 = SU (0=normalzeit/1=Sommerzeit), BIT 6,5 =
InOut:
Reserve
byTag BYTE BIT 7,6,5 = Wochentag, BIT 4,3,2,1,0 = Tag im Monat
byMonat BYTE BIT 7,6,5,4 = Reserve, BIT 3,2,1,0 = Monat
byJahr BYTE Bit 7 = Reserve, BIT 6..0 = Jahr

ty870_ConnParaEth (STRUCT)

Name Type Initial Comment


bySockTyp BYTE 0 = frei oder nicht verwendet, 1 = UDP, , 1 =
TCP, 3 >= TLS/SSL, 101 => COM 1 .. 115 =>
COM 15
byBindAt BYTE Optional Binden auf X1 oder X2, 0: nicht
binden, 1: Binden an X1, 2: Binden an X2
wPort WORD 2404
InOut:
hSocket SysTypes. SysTypes.RTS_INVALID_HANDLE
Socket-Id for connection session
RTS_IEC_HANDLE
wMaxClientsWORD 1
xIpAdrCheckBOOL FALSE
aConn ARRAY [1..4]
OF
ty870S_Conn104

7.1. 001 Common 208


WagoAppRTU, Release 1.2.13.1

ty870_GlobalParameter (STRUCT)

Name Type Initial Comment


tClockValidityTimeTIME TIME#10m0s0ms
Parameter
Clock
byClockSyncMode :
BYTE := 0;
xClockBit_SU BOOL FALSE
xClockBit_DOW BOOL TRUE
byClockZone BYTE 1 1 = Lokale Zeit, 2 =
UTC Zeit
tC_PulseDurationD TIME TIME#1s0ms Parameter Befehlsaus-
führung
InOut: tC_PulseDurationS TIME TIME#500ms
tC_PulseDurationL TIME TIME#5s0ms
xC_1_off_N BOOL TRUE
tC_CpValidityTime TIME TIME#2s0ms Gültigketsdauer für Be-
fehle und Sollwerte mit
Zeitstempel
byQrpMode BYTE 1 Parameter Kontroller
Rücksetzen
byIcMode BYTE 1 0,1 = Informations-
Objekte bei der
Generalabfrage ohne
Zeitstempel übertragen
(Nornkonform),

ty870_IecMsg (STRUCT)

Name Type Comment


tyProlog ty870_IecProlog
byControl BYTE Steuerfeld
InOut:
byDataLen BYTE
uLinkAdr uTCBase_16Bit
aData ARRAY [0..255] OF BYTE

ty870_IecMsgC (STRUCT)

Name Type Comment


tyProlog ty870_IecProlog
byControl BYTE Steuerfeld
InOut: byDataLen BYTE
uLinkAdr uTCBase_16Bit
aData ARRAY [0..15] OF maximal: 3 Byte Adresse, 4 Byte Daten, 1 Byte Flags, 7
BYTE Byte CP56

ty870_IecProlog (STRUCT)

Name Type Comment


byTK BYTE Typ-Kennung
bySK BYTE Struktur-Kennung
InOut:
byCOT BYTE Übertragungsursache
byOA BYTE Herkunfts-Adresse (Ordinator Adress)
uASDU uTCBase_16Bit

7.1. 001 Common 209


WagoAppRTU, Release 1.2.13.1

ty870_InfObjMapping (STRUCT)

Name Type Comment


byTK BYTE Typ-Kennung
byDL BYTE Daten Länge in Byte
xFL BOOL Flag Länge in Byte
InOut: byCL BYTE Clock-Länge in Byte
byBaseTK BYTE
byByteLen BYTE
byReserve1 BYTE
byReserve2 BYTE

ty870_InfObjStruct (STRUCT)

Name Type Comment


byIx BYTE
xValid BOOL
byDL BYTE Länge der Daten in BYTE
byFL BYTE Länge der Flags in BYTE (zulässig ist nur 0 und 1)
InOut: byTL BYTE Länge der Zeiten in BYTE
xREAL BOOL TRUE, wenn Daten-Typ = REAL
byRawLen BYTE
byMaxSK BYTE Maximale Anzahl von Objekten in einem Telegramm. Ergibt sich aus
Info-Objekt-Typ, Info-Objekt-Adress Länge und aus der maximalen
Telegrammlänge

ty870_OnlineConfig (STRUCT)

Name Type Comment


InOut: iListIx INT
aList ARRAY [0..99] OF ty870_ServerAsduInfo OF POINTER TO fb870S_Asdu;

ty870_ParaASDU (STRUCT)

Name Type Initial Comment


byObjAdrLen BYTE 3
byMaxTlgLen BYTE 240
byCounterMode
BYTE 1 C_COUNT_MODE_A := 0; (* örtliches Umspeichern /
Übertragung spontane *)
wCounterInterval
WORD 30 Intervall für das Umspeichern der Zählwerte im Modus A
InOut: und B
xC_SbE BOOL Select befor Execute
tC_SbE_Timeout
TIME TIME#5s0ms
xIgnoreTSN BOOL Alte Option: Die Kontinuierliche Telegramm-Folgenummern
bei Empfangstelegrammen werden ignoriert
byCOT_ArcValBYTE 47 Parameter Übertragungs-Ursache für Archiv-Mess- und
Zählwerte

7.1. 001 Common 210


WagoAppRTU, Release 1.2.13.1

ty870_ParaLink104 (STRUCT)

Name Type Initial


wK WORD 12
wW WORD 8
InOut: tT0 TIME TIME#30s0ms
tT1 TIME TIME#15s0ms
tT2 TIME TIME#10s0ms
tT3 TIME TIME#20s0ms

ty870_ServerAsduInfo (STRUCT)

Name Type
InOut: pServer POINTER TO fb870_ServerBase
pAsdu POINTER TO fb870S_Asdu

7.1.3 POU
10 Clock
fb870_Clock (FB)

Interface variables

Scope Name Type Initial Comment


Input xSetRTC BOOL TRUE If TRUE, received data will by written to Controller RTC
tyCP56 ty870_CP56
dtCP56 DT Aktuelle Uhrzeit als DT;
Output wSec WORD Sekunde in der Stunde 0 .. 3599
xIV BOOL TRUE Ist TRUE, wenn Uhrzeit Invalid
xNeedTime BOOL TRUE

PRIVATE

fb870_Clock._act_U64 (ACT)

IF (TC60870_GV.gtyGlPar.xClockBit_SU) AND_THEN _mDst() THEN tyCP56.byStunde := (16#80 OR


tyCP56.byStunde); END_IF

fb870_Clock._mDst (METH)

Interface variables

Scope Name Type


Return _mDst BOOL

fb870_Clock.mCP56_TO_DT (METH)

Interface variables

Scope Name Type


Return mCP56_TO_DT DT
Input tyCP56 ty870_CP56

7.1. 001 Common 211


WagoAppRTU, Release 1.2.13.1

fb870_Clock.mCP56_TO_ST (METH)

Interface variables

Scope Name Type


Return mCP56_TO_ST SysTimeRTC.RTS_SYSTIMEDATE
Input tyCP56 ty870_CP56

fb870_Clock.mDT_TO_CP56 (METH)

Interface variables

Scope Name Type


Return mDT_TO_CP56 ty870_CP56
dtIn DT
Input
wMS WORD

fb870_Clock.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fb870_Clock.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input tyRxMsg ty870_IecMsg
fbASDU fb870S_Asdu
Inout
fbEvBuffer fb870S_EventBuffer

30 File
_fb870_MsgList (FB)

Interface variables

Scope Name Type Comment


byObjAdrLen BYTE tyTmp : ty870_IecMsg;
Input
byMaxTlgLen BYTE
Output xMsgToSend BOOL

_fb870_MsgList.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

7.1. 001 Common 212


WagoAppRTU, Release 1.2.13.1

_fb870_MsgList.mTxMsgGet (METH)

Interface variables

Scope Name Type Comment


Return mTxMsgGet BOOL
fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
Inout
fbAsdu fb870S_Asdu

_fb870_MsgList.mTxMsgPut (METH)

Interface variables

Scope Name Type


Inout tyMsg ty870_IecMsg

e870_FileResult (ENUM)

Attributes:
qualified_only
Name Comment
0
e_NULL
1
e_ERROR
InOut: 2
e_DONE
3
e_RECEIVE
x
e_LAST

fb870_FileManager (FB)

Interface variables

Scope Name Type


Output xEnabled BOOL

10 PRIVATE

fb870_FileManager._mFileList (METH)

Interface variables

Scope Name Type


Return _mFileList BOOL
Inout tyFileList ty870_FileList

fb870_FileManager.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

7.1. 001 Common 213


WagoAppRTU, Release 1.2.13.1

fb870_FileManager.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fb870_FileManager.mMsgRx (METH)

Interface variables

Scope Name Type Comment


Return mMsgRx INT
tyRxMsg ty870_IecMsg
Inout fbASDU fb870S_Asdu
fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;

ty870_DirInfo (STRUCT)

Name Type
dtCreation DT
dtLastAccess DT
InOut:
dtLastModification DT
dwSize DWORD
xDirectory BOOL

ty870_FileDirInfo (STRUCT)

Name Type
dwObjAdr DWORD
dwLen DWORD
InOut: wFileName WORD
bySOF BYTE
byReserve BYTE
dtLastModification DT

ty870_FileList (STRUCT)

Name Type Comment


iCnt INT
iIx INT Diese Variable verwende ich um mir zu
merken, bis wohin die Liste bearbeitet wurde
aList ARRAY
InOut:
[0..TC60870_GC.C_MAX_FILE_LIST]
OF ty870_FileDirInfo
iSelectIx INT
dwSelectAdrDWORD
wSelectNameWORD

7.1. 001 Common 214


WagoAppRTU, Release 1.2.13.1

ty870_FileReceive (STRUCT)

Name Type Comment


dwInfObjAdr DWORD
wFileName WORD
sFileName STRING(79)
dwFileLen DWORD
dwSectionLen DWORD
byCOT BYTE
byFRQ BYTE
FRQ Kennung Datei bereit [en: File ready qua

[1..7] 0 = nicht festgelegt [en: default]


1..63 = re-
serviert
für Norm-
festlegungen
nach dieser
Anwen-
dungsbezo-
genen Norm
(kompatibler
Bereich)
64..127 =
reserviert für
besondere
Anwendun-
gen (privater
Bereich)
[8] 0 = positive Bestätigung von Ausw
1 = negative
Bestäti-
gung von
Auswahl,
Abfrage, Ab-
bruch oder
InOut: Löschen

bySRQ BYTE
SRQ Kennung Abschnitt bereit [en: Section rea

[1..7] 0 = nicht festgelegt [en: default]


1..63 = re-
serviert
für Norm-
festlegungen
nach dieser
Anwen-
dungsbezo-
genen Norm
(kompatibler
Bereich)
64..127 =
reserviert für
besondere
Anwendun-
gen (privater
Bereich)
[8] 0 = Abschnitt zum Laden bereit
1 = Ab-
7.1. 001 Common schnitt nicht215
zum Laden
bereit
WagoAppRTU, Release 1.2.13.1

7.1. 001 Common 216


WagoAppRTU, Release 1.2.13.1

ty870_FileRequest (STRUCT)

Name Type Comment


dwInfObjAdr DWORD
byCOT BYTE
bySCQ BYTE
byAFQ BYTE
wFileName WORD
AFQ Kennung für
Bestätigung Datei
oder Abschnitt [en:
Acknowledge file
or section qualifier]
* [7..4] 0 = nicht
festgelegt *
1 = abge-
fragter
Speicher-
bereich
nicht ver-
fügbar * 2 =
fehlerhafte
Prüfsumme
* 3 = uner-
warteter
Kommu-
nikations-
dienst *
4 = uner-
warteter
Dateiname
* 5 = uner-
warteter
Ab-
schnittsname
* 6..10 =
reserviert
für Norm-
festlegun-
gen nach
dieser An-
wendungs-
bezogenen
InOut:
Norm(kompatibler
Bereich) *
11..15 = re-
serviert für
besondere
Anwen-
dungen
(privater
Bereich) *
[3..0] 0 = nicht benutzt *
1 = positive
Bestätigung
der Dateiüber-
mittlung * 2
= negative
Bestätigung
der Dateiüber-
7.1. 001 Common mittlung * 217
3 = positive
Bestätigung der
Abschnittsüber-
WagoAppRTU, Release 1.2.13.1

ty870_FileSection (STRUCT)

Name Type Initial Comment


dwObjAdr DWORD
wFileName WORD
dwFileLen DWORD
dwFileOffset
DWORD
dwSectionLen
DWORD
sFileName STRING(79)
InOut: aData ARRAY [0..1179] das sind 5 Telegramme mit jeweils der maximalen 236
OF BYTE Nutzdaten
bySectionNoBYTE 1 Diese Variable verwende ich um mir zu merken, bis
wohin die Liste bearbeitet wurde
bySectionCnt
BYTE Anzahl der Section in die diesen File ausmachen
byBccSec BYTE Blockcheck für jede Section
byBccFile BYTE Blockcheck für die gesammte Datei
xLastBlk BOOL

40 ArchivVal
fb870S_ItArchivVal (FB)

Interface variables

Scope Name Type Comment


byMode BYTE 0: keine Archiv-Wert Verarbeitung, 1: Summe, 2: Differenz
Input
wEvTimeMask WORD
Output uVal_ uTCBase_32Bit

fb870S_ItArchivVal.mSendVal (METH)

Interface variables

Scope Name Type


fbAsdu fb870S_Asdu
Inout
tyInfObj ty870S_InfObjPar

fb870S_MeArchivVal (FB)

Interface variables

Scope Name Type Comment


Input byMode BYTE 0: keine Archiv-Wert Verarbeitung, 1: Mittelwert, 2: Minwert, 3:
Maxwert
Output uQ uTCBase_32Bit

fb870S_MeArchivVal.mINT (METH)

Interface variables

Scope Name Type


Input iVal INT

7.1. 001 Common 218


WagoAppRTU, Release 1.2.13.1

fb870S_MeArchivVal.mREAL (METH)

Interface variables

Scope Name Type


Input rVal REAL

fb870S_MeArchivVal.mSendVal (METH)

Interface variables

Scope Name Type


fbAsdu fb870S_Asdu
Inout
tyInfObj ty870S_InfObjPar

fb870_FlgNoCntrl (FB)
Interface variables

Scope Name Type Comment


xConnected BOOL
wSFN_send WORD Sende-Folge-Nummer (versendete Telegramm-Folge-Nummer)
wSFN_stop WORD Sende-Folge-Nummer (keine weiteren I-Frames versendet, wenn
(wSFN_send = wSFN_stop))
Input
wSFN_quitt WORD Sende-Folge-Nummer Quittiert
wEFN_reci WORD Empfangs-Folge-Nummer (empfangen)
wEFN_expe WORD Empfangs-Folge-Nummer (erwartet)
wEFN_limit WORD Empfangs-Folge-Nummer (unverzögerte Quittierung, wenn
(wEFN_reci = wEFN_limit))
wEFN_quitt WORD Empfangs-Folge-Nummer (Start von tonT2, wenn (wEFN_quitt <>
wEFN_expe), Quittierung nach Ablauf von tonT2)
fbCon fb870S_Conn104
Inout
fbMsgBuffer : fb870S_MsgBuffer_;
fbEvBuffer fb870S_EventBuffer

fb870_FlgNoCntrl.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
Inout tyLinkPara ty870_ParaLink104

fb870_FlgNoCntrl.mRxI (METH)

Interface variables

Scope Name Type


Return mRxI BOOL
Input pByte POINTER TO ARRAY [0..3] OF BYTE

fb870_FlgNoCntrl.mRxS (METH)

Interface variables

7.1. 001 Common 219


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRxS BOOL
Input pByte POINTER TO ARRAY [0..1] OF BYTE

fb870_FlgNoCntrl.mRxU (METH)

Interface variables

Scope Name Type


Return mRxU BOOL
Input byCode BYTE

fb870_FlgNoCntrl.mTxI (METH)

Interface variables

Scope Name Type


Return mTxI BOOL

fb870_FlgNoCntrl.mTxU (METH)

Interface variables

Scope Name Type


Return mTxU BOOL
Input byCode BYTE

fb870_FlgNoCntrl.xEFN_Quitt (PROP)

fb870_FlgNoCntrl.xTxEnable (PROP)

fb870_TestFrmCntrl (FB)
Interface variables

Scope Name Type


Input xConnected BOOL

fb870_TestFrmCntrl.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
Inout tyLinkPara ty870_ParaLink104

fb870_TestFrmCntrl.xACT (PROP)

fb870_TestFrmCntrl.xCON (PROP)

7.1.4 f870_Version (FUN)


Interface variables

Scope Name Type


Return f870_Version STRING(63)

7.1. 001 Common 220


WagoAppRTU, Release 1.2.13.1

7.2 010 Server


7.2.1 020 Server
00 Base
fb870_ServerBase (FB)

Interface variables

Scope Name Type


xEnable BOOL
Output iIx INT
sName STRING(47)

001 PROTECTED

fb870_ServerBase._mCallC (METH)

Interface variables

Scope Name Type


Return _mCallC BOOL

fb870_ServerBase._mCallM (METH)

Interface variables

Scope Name Type


Return _mCallM BOOL

fb870_ServerBase._mGeneralnParRead (METH)

Interface variables

Scope Name Type


Inout fbFileReader fbTCBase_FileHandler

fb870_ServerBase._mGeneralnParWrite (METH)

Interface variables

Scope Name Type


Inout fbFileWriter fbTCBase_FileHandler

010 CFG

fb870_ServerBase.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU ty870S_ParaSvr_RTU

7.2. 010 Server 221


WagoAppRTU, Release 1.2.13.1

fb870_ServerBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_ServerBase.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_ServerBase.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL

fb870_ServerBase.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
eEvent e870S_Logg
Input
sInfo STRING(79)

fb870_ServerBase.mIsMyAsdu (METH)

Interface variables

Scope Name Type


Return mIsMyAsdu BOOL
Input pfbAsdu POINTER TO fb870S_Asdu

fb870_ServerBase.mLoadEvFile (METH)

Interface variables

Scope Name Type


Return mLoadEvFile BOOL

fb870_Server101 (FB)
Interface variables

7.2. 010 Server 222


WagoAppRTU, Release 1.2.13.1

Scope Name Type Inherited from


xEnable BOOL fb870_ServerBase
Output iIx INT fb870_ServerBase
sName STRING(47) fb870_ServerBase

001 PRIVATE

fb870_Server101._mCfg (METH)

Interface variables

Scope Name Type


Return _mCfg BOOL

010 CFG

fb870_Server101.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU ty870S_ParaSvr_RTU

fb870_Server101.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_Server101.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Server101.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL

fb870_Server101.mExit (METH)

Interface variables

7.2. 010 Server 223


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mExit BOOL
eEvent e870S_Logg
Input
sInfo STRING(79)

fb870_Server101.mLoadEvFile (METH)

Interface variables

Scope Name Type


Return mLoadEvFile BOOL

fb870_Server104 (FB)
Interface variables

Scope Name Type Inherited from


xEnable BOOL fb870_ServerBase
Output iIx INT fb870_ServerBase
sName STRING(47) fb870_ServerBase

001 PRIVATE

fb870_Server104._mCfg (METH)

Interface variables

Scope Name Type


Return _mCfg BOOL

010 CFG

fb870_Server104.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Input iIx INT
Inout tyParaRTU ty870S_ParaSvr_RTU

fb870_Server104.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_Server104.mCfgWrite (METH)

Interface variables

7.2. 010 Server 224


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Server104.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL

fb870_Server104.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
eEvent e870S_Logg
Input
sInfo STRING(79)

fb870_Server104.mLoadEvFile (METH)

Interface variables

Scope Name Type


Return mLoadEvFile BOOL

fb870_Server104.mSetTyp (METH)

Interface variables

Scope Name Type


Return mSetTyp BOOL
Input iServerTyp INT

7.2.2 030 Connector


Base
fb870S_ConnBase (FB)

Interface variables

Scope Name Type Initial


iIx INT
Output byInfObjAdrLen BYTE 3
byMask BYTE 1

00 SYSTEM

fb870S_ConnBase.mLogg01 (METH)

Interface variables

7.2. 010 Server 225


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mLogg01 BOOL
eCOLOR eTCBase_COLORS
Input
sTxt01 STRING(127)

fb870S_ConnBase.mLogg02 (METH)

Interface variables

Scope Name Type


Return mLogg02 BOOL
eCOLOR eTCBase_COLORS
Input sTxt01 STRING(127)
sTxt02 STRING(127)

fb870S_ConnBase.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
byInfObAdrLen BYTE
Input
byMaxTlgLen BYTE
Inout fbLogger fbTCBase_HtmlLogger

Ethernet
fb870S_Conn104 (FB)

Interface variables

Scope Name Type Initial Comment Inherited


from
iIx INT fb870S_ConnBase
Output byInfObjAdrLen
BYTE 3 fb870S_ConnBase
byMask BYTE 1 fb870S_ConnBase
tyConn ty870S_Conn104
Input apfbASDU ARRAY
[1..TC60870_GC.C_LAST_ASDU]
OF POINTER TO
fb870S_Asdu
iAsduNums INT
fbEvBuffer fb870S_EventBuffer
Inout
byStartDT_Act
BYTE für einen Umlauf TRUE, wenn ein
Start DT-Empfangen wurde (wird
benötigt um bei E2 eventuell
andere aktive Verbindungen zu
schließen
xEnableDT BOOL
Output xStopDtConfPending
BOOL Stop-DT Conf darf erst gesendet
werden, wenn auch das zuletzt
gesendte telegramme Quittiert
wurde
dwMsgErrorBits
DWORD

7.2. 010 Server 226


WagoAppRTU, Release 1.2.13.1

010 CFG

fb870S_Conn104.mCfgApp (METH)

Interface variables

Scope Name Type Comment


Return mCfgApp BOOL
xEnable BOOL
Input
iIx INT
tyPara104 ty870S_ParaSvr_RTU104
Inout
fbLogger fbTCBase_HtmlLogger aIpAdrAcce_pted : ARRAY[1..4] OF STRING(23);

fb870S_Conn104.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbLogger fbTCBase_HtmlLogger
xEnable BOOL
bySockTyp BYTE
Input
iIx INT
sKey STRING(23)

fb870S_Conn104.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Input sKey STRING(23)
Inout fbFileWriter fbTCBase_FileHandler

fb870S_Conn104.mEthAccept (METH)

Interface variables

Scope Name Type Comment


Return mEthAccept BOOL
hSocket SysTypes.RTS_IEC_HANDLE Socket-Id for connection session
Input
sIP STRING(23)
Inout tyLinkPara ty870_ParaLink104

fb870S_Conn104.mEthClose (METH)

Interface variables

Scope Name Type


Return mEthClose BOOL
eEvent e870S_Logg
Input
sInfo STRING(79)

7.2. 010 Server 227


WagoAppRTU, Release 1.2.13.1

fb870S_Conn104.mEthServer (METH)

Interface variables

Scope Name Type


Return mEthServer BOOL
Inout tyLinkPara ty870_ParaLink104

fb870S_ListenEth (FB)

Interface variables

Scope Name Type Initial Comment


tyLinkPara ty870_ParaLink104
Inout
byLinkOkMask
BYTE
xEnable BOOL
xOpen BOOL
xIpFilter BOOL
Output wPort WORD
wMaxClientsWORD
hSocket SysTypes.RTS_IEC_HANDLE SysTypes.RTS_INVALID_HANDLE
Socket-Id for
connection
session
afbConn ARRAY
[1..TC60870_GC.C_LAST_CONNECTOR_S]
OF fb870S_Conn104

010 CFG

fb870S_ListenEth.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
wInPort WORD
Input iInClients INT
xInIpFilter BOOL

fb870S_ListenEth.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_ListenEth.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

7.2. 010 Server 228


WagoAppRTU, Release 1.2.13.1

fb870S_ListenEth.FB_Exit (METH)

Interface variables

Scope Name Type


Return FB_Exit BOOL
Input bInCopyCode BOOL

fb870S_ListenEth.mClose (METH)

Interface variables

Scope Name Type


Return mClose BOOL

fb870S_ListenEth.mConnAdd (METH)

Interface variables

Scope Name Type


Return mConnAdd BOOL
Input pfbConnEth POINTER TO fb870S_Conn101

fb870S_ListenEth.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

Seriell
fb870S_Conn101 (FB)

Interface variables

Scope Name Type Initial Comment Inherited


from
iIx INT fb870S_ConnBase
Output byInfObjAdrLen
BYTE 3 fb870S_ConnBase
byMask BYTE 1 fb870S_ConnBase
apfbASDU ARRAY
Input
[1..TC60870_GC.C_LAST_ASDU]
OF POINTER TO fb870S_Asdu
iAsduNums INT
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer :
fb870S_MsgBuffer_;
xComOpen BOOL xEnable : BOOL;
xConnected BOOL
Output
dwMsgErrorBits
DWORD
tyLS ty870S_101LinkState

010 CFG

7.2. 010 Server 229


WagoAppRTU, Release 1.2.13.1

fb870S_Conn101.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
tyPara101 ty870S_ParaSvr_RTU101
Inout
fbLogger fbTCBase_HtmlLogger

fb870S_Conn101.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbLogger fbTCBase_HtmlLogger

fb870S_Conn101.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

PRIVATE

fb870S_Conn101._S (METH)

Interface variables

Scope Name Type Comment


Return _S BOOL
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;

fb870S_Conn101._U (METH)

Interface variables

Scope Name Type Comment


Return _U BOOL
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;

fb870S_Conn101._COM (ACT)

Endezeiche nicht an erwartete Stelle im Stream

fb870S_Conn101.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

7.2. 010 Server 230


WagoAppRTU, Release 1.2.13.1

ty870S_101LinkState (STRUCT)

Name Type Comment


byState BYTE
byState_ BYTE
xLinkOK BOOL
xLinkOK_ BOOL
xTFB_Tx BOOL
xTFB_Rx BOOL Empfangs-Telegramm-Folgebit
xTFB_RxV BOOL Empfangs-Telegramm-Folgebit valid
xTFB_Exp BOOL Telegramm-Folgebit erwartet
xCnf_Exp BOOL Erwarte Confirm
byReciFC BYTE Empfangs-Funktions-Code
InOut:
byTxTray BYTE
xDelMsgFromFiFo BOOL
xUse0xE5_AsACK BOOL
byLinkTxTray BYTE
wCntTFB_IO WORD
wCntTFB_NIO WORD
wSFN_send WORD
tonState TON
tonLinkTest TON
tonRepeat TON
tofLink TOF

ty870S_ParaLink10x (STRUCT)

Name Type Initial Comment


tSymResponseTime
TIME I_COM : WagoTypesCom.I_WagoSysComBase; iComPort :
INT; iComType : INT; // 0 = RS232 ohne Handshake, 1 =
RS232 mit XOn/XOff, 2 = RS232 mit RTS/CTS dwBaudRate
: DWORD;
tSymLinkTestTime
TIME
xSymetrischBOOL Symetrisch oder Unsymetrisch
InOut: byLinkAdrLen
BYTE 1 0, 1 oder 2 Byte
uLinkAdr uTCBase_16Bit
byAsduAdrLen
BYTE 1 oder 2 Byte
byCOTLen BYTE 1 = ohne Herkunftsadresse, 2 = mit Herkunftsadresse
by0xE5_ModeBYTE 0 nicht verwenden, 1 immer verwenden, 2 automatisch (das
heißt nur dann, wenn E5 mindestens einmal empfangen wurde
byDIR_BIT_MASK
BYTE Ist normalerweise 0x00, könnte aber auch, 16x80 sein (wenn
Link = Master)

7.2.3 040 Buffer


60870 EvBuffer
fb870S_EventBuffer (FB)

Interface variables

7.2. 010 Server 231


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial Comment


iIx INT
byInstanzMask BYTE
byInfObjAdrLen BYTE
byMaxIecTlgLen BYTE
Output xC_EnableOnAtOn BOOL
xLinkOk BOOL Merker für den Zustand der zugehörigen
Verbindung.
byBufferFree BYTE in Prozent
tyEV_Info ty870S_EventInfo
xM_EI_NA_1 BOOL TRUE Initialisierungsende [en: End of initialization]

01 PRIVATE

fb870S_EventBuffer._refRetainEV (ACT)

02 RETAIN

fb870S_EventBuffer.mEventFileLoad (METH)

Interface variables

Scope Name Type


Return mEventFileLoad BOOL

fb870S_EventBuffer.mEventFileLoadFin (METH)

Interface variables

Scope Name Type


Return mEventFileLoadFin BOOL
Input iResult INT
Inout tyEFB ty870S_EventFileBuffer

fb870S_EventBuffer.mEventFileSaveFin (METH)

Interface variables

Scope Name Type


Return mEventFileSaveFin BOOL
Input iResult INT

90 TOOLS

fb870S_EventBuffer.mExport (METH)

Interface variables

Scope Name Type


Input sFileName STRING(79)

fb870S_EventBuffer.mEvBufferClear (METH)

Interface variables

7.2. 010 Server 232


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mEvBufferClear BOOL

fb870S_EventBuffer.mEvPut (METH)

Interface variables

Scope Name Type


Return mEvPut DINT
uAsdu uTCBase_16Bit
Inout tyInfObjEv ty870S_InfObjEv
fbAsdu fb870S_Asdu

fb870S_EventBuffer.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
iIndex INT
byObjAdrLen BYTE
byMaxTlgLen BYTE
Input
byEventMode BYTE
dwTlgBufferSize DWORD
sFile STRING(23)

fb870S_EventBuffer.mLinkState (METH)

Interface variables

Scope Name Type


Return mLinkState BOOL
Input xLinkOk BOOL

fb870S_EventBuffer.mMsgGet (METH)

Interface variables

Scope Name Type


Return mMsgGet BOOL
Input wTFNo WORD
Inout tyIecMsg ty870_IecMsg

fb870S_EventBuffer.mMsgPut (METH)

Interface variables

Scope Name Type


Return mMsgPut DINT
Input xHighPrio BOOL
Inout tyIecMsg ty870_IecMsg

7.2. 010 Server 233


WagoAppRTU, Release 1.2.13.1

fb870S_EventBuffer.mMsgPutC (METH)

Interface variables

Scope Name Type


Return mMsgPutC BOOL
xHighPrio BOOL
Input
byCOT BYTE
Inout tyIecMsg ty870_IecMsg

fb870S_EventBuffer.mMsgPutCA (METH)

Interface variables

Scope Name Type


Return mMsgPutCA BOOL
xHighPrio BOOL
Input byCOT BYTE
uASDU uTCBase_16Bit
Inout tyIecMsg ty870_IecMsg

fb870S_EventBuffer.mMsgQuitt (METH)

Interface variables

Scope Name Type


Return mMsgQuitt BOOL
Input wTFNo WORD

fb870S_EventFile (FB)

Interface variables

Scope Name Type


Output sFileName STRING(79)

fb870S_EventFile._ACT_Start (ACT)

fb870S_EventFile.mIdel (METH)

Interface variables

Scope Name Type


Return mIdel BOOL

fb870S_EventFile.mLoad (METH)

Interface variables

Scope Name Type Comment


Return mLoad BOOL
fbEvBuffer fb870S_EventBuffer
Inout
iResult INT 0 = Busy, 1 = Ok, alles andere = Fehler

7.2. 010 Server 234


WagoAppRTU, Release 1.2.13.1

fb870S_EventFile.mSave (METH)

Interface variables

Scope Name Type Comment


Return mSave BOOL
fbEvBuffer fb870S_EventBuffer
Inout
iResult INT 0 = Busy, 1 = Ok, alles andere = Fehler

fb870S_EventFile.sFile (PROP)

ty870S_Event (STRUCT)

Name Type Comment


uTCA u870S_EvTCA COT, Typ, Asdu
uTypAdr uTCBase_32Bit Informations-Objekt Typ und Adresse
uVal uTCBase_32Bit Informations-Objekt Wert
byFlags BYTE Informations-Objekt Flag
InOut:
byOA BYTE Herkunfts-Adresse (Ordinator Adress)
xToDelete BOOL Wird TRUE, wenn dieses Event aus dem Sendebuffer gelöscht
werden kann
byReserve BYTE
tyCP56 ty870_CP56

ty870S_EventCTA (STRUCT)

Name Type
byTyp BYTE
InOut:
byCot BYTE
uAsdu uTCBase_16Bit

ty870S_EventFileBuffer (STRUCT)

Name Type Comment


dwSizeHeader
DWORD 000000 .. 000003
dwSizeEvents
DWORD 000004 .. 000007
dwOffsetEvents
DWORD 000008 .. 000011
dwSizeFile DWORD 000012 .. 000015
InOut: tyEV_Info ty870S_EventInfo 000016 .. xxxxxx
aReserve ARRAY [(16 + xxxxxx .. xx0199 Damit wird deser Buffer etwas
SIZEOF(ty870S_EventInfo))..199]unempfindlicher gegen Änderungen an
OF BYTE “ty870S_EventInfo”
aEV ARRAY 000200 ..
[0..TC60870_GC.C_MAX_EV_IX]
OF ty870S_Event

ty870S_EventFileInfo (STRUCT)

Name Type Comment


dtSavedDtFile DT Zeitstempel, wann die Dateien (A und B) das letzte mal geschrieben
InOut:
wurden
dwSavedCntFile DWORD Zähler wie oft die Dateien (A und B) gespeichert wurden

7.2. 010 Server 235


WagoAppRTU, Release 1.2.13.1

ty870S_EventFileSaveState (STRUCT)

Name Type Comment


sFileName STRING(63) Inital-Werte, die beim Init
iSaveState INT 0 = Nichts zu tun
iEvToDelInRetain
INT Hier merke ich mir, wiviele Events aus dem Retain bereich gelöscht
InOut:
werden können, wenn das schreiben des Datei auf die SD-Card
abgschlossen ist.
diEvToDelInFile
DINT Zwischenspeicher für die Anzahl der Events je Klasse die schon wieder
gelöscht werden müssen, während des speicherns auf SD-Card.

ty870S_EventInfo (STRUCT)

Name Type Comment


diIxPut DINT Index für den Put
diIxLast DINT Höchste möglicher Index für Event’s (ergibt sich aus der
konfigurierten Buffer-Size)
diDelInFile DINT soviele Events können gelöscht werden nach dem Einlesen des
Eventfiles gelöscht werden
iDelInRetain INT Alle Events, die beim Start-Zeitpunkt des Speicherns im Retain
stehen, können nach dem erfolgreichen Speichern gelöscht werden
iSaveState INT
InOut:
iLoadState INT
xEventsHoldOffline
BOOL ist TRUE, wenn Events auch ohne aktive Verbindung im RAM
gespeichert werden sollen (byEventMode >= 1)
xEventsSaveOnSD
BOOL ist TRUE, wenn Events zusätzlich auf SD-Card gespeichert werden
sollen (byEventMode >= 2)
xEventsFileLoadDone
BOOL Zeigt an, dass die Methode mEventFileLoadFin aufgerufen wurde
xSdCardWriteOverfolw
BOOL Ist TRUE, wenn während des schreibens auf SD-Card, mehr Events
aufgetreten sind als im Reteinbereich gepuffert werden konnten
sEvFileName STRING(23)

ty870S_EventRetain (STRUCT)

Name Type Comment


xLoadFileB BOOL TRUE, wenn zuletzt der B-File erfolgreich geschrieben
wurde
xSaveFileB BOOL TRUE, wenn als nächstes der B-File geschrieben werden
soll (immer abwechselns File A und dann File B)
InOut: iPutIx INT
diEvToDelInFile
DINT
aEvFI ARRAY [0..1] OF
ty870s_EventFileInfo
aEV ARRAY [0..16#FF]
OF ty870S_Event

ty870S_EventV2Get (STRUCT)

Name Type
uTCA u870S_EvTCA
InOut:
tyEVDI ty870_InfObjStruct
refMsg REFERENCE TO ty870_IecMsg

7.2. 010 Server 236


WagoAppRTU, Release 1.2.13.1

u870S_EvTCA (UNION)

Name Type Comment


InOut: _DW DWORD
_TY ty870S_EventCTA COT, Typ und ASDU

fb870S_InfObj_FLB (FB)
Interface variables

Scope Name Type Comment


Output byMaxSK BYTE Maximale Anzahl von Objekten in einem Telegramm SK = Strukturkennung

fb870S_InfObj_FLB.byCOT (PROP)

fb870S_InfObj_FLB.byOA (PROP)

fb870S_InfObj_FLB.bySK (PROP)

fb870S_InfObj_FLB.mClear (METH)

Interface variables

Scope Name Type


Return mClear BOOL

fb870S_InfObj_FLB.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fb870S_InfObj_FLB.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
byTK BYTE
Input byAdrLen BYTE
byTlgLen BYTE

fb870S_InfObj_FLB.mMoveMsg (METH)

Interface variables

Scope Name Type Comment


Return mMoveMsg BOOL
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;

fb870S_InfObj_FLB.mPutInfOjCi (METH)

Interface variables

7.2. 010 Server 237


WagoAppRTU, Release 1.2.13.1

Scope Name Type Initial


Return mPutInfOjCi BOOL
uAsdu uTCBase_16Bit
Input
byCOT BYTE 16#3
Inout fbInfObjIT fb870S_InfObj_M15IT

fb870S_InfObj_FLB.mPutInfOjEv (METH)

Interface variables

Scope Name Type Initial Comment


Return mPutInfOjEv BOOL
uAsdu uTCBase_16Bit
Input
byCOT BYTE 16#3
tyInfObjEv ty870S_InfObjEv
Inout
fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;

fb870S_InfObj_FLB.mPutInfOjSt (METH)

Interface variables

Scope Name Type Initial


Return mPutInfOjSt BOOL
uAsdu uTCBase_16Bit
Input
byCOT BYTE 16#3
Inout tyInfObjPa ty870S_InfObjPar

fb870_MsgFiFo (FB)
Interface variables

Scope Name Type Comment


xToGet BOOL
Output
byFree BYTE in Prozent

fb870_MsgFiFo.mClear (METH)

Interface variables

Scope Name Type


Return mClear BOOL

fb870_MsgFiFo.mGet (METH)

Interface variables

Scope Name Type


Return mGet BOOL
Inout tyIecMsg ty870_IecMsg

fb870_MsgFiFo.mInit (METH)

Interface variables

7.2. 010 Server 238


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mInit BOOL
byMsgLen BYTE wieviele Byte ist eine Message maximal lang?
Input
wCount WORD wieviele Messags sollen im FiFo verwaltet werden?

fb870_MsgFiFo.mPut (METH)

Interface variables

Scope Name Type


Return mPut BOOL
Inout tyIecMsg ty870_IecMsg

7.2.4 050 ASDU


fb870S_Asdu (FB)
Interface variables

Scope Name Type Initial Comment


Input xC_ControlIsActiv
BOOL
iIx INT
uAsdu uTCBase_16Bit
byORIGAdr BYTE Herkunftsadresse Erweiterung
für V01.01.16.00 (WAT????);
Output iEvCnt INT
aEvList ARRAY
[1..TC60870_GC.C_LAST_INFOBJ]
OF ty870S_InfObjEv
iC_Cnt INT
aC_List ARRAY [1..C_MAX_C_LIST] OF
ty870S_InfObjCr
xM_EI_NA_1 BOOL TRUE Initialisierungsende [en: End of
initialization]
iServerIx INT

000 SYSTEM

fb870S_Asdu._mLogg (METH)

Interface variables

Scope Name Type Comment


Return _mLogg BOOL
eType eTCBase_COLORS
Input eClass e870S_Logg STRING(79);
sData STRING(127)

001 PRIVATE

fb870S_Asdu._mMsg_TO_Ms_gC (METH)

Interface variables

7.2. 010 Server 239


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return _mMsg_TO_Ms_gC BOOL
tyMsg ty870_IecMsg
Inout
tyMsgC ty870_IecMsgC

010 CFG

fb870S_Asdu.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
iIx INT
Input
iServer INT
tyParaASDU ty870S_ParaSvr_ASDU
Inout refASDUPara ty870_ParaASDU
fbLogger fbTCBase_HtmlLogger

fb870S_Asdu.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Input iServer INT
fbFileReader fbTCBase_FileHandler
Inout refASDUPara ty870_ParaASDU
fbLogger fbTCBase_HtmlLogger

fb870S_Asdu.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

010 M

fb870S_Asdu.mM_InfObj (METH)

Interface variables

Scope Name Type


Return mM_InfObj BOOL
Inout tyInfObj ty870S_InfObjPar

fb870S_Asdu.mM_InfObj_CT (METH)

Interface variables

7.2. 010 Server 240


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mM_InfObj_CT BOOL
Input byCOT BYTE
tyInfObj ty870S_InfObjPar
Inout
tyExt ty870S_InfObjPD_MExt

020 I

fb870S_Asdu.mI_InfObj (METH)

Interface variables

Scope Name Type


Return mI_InfObj BOOL
Inout tyInfObj ty870S_InfObjPar

040 SYS

fb870S_Asdu._mCI (METH)

Interface variables

Scope Name Type Comment


Return _mCI BOOL
byToDo BYTE Was ist Möglich:
Input
byMask BYTE Maske die Maskiert oder Demaskiert werden soll

fb870S_Asdu._mCI_GetInfObj (METH)

Interface variables

Scope Name Type Comment


Return _mCI_GetInfObj BOOL
byCOT BYTE
Input byOA BYTE
byMask BYTE Maske die Maskiert oder Demaskiert werden soll
Inout tyIecMsg ty870_IecMsg

fb870S_Asdu._mIC_GetInfObj (METH)

Interface variables

Scope Name Type Comment


Return _mIC_GetInfObj BOOL
byCOT BYTE
Input byOA BYTE
byMask BYTE Maske die Maskiert oder Demaskiert werden soll
Inout tyIecMsg ty870_IecMsg

fb870S_Asdu._mIC_MarkInfObj (METH)

Interface variables

7.2. 010 Server 241


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return _mIC_MarkInfObj BOOL
xAct BOOL TRUE = Aktivieren, FALSE = Deaktivieren
Input byQOI BYTE
byMask BYTE Maske die Maskiert oder Demaskiert werden soll

080 Online Config

fb870S_Asdu.mApp_InfObjDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObjDel INT
byTyp BYTE
Input
dwAdr DWORD

30 C

fb870S_Asdu.mC_CpValid (METH)

Interface variables

Scope Name Type


Return mC_CpValid BOOL
Input byAdrLen BYTE
Inout tyRxMsg ty870_IecMsg

fb870S_Asdu.mC_InfObj (METH)

Interface variables

Scope Name Type


Return mC_InfObj BOOL
byCOT BYTE
Input
pMsg POINTER TO ty870_IecMsg
Inout tyInfObj ty870S_InfObjPar

fb870S_Asdu.mCallC (METH)

Interface variables

Scope Name Type


Return mCallC BOOL

fb870S_Asdu.mCallM (METH)

Interface variables

Scope Name Type


Return mCallM BOOL

7.2. 010 Server 242


WagoAppRTU, Release 1.2.13.1

fb870S_Asdu.mCycleEnd (METH)

Interface variables

Scope Name Type


Return mCycleEnd BOOL

fb870S_Asdu.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fb870S_Asdu.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL

fb870S_Asdu.mMsgGet (METH)

Interface variables

Scope Name Type


Return mMsgGet BOOL
Inout fbEvBuffer fb870S_EventBuffer

fb870S_Asdu.mMsgPut (METH)

Interface variables

Scope Name Type


Return mMsgPut BOOL
tyRxMsg ty870_IecMsg
Inout
fbEvBuffer fb870S_EventBuffer

7.2.5 060 InfObj


00 DUT
ty870S_BCR (STRUCT)

Name Type
InOut: diI32 DINT
byCP8 BYTE

01 Base
fb870S_InfObjBase (FB)

Interface variables

Scope Name Type


Input tyInfObj ty870S_InfObjPar

7.2. 010 Server 243


WagoAppRTU, Release 1.2.13.1

010 CFG

fb870S_InfObjBase.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObjBase.mCfgEvTimeRead (METH)

Interface variables

Scope Name Type


Return mCfgEvTimeRead WORD
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObjBase.mCfgEvTimeWrite (METH)

Interface variables

Scope Name Type


Return mCfgEvTimeWrite WORD
Inout fbFileWriter fbTCBase_FileHandler
Input wEvTimeMask WORD

fb870S_InfObjBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObjBase.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObjBase.mEvTimeRead (METH)

Interface variables

Scope Name Type


Return mEvTimeRead WORD
Input wEvTime WORD

02 PROTECTED

7.2. 010 Server 244


WagoAppRTU, Release 1.2.13.1

fb870S_InfObjBase.mAppTrgCOT_ (METH)

Interface variables

Scope Name Type


Return mAppTrgCOT_ BYTE
xTrgSpo BOOL
Input
xTrgAlt BOOL
tyExt ty870S_InfObjPD_MExt
Inout
fbAsdu fb870S_Asdu

fb870S_InfObjBase.mLogger (METH)

Interface variables

Scope Name Type


Return mLogger BOOL
Inout fbAsdu fb870S_Asdu
Input eEvent e870S_Logg

fb870S_InfObjBase.mMsg_to_CMsg (METH)

Interface variables

Scope Name Type


Return mMsg_to_CMsg BOOL
tyMsg ty870_IecMsg
Inout
tyMsgC ty870_IecMsgC
Input uAsdu uTCBase_16Bit

fb870S_InfObjBase.mCfgRetain (METH)

Interface variables

Scope Name Type


Return mCfgRetain BOOL

fb870S_InfObjBase.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObjBase.mRxMsg (METH)

Interface variables

7.2. 010 Server 245


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

10 M
fb870S_InfObj_M01SP (FB)

Interface variables

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
Output byFlags BYTE

010 CFG

fb870S_InfObj_M01SP.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_M01SP.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M01SP.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M01SP.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_M01SP.mRxMsg (METH)

Interface variables

7.2. 010 Server 246


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_M03DP (FB)

Interface variables

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
Output byFlags BYTE

010 CFG

fb870S_InfObj_M03DP.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_M03DP.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M03DP.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M03DP.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_M03DP.mRxMsg (METH)

Interface variables

7.2. 010 Server 247


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_M05ST (FB)

Interface variables

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
byFlags BYTE
Output
byVTI BYTE

010 CFG

fb870S_InfObj_M05ST.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_M05ST.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M05ST.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M05ST.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_M05ST.mRxMsg (METH)

Interface variables

7.2. 010 Server 248


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_M07BO (FB)

Interface variables

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
byFlags BYTE
Output
uBO uTCBase_32Bit

010 CFG

fb870S_InfObj_M07BO.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_M07BO.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M07BO.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M07BO.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_M07BO.mRxMsg (METH)

Interface variables

7.2. 010 Server 249


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_M09ME (FB)

Interface variables

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
Output byFlags BYTE

001 PRIVATE

fb870S_InfObj_M09ME._mHyst (METH)

Interface variables

Scope Name Type


Return _mHyst BOOL

010 CFG

fb870S_InfObj_M09ME.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_M09ME.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M09ME.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M09ME.mCycleImp (METH)

Interface variables

7.2. 010 Server 250


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_M09ME.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_M17EP (FB)

Interface variables

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
Output byFlags BYTE

010 CFG

fb870S_InfObj_M17EP.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M17EP.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M17EP.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

20 I
fb870S_InfObj_M15IT (FB)

Interface variables

7.2. 010 Server 251


WagoAppRTU, Release 1.2.13.1

Scope Name Type Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
tyBCR ty870S_BCR
Output
tyQ_CP56 ty870_CP56

010 CFG

fb870S_InfObj_M15IT.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_M15IT.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_M15IT.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_M15IT.mCI (METH)

Interface variables

Scope Name Type Comment


Return mCI BOOL
byToDo BYTE Was ist Möglich:
Input
byClientMask
BYTE Bit 0: Umspeichern (wegen Zeit oder wegen Umspeicher-Befehl)
Bit 1: Spontane Übertragung anregen (Modus A (in Kombination
mit lokalem Umspeichern) oder Modus D (in Kombination mit
Abfrage Befehl)) Bit 2: Für Abfrage-Befehl aktivieren (Modus B
oder Modus C (durch “Aktivierung” des Abfragebefehl)) Bit 3: Für
Abfrage-Befehl deaktivieren (Modus B oder Modus C (durch
“Abbruch der Aktivierung” des Abfragebefehl)) Bit 4: Reserve Bit
5: Reserve Bit 6: Reserve Bit 7: Rücksetzen
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_M15IT.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

7.2. 010 Server 252


WagoAppRTU, Release 1.2.13.1

30 C
fb870S_InfObj_C45SC (FB)

Interface variables

Scope Name Type Comment Inherited


from
Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
xQ_SCS BOOL
xStatic BOOL Dauerbefehl
Output xLocked BOOL TRUE, wenn Lock oder Local = TRUE
tyC_Msg ty870_IecMsgCEmpfangene Nachricht muss gespeichert werden,
weil Beendigung der Aktivierung irgendwann später
gesendet werden muss.
tyQ_CP56 ty870_CP56

010 CFG

fb870S_InfObj_C45SC.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_C45SC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_C45SC.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_C45SC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_C45SC.mRxMsg (METH)

Interface variables

7.2. 010 Server 253


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_C46DC (FB)

Interface variables

Scope Name Type Comment Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
xQ_DCS0 BOOL
xQ_DCS1 BOOL
xStatic BOOL Dauerbefehl
Output
xLocked BOOL TRUE, wenn Lock oder Local = TRUE
tyC_Msg ty870_IecMsgC
tyQ_CP56 ty870_CP56

010 CFG

fb870S_InfObj_C46DC.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_C46DC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_C46DC.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_C46DC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

7.2. 010 Server 254


WagoAppRTU, Release 1.2.13.1

fb870S_InfObj_C46DC.mRxMsg (METH)

Interface variables

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_C47RC (FB)

Interface variables

Scope Name Type Comment Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
xQ_RCSd BOOL
xQ_RCSi BOOL
xStatic BOOL Dauerbefehl
Output
xLocked BOOL TRUE, wenn Lock oder Local = TRUE
tyC_Msg ty870_IecMsgC
tyQ_CP56 ty870_CP56

010 CFG

fb870S_InfObj_C47RC.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_C47RC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_C47RC.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_C47RC.mRxMsg (METH)

Interface variables

7.2. 010 Server 255


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_C48SE (FB)

Interface variables

Scope Name Type Comment Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
uSE uTCBase_32Bit
Output xLocked BOOL TRUE, wenn Lock oder Local = TRUE
tyQ_CP56 ty870_CP56 tyC_Msg : ty870_IecMsgC;

010 CFG

fb870S_InfObj_C48SE.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_C48SE.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_C48SE.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_C48SE.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_C48SE.mRxMsg (METH)

Interface variables

7.2. 010 Server 256


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_InfObj_C51BO (FB)

Interface variables

Scope Name Type Comment Inherited from


Input tyInfObj ty870S_InfObjPar fb870S_InfObjBase
uBO uTCBase_32Bit
xLocked BOOL TRUE, wenn Lock oder Local = TRUE
Output
tyC_Msg ty870_IecMsgC
tyQ_CP56 ty870_CP56

010 CFG

fb870S_InfObj_C51BO.mCfgAPP (METH)

Interface variables

Scope Name Type


Inout tyAppCfg ty870S_InfObjAppCfg

fb870S_InfObj_C51BO.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870S_InfObj_C51BO.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870S_InfObj_C51BO.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbAsdu fb870S_Asdu

fb870S_InfObj_C51BO.mRxMsg (METH)

Interface variables

7.2. 010 Server 257


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mRxMsg BOOL
tyMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu
Input pData POINTER TO BYTE

fb870S_SysInfObj (FB)
Interface variables

Scope Name Type


Output tyTxMsg ty870_IecMsg

fb870S_SysInfObj.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fb870S_SysInfObj.mMsgGet (METH)

Interface variables

Scope Name Type


Return mMsgGet BOOL
Input byMask BYTE
Inout fbAsdu fb870S_Asdu

fb870S_SysInfObj.mMsgPut (METH)

Interface variables

Scope Name Type Comment


Return mMsgPut BOOL
tyRxMsg ty870_IecMsg
Inout fbEvBuffer fb870S_EventBuffer fbMsgBuffer : fb870S_MsgBuffer_;
fbAsdu fb870S_Asdu

7.2.6 080 Online Config


AppInfObj
ty870S_InfObjPD_C45SC (STRUCT)

Name Type Comment


xQ_SCS BOOL
InOut:
wQ_NEW WORD Output SCS
xI_LOCK BOOL Output neuer Befehl

7.2. 010 Server 258


WagoAppRTU, Release 1.2.13.1

ty870S_InfObjPD_C46DC (STRUCT)

Name Type Comment


xQ_DCS0 BOOL
InOut: xQ_DCS1 BOOL Output DCS0
wQ_NEW WORD Output DCS1
xI_LOCK BOOL Output neuer Befehl

ty870S_InfObjPD_C47RC (STRUCT)

Name Type Comment


xQ_RCSd BOOL
InOut: xQ_RCSi BOOL Output RCS Dec
wQ_NEW WORD Output RCS Inc
xI_LOCK BOOL Output neuer Befehl

ty870S_InfObjPD_C48NA (STRUCT)

Name Type Comment


uQ_SE uTCBase_64Bit
InOut:
wQ_NEW WORD Output Sollwert
xI_LOCK BOOL Output neuer Befehl

ty870S_InfObjPD_C49NB (STRUCT)

Name Type Comment


uQ_SE uTCBase_64Bit
InOut:
wQ_NEW WORD Output Sollwert
xI_LOCK BOOL Output neuer Befehl

ty870S_InfObjPD_C50NC (STRUCT)

Name Type Comment


uQ_SE uTCBase_64Bit
InOut:
wQ_NEW WORD Output Sollwert
xI_LOCK BOOL Output neuer Befehl

ty870S_InfObjPD_C51BO (STRUCT)

Name Type Comment


dwQ_BO DWORD
InOut:
wQ_NEW WORD Output Sollwert
xI_LOCK BOOL Output neuer Befehl

ty870S_InfObjPD_M01SP (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
xI_SPI BOOL
InOut: xI_BL BOOL Flag SPI( .0)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

7.2. 010 Server 259


WagoAppRTU, Release 1.2.13.1

ty870S_InfObjPD_M03DP (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
xI_DP0 BOOL
xI_DP1 BOOL Flag DP-0( .0)
InOut:
xI_BL BOOL Flag DP-1( .1)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

ty870S_InfObjPD_M05ST (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
byI_VTI BYTE
xI_OV BOOL VTI (BYTE)
InOut:
xI_BL BOOL Flag OV (OVERFLOW .0)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

ty870S_InfObjPD_M07BO (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
dwI_BO DWORD
xI_OV BOOL BO (DWORD)
InOut:
xI_BL BOOL Flag OV (OVERFLOW .0)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

ty870S_InfObjPD_M09ME (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
iI_NVA INT
xI_OV BOOL
InOut:
xI_BL BOOL Flag OV (OVERFLOW .0)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

ty870S_InfObjPD_M11ME (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
iI_SVA INT
xI_OV BOOL
InOut:
xI_BL BOOL Flag OV (OVERFLOW .0)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

7.2. 010 Server 260


WagoAppRTU, Release 1.2.13.1

ty870S_InfObjPD_M13ME (STRUCT)

Name Type Comment


tyExt ty870S_InfObjPD_MExt
rI_IEE754 REAL
xI_OV BOOL
InOut:
xI_BL BOOL Flag OV (OVERFLOW .0)
xI_SB BOOL Flag BL (BLOCKED .4)
xI_NT BOOL Flag SB (SUBSTITUTED .5)
xI_IV BOOL Flag NT (NOT TOPICAL .6)

ty870S_InfObjPD_M15IT (STRUCT)

Name Type Comment


xI_BCRi BOOL Zähler ++
InOut: xI_BCRd BOOL Zähler –
dwI_dwBCR DWORD
xI_IV BOOL externe Zähler (32Bit) )

ty870S_InfObjPD_MExt (STRUCT)

Name Type Comment


byTrgMode BYTE 0: Rtu (Anregeung der Übertragung durch Wert-/Flag- Änderung)
xTrgSpo BOOL Trigger (steigende Flanke lößt eine Übertrgung mit der
Spontanen-Übertragungsursache 3 aus)
InOut:
xTrgAlt BOOL Trigger (steigende Flanke lößt eine Übertrgung mit der
Alternative-Übertragungsursache z.B. 47 aus)
tyCP56 ty870_CP56 extern vorgegebener Zeitstempel (wenn 0, wird weiterhin die
Systemzeit übertragen)

u870S_InfObjPD (UNION)

InOut:

Name Type Comment


tyM01SP ty870S_InfObjPD_M01SP Info-Objekte für Server-Applikation
tyM03DP ty870S_InfObjPD_M03DP
tyM05ST ty870S_InfObjPD_M05ST
tyM07BO ty870S_InfObjPD_M07BO
tyM09ME ty870S_InfObjPD_M09ME
tyM11ME ty870S_InfObjPD_M11ME
tyM13ME ty870S_InfObjPD_M13ME
tyM15IT ty870S_InfObjPD_M15IT
tyC45SC ty870S_InfObjPD_C45SC
tyC46DC ty870S_InfObjPD_C46DC
tyC47RC ty870S_InfObjPD_C47RC
tyC48NA ty870S_InfObjPD_C48NA
tyC49NB ty870S_InfObjPD_C49NB
tyC50NC ty870S_InfObjPD_C50NC
tyC51BO ty870S_InfObjPD_C51BO
tyCl_M01SP ty870C_InfObjPD_M01SP Info-Objekte für Client-Applikation
tyCl_M03DP ty870C_InfObjPD_M03DP
tyCl_M05ST ty870C_InfObjPD_M05ST
Continued on next page

7.2. 010 Server 261


WagoAppRTU, Release 1.2.13.1

Table 7.2 – continued from previous page


Name Type Comment
tyCl_M07BO ty870C_InfObjPD_M07BO
tyCl_M09ME ty870C_InfObjPD_M09ME
tyCl_M11ME ty870C_InfObjPD_M11ME
tyCl_M13ME ty870C_InfObjPD_M13ME
tyCl_M15IT ty870C_InfObjPD_M15IT
tyCl_C45SC ty870C_InfObjPD_C45SC
tyCl_C46DC ty870C_InfObjPD_C46DC
tyCl_C47RC ty870C_InfObjPD_C47RC
tyCl_C48NA ty870C_InfObjPD_C48NA
tyCl_C49NB ty870C_InfObjPD_C49NB
tyCl_C50NC ty870C_InfObjPD_C50NC
tyCl_C51BO ty870C_InfObjPD_C51BO

e870S_RtuTyp (ENUM)
Attributes:
qualified_only
Name Initial Comment
0
eDISABLE
InOut: e60870_5_101
e60870_5_103 ,
e60870_5_104E1
e60870_5_104E2

fb870S_AppCfg (FB)
Interface variables

Scope Name Type


iServerIx INT
Output
iAsduIx INT

fb870S_AppCfg.mApp_InfObjAdd_C45SC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C45SC
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870S_AppCfg.mApp_InfObjAdd_C46DC (METH)

Interface variables

7.2. 010 Server 262


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mApp_InfObjAdd_C46DC
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870S_AppCfg.mApp_InfObjAdd_C47RC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C47RC
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870S_AppCfg.mApp_InfObjAdd_C48NA (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C48NA
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870S_AppCfg.mApp_InfObjAdd_C49NB (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C49NB
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870S_AppCfg.mApp_InfObjAdd_C50NC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C50NC
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870S_AppCfg.mApp_InfObjAdd_C51BO (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C51BO
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

7.2. 010 Server 263


WagoAppRTU, Release 1.2.13.1

fb870S_AppCfg.mApp_InfObjAdd_M01SP (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M01SP
INT
dwAdr DWORD
Input byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;

fb870S_AppCfg.mApp_InfObjAdd_M03DP (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M03DP
INT
dwAdr DWORD
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
Input
TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;
tFaultPosSuppression
TIME

fb870S_AppCfg.mApp_InfObjAdd_M05ST (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M05ST
INT
dwAdr DWORD
Input byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;

fb870S_AppCfg.mApp_InfObjAdd_M07BO (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M07BO
INT
dwAdr DWORD
Input byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;

7.2. 010 Server 264


WagoAppRTU, Release 1.2.13.1

fb870S_AppCfg.mApp_InfObjAdd_M09NA (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M09NA
INT
dwAdr DWORD
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
Input TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;
diHystValueADINT Schwellwert für absolute Hysterese 0 = keine absolute Hysterese
diHystValueIDINT Schwellwert für integierte Hysterese 0 = keine integierte Hysterese

fb870S_AppCfg.mApp_InfObjAdd_M11NB (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M11NB
INT
dwAdr DWORD
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
Input TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;
diHystValueADINT Schwellwert für absolute Hysterese 0 = keine absolute Hysterese
diHystValueIDINT Schwellwert für integierte Hysterese 0 = keine integierte Hysterese

fb870S_AppCfg.mApp_InfObjAdd_M13NC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M13NC
INT
dwAdr DWORD
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
Input TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;
rHystValueA REAL Schwellwert für absolute Hysterese 0.0 = keine absolute Hysterese
rHystValueI REAL Schwellwert für integierte Hysterese 0.0 = keine integierte Hysterese

fb870S_AppCfg.mApp_InfObjAdd_M15IT (METH)

Interface variables

7.2. 010 Server 265


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mApp_InfObjAdd_M15IT
INT
dwAdr DWORD
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
Input
TC60870_GC.C_CP_56
Cyclictransmission with COT 3 in seconds: 0= Kein, 1=1S, 5=5S,
wTransmissionInterval
WORD
10=10S, 15=15S, 30=30S, 60=1m, 600=10m, 900=15m, 1800=30m,
3600=60m;
byCntTyp BYTE 1 = CNTU, 2 = CNTUD; 3 = Extern

fb870S_AppCfg.mApp_InfObjDel (METH)

Interface variables

Scope Name Type


Return mApp_InfObjDel INT
byTyp BYTE
Input
dwAdr DWORD

ty870S_InfObjAppCfg (STRUCT)

Name Type Comment


dwAdr DWORD
byTK BYTE e870_InfObj_TK;
byCP BYTE 0 = kein, 1 = CP24, else = CP56
wTransmissionInterval
WORD 0= Kein, 1=1S, 5=5S, 10=10S, 15=15S, 30=30S, 60=1m,
InOut: 600=10m, 900=15m, 1800=30m, 3600=60m;
byHystTyp BYTE Messwerte ME
uHystValAbs uTCBase_32Bit
uHystValInt uTCBase_32Bit
byCntTyp BYTE 1 = CNTU, 2 = CNTUD; 3 = Extern
tTimePara01 TIME Doppelmeldung

ty870S_ParaSvr (STRUCT)

Name Type Initial Comment


xEnable BOOL
itfUserApp_870S
itfUserApp870s
tClockValidityTime
TIME TIME#10m0s0ms
IEC60870-Cfg; byClockSyncMode :
BYTE := 0; // Parameter ersetzt duch
tyTCBase_UserAppPara.byClockSource
xClockBit_SU
BOOL TRUE
xClockBit_DOW
BOOL TRUE
tC_PulseDurationD
TIME TIME#2s0ms
InOut: tC_PulseDurationS
TIME TIME#500ms
tC_PulseDurationL
TIME TIME#5s0ms
xC_1_off_N BOOL FALSE
tC_CpValidityTime
TIME TIME#0ms
byQrpMode BYTE 1
byGAMode BYTE 1
aParaRTU ARRAY
[1..TC60870_GC.C_LAST_SVR]
OF
ty870S_ParaSvr_RTU

7.2. 010 Server 266


WagoAppRTU, Release 1.2.13.1

ty870S_ParaSvr_ASDU (STRUCT)

Name Type
xEnable BOOL
InOut:
byOA BYTE
wAsduAdr WORD

ty870S_ParaSvr_RTU (STRUCT)

Name Type Initial Comment


eRtuTyp e870S_RtuTyp e870S_RtuTyp.eDISABLE eDISABLE,
e60870_5_101,
e60870_5_104E1,
e60870_5_104E2
xEnable BOOL FALSE
byEventBufMode
BYTE 2
dwTlgBufferSize
DWORD 64
tyParaASDU ty870_ParaASDU
aAPDU ARRAY [STRUCT(xEnable := TRUE, wAsduAdr :=
[1..TC60870_GC.C_LAST_ASDU]
16#1, byOA := 16#0), STRUCT(xEnable :=
OF FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
ty870S_ParaSvr_ASDU
16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
InOut: 16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0),
STRUCT(xEnable := FALSE, wAsduAdr :=
16#0, byOA := 16#0), STRUCT(xEnable :=
FALSE, wAsduAdr := 16#0, byOA := 16#0)]
uLink u870S_ParaSvr_Link 16

7.2. 010 Server 267


WagoAppRTU, Release 1.2.13.1

ty870S_ParaSvr_RTU101 (STRUCT)

Name Type Initial Comment


iComPort INT 1 CServer60870_101;
dwBaudrate DWORD 9600
iComType INT 0
xSymetry BOOL FALSE
tSymetryResponseTime TIME TIME#1s0ms
InOut: tSymetryLinkTestTime TIME TIME#15s0ms
byLinkAddrLen BYTE 1
wLinkAddr WORD 1
byASDUAddrLen BYTE 1
byCOTLen BYTE 1
byCharE5Mode BYTE 0
pxLinkOk POINTER TO BOOL 16#0

ty870S_ParaSvr_RTU104 (STRUCT)

Name Type Initial Comment


wK WORD 12 CServer60870_104
wW WORD 8
tT1 TIME TIME#15s0ms
tT2 TIME TIME#10s0ms
tT3 TIME TIME#20s0ms
wTCPPort WORD 2404
iMaxClientsINT 1
InOut: xIpAdrCheckBOOL FALSE
ARRAY [1..4] OF
aIpAdrAccepted [[‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’],
ARRAY [1..4] OF [‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’],
STRING(23) [‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’],
[‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’, ‘0.0.0.0’]]
apLinkOk ARRAY [16#0, 16#0, 16#0, 16#0]
[1..TC60870_GC.C_LAST_ASDU]
OF POINTER TO
BOOL

u870S_ParaSvr_Link (UNION)

Name Type
InOut: ty101 ty870S_ParaSvr_RTU101
ty104 ty870S_ParaSvr_RTU104

7.2.7 090 VISU


prg870S_Visu (PRG)
Interface variables

Scope Name Type


Input iVisuSel INT

7.2. 010 Server 268


WagoAppRTU, Release 1.2.13.1

ty870S_Visu_IndexSel (STRUCT)

Name Type
iCnt INT
iIx INT
InOut:
iIx_ INT
iMin INT
iMax INT

ty870S_Visu_ObjHnd (STRUCT)

Name Type
InOut: uFB u870S_Visu_FbPointer
tyIx tyDNP3M_Visu_IndexSel

u870S_Visu_FbPointer (UNION)

Name Type Comment


pASDU POINTER TO fb870S_Asdu [01]
pIO POINTER TO fb870S_InfObjBase [02]
p01 POINTER TO fb870S_InfObj_M01SP [02]
p03 POINTER TO fb870S_InfObj_M03DP [03]
p05 POINTER TO fb870S_InfObj_M05ST [04]
p07 POINTER TO fb870S_InfObj_M07BO [05]
InOut: p09 POINTER TO fb870S_InfObj_M09ME [06]
p15 POINTER TO fb870S_InfObj_M15IT [07]
p17 POINTER TO fb870S_InfObj_M17EP [08]
p45 POINTER TO fb870S_InfObj_C45SC [09]
p46 POINTER TO fb870S_InfObj_C46DC [10]
p47 POINTER TO fb870S_InfObj_C47RC [11]
p48 POINTER TO fb870S_InfObj_C48SE [12]
p51 POINTER TO fb870S_InfObj_C51BO [13]

7.2.8 DUT
ty870C_103InfObjPar (STRUCT)

Name Type Comment


iIX INT
InOut: byTyp BYTE
byIC_Grp BYTE Gruppe der (General-)Abfragebefehl [en: Interrogation command]
uTypAdr uTCBase_32Bit

ty870S_Conn104 (STRUCT)

Name Type Initial Comment


xEnable BOOL FALSE
xLinkOk BOOL
xLinkOk_ BOOL
InOut: asIpAdr ARRAY [1..4] OF Liste mit den Akzepierten
STRING(23) IP-Adressen
hSocket SysTypes. SysTypes.RTS_INVALID_HANDLE
Socket-Id for connection
RTS_IEC_HANDLE session
sClientIP STRING(23)

7.2. 010 Server 269


WagoAppRTU, Release 1.2.13.1

ty870S_InfObjCr (STRUCT)

Name Type
InOut: tyInfObj ty870S_InfObjPar
tyMsgC ty870_IecMsgC

ty870S_InfObjEv (STRUCT)

Name Type
InOut: tyInfObj ty870S_InfObjPar
tyCP56 ty870_CP56

ty870S_InfObjPar (STRUCT)

Name Type Initial Comment


iIX INT
byBaseTyp BYTE
byIC_Grp BYTE Gruppe der (General-)Abfragebefehl [en: Interrogation
command]
uTypAdr uTCBase_32Bit Die folgenden drei Elemte nicht trennen, weil diese per
InOut: SysMemCpy in den EventBuffer copiert werden können
uVal uTCBase_32Bit
byFlags BYTE
byConnMask BYTE Maske für die Connection, die eine Anfrage gestartet hat z.B.
general oder Zählwert Abfrage
byCOT BYTE 16#3
byReserve01BYTE

ty870S_SysInfObj (STRUCT)

Name Type Comment


byState BYTE 0 = Inaktiv, 1 = Sende COT 9 (Abbruch), 2 = Sende COT 7, 3 = Sende
Objekte, 4 = Sende COT 10
InOut:
byGroup BYTE
iIx INT
tyIecMsg ty870_IecMsg

7.2.9 e870S_Logg (ENUM)


Attributes:
qualified_only
InOut:

Name Initial Comment


eFIRST 1000
e10x_FB_INIT FB_INIT Ausgelößt z.B. beim Start
e10x_FB_EXIT Ausgelößt z.B. durch Downloadall
e10x_CONFIG_CHANGED Konfiguration geändert
e10x_REMOTE_RTU_RESET Reset RTU empfangen
e10x_LINK_CONNECTED Link aufgebaut
e10x_LINK_DISCONNECTED Link abgebaut
e10x_C_WITH_CP56_CLOCK_IV Befehlsobjekt verweigert weil lokaler oder empfangener Zeitstempel I
e10x_C_WITH_CP56_TIME_DIFF Befehlsobjekt verweigert Differenz zwischen lokalem und empfangen
e10x_C_COMMAND_LOCAL Befehlsobjekt verweigert weil lokale Verriegelung aktiv

7.2. 010 Server 270


WagoAppRTU, Release 1.2.13.1

Table 7.3 – continued from previous page


Name Initial Comment
e10x_C_COMMAND_ON_AT_ON Befehlsobjekt verweigert weil EIN auf EIN oder AUS auf AUS
e10x_C_COMMAND_ONE_OF_N Befehlsobjekt verweigert EINS-AUS-N aktiv und anderer Befehl noch
e10x_C_COMMAND_INVALID_VAL Befehlsobjekt verweigert weil Wert unzulässig
e10x_C_COMMAND_SEL_EXE_NOT_EQ Befehlsobjekt verweigert weil Sel. und Exe. Message nicht identisch
e10x_C_COMMAND_UNKOWN_COT Unbekannte/Unzulässige Übertragungsursache
e10x_C_COMMAND_UNKOWN_TYP Unbekannte/Unzulässige Typkennung
e10x_C_COMMAND_UNKOWN_INFOBJ Unbekannte/Unzulässige Informations-Objekt-Adresse
e10x_C_COMMAND_UNKOWN_ASDU Unbekannte/Unzulässige Gemeinsame ASDU Adresse
e10x_C_COMMAND_UNEXPECTED_SEL Sel. für Befehlsobjekt verweigert weil Direkte Ausführen konfiguriert
e10x_C_COMMAND_UNEXPECTED_EXE Exe. für Befehlsobjekt verweigert weil vorheriges Select fehlt oder fal
e10x_C_COMMAND_SEL_EXE_TIMEOUT Exe. für Befehlsobjekt verweigert wegen Select Timeout
e10x_C_COMMAND_RP_RECEIVED Prozess Rücksetztbefehl empfanngen Kontroller wird neu gestartet
e10x_C_CI_UNEXPECTED_QCC Zählwertabfrage QCC passt nicht zum eingestellten Zählwertmodus
e104_SysSockSend_ERROR Socket-Fehler beim SysSockSend
e104_SysSockRecv_ERROR Socket-Fehler beim SysSockRecv
e104_RxI_FRAME_WHITEOUT_STARTDT I-Frame empfangen, ohne Start DT
e104_RxI_FRAME_WRONG_SEQ_NO Sequenznummer des empfangenen I-Frame falsch
e104_ACTIV_CLOSE_T1_I Activ-Close, weil keine Quittierung von gesendeten I-Frames innerhal
e104_ACTIV_CLOSE_T1_U Activ-Close, weil keine Quittierung von gesendeten Test- Frames inne
e104_E2_MORE_THEN_ONE_STARTDT Activ-Close, weil bei Edition 2 Start-DT empfangen, ohne vorheriges
e104_CONNECTION_WITH_INVALID_IP Verbindung verweigert, weil IP-Adresse des Client nicht in IP-Filter L
e104_CONNECTION_NO_SERVER_FREE Verbindung verweigert, weil alle Server-Connectoren bereits verbunde
e10x_ReatinEV_Overflow ‘, Retain Event Overflow (schreiben auf SD-Card zu langsam), ‘;
eLAST

7.2.10 prg870S_Main (PRG)


Interface variables

Scope Name Type


Output xEnable BOOL

010 CFG
prg870S_Main.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyPara ty870S_ParaSvr

prg870S_Main.mCfgRead_101 (METH)

Interface variables

Scope Name Type


Return mCfgRead_101 BOOL
Inout fbFileReader fbTCBase_FileHandler

7.2. 010 Server 271


WagoAppRTU, Release 1.2.13.1

prg870S_Main.mCfgRead_104 (METH)

Interface variables

Scope Name Type


Return mCfgRead_104 BOOL
Inout fbFileReader fbTCBase_FileHandler

prg870S_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

prg870S_Main.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

prg870S_Main.mGet_ServerAsdu (METH)
Interface variables

Scope Name Type


Return mGet_ServerAsdu ty870_ServerAsduInfo
Input xFirst BOOL

prg870S_Main.mInit (METH)
Interface variables

Scope Name Type


Return mInit BOOL

prg870S_Main.mPreeStart (METH)
Interface variables

Scope Name Type


Return mPreeStart BOOL
Input eState eTCBase_MainState

7.3 020 Client


7.3.1 001 Common
fb870C_SQLiteCollector (FB)
Interface variables

7.3. 020 Client 272


WagoAppRTU, Release 1.2.13.1

Scope Name Type


sTableName STRING(79)
Output
tyDSList ty870C_SQLiteDataSetList

fb870C_SQLiteCollector.mAdd (METH)

Interface variables

Scope Name Type


Return mAdd BOOL
byCOT BYTE
byFlags BYTE
Input
pData POINTER TO uTCBase_32Bit
pCP56 POINTER TO ty870_CP56
Inout fbInfObj fb870C_InfObjBase

fb870C_SQLiteCollector.mGetDS (METH)

Interface variables

Scope Name Type


Return mGetDS BOOL
Inout tyDSL ty870C_SQLiteDataSetList

fb870C_SQLiteCollector.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
Input iIx INT
Inout fbClient fb870C_Client_Base

fb870C_SQLiteCollector.mSetASDU (METH)

Interface variables

Scope Name Type


Return mSetASDU BOOL
Input uASDU uTCBase_16Bit

fb870C_SQLiteExport (FB)
Interface variables

Scope Name Type Comment


xEnable BOOL TRUE, wenn SQLite Daten erzeugt werden sollen
xActiv BOOL TRUE, wenn Baustein gerade Aktiv und damit die Lowe Prio-
Task gestartet ist
Output sDbName STRING(79)
diRowLimit DINT
diRowOverRunDINT
sStateInfo STRING(127)
sErrorInfo STRING(127)

7.3. 020 Client 273


WagoAppRTU, Release 1.2.13.1

fb870C_SQLiteExport.mInit (METH)

Interface variables

Scope Name Type


Return mInit BOOL
byMode BYTE
Input diLimit DINT
sName STRING(79)

fb870C_SQLiteExport.mOpen (METH)

Interface variables

Scope Name Type


Return mOpen BOOL
Inout diResult DINT

fb870C_SQLiteExport.mSQLExecute (METH)

Interface variables

Scope Name Type


Return mSQLExecute BOOL
Input sSQL STRING(255)

fb870C_SQLiteExport.mStart (METH)

Interface variables

Scope Name Type


Return mStart BOOL
Inout fbCollector fb870C_SQLiteCollector

ty870C_PreeStartState (STRUCT)

Name Type
iState INT
iState_ INT
InOut:
iClnIx INT
iRtuIx INT
tonState TON

7.3. 020 Client 274


WagoAppRTU, Release 1.2.13.1

ty870C_SQLiteDat_aSet (STRUCT)

Name Type Comment


uASDU uTCBase_16Bit
uAdr uTCBase_32Bit
uVal uTCBase_32Bit
byCOT BYTE
InOut: byTK BYTE
byFlags BYTE
xCP56Local BOOL WAT31745: IEC60870-Master: Befehle ohne Zeitstempel (45..51)
werden mit localem Zeitstempel des Masters in SQL-Datenbank
geschrieben.
tyCP56 ty870_CP56

ty870C_SQLiteDataSetList (STRUCT)

Name Type Comment


sDB STRING(79)
tAge TIME
InOut:
iCnt INT
aDS ARRAY [0..TC60870_GC.C_SQLITE_LAST] OF Index 0 wird nicht
ty870C_SQLiteDat_aSet verwendet

7.3.2 IEC60870-5-101/104
010 Client
001 Base

fb870C_Client_Base (FB)

Interface variables

Scope Name Type Comment


Input xRtuFin BOOL
Inout tySQLPrio ty870C_SQLitePrio
xEnable BOOL
byInfObjAdrLen
BYTE
byQBit_Mode BYTE
Output iIx INT
tTransmitTime040
TIME Neu eingefügrt für die Berechung der Wartezeit auf ein Respons
von der Gegenstelle (z.B. für IEC60870-103)
tTransmitTime250
TIME Neu eingefügrt für die Berechung der Wartezeit auf ein Respons
von der Gegenstelle (z.B. für IEC60870-103)
sName STRING(31)

010 CFG

fb870C_Client_Base.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
iIx INT
Input byIOALen BYTE
sName STRING(47)

7.3. 020 Client 275


WagoAppRTU, Release 1.2.13.1

fb870C_Client_Base.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_Client_Base.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

fb870C_Client_Base.mGetPara (METH)

Interface variables

Scope Name Type


Return mGetPara BOOL
sPara STRING(79)
Input pPara POINTER TO BYTE
dwSize DWORD

fb870C_Client_Base.mInit (METH)

fb870C_Client_Base.mPreeStart (METH)

Interface variables

Scope Name Type


Return mPreeStart BOOL
Input iIx INT

fb870C_Client_Base.prpDataBaseName (PROP)

fb870C_Client_Base.prpTypIndex (PROP)

fb870C_Client_RtuBase (FB)

Interface variables

Scope Name Type Initial Comment


tyRxMsg ty870_IecMsg
Input
tyTxMsg ty870_IecMsg
xEnable BOOL
xDisableRTU BOOL
Output
xLinkOk BOOL
byInfObjAdrLen BYTE 3 Ist eine Kopie vom Client

001 PRIVATE

7.3. 020 Client 276


WagoAppRTU, Release 1.2.13.1

fb870C_Client_RtuBase._mAddByte (METH)

Interface variables

Scope Name Type


Inout pD POINTER TO BYTE
Input byChar BYTE

fb870C_Client_RtuBase._mCycleImp (METH)

Interface variables

Scope Name Type


Return _mCycleImp BOOL

fb870C_Client_RtuBase._mHandelMsg (METH)

Interface variables

Scope Name Type


Return _mHandelMsg BOOL

fb870C_Client_RtuBase._mInfObjC (METH)

Interface variables

Scope Name Type


Return _mInfObjC BOOL

fb870C_Client_RtuBase._mLogg (METH)

Interface variables

Scope Name Type Comment


Return _mLogg BOOL
eType eTCBase_COLORS
eClass e870C_Logg STRING(79);
sTxt STRING(127)
Input s1 STRING(79)
s2 STRING(79)
s3 STRING(79)
s4 STRING(79)

010 CFG

fb870C_Client_RtuBase.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
tyPara ty870C_ParaRTU
Inout
fbClient fb870C_Client_Base

7.3. 020 Client 277


WagoAppRTU, Release 1.2.13.1

fb870C_Client_RtuBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbClient fb870C_Client_Base

fb870C_Client_RtuBase.mCreateJob (METH)

Interface variables

Scope Name Type


Return mCreateJob INT
fbInfObj fb870C_InfObjBaseC
Inout
fbAsdu fb870C_Client_Asdu

fb870C_Client_RtuBase.mDisconnected (METH)

fb870C_Client_RtuBase.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

010 ASDU

fb870C_Client_Asdu (FB)

Interface variables

Scope Name Type Initial Comment


xEnable BOOL
Output
byInfObjAdrLen BYTE 3 Ist eine Kopie vom Client bzw. von der RTU

010 CFG

fb870C_Client_Asdu.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
byInfObjAddrLen BYTE
Input iIx INT
wAsduAdr WORD
Inout fbRtu fb870C_Client_RtuBase

fb870C_Client_Asdu.mCfgRead (METH)

Interface variables

7.3. 020 Client 278


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Input byInfObjAddrLen BYTE
fbFileReader fbTCBase_FileHandler
Inout
fbRtu fb870C_Client_RtuBase

fb870C_Client_Asdu.mDisconnected (METH)

Interface variables

Scope Name Type


Input byQBit_Mode BYTE

fb870C_Client_Asdu.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fb870C_Client_Asdu.mHandelMsg (METH)

Interface variables

Scope Name Type Comment


Return mHandelMsg BOOL
Inout fbRTU fb870C_Client_RtuBase refRxMsg : ty870_IecMsg;

fb870C_Client_Asdu.mInfObjC (METH)

Interface variables

Scope Name Type


Return mInfObjC BOOL
Inout fbRTU fb870C_Client_RtuBase

fb870C_Client_Asdu.mVerifyExe (METH)

Interface variables

Scope Name Type


Return mVerifyExe BOOL
Inout tonSel TON

fb870C_Client_Asdu.tSelTime (PROP)

101

101 Client

fb870C_Client101 (FB)

Interface variables

7.3. 020 Client 279


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment Inherited


from
Input xRtuFin BOOL fb870C_Client_Base
Inout tySQLPrio ty870C_SQLitePrio fb870C_Client_Base
xEnable BOOL fb870C_Client_Base
byInfObjAdrLen
BYTE fb870C_Client_Base
byQBit_ModeBYTE fb870C_Client_Base
Output iIx INT fb870C_Client_Base
tTransmitTime040
TIME Neu eingefügrt für die Berechung der Wartezeit auf fb870C_Client_Base
ein Respons von der Gegenstelle (z.B. für
IEC60870-103)
tTransmitTime250
TIME Neu eingefügrt für die Berechung der Wartezeit auf fb870C_Client_Base
ein Respons von der Gegenstelle (z.B. für
IEC60870-103)
sName STRING(31) fb870C_Client_Base

010 CFG

fb870C_Client101._mCfgApp (METH)

Interface variables

Scope Name Type


Inout tyPara ty870C_Para101Clt

fb870C_Client101.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

PROTECTED

fb870C_Client101.mMsgRpt (METH)

fb870C_Client101.mMsgSnd (METH)

Interface variables

Scope Name Type


byControl BYTE
uLinkAdr uTCBase_16BIT
Input
pData POINTER TO BYTE
byLen BYTE

fb870C_Client101.mGetPara (METH)

Interface variables

Scope Name Type


Return mGetPara BOOL
sPara STRING(79)
Input pPara POINTER TO BYTE
dwSize DWORD

7.3. 020 Client 280


WagoAppRTU, Release 1.2.13.1

fb870C_Client101.prpTypIndex (PROP)

fb870C_Client101_RTU (FB)

Interface variables

Scope Name Type Initial Comment Inherited from


tyRxMsg ty870_IecMsg fb870C_Client_RtuBase
Input
tyTxMsg ty870_IecMsg fb870C_Client_RtuBase
xEnable BOOL fb870C_Client_RtuBase
xDisableRTU BOOL fb870C_Client_RtuBase
Output
xLinkOk BOOL fb870C_Client_RtuBase
byInfObjAdrLen BYTE 3 Ist eine Kopie vom fb870C_Client_RtuBase
Client
fbClient fb870C_Client101 fb870C_Client101_Asy;
Inout
tySQLPrio ty870C_SQLitePrio

001 PRIVATE

fb870C_Client101_RTU._S (ACT)

primäre byRxCntrByte := (byRxCntrByte AND 16#0F);

fb870C_Client101_RTU._U (ACT)

010 CFG

fb870C_Client101_RTU.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
tyPara ty870C_ParaRTU
Inout
fbClient fb870C_Client_Base

fb870C_Client101_RTU.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbClient fb870C_Client_Base

fb870C_Client101_RTU.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL

7.3. 020 Client 281


WagoAppRTU, Release 1.2.13.1

fb870C_Client101_RTU.mRecive (METH)

Interface variables

Scope Name Type Comment


Return mRecive BYTE
Inout fbClient fb870C_Client101 fb870C_Client101_Asy;

104

fb870C_Client104 (FB)

Interface variables

Scope Name Type Comment Inherited


from
Input xRtuFin BOOL fb870C_Client_Base
Inout tySQLPrio ty870C_SQLitePrio fb870C_Client_Base
xEnable BOOL fb870C_Client_Base
byInfObjAdrLen
BYTE fb870C_Client_Base
byQBit_ModeBYTE fb870C_Client_Base
Output iIx INT fb870C_Client_Base
tTransmitTime040
TIME Neu eingefügrt für die Berechung der Wartezeit auf fb870C_Client_Base
ein Respons von der Gegenstelle (z.B. für
IEC60870-103)
tTransmitTime250
TIME Neu eingefügrt für die Berechung der Wartezeit auf fb870C_Client_Base
ein Respons von der Gegenstelle (z.B. für
IEC60870-103)
sName STRING(31) fb870C_Client_Base

010 CFG

fb870C_Client104._mCfgApp (METH)

Interface variables

Scope Name Type


Inout tyPara ty870C_Para104Clt

fb870C_Client104.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_Client104.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

7.3. 020 Client 282


WagoAppRTU, Release 1.2.13.1

fb870C_Client104.mInit (METH)

fb870C_Client104.prpTypIndex (PROP)

fb870C_Client104_RTU (FB)

Interface variables

Scope Name Type Initial Comment Inherited from


tyRxMsg ty870_IecMsg fb870C_Client_RtuBase
Input
tyTxMsg ty870_IecMsg fb870C_Client_RtuBase
xEnable BOOL fb870C_Client_RtuBase
xDisableRTU BOOL fb870C_Client_RtuBase
Output
xLinkOk BOOL fb870C_Client_RtuBase
byInfObjAdrLen BYTE 3 Ist eine Kopie vom fb870C_Client_RtuBase
Client
fbClient fb870C_Client104
Inout
tySQLPrio ty870C_SQLitePrio
Output xEnableDT BOOL

010 CFG

fb870C_Client104_RTU.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
tyPara ty870C_ParaRTU
Inout
fbClient fb870C_Client_Base

fb870C_Client104_RTU.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbClient fb870C_Client_Base

fb870C_Client104_RTU.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL

fb870C_Client104_RTU.mSendS (METH)

Interface variables

Scope Name Type


Return mSendS BOOL
Input wTlgNo WORD

7.3. 020 Client 283


WagoAppRTU, Release 1.2.13.1

fb870C_Client104_RTU.mSendU (METH)

Interface variables

Scope Name Type


Return mSendU BOOL
Input byCode BYTE

fb870C_FlgNoCntrl (FB)

Interface variables

Scope Name Type Comment


Inout fbRtu fb870C_Client104_RTU
tyLinkPara ty870_ParaLink104
wSFN_send WORD Sende-Folge-Nummer (versendete Telegramm-Folge-Nummer)
wSFN_stop WORD Sende-Folge-Nummer (keine weiteren I-Frames versendet, wenn
(wSFN_send = wSFN_stop))
Output
wSFN_quitt WORD Sende-Folge-Nummer Quittiert
wEFN_reci WORD Empfangs-Folge-Nummer (empfangen)
wEFN_expe WORD Empfangs-Folge-Nummer (erwartet)
wEFN_limit WORD Empfangs-Folge-Nummer (unverzögerte Quittierung, wenn
(wEFN_reci = wEFN_limit))
wEFN_quitt WORD Empfangs-Folge-Nummer (Start von tonT2, wenn (wEFN_quitt
<> wEFN_expe), Quittierung nach Ablauf von tonT2)

010 CFG

fb870C_FlgNoCntrl.mCfgApp (METH)

Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyLinkPara ty870_ParaLink104

fb870C_FlgNoCntrl.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_FlgNoCntrl.mClose (METH)

Interface variables

Scope Name Type


Return mClose BOOL

fb870C_FlgNoCntrl.mInit (METH)

Interface variables

7.3. 020 Client 284


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mInit BOOL

fb870C_FlgNoCntrl.mRxI (METH)

Interface variables

Scope Name Type


Return mRxI BOOL
Input pByte POINTER TO ARRAY [0..3] OF BYTE

fb870C_FlgNoCntrl.mRxS (METH)

Interface variables

Scope Name Type


Return mRxS BOOL
Input pByte POINTER TO ARRAY [0..1] OF BYTE

fb870C_FlgNoCntrl.mRxU (METH)

Interface variables

Scope Name Type


Return mRxU BOOL
Input byCode BYTE

fb870C_FlgNoCntrl.mTxI (METH)

Interface variables

Scope Name Type


Return mTxI BOOL

fb870C_FlgNoCntrl.mTxS (METH)

Interface variables

Scope Name Type


Return mTxS BOOL
Input wTlgNo WORD

fb870C_FlgNoCntrl.mTxU (METH)

Interface variables

Scope Name Type


Return mTxU BOOL
Input byCode BYTE

fb870C_FlgNoCntrl.xTxEnable (PROP)

050 InfObj

7.3. 020 Client 285


WagoAppRTU, Release 1.2.13.1

01 Base

fb870C_InfObjBase (FB)

Interface variables

Scope Name Type


tyInfObj ty870C_InfObjPar
Output
iRtnObjIx INT

001 PROTECTED

fb870C_InfObjBase.mLogger (METH)

Interface variables

Scope Name Type


Return mLogger BOOL
Inout fbAsdu fb870S_Asdu
Input eEvent e870S_Logg

010 CFG

fb870C_InfObjBase.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObjBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObjBase.byInfObjAdrLen (PROP)

fb870C_InfObjBase.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL

fb870C_InfObjBase.mRxMsg (METH)

Interface variables

7.3. 020 Client 286


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObjBaseC (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
iRtnObjIx INT fb870C_InfObjBase
Output byInStat BYTE
byCntrlTrg BYTE
tyCntrl ty870C_InfObjC_Data

001 PROTECTED

fb870C_InfObjBaseC._mAddCP56 (METH)

010 CFG

fb870C_InfObjBaseC.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObjBaseC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObjBaseC.byExeState (PROP)

fb870C_InfObjBaseC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL
Inout fbAsdu fb870C_Client_Asdu

fb870C_InfObjBaseC.mRxMsg (METH)

Interface variables

7.3. 020 Client 287


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObjBaseC.mTxMsg (METH)

Interface variables

Scope Name Type


Return mTxMsg BOOL
tyJob ty870C_10xJob
Inout
fbRTU fb870C_Client_RtuBase

fb870C_InfObjBaseC.tTimeOut (PROP)

fb870C_InfObjBaseM (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output
iRtnObjIx INT fb870C_InfObjBase

010 CFG

fb870C_InfObjBaseM.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObjBaseM.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObjBaseM.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbRTU fb870C_Client_Asdu

fb870C_InfObjBaseM.mDisconnected (METH)

Interface variables

7.3. 020 Client 288


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Input byQBit_Mode BYTE

fb870C_InfObjBaseM.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

10 M

fb870C_InfObj_M01SP (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output
iRtnObjIx INT fb870C_InfObjBase

010 CFG

fb870C_InfObj_M01SP.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_M01SP.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M01SP.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_M03DP (FB)

Interface variables

7.3. 020 Client 289


WagoAppRTU, Release 1.2.13.1

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output
iRtnObjIx INT fb870C_InfObjBase

010 CFG

fb870C_InfObj_M03DP.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_M03DP.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M03DP.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_M05ST (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output
iRtnObjIx INT fb870C_InfObjBase

010 CFG

fb870C_InfObj_M05ST.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_M05ST.mCfgRead (METH)

Interface variables

7.3. 020 Client 290


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M05ST.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_M07BO (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output iRtnObjIx INT fb870C_InfObjBase
dwBO DWORD

010 CFG

fb870C_InfObj_M07BO.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_M07BO.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M07BO.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_M09ME (FB)

Interface variables

7.3. 020 Client 291


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output iRtnObjIx INT fb870C_InfObjBase
uME uTCBase_32Bit byFlags : BYTE;

010 CFG

fb870C_InfObj_M09ME.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_M09ME.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M09ME.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_M15IT (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output iRtnObjIx INT fb870C_InfObjBase
tyBCR ty870S_BCR

010 CFG

fb870C_InfObj_M15IT.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_M15IT.mCfgRead (METH)

Interface variables

7.3. 020 Client 292


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M15IT.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_M17EP (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
Output
iRtnObjIx INT fb870C_InfObjBase

010 CFG

fb870C_InfObj_M17EP.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_M17EP.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

30 C

fb870C_InfObj_C45SC (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
iRtnObjIx INT fb870C_InfObjBase
Output byInStat BYTE fb870C_InfObjBaseC
byCntrlTrg BYTE fb870C_InfObjBaseC
tyCntrl ty870C_InfObjC_Data fb870C_InfObjBaseC

7.3. 020 Client 293


WagoAppRTU, Release 1.2.13.1

010 CFG

fb870C_InfObj_C45SC.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_C45SC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_C45SC.mRmApp (METH)

Interface variables

Scope Name Type


Return mRmApp BOOL
Input pfbM_SP POINTER TO fb870C_InfObj_M01SP

fb870C_InfObj_C45SC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL
Inout fbAsdu fb870C_Client_Asdu

fb870C_InfObj_C45SC.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_C46DC (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
iRtnObjIx INT fb870C_InfObjBase
Output byInStat BYTE fb870C_InfObjBaseC
byCntrlTrg BYTE fb870C_InfObjBaseC
tyCntrl ty870C_InfObjC_Data fb870C_InfObjBaseC

7.3. 020 Client 294


WagoAppRTU, Release 1.2.13.1

010 CFG

fb870C_InfObj_C46DC.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_C46DC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_C46DC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL
Inout fbAsdu fb870C_Client_Asdu

fb870C_InfObj_C46DC.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_C47RC (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
iRtnObjIx INT fb870C_InfObjBase
Output byInStat BYTE fb870C_InfObjBaseC
byCntrlTrg BYTE fb870C_InfObjBaseC
tyCntrl ty870C_InfObjC_Data fb870C_InfObjBaseC

010 CFG

fb870C_InfObj_C47RC.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

7.3. 020 Client 295


WagoAppRTU, Release 1.2.13.1

fb870C_InfObj_C47RC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_C47RC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL
Inout fbAsdu fb870C_Client_Asdu

fb870C_InfObj_C47RC.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_C48SE (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
iRtnObjIx INT fb870C_InfObjBase
byInStat BYTE fb870C_InfObjBaseC
Output
byCntrlTrg BYTE fb870C_InfObjBaseC
tyCntrl ty870C_InfObjC_Data fb870C_InfObjBaseC
uSE uTCbase_32Bit

010 CFG

fb870C_InfObj_C48SE.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_C48SE.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

7.3. 020 Client 296


WagoAppRTU, Release 1.2.13.1

fb870C_InfObj_C48SE.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL
Inout fbAsdu fb870C_Client_Asdu

fb870C_InfObj_C48SE.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

fb870C_InfObj_C51BO (FB)

Interface variables

Scope Name Type Inherited from


tyInfObj ty870C_InfObjPar fb870C_InfObjBase
iRtnObjIx INT fb870C_InfObjBase
byInStat BYTE fb870C_InfObjBaseC
Output
byCntrlTrg BYTE fb870C_InfObjBaseC
tyCntrl ty870C_InfObjC_Data fb870C_InfObjBaseC
uBO uTCBase_32Bit

010 CFG

fb870C_InfObj_C51BO.mCfgAPP (METH)

Interface variables

Scope Name Type


Return mCfgAPP INT
Inout tyAppCfg ty870C_InfObjAppCfg

fb870C_InfObj_C51BO.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_InfObj_C51BO.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp BOOL
Inout fbAsdu fb870C_Client_Asdu

7.3. 020 Client 297


WagoAppRTU, Release 1.2.13.1

fb870C_InfObj_C51BO.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Input pData POINTER TO BYTE
Inout fbRTU fb870C_Client_RtuBase

ty870C_InfObjC_Data (STRUCT)

Name Type Comment


byTK BYTE uVal : uTCBase_32Bit; byCO : BYTE; tyCP56 : ty870_CP56;
byCOT BYTE tySK : BYTE;
byCO BYTE
byLen BYTE
InOut: aData ARRAY [0..15] OF
BYTE
pData POINTER TO zeigt auf eine Adresse in aData oder auf die globale Clock
uTCBase_32Bit (verwendet für den Eintrag in dir SQL-Datenbank)
pCP56 POINTER TO zeigt auf eine Adresse in aData oder auf die globale Clock
ty870_CP56 (verwendet für den Eintrag in dir SQL-Datenbank)

080 Online Config


101

ty870C_Para101Clt (STRUCT)

Name Type Initial Comment


xEnable BOOL
iIx INT
iComPort INT 1
iComType INT 0
dwBaudRate DWORD 9600
xAsym BOOL Unsymetrisch / Symetrisch
byLinkAddrLen
BYTE 1 0, 1 oder 2 Byte
InOut: byAsduAdrLen
BYTE 2 1 oder 2 Byte
byCOTLen BYTE 2 1 = ohne Herkunftsadresse,
2 = mit Herkunftsadresse
byInfoObjAddrLen
BYTE 3 1, 2 oder 3 Byte
tRespDelay TIME TIME#1s0ms
tLinkTestTime
TIME TIME#10s0ms
aParaRTU ARRAY
[1..TC60870_GC.C_LAST_CLIENT_RTU]
OF ty870C_ParaRTU

ty870C_Para101Specific (STRUCT)

Name Type
InOut:
wLinkAddr WORD

104

7.3. 020 Client 298


WagoAppRTU, Release 1.2.13.1

ty870C_Para104Clt (STRUCT)

Name Type
xEnable BOOL
InOut:
iIx INT
aParaRTU ARRAY [1..TC60870_GC.C_LAST_CLIENT_RTU] OF ty870C_ParaRTU

ty870C_Para104Specific (STRUCT)

Name Type Initial


sIpAdrSvr STRING(23)
wPort WORD 2404
wK WORD 12
InOut: wW WORD 8
tT0 TIME TIME#30s0ms
tT1 TIME TIME#15s0ms
tT2 TIME TIME#10s0ms
tT3 TIME TIME#20s0ms

AppInfObj

ty870C_InfObjPD_C45SC (STRUCT)

Name Type Comment


xI_SCS BOOL
xI_EXE BOOL Input SCS
xI_SEL BOOL Input Ausführen
InOut:
xI_ABORT BOOL Input Anwahl
tyI_CP56 ty870_CP56 Input Abbruch
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

ty870C_InfObjPD_C46DC (STRUCT)

Name Type Comment


xI_DCS0 BOOL
xI_DCS1 BOOL Input DCS0
xI_EXE BOOL Input DCS1
InOut: xI_SEL BOOL Input Ausführen
xI_ABORT BOOL Input Anwahl
tyI_CP56 ty870_CP56 Input Abbruch
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

7.3. 020 Client 299


WagoAppRTU, Release 1.2.13.1

ty870C_InfObjPD_C47RC (STRUCT)

Name Type Comment


xI_RCSd BOOL
xI_RCSi BOOL Input RCS Dec
xI_EXE BOOL Input RCS Inc
InOut: xI_SEL BOOL Input Ausführen
xI_ABORT BOOL Input Anwahl
tyI_CP56 ty870_CP56 Input Abbruch
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

ty870C_InfObjPD_C48NA (STRUCT)

Name Type Comment


iI_SEn INT
xI_EXE BOOL Input Sollwert (normalisierter Wert)
xI_SEL BOOL Input Ausführen
InOut:
xI_ABORT BOOL Input Anwahl
tyI_CP56 ty870_CP56 Input Abbruch
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

ty870C_InfObjPD_C49NB (STRUCT)

Name Type Comment


iI_SEs INT
xI_EXE BOOL Input Sollwert (skalierter Wert)
xI_SEL BOOL Input Ausführen
InOut:
xI_ABORT BOOL Input Anwahl
tyI_CP56 ty870_CP56 Input Abbruch
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

ty870C_InfObjPD_C50NC (STRUCT)

Name Type Comment


iI_SEr REAL
xI_EXE BOOL Input Sollwert (verkürtze Gleitkommazahl)
xI_SEL BOOL Input Ausführen
InOut:
xI_ABORT BOOL Input Anwahl
tyI_CP56 ty870_CP56 Input Abbruch
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

ty870C_InfObjPD_C51BO (STRUCT)

Name Type Comment


dwI_BO DWORD
xI_EXE BOOL Output Sollwert
InOut:
tyI_CP56 ty870_CP56 Input Ausführen
byQ_COT BYTE
byQ_STATE BYTE Output Rückmeldung empfangene Übertragungsursache

7.3. 020 Client 300


WagoAppRTU, Release 1.2.13.1

ty870C_InfObjPD_M01SP (STRUCT)

Name Type Comment


xQ_SPI BOOL
xQ_BL BOOL Flag SPI( .0)
xQ_SB BOOL Flag BL (BLOCKED .4)
xQ_NT BOOL Flag SB (SUBSTITUTED .5)
InOut:
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

ty870C_InfObjPD_M03DP (STRUCT)

Name Type Comment


xQ_DP0 BOOL
xQ_DP1 BOOL Flag DP-0( .0)
xQ_BL BOOL Flag DP-1( .1)
xQ_SB BOOL Flag BL (BLOCKED .4)
InOut: xQ_NT BOOL Flag SB (SUBSTITUTED .5)
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

ty870C_InfObjPD_M05ST (STRUCT)

Name Type Comment


byQ_VTI BYTE
xQ_OV BOOL VTI (BYTE)
xQ_BL BOOL Flag OV (OVERFLOW .0)
xQ_SB BOOL Flag BL (BLOCKED .4)
InOut: xQ_NT BOOL Flag SB (SUBSTITUTED .5)
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

ty870C_InfObjPD_M07BO (STRUCT)

Name Type Comment


dwQ_BO DWORD
xQ_OV BOOL BO (DWORD)
xQ_BL BOOL Flag OV (OVERFLOW .0)
xQ_SB BOOL Flag BL (BLOCKED .4)
InOut: xQ_NT BOOL Flag SB (SUBSTITUTED .5)
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

7.3. 020 Client 301


WagoAppRTU, Release 1.2.13.1

ty870C_InfObjPD_M09ME (STRUCT)

Name Type Comment


iQ_NVA INT
xQ_OV BOOL Sollwert (normalisierter Wert)
xQ_BL BOOL Flag OV (OVERFLOW .0)
xQ_SB BOOL Flag BL (BLOCKED .4)
InOut: xQ_NT BOOL Flag SB (SUBSTITUTED .5)
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

ty870C_InfObjPD_M11ME (STRUCT)

Name Type Comment


iQ_SVA INT
xQ_OV BOOL Sollwert (skalierter Wert)
xQ_BL BOOL Flag OV (OVERFLOW .0)
xQ_SB BOOL Flag BL (BLOCKED .4)
InOut: xQ_NT BOOL Flag SB (SUBSTITUTED .5)
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

ty870C_InfObjPD_M13ME (STRUCT)

Name Type Comment


rQ_IEE754 REAL
xQ_OV BOOL Sollwert (verkürzte Gleitkommazahl)
xQ_BL BOOL Flag OV (OVERFLOW .0)
xQ_SB BOOL Flag BL (BLOCKED .4)
InOut: xQ_NT BOOL Flag SB (SUBSTITUTED .5)
xQ_IV BOOL Flag NT (NOT TOPICAL .6)
byQ_COT BYTE Flag IV (INVALID .7)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

ty870C_InfObjPD_M15IT (STRUCT)

Name Type Comment


dwQ_BCR DWORD
byQ_SQ BYTE externe Zähler (32Bit) )
xQ_CA BOOL Sequenznummer (Sequenznummer 00..04)
xQ_CY BOOL Flag CA (counter was adjusted 05)
InOut:
xQ_IV BOOL Flag CY (carry 06)
byQ_COT BYTE Flag IV (invalid 07)
byQ_OA BYTE
wQ_New WORD
tyQ_CP56 ty870_CP56

7.3. 020 Client 302


WagoAppRTU, Release 1.2.13.1

u870C_InfObjPD (UNION)

Name Type
tyM01SP ty870C_InfObjPD_M01SP
tyM03DP ty870C_InfObjPD_M03DP
tyM05ST ty870C_InfObjPD_M05ST
tyM07BO ty870C_InfObjPD_M07BO
tyM09ME ty870C_InfObjPD_M09ME
tyM11ME ty870C_InfObjPD_M11ME
tyM13ME ty870C_InfObjPD_M13ME
InOut:
tyM15IT ty870C_InfObjPD_M15IT
tyC45SC ty870C_InfObjPD_C45SC
tyC46DC ty870C_InfObjPD_C46DC
tyC47RC ty870C_InfObjPD_C47RC
tyC48NA ty870C_InfObjPD_C48NA
tyC49NB ty870C_InfObjPD_C49NB
tyC50NC ty870C_InfObjPD_C50NC
tyC51BO ty870C_InfObjPD_C51BO

e870C_RtuTyp (ENUM)

Attributes:
qualified_only
Name Initial Comment
0
eDISABLE
InOut: e60870_5_101sym
e60870_5_101asym
e60870_5_103 ,
e60870_5_104

fb870C_AppCfg (FB)

Interface variables

Scope Name Type


byClientTyp BYTE
Output byClientIx BYTE
iAsduIx INT

fb870C_AppCfg.mApp_InfObjAdd_C45SC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C45SC INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_C46DC (METH)

Interface variables

7.3. 020 Client 303


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mApp_InfObjAdd_C46DC INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_C47RC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C47RC INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_C48NA (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C48NA INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_C49NB (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C49NB INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_C50NC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C50NC INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_C51BO (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_C51BO INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00 or TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M01SP (METH)

Interface variables

7.3. 020 Client 304


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return mApp_InfObjAdd_M01SP
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M03DP (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M03DP
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M05ST (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M05ST
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M07BO (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M07BO
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M09NA (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M09NA
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M11NB (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M11NB
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

7.3. 020 Client 305


WagoAppRTU, Release 1.2.13.1

fb870C_AppCfg.mApp_InfObjAdd_M13NC (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M13NC
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

fb870C_AppCfg.mApp_InfObjAdd_M15IT (METH)

Interface variables

Scope Name Type Comment


Return mApp_InfObjAdd_M15IT
INT
dwAdr DWORD
Input
byCP BYTE TC60870_GC.C_CP_00, TC60870_GC.C_CP_24 or
TC60870_GC.C_CP_56

ty870C_InfObjAppCfg (STRUCT)

Name Type Comment


dwAdr DWORD
InOut:
byTK BYTE e870_InfObj_TK;
byCP BYTE 0 = kein, 1 = CP24, else = CP56

ty870C_ParaASDU (STRUCT)

Name Type
InOut: xEnable BOOL
wAsduAdr WORD

7.3. 020 Client 306


WagoAppRTU, Release 1.2.13.1

ty870C_ParaClt (STRUCT)

Name Type Initial Comment


xEnable BOOL
itfUserApp870c itfUserApp_870C
bySQLiteMode BYTE 0 0 = nicht verwendet,
diSQLiteRowLimit DINT 10000 nur Relevant, wenn
bySQLiteMode 1 oder
2, Anzahl von Einträ-
gen in der Datenbank
(min = 1000, max =
100000)
aPara101Clt ARRAY
IEC60870-Cfg;
[1..prg870C_Main.C_CL101_LAST]
byClockSyncMode
OF
: BYTE := 0;
ty870C_Para101Clt
tClockValidity-
Time : TIME
:= T#10M;
xClockBit_SU
: BOOL :=
TRUE; xClock-
Bit_DOW :
InOut: BOOL := TRUE;
tC_PulseDurationD
: TIME := T#2S;
tC_PulseDurationS
: TIME :=
T#500MS;
tC_PulseDurationL
: TIME := T#5S;
xC_1_off_N
: BOOL
:= FALSE;
tC_CpValidityTime
: TIME := T#0S;
byQrpMode :
BYTE := 1; byG-
AMode : BYTE
:= 1;

aPara104Clt ARRAY
[1..prg870C_Main.C_CL104_LAST]
OF
ty870C_Para104Clt

7.3. 020 Client 307


WagoAppRTU, Release 1.2.13.1

ty870C_ParaRTU (STRUCT)

Name Type Initial Comment


xEnable BOOL
iIx INT
pLinkOk POINTER TO BOOL
pDisableRtuPOINTER TO BOOL
byORIGAdr BYTE
iIC_Mode INT 0 0 = deaktiviert, 1 = zyklisch, 2 = einmalig
beim Verbindungsaufbau, 3 = beim
Verbindungsaufbau und zyklisch
tIC_Cycle TIME TIME#10m0s0ms
iCS_Mode INT 0 0 = deaktiviert, 1 = zyklisch, 2 = einmalig
beim Verbindungsaufbau, 3 = beim
Verbindungsaufbau und zyklisch
tCS_Cycle TIME TIME#10m0s0ms
InOut: iCI_Mode INT 0 0 = deaktiviert, 1 = zyklisch
(Zeitsynchron)
tCI_Cycle TIME TIME#15m0s0ms
Synchron zur internen Uhr z.B. immer
nach 15 Minuten (900s)
iCI_Type INT 1 Zählerbetriebsart 1 = A, 2 = B, 3 = C und
4=D
iCI_FRZ INT 2 (nun bei Betriebsart C und D) 1 =
umspeichern ohne Rücksetzen, 2 =
umspeichern mit Rücksetzen
iExecMode INT 1 1 = direkte Ausführung, 2 = Auswahl und
Ausführen
tCtlTimeoutTIME TIME#5s0ms
uLink u870C_ParaClt_Link
aASDU ARRAY
[1..TC60870_GC.C_LAST_ASDU]
OF ty870C_ParaASDU

u870C_ParaClt_Link (UNION)

Name Type
InOut: ty101 ty870C_Para101Specific
ty104 ty870C_Para104Specific

ty870C_10xJob (STRUCT)

Name Type Comment


byState BYTE 0 = nichts zu tun, 1 = eingetragen, 2 = gesendet, warten
auf Confirm, 3 =
InOut: uASDU uTCBase_16Bit
tyCntrl ty870C_InfObjC_Data
pInfObjFB POINTER TO
fb870C_InfObjBaseC

ty870C_InfObjPar (STRUCT)

Name Type
iIX INT
InOut: byTK BYTE
byBaseTK BYTE
dwAdr DWORD

7.3. 020 Client 308


WagoAppRTU, Release 1.2.13.1

ty870C_MsgPrototy (STRUCT)

Name Type Initial


pDyn POINTER TO BYTE ADR(aData)
InOut:
aData ARRAY [0..23] OF BYTE
byLen BYTE

ty870C_ParaLink10x (STRUCT)

Name Type Initial Comment


tResponseDelay
TIME
tLinkTestTime
TIME
xSymetrischBOOL Symetrisch oder Unsymetrisch
InOut: byLinkAdrLen
BYTE 1 0, 1 oder 2 Byte
byAsduAdrLen
BYTE 1 oder 2 Byte
byCOTLen BYTE 1 = ohne Herkunftsadresse, 2 = mit Herkunftsadresse
by0xE5_ModeBYTE 0 nicht verwenden, 1 immer verwenden, 2 automatisch (das heißt nur
dann, wenn E5 mindestens einmal empfangen wurde

ty870C_SQLitePrio (STRUCT)

Name Type Initial


iCntMax INT 0
InOut: pfbCntMaxFB POINTER TO fb870C_SQLiteCollector 16#0
tAgeMax TIME TIME#0ms
pfbAgeMaxFB POINTER TO fb870C_SQLiteCollector 16#0

7.3.3 IEC60870-5-103
010 Client
fb870C_Client103 (FB)

Interface variables

Scope Name Type Comment Inherited


from
Input xRtuFin BOOL fb870C_Client_Base
Inout tySQLPrio ty870C_SQLitePrio fb870C_Client_Base
xEnable BOOL fb870C_Client_Base
byInfObjAdrLen
BYTE fb870C_Client_Base
byQBit_ModeBYTE fb870C_Client_Base
Output iIx INT fb870C_Client_Base
tTransmitTime040
TIME Neu eingefügrt für die Berechung der Wartezeit auf fb870C_Client_Base
ein Respons von der Gegenstelle (z.B. für
IEC60870-103)
tTransmitTime250
TIME Neu eingefügrt für die Berechung der Wartezeit auf fb870C_Client_Base
ein Respons von der Gegenstelle (z.B. für
IEC60870-103)
sName STRING(31) fb870C_Client_Base

010 CFG

fb870C_Client103.mCfgRead (METH)

Interface variables

7.3. 020 Client 309


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870C_Client103.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

PROTECTED

fb870C_Client103.mSendMsg (METH)

Interface variables

Scope Name Type


byControl BYTE
uLinkAdr uTCBase_16Bit
Input
pData POINTER TO BYTE
byLen BYTE

fb870C_Client103.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

fb870C_Client103.mInit (METH)

fb870C_Client103_RTU (FB)

Interface variables

Scope Name Type


Inout fbClient fb870C_Client103
xEnable BOOL
Output
xLinkOk BOOL

010 CFG

fb870C_Client103_RTU.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
fbFileReader fbTCBase_FileHandler
Inout
fbClient fb870C_Client103

7.3. 020 Client 310


WagoAppRTU, Release 1.2.13.1

fb870C_Client103_RTU.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870C_Client103_RTU._mLogg (METH)

Interface variables

Scope Name Type Comment


Return _mLogg BOOL
eType eTCBase_COLORS
Input eClass e870C_Logg STRING(79);
sData STRING(127)

fb870C_Client103_RTU.mJOB_IC (METH)

Interface variables

Scope Name Type


Return mJOB_IC INT

fb870C_Client103_RTU.mJOB_InfObj (METH)

Interface variables

Scope Name Type


Return mJOB_InfObj INT
Inout fbInfObj fb870_Client103_InfObjBase

fb870C_Client103_RTU.mRecive (METH)

Interface variables

Scope Name Type


Return mRecive BOOL
Inout fbRx fbTCBase_ComBuffer

050 InfObj
01 Base

fb870_Client103_InfObjBase (FB)

Interface variables

Scope Name Type


Output tyInfObj ty870C_103InfObjPar

010 CFG

7.3. 020 Client 311


WagoAppRTU, Release 1.2.13.1

fb870_Client103_InfObjBase.mCfgConnect (METH)

Interface variables

Scope Name Type


Return mCfgConnect BOOL
Input pfbInfObj POINTER TO fb870_Client103_InfObjBase

fb870_Client103_InfObjBase.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_Client103_InfObjBase.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Client103_InfObjBase.mC_GenMsg (METH)

Interface variables

Scope Name Type


Return mC_GenMsg BOOL

fb870_Client103_InfObjBase.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbRTU fb870C_Client103_RTU

fb870_Client103_InfObjBase.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Inout fbRTU fb870C_Client103_RTU

10 M

fb870_Client103_InfObjM_DPI (FB)

Interface variables

7.3. 020 Client 312


WagoAppRTU, Release 1.2.13.1

Scope Name Type Inherited from


Output tyInfObj ty870C_103InfObjPar fb870_Client103_InfObjBase

010 CFG

fb870_Client103_InfObjM_DPI.mCfgConnect (METH)

Interface variables

Scope Name Type


Return mCfgConnect BOOL
Input pfbInfObj POINTER TO fb870_Client103_InfObjBase

fb870_Client103_InfObjM_DPI.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_Client103_InfObjM_DPI.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Client103_InfObjM_DPI.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Inout fbRTU fb870C_Client103_RTU

fb870_Client103_InfObjM_MWN (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj ty870C_103InfObjPar fb870_Client103_InfObjBase

010 CFG

fb870_Client103_InfObjM_MWN.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

7.3. 020 Client 313


WagoAppRTU, Release 1.2.13.1

fb870_Client103_InfObjM_MWN.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Client103_InfObjM_MWN.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Inout fbRTU fb870C_Client103_RTU

fb870_Client103_InfObjM_MWT (FB)

Interface variables

Scope Name Type Inherited from


Output tyInfObj ty870C_103InfObjPar fb870_Client103_InfObjBase

010 CFG

fb870_Client103_InfObjM_MWT.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_Client103_InfObjM_MWT.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Client103_InfObjM_MWT.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Inout fbRTU fb870C_Client103_RTU

30 C

fb870_Client103_InfObjC_20DC (FB)

Interface variables

7.3. 020 Client 314


WagoAppRTU, Release 1.2.13.1

Scope Name Type Inherited from


tyInfObj ty870C_103InfObjPar fb870_Client103_InfObjBase
Output
byExeState BYTE

010 CFG

fb870_Client103_InfObjC_20DC.mCfgConnect (METH)

Interface variables

Scope Name Type


Return mCfgConnect BOOL
Input pfbInfObj POINTER TO fb870_Client103_InfObjBase

fb870_Client103_InfObjC_20DC.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fb870_Client103_InfObjC_20DC.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

fb870_Client103_InfObjC_20DC.CS23 (ACT)

FUNCTION_BLOCK IEC870_C103_IObj20 (* Description: Objekttyp 20 = Allgemeiner Befehl mit integierter


Rückmeldung vom Typ 1

fb870_Client103_InfObjC_20DC.mCallBackM_DPI (METH)

Interface variables

Scope Name Type


Return mCallBackM_DPI BOOL
Inout fbRTU fb870C_Client103_RTU
byCOT BYTE
Input byDPI BYTE
bySIN BYTE

fb870_Client103_InfObjC_20DC.mCycleImp (METH)

Interface variables

Scope Name Type


Return mCycleImp INT
Inout fbRTU fb870C_Client103_RTU

7.3. 020 Client 315


WagoAppRTU, Release 1.2.13.1

fb870_Client103_InfObjC_20DC.mRxMsg (METH)

Interface variables

Scope Name Type


Return mRxMsg BOOL
Inout fbRTU fb870C_Client103_RTU

ty870_103Job (STRUCT)

Name Type Comment


upInfObjFB u870_103InfObjPointer
aData ARRAY [0..199] OF
InOut: BYTE
byLen BYTE
byState BYTE 0 = nichts zu tun, 1 = eingetragen, 2 = gesendet, warten auf
Confirm, 3 =

ty870_103Msg (STRUCT)

Name Type Comment


byMsgTyp BYTE 0 = keine MSG, 1 = Einzelzeichen, 2 = Kurztelegramm (ohne Daten),
3 = Langtelegramm mit Daten
byDataLen BYTE Daten-Länge
byControl BYTE [04] Control-Byte
byLinkAdr BYTE [05] Link Adresse
byTK BYTE [06] Typ-Kennung
InOut:
bySK BYTE [07] Struktur-Kennung
byCOT BYTE [08] Übertragungsursache
byASDU BYTE [09] Gemeinsame ASDU Adresse
byFunkTyp BYTE [10] Funktions-Typ
byInfNo BYTE [11] Informationsnummer (bei manchen Typen nicht benutzt, wird
dann mit 0 übertragen)
uData aData : ARRAY[0..255] OF BYTE;
uTCBase_256BYTE

u870_103InfObjPointer (UNION)

Name Type
pfb_Base POINTER TO fb870_Client103_InfObjBase
pfb_M_DPI POINTER TO fb870_Client103_InfObjM_DPI
InOut:
pfb_M_MWN POINTER TO fb870_Client103_InfObjM_MWN
pfb_M_MWT POINTER TO fb870_Client103_InfObjM_MWT
pfb_C_20DC POINTER TO fb870_Client103_InfObjC_20DC

7.3.4 e870C_Logg (ENUM)


Attributes:
qualified_only
InOut:

Name Initial Comment


eFirst 2000
e101_RepeatMesage
e101_Tx_FcTo ‘TX FC=0x{1} to RTU with Link-Adr: {2}’
Continued on next page

7.3. 020 Client 316


WagoAppRTU, Release 1.2.13.1

Table 7.4 – continued from previous page


Name Initial Comment
e101_TxData_MsgTo ‘TX Data message TK:$r, COT:$r to RTU with Link-Adr: $r’
e101_SendLinkTestMsg ‘TX Linktest Message FC=0x{1} to RTU with Link-Adr: {2}’
e101_RxStartCharFault ‘RX Start-Char fault, expected: 0x68, found: 0x{1}’
e101_RxLenCharFault ‘RX Len-Char fault, expected: 0x{1}, found: 0x{2}’
e101_RxLenCharInvalid ‘RX Len-Char to less, expected: 0x{1} or more, found: 0x{1}’
e101_RxEndCharFault ‘RX End-Char fault, expected: 0x{1}, found: 0x{1}’
e101_RxBccFault ‘RX BCC fault, expected: 0x{1}, found: 0x{2}’
e101_Rx_FcFrom ‘RX FC=0x{1} from RTU with Link-Adr: {2}’
e101_Rx_LinkTestMsg ‘RX Linktest Message FC=0x$r from RTU with Link-Adr: {2}’
e101_RxUnkown_FcFrom ‘RX unkown Fuctioncode FC=0x{1} from RTU with Link-Adr: {2}’
e101_RxUnkown_MsgFrom ‘RX unkown message whith FC=0x{1} from RTU with Link-Adr: {2}’
e101_RxRepet_MsgFrom ‘RX message whith FC=0x{1} from RTU with Link-Adr: {2}’
e101_RxData_MsgFrom ‘RX Data message TK:$r, SK:$r, COT:$r, from RTU with Link- Adr: $r’,
e101_RxTimeout ‘timeout while waiting of Response from RTU with Link-Adr: {2}’
e10x_LinkEstablish ‘Link with RTU {1} is establish’
e10x_LinkLost ‘Link with RTU {1} lost’
e10x_JobErrorToManyJobs ‘Create Control-Job not possible, because to many Jobs in queue’
e10x_JobErrorLinkNotActiv ‘Create Control-Job not possible, because Link not established’
e10x_JobExeWithoutSel ‘Wrong Control-Job, because not Select bevor Execute’
e10x_SendClockSyncACT ‘TX Clock-Sync-Message to RTU: {1}’
e10x_SendInterorgaACT ‘TX Interorganisation-Message to RTU: {1}, QCC: {2}’
e10x_SendCntInterorgaACT ‘TX Counter Interorganisation-Message to RTU: {1}, ‘
e104_RxWrongSeqNo ‘RX wrong sequence no, expected: {1}, found: {2}’
e104_RxIFrameWhitoutDT ‘RX I-Frame without start DT’
e104_RxMsgToShort ‘RX Msg to short’
e104_ActivClose_T1 ‘TCP connection will activ closed, because T1 expired’
eLast

7.3.5 prg870C_Main (PRG)


Interface variables

Scope Name Type Comment


xEnable BOOL
Output
xSQLiteUsed BOOL FALSE = nicht verwendet, TRUE = SQLite-Datenbank verwendet
(bySQLiteMode > 0)

010 CFG
prg870C_Main.mCfgApp (METH)

Interface variables

Scope Name Type


Inout tyPara ty870C_ParaClt

prg870C_Main.mCfgRead (METH)

Interface variables

7.3. 020 Client 317


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prg870C_Main.mCfgRead_101 (METH)

Interface variables

Scope Name Type


Return mCfgRead_101 BOOL
Inout fbFileReader fbTCBase_FileHandler

prg870C_Main.mCfgRead_103 (METH)

Interface variables

Scope Name Type


Return mCfgRead_103 BOOL
Inout fbFileReader fbTCBase_FileHandler

prg870C_Main.mCfgRead_104 (METH)

Interface variables

Scope Name Type


Return mCfgRead_104 BOOL
Inout fbFileReader fbTCBase_FileHandler

prg870C_Main.mExit (METH)
Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

prg870C_Main.mInit (METH)
Interface variables

Scope Name Type


Return mInit BOOL

prg870C_Main.mPreeStart (METH)
Interface variables

Scope Name Type


Return mPreeStart BOOL
Input eState eTCBase_MainState

prg870C_Main.mRetainInit (METH)
Interface variables

7.3. 020 Client 318


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mRetainInit BOOL

7.4 TC60870_GC (GVL)


Attributes:
qualified_only

Scope Name Type Initial Comment


INT 4 C_LAST_SE_RVER
C_LAST_CONNECTOR_S : INT := 1;
C_LAST_ASDU INT 16
INT 16
C_LAST_CLIENT_RTU
C_LAST_SVR INT 3
INT TCBase_GC.C_LAST_INFOBJ
C_LAST_INFOBJ
BYTE 2#111
C_START_DT_ACT
BYTE 2#1011
C_START_DT_CON
BYTE 2#10011
C_STOPP_DT_ACT
BYTE 2#100011
C_STOPP_DT_CON
BYTE 2#1000011
C_TESTFRAME_ACT
BYTE 2#10000011
C_TESTFRAME_CON
BYTE 16#68
C_START_CHAR_0x68
BYTE 16#10
C_START_CHAR_0x10
BYTE 16#16
C_END_CHAR_0x16
BYTE 0 örtliches Umspe-
C_COUNT_MODE_A ichern / Übertra-
Constant
gung spontane
BYTE 1 örtliches Um-
C_COUNT_MODE_B speichern /
Übertragung
mittels Zählwert-
Abfragebefehl
BYTE 2 Umspeichern
C_COUNT_MODE_C und Übertragen
mittels Zählwert-
Abfragebefehl
BYTE 3 Umspeichern bei
C_COUNT_MODE_D Befehl / Übertra-
gung spontane
STRING(23) ‘<CServer60870_101’
C_CFG_SERVER_KEY_101
STRING(23) ‘<CServer60870_104E1’
C_CFG_SERVER_KEY_104E1
STRING(23) ‘<CServer60870_104E2’
C_CFG_SERVER_KEY_104E2
Continued on next page

7.4. TC60870_GC (GVL) 319


WagoAppRTU, Release 1.2.13.1

Table 7.5 – continued from previous page


Scope Name Type Initial Comment
STRING(23) ‘</CServer60870_101>’
C_CFG_SERVER_END_101
STRING(23) ‘</CServer60870_104E1>’
C_CFG_SERVER_END_104E1
STRING(23) ‘</CServer60870_104E2>’
C_CFG_SERVER_END_104E2
STRING(23) ‘<CASDULayer’
C_CFG_ASDU_KEY
STRING(23) ‘</CASDULayer>’
C_CFG_ASDU_END
STRING(23) ‘<CObjectServer_M_SP’
C_CFG_INFOBJ_M_SP
STRING(23) ‘<CObjectServer_M_DP’
C_CFG_INFOBJ_M_DP
STRING(23) ‘<CObjectServer_M_ST’
C_CFG_INFOBJ_M_ST
STRING(23) ‘<CObjectServer_M_BO’
C_CFG_INFOBJ_M_BO
STRING(23) ‘<CObjectServer_M_ME’
C_CFG_INFOBJ_M_ME
STRING(23) ‘<CObjectServer_M_IT’
C_CFG_INFOBJ_M_IT
STRING(23) ‘<CObjectServer_M_EP’
C_CFG_INFOBJ_M_EP
STRING(23) ‘<CObjectServer_C_SC’
C_CFG_INFOBJ_C_SC
STRING(23) ‘<CObjectServer_C_DC’
C_CFG_INFOBJ_C_DC
STRING(23) ‘<CObjectServer_C_RC’
C_CFG_INFOBJ_C_RC
STRING(23) ‘<CObjectServer_C_SE’
C_CFG_INFOBJ_C_SE
STRING(23) ‘<CObjectServer_C_BO’
C_CFG_INFOBJ_C_BO
WORD 7
C_TYCP56_SIZE
C_FC101_IDLE BYTE 2#11111111
BYTE 2#0
C_FC101_CONFIRM_ACK
BYTE 2#1
C_FC101_CONFIRM_NACK
BYTE 16#A
C_CLIENT103_REQ_CL1
BYTE 16#B
C_CLIENT103_REQ_CL2
REAL 0.003662109375
C_CLIENT103_FACTOR_MW120
REAL 0.00732421875
C_CLIENT103_FACTOR_MW240
INT 255 Maximale Anzahl
C_MAX_FILE_LIST von Dateien und
Verzeichnise die
verwaltet werden
C_MAX_EV_IX DINT 100000
Continued on next page

7.4. TC60870_GC (GVL) 320


WagoAppRTU, Release 1.2.13.1

Table 7.5 – continued from previous page


Scope Name Type Initial Comment
INT 6
C_NUMS_OF_CLIENTS
C_CP_00 BYTE 0
C_CP_24 BYTE 1
C_CP_56 BYTE 2
uTCBase_16Bit STRUCT(wVAL
C_BRODCAST_LINKADRESS := 16#FFFF)
INT 499
C_SQLITE_LAST
C_CP56_NULL ty870_CP56 STRUCT(uMilliSec
:= STRUCT(wVal
:= 0), byMinuten
:= 16#80,
byStunde :=
0, byTag := 0,
byMonat := 0,
byJahr := 0)
Continued on next page

7.4. TC60870_GC (GVL) 321


WagoAppRTU, Release 1.2.13.1

Table 7.5 – continued from previous page


Scope Name Type Initial Comment
ARRAY [STRUCT(byTK Bit 7 = Reserve,
C_INFOBJ_MAPPING [0..64] OF := 0, byDL := 0, BIT 6..0 = Jahr
ty870_InfObjMappingxFL := 1, byCL :=
0, byBaseTK := 0, FC_CONFIRM_ACK
byByteLen := 1), :
STRUCT(byTK BYTE
:= 1, byDL := 0, :=
xFL := 1, byCL := 2#0000_0000;
0, byBaseTK := 1, FC_CONFIRM_NACK
byByteLen := 1), :
STRUCT(byTK BYTE
:= 2, byDL := 0, :=
xFL := 1, byCL := 2#0000_0001;
3, byBaseTK := 1, FC_RESPOND_LINKSTATE
byByteLen := 4), :
STRUCT(byTK BYTE
:= 3, byDL := 0, :=
xFL := 1, byCL := 2#0000_1011;
0, byBaseTK := 3, FC_SEND_RESETCU
byByteLen := 1), :
STRUCT(byTK BYTE
:= 4, byDL := 0, :=
xFL := 1, byCL := 2#0100_0000;
3, byBaseTK := 3, FC_SEND_RESETAW
byByteLen := 4), :
STRUCT(byTK BYTE
:= 5, byDL := 1, :=
xFL := 1, byCL := 2#0100_0001;
0, byBaseTK := 5, FC_SEND_LINKTEST
byByteLen := 2), :
STRUCT(byTK BYTE
:= 6, byDL := 1, :=
xFL := 1, byCL := 2#0101_0010;
3, byBaseTK := 5, FC_SEND_DATA_CONFIRM
byByteLen := 5), :
STRUCT(byTK BYTE
:= 7, byDL := 4, :=
xFL := 1, byCL := 2#0101_0011;
0, byBaseTK := 7, FC_SEND_DATE_NOREPLY
byByteLen := 5), :
STRUCT(byTK BYTE
:= 8, byDL := 4, :=
xFL := 1, byCL := 2#0100_0100;
3, byBaseTK := 7, FC_REQUEST_LINKSTATE
byByteLen := 8), :
STRUCT(byTK BYTE
:= 9, byDL := 2, :=
xFL := 1, byCL := 2#0100_1001;
0, byBaseTK := 9,
byByteLen := 3),
STRUCT(byTK
:= 10, byDL := 2,
xFL := 1, byCL :=
3, byBaseTK := 9,
byByteLen := 6),
STRUCT(byTK
:= 11, byDL
:= 2, xFL :=
7.4. TC60870_GC (GVL) 1, byCL := 0, 322
byBaseTK := 11,
byByteLen := 3),
STRUCT(byTK
WagoAppRTU, Release 1.2.13.1

Table 7.5 – continued from previous page


Scope Name Type Initial Comment

7.5 TC60870_GR (GVL)


Attributes:
qualified_only

7.6 TC60870_GV (GVL)


Attributes:
qualified_only
Name Type
fb870_Clock
gfb870_Clock
ty870_GlobalParameter
gtyGlPar
ARRAY [0..TC60870_GC.C_LAST_INFOBJ] OF u870S_InfObjPD
gaInfObjPD

7.7 prg870_Main (PRG)


Interface variables

Scope Name Type Comment


xEnable BOOL
Output
iInfObjCnt INT Zähler für die Gesamtanzahl an Informationsobjekten,

7.7.1 010 CFG


prg870_Main.mCfgApp (METH)
Interface variables

Scope Name Type


Return mCfgApp BOOL
Inout tyPara ty870_UserAppPara

prg870_Main.mCfgRead (METH)
Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prg870_Main.mCfgWrite (METH)
Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

7.5. TC60870_GR (GVL) 323


WagoAppRTU, Release 1.2.13.1

7.7.2 prg870_Main.mExit (METH)


Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent e870S_Logg

7.7.3 prg870_Main.mInit (METH)


Interface variables

Scope Name Type


Return mInit BOOL

7.7.4 prg870_Main.mPreeStart (METH)


Interface variables

Scope Name Type


Return mPreeStart BOOL
Input eState eTCBase_MainState

7.7.5 prg870_Main.mRetainInit (METH)


Interface variables

Scope Name Type


Return mRetainInit BOOL

7.7.6 prg870_Main.mRtnObjIx (METH)


Interface variables

Scope Name Type


Return mRtnObjIx INT

7.7.7 prg870_Main.mStartReboot (METH)

7.7. prg870_Main (PRG) 324


CHAPTER 8

TC_IEC61850

8.1 010 Common


8.1.1 010 DUT
Enum
eIEC61850_OrCat (ENUM)

Attributes:
qualified_only
Name Initial
0
Not_Supported
1
Bay_Control
2
Station_Control
3
Remote_Control
InOut: 4
Automatic_Bay
5
Automatic_Station
6
Automatic_Remote
7
Maintenance
8
Process

tyIEC61850_AnalogueValue (ALIAS)
tyIEC61850_Boolean (ALIAS)
tyIEC61850_Check (ALIAS)
tyIEC61850_CodedEnum (ALIAS)
tyIEC61850_Currency (ALIAS)

325
WagoAppRTU, Release 1.2.13.1

tyIEC61850_Dbpos (ENUM)
Attributes:
qualified_only
Name Initial
0
Intermediate
1
InOut: Off
2
On
3
Bad

tyIEC61850_EntryTime (STRUCT)

Name Type Comment


InOut: todTime TOD TimeOfDay
wDay WORD Tag nach 1.1984

tyIEC61850_Enumerated (ALIAS)
tyIEC61850_Float32 (ALIAS)
tyIEC61850_Float64 (ALIAS)
tyIEC61850_GOOSEDstAddress (STRUCT)

Name Type Comment


abyAddr ARRAY [0..5] OF Length is 6 Octets and contains the value of the destination Media
BYTE Access Control (MAC)
byPriority tyIEC61850_INT8U Priority tagging according to IEEE 802.1Q is used to separate
InOut:
time critical and high priority
wVID tyIEC61850_INT16UThe use of Virtual LAN support is optional. If this mechanism
will be used the VLAN
wAPPID tyIEC61850_INT16UThe APPID is used to select ISO/IEC 8802-3 frames containing

tyIEC61850_INT128 (ALIAS)
tyIEC61850_INT128U (ALIAS)
tyIEC61850_INT16 (ALIAS)
tyIEC61850_INT16U (ALIAS)
tyIEC61850_INT24 (ALIAS)
tyIEC61850_INT24U (ALIAS)
tyIEC61850_INT32 (ALIAS)
tyIEC61850_INT32U (ALIAS)
tyIEC61850_INT64 (ALIAS)
tyIEC61850_INT64U (ALIAS)
tyIEC61850_INT8 (ALIAS)
tyIEC61850_INT8U (ALIAS)
tyIEC61850_MMSString255 (ALIAS)
tyIEC61850_Objref (ALIAS)
tyIEC61850_Octet255 (ALIAS)

8.1. 010 Common 326


WagoAppRTU, Release 1.2.13.1

tyIEC61850_Octet6 (ALIAS)
tyIEC61850_Octet64 (ALIAS)
tyIEC61850_Octet65 (ALIAS)
tyIEC61850_Octet8 (ALIAS)
tyIEC61850_OptFlds (ALIAS)
tyIEC61850_Origin (STRUCT)

Name Type Comment


orCat eIEC61850_OrCat
not-supported | bay-control | ststion-control | re
automatic-bay | automatic-
InOut: station | automatic-remote
maintenace | process

orIdent tyIEC61850_Octet64

tyIEC61850_Quality (ALIAS)
tyIEC61850_SvOptFlds (ALIAS)
tyIEC61850_Tcmd (ENUM)
Attributes:
qualified_only
Name Initial
0
Stop
1
InOut: Lower
2
Higher
3
Reserved

tyIEC61850_TimeStamp (STRUCT)

Name Type
InOut: dtDT DT
dwQuality DWORD

tyIEC61850_TrgOps (ALIAS)
tyIEC61850_UCString255 (ALIAS)
tyIEC61850_VisString129 (ALIAS)
tyIEC61850_VisString255 (ALIAS)
tyIEC61850_VisString32 (ALIAS)
tyIEC61850_VisString64 (ALIAS)
tyIEC61850_VisString65 (ALIAS)

8.1.2 020 POU


fIEC61850_CreateDatapoint (FUN)
Interface variables

8.1. 010 Common 327


WagoAppRTU, Release 1.2.13.1

Scope Name Type Comment


Return fIEC61850_CreateDatapoint POINTER TO
fbIEC61850C_Datapoint
eDatatype eIEC61850C_ASN1_MMS_TAG
diBitSize DINT
pData POINTER TO BYTE
Input
wSize WORD
xOptional BOOL Datapoint is
optional
xIsCodedEnum BOOL

fIEC61850_InitDatapoint (FUN)
Interface variables

Scope Name Type


Return fIEC61850_InitDatapoint BOOL
wIx WORD
Input pData POINTER TO BYTE
wSize WORD

8.1.3 040 Logging


ITCBase_Logging (ITF)
ITCBase_Logging.LastError (PROP)

ITCBase_Logging.mAdd (METH)

Interface variables

Scope Name Type


eEvent eTCBase_Logging_Event
eType eTCBase_Logging_Type
eDir eTCBase_Logging_Dir
Input
sPlaceholder1 STRING
sPlaceholder2 STRING
sPlaceholder3 STRING

eTCBase_Logging_Dir (ENUM)
Attributes:
qualified_only
Name
eNone
InOut:
eRx
eTx

eTCBase_Logging_Event (ENUM)
Attributes:
qualified_only
InOut:

8.1. 010 Common 328


WagoAppRTU, Release 1.2.13.1

Name Initial Comment


eIEC61850_NoError 0
eIEC61850_Start 1000
eIEC61850_FB_EXIT Ausgelößt z.B. durch Downloadall
eIEC61850_CHANGED Konfiguration geändert
eIEC61850_ISO8073_InvalidParaLen ISO8073: The parameter length of the COTP
eIEC61850_ISO8073_InvalidParaTag ISO8073: The parameter Tag of the COTP tel
eIEC61850_ISO8073_InvalidTPDUSize ISO8073: Invalid or no TPDU size in the CO
eIEC61850_ISO8073_UnsupportedService ISO8073: The received service is not support
eIEC61850_ISO8327_UnsupportedService ISO8327: The received service is not support
eIEC61850_ISO8327_AC_InvalidParaLen ISO8327: The parameter length of the ISO83
eIEC61850_ISO8327_AC_InvalidParaTag ISO8327: The parameter Tag of the ISO8327
eIEC61850_ISO8327_DT_InvalidParaTag ISO8327: The parameter Tag of the ISO8327
eIEC61850_ISO8327_AB_InvalidTag ISO8327: The parameter Tag of the ISO8327
eIEC61850_ISO8823_CPA_PPDU_InvalidTag ISO8823: The main Tag of the ISO8823 CPA
eIEC61850_ISO8823_ARU_PPDU_InvalidTag ISO8823: The Tag of the ISO8823 ARU PPD
eIEC61850_ISO8650_UnsupportedService ISO8650: The received service is not support
eIEC61850_ISO8650_ABRT_Src ISO8650: Abort message received, source: ##
eIEC61850_ISO8650_ABRT_Diag ISO8650: Abort message received, diagnostic
eIEC61850_MMS_Initiate_ErrorPDU Initiate: Initiate Error PDU received.
eIEC61850_MMS_InvalidResponsePDU General: Invalid response PDU received.
eIEC61850_MMS_InvalidLenOfUnconfirmedPDU General: Invalid length of an unconfirmed PD
eIEC61850_RxBufferOverflow Receiving size of ISO8073 messages are bigg
eIEC61850_RxCorruptMsg Receiving a corrupt message. The buffer will
eIEC61850_RxResponseTimeout No response of the Request ‘###1’ received
eIEC61850_RxResponseError No valid response of the Request ‘###1’ rece
eIEC61850_SendBufferOverflow The send buffer is overflow
eIEC61850_MMS_AssociateDone Associate: Successful done
eIEC61850_StartupDone Startup: Successful done
eIEC61850_ClientIsConnected Connected to the remote station: ###1
eIEC61850_ClientIsDisonnected DisConnected to the remote station: ###1
eIEC61850_CloseTheConnection The Client closed the connection to the server
eIEC61850_Request_Initiate MMS Initiate Request sent
eIEC61850_Response_Initiate MMS Initiate Response received
eIEC61850_Request_Conclude MMS Conclude Request sent
eIEC61850_Response_Conclude MMS Conclude Response received
eIEC61850_Request_Release MMS Release Request sent
eIEC61850_Response_Release MMS Release Response received
eIEC61850_Request_Reject MMS Reject PDU sent
eIEC61850_RequestTimeout
eIEC61850_UnconfirmedPDU_InvalidTag MMS Unconfirmed PDU Decoding: The Tag
eIEC61850_UnconfirmedPDU_UnsupportedService MMS Unconfirmed PDU Decoding: The rece
eIEC61850_UnconfirmedPDU_InvalidTagDSName MMS Unconfirmed PDU Decoding: Unexpec
eIEC61850_UnconfirmedPDU_InvalidTagRFI MMS Unconfirmed PDU Decoding: Unexpec
eIEC61850_UnconfirmedPDU_InvalidDecodeTag MMS Unconfirmed PDU Decoding data: It w
eIEC61850_UnconfirmedPDU_InvalidBlockLength MMS Unconfirmed PDU Decoding data: Inva
eIEC61850_UnconfirmedPDU_InvalidReportData MMS Unconfirmed PDU Decoding data of R
eIEC61850_UnconfirmedPDU_InvalidReportBitSt MMS Unconfirmed PDU Decoding data of R
eIEC61850_UnconfirmedPDU_NoReason No Reason sent
eIEC61850_UnconfirmedPDU_BR_Received BR Unconfirmed PDU received: RptID=’###
eIEC61850_UnconfirmedPDU_RP_Received RP Unconfirmed PDU received: RptID=’###
eIEC61850_UnconfirmedPDU_InvalidReportLen MMS Unconfirmed PDU Decoding data of R

8.1. 010 Common 329


WagoAppRTU, Release 1.2.13.1

Table 8.1 – continued from previous page


Name Initial Comment
eIEC61850_UnconfirmedPDU_DataTypeMismatch MMS Unconfirmed PDU Decoding data of R
eIEC61850_UnconfirmedPDU_InvalidDatRefName MMS Unconfirmed PDU Decoding data of R
eIEC61850_Report_WriteParaFailure Report ‘###1’: Writing of the parameters fail
eIEC61850_Report_ReadParaFailure Report ‘###1’: Reading of the parameters fai
eIEC61850_Report_WriteRptEnaFailure Report ‘###1’: Writing of the RptEna failed.
eIEC61850_Report_NoFreeReport Report ‘###1’: No free Report available.
eIEC61850_ConfirmedRequestPDU_Read MMS Confirmed Request sent
eIEC61850_ConfirmedResponsePDU_Read MMS Confirmed Response received
eIEC61850_ConfirmedResponsePDU_Read_Failure MMS Confirmed ResponsePDU: Read receiv
eIEC61850_ConfirmedResponsePDU_Read_Success MMS Confirmed ResponsePDU: Read receiv
eIEC61850_MMS_InvalidInvokeID Invalid InvokeID received: Send: ###1, Rece
eIEC61850_MMS_ConfirmedErrorPDU ConfirmedErrorPDU: ###1, ###2
eIEC61850_MMS_ConfirmedResponse_ServiceErr ###1: service error: ###2
eIEC61850_MMS_GeneralError ###1
eIEC61850_MMS_DecodingDataError Decoding Data ###1 error: ###2
eIEC61850_MMS_EncodingDataError Encoding Data ###1 error: ###2
eIEC61850_ConfirmedRequestPDU_GetNameList MMS Confirmed Request sent : GetNameLis
eIEC61850_ConfirmedResponsePDU_GetNameList_Success MMS Confirmed ResponsePDU: GetNameLi
eIEC61850_ConfirmedRequestPDU_GetNamedVarListAttrDS MMS Confirmed Request sent : GetNamedVa
eIEC61850_ConfirmedResponsePDU_GetNamedVarListAttrDS MMS Confirmed ResponsePDU: GetNamedV
eIEC61850_ConfirmedRequestPDU_DefineNamedVariableList MMS Confirmed Request sent : DefineName
eIEC61850_ConfirmedResponsePDU_DefineNamedVariableList MMS Confirmed ResponsePDU: DefineNam
eIEC61850_ConfirmedRequestPDU_DeleteNamedVariableListDS MMS Confirmed Request sent : DeleteNamed
eIEC61850_ConfirmedResponsePDU_DeleteNamedVariableListDS MMS Confirmed ResponsePDU: DeleteName
eIEC61850_ConfirmedResponsePDU_DeleteNamedVariableListDSErr Delete of DataSet ‘###1’ not possible. Numb
eIEC61850_ConfirmedRequestPDU_Write MMS Confirmed RequestPDU: Write sent
eIEC61850_ConfirmedResponsePDU_Write MMS Confirmed ResponsePDU: Write receiv
eIEC61850_ConfirmedResponsePDU_Write_Failure MMS Confirmed ResponsePDU: Write receiv
eIEC61850_ConfirmedResponsePDU_Write_Success MMS Confirmed ResponsePDU: Write receiv
eIEC61850_Server_ReportDSNotFound Configuration mismatch: The DataSet ###1 o
eIEC61850_DynDataSet_ItemError Dyn. DataSet Initialize: Can not use the Data
eIEC61850_DynDataSet_Service Dyn. DataSet Initialize: MMS Services for cr
eIEC61850_Control_WriteCtlModelFailure Control ‘###1’: Writing of the CtlModel faile
eIEC61850_Control_WriteOperFailure Control ‘###1’: Writing ‘Oper’ failed.
eIEC61850_Control_WriteCancelFailure Control ‘###1’: Writing ‘Cancel’ failed.
eIEC61850_Control_WriteSBOwFailure Control ‘###1’: Writing ‘SBOw’ failed.
eIEC61850_Control_SelectFailure Control ‘###1’: Select failed.
eIEC61850_Control_AddCauseReceived Control ‘###1’: AddCause received. Error ‘#
eIEC61850_Control_NoCmdTerm Control ‘###1’: No Command Termination re
eIEC61850_Control_CmdTerm Control ‘###1’: Command Termination receiv
eIEC61850_Stop

eTCBase_Logging_Type (ENUM)
Attributes:
qualified_only

8.1. 010 Common 330


WagoAppRTU, Release 1.2.13.1

Name
None
Debug_Info
InOut:
Info
Warning
Error

fbTCBase_Logging (FB)
fbTCBase_Logging.FB_Init (METH)

Interface variables

Scope Name Type Comment


Return FB_Init BOOL
bInitRetains BOOL TRUE: the retain variables are initialized (reset warm / reset cold)
Input
bInCopyCode BOOL TRUE: the instance will be copied to the copy code afterward (online
change)

fbTCBase_Logging.LastError (PROP)

fbTCBase_Logging.mAdd (METH)

Interface variables

Scope Name Type


eEvent eTCBase_Logging_Event
eType eTCBase_Logging_Type
eDir eTCBase_Logging_Dir
Input
sPlaceholder1 STRING
sPlaceholder2 STRING
sPlaceholder3 STRING

fbTCBase_Logging.mClear (METH)

fbTCBase_Logging.mInit (METH)

Interface variables

Scope Name Type


Input sFileName STRING

tyTCBase_Logging (STRUCT)

Name Type
eEvent eTCBase_Logging_Event
eType eTCBase_Logging_Type
InOut:
eDir eTCBase_Logging_Dir
sMessage STRING(255)
sTimeStamp STRING(30)

8.1. 010 Common 331


WagoAppRTU, Release 1.2.13.1

8.2 020 Server


8.2.1 020 POU
prgIEC61850S_Main (PRG)
00 SYSTEM

prgIEC61850S_Main.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgIEC61850S_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

prgIEC61850S_Main.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eTCBase_Logging_Event

8.3 030 Client


8.3.1 010 DUT
eIEC61850C_ControlAddCause (ENUM)
Attributes:
qualified_only

8.2. 020 Server 332


WagoAppRTU, Release 1.2.13.1

Name Initial
0
_00_Unknown
_01_Not_supported
_02_Blocked_by_switching_hierarchy
_03_Select_failed
_04_Invalid_position
_05_Position_reached
_06_Parameter_change_in_execution
_07_Step_limit
_08_Blocked_by_Mode
_09_Blocked_by_process
_10_Blocked_by_interlocking
_11_Blocked_by_synchrocheck
_12_Command_already_in_execution
InOut: _13_Blocked_by_health
_14_1_of_n_control
_15_Abortion_by_cancel
_16_Time_limit_over
_17_Abortion_by_trip
_18_Object_not_selected
_19_Object_already_selected
_20_No_access_authority
_21_Ended_with_overshoot
_22_Abortion_due_to_deviation
_23_Abortion_by_communication_loss
_24_Blocked_by_command
_25_None
_26_Inconsistent_parameters
_27_Locked_by_other_client

eIEC61850C_ControlError (ENUM)
Attributes:
qualified_only

8.3. 030 Client 333


WagoAppRTU, Release 1.2.13.1

Name Initial
0
NoError

InOut: Unknown
Timeout_Test_Not_OK
Operator_Test_Not_OK

eIEC61850C_ControlState (ENUM)
Attributes:
qualified_only
Name
None
Idle
Select
Operate
InOut: Cancel
WaitForCmdTerm
AddCause
CmdTerm
Error
Done

eIEC61850C_DynDSObjectState (ENUM)
Attributes:
qualified_only
Name Initial
0
None
CreateNew
InOut:
CheckItems
Delete
Done

eIEC61850C_LoggerEV (ENUM)
Attributes:
qualified_only

8.3. 030 Client 334


WagoAppRTU, Release 1.2.13.1

Name Initial Comment


0
eNULL
Socket-Error at SysSockSend
eSysSockSend_ERROR
InOut: Socket-Error at SysSockRecv
eSysSockRecv_ERROR
Timeout at SysSockConnect
eSysSockConnect_TIMEOUT
eLAST

eIEC61850C_RequestPara (ENUM)
Attributes:
qualified_only
Name Initial Comment
16#1
None
16#2 Writing enabled
Write
16#4 Reading enabled
InOut: Read
16#8 Is a persistent DataSet
DS_Persistent
16#10 Is a non persistent DataSet
DS_NonPersistent
16#20 Is an array
Array_

eIEC61850C_RequestState (ENUM)
Attributes:
qualified_only
Name Initial
0
None
Init
Idle
Read
InOut:
Write
Report
Done
Error
Error_Timeout

eIEC61850C_ServerState (ENUM)
Attributes:
qualified_only

8.3. 030 Client 335


WagoAppRTU, Release 1.2.13.1

Name Initial
0
None
Disconnected
COPT
Initiate
Startup
Idle
InOut: Read
Write
Conclude
Release
Reject
Close
Error
Wait

eIEC61850C_ServiceState (ENUM)
Attributes:
qualified_only
Name
Not_Connected
Idle
Busy
Done
InOut: Error
ErrorPDU
Request
Response
Response_Timeout
Reject

tyIEC61850C_ControlStatus (STRUCT)

Name Type Comment


sError STRING(255)
eLogError eTCBase_Logging_Event
InOut: dtLastAction DT Timestamp of the last action: Local time
eLastAction eIEC61850C_ControlState
eAddCause_Error eIEC61850C_ControlError Add Cause
eAddCause eIEC61850C_ControlAddCause

8.3. 030 Client 336


WagoAppRTU, Release 1.2.13.1

tyIEC61850C_GoosePara (STRUCT)

Name Type Initial


Comment
sGoCBName Instance name of an instance of GoCB
tyIEC61850_VisString255
xGoEna TRUE
tyIEC61850_Boolean Enable of the GoCB
sGoID Attribute that allows a user to assign a system unique
tyIEC61850_VisString65
identification for the appl. that is issuuing the GOOSE
DEFAULT GoCBRef
InOut: sDatSet tyIEC61850_VisString65 ObjectReference name
dwConfRev tyIEC61850_INT32U1 Versionskennung
xNdsCom tyIEC61850_Boolean Needs Commissioning
Destination address
tyIEC61850_GOOSEDstAddress
tyDstAddress
wMinTime tyIEC61850_INT16U MinTime
wMaxTime tyIEC61850_INT16U MaxTime
xFixedOffs tyIEC61850_BOOLEAN FixedOffs

tyIEC61850C_Initiate (STRUCT)

Name Type Comment


dwlocalDetailCalling DWORD Optional
nProposedMaxSerOutstandingCalling INT
nProposedMaxSerOutstandingCalled INT
InOut:
byProposedDataStructureNestingLevel BYTE
nProposedVersionNumber INT
aProposedParameterCBB ARRAY [1..3] OF BYTE
aServicesSupportedCalling ARRAY [1..12] OF BYTE

tyIEC61850C_ReportData (STRUCT)

Name Type Comment


sRptID tyIEC61850_VisSTRING255 Report ID
wOptFlds tyIEC61850_INT16U Option fields
wSqNum tyIEC61850_INT16U Sequence number
tTimeOfEntry tyIEC61850_EntryTime Buffered Specific: Time of entry in the buffer
sDatSet tyIEC61850_VisSTRING255 Referenced dataset
xBufOvflow tyIEC61850_BOOLEAN Buffer overflow
abyEntryID ARRAY [0..7] OF BYTE Buffered Specific: Entry ID
InOut: dwConfRev tyIEC61850_INT32U config revision
xSubSqNum tyIEC61850_INT16U SubSequence number
xMoreSegmentsFollowtyIEC61850_BOOLEAN More segments follow
ARRAY [0..31] OF BYTE
abyInclusionBitstring InclusionBitstring, always be present | 256
items possible
tyStatus tyIEC61850C_RequestStatus Status informations
wRxCount WORD Will be incremented at receiving a new
report
Will be called at receiving a new report
itfReceiveCallback IIEC61850C_UnconfirmedReport

8.3. 030 Client 337


WagoAppRTU, Release 1.2.13.1

tyIEC61850C_ReportPara (STRUCT)

Name Type Initial Comment


byTrgOpt tyIEC61850_INT8U 16#3E Trigger condition
wOptFlds tyIEC61850_INT16U 16#3FE Option fields
sRptID tyIEC61850_VisSTRING255 Report ID
dwBufTm tyIEC61850_INT32U Buffer time
dwIntgPd tyIEC61850_INT32U Intergrity period
xBuffered tyIEC61850_BOOLEAN Buffered Report
dwConfRev tyIEC61850_INT32U 1 config revision
sDatSet tyIEC61850_VisSTRING255 Referenced dataset
xRptEna tyIEC61850_BOOLEAN Enable report
wSqNum tyIEC61850_INT16U Sequence number
InOut: xGI tyIEC61850_BOOLEAN General interogation
xPurgeBuf tyIEC61850_BOOLEAN Purge buffer
xSubSqNum tyIEC61850_INT16U SubSequence number
tyIEC61850_BOOLEAN
xMoreSegmentsFollow More segments follow
abyEntryID ARRAY [0..7] OF Buffered Specific: Entry ID
BYTE
tTimeofEntry tyIEC61850_EntryTime Buffered Specific: Time of entry in
the buffer
xResv tyIEC61850_BOOLEAN Unbuffered Specific: Reservation
abyOwner ARRAY [0..3] OF E2 optional: Report owner
BYTE
wResvTms tyIEC61850_INT16 E2 optional: Reservation time

tyIEC61850C_RequestJob (STRUCT)

Name Type
InOut: pfbRequest POINTER TO fbIEC61850C_RequestBasic
eJob eIEC61850C_ServerState

tyIEC61850C_RequestStatus (STRUCT)

Name Type Comment


byDataAccessError BYTE
sError STRING(255)
InOut:
eLogError eTCBase_Logging_Event
dtLastAction DT Timestamp of the last action: Local time
eLastAction eIEC61850C_RequestState Last action: Read/Write

tyIEC61850_Enum (ALIAS)

8.3.2 020 POU


10 ISO Layer
10 DUT

ASN.1

eIEC61850C_ASN1_Class (ENUM)

Attributes:
qualified_only

8.3. 030 Client 338


WagoAppRTU, Release 1.2.13.1

Name Comment
Universal Tag, Primitive Example keywords: INTEGER, BITSTRING, BOOLEAN
UNIVER-
Universal Tag, Constructed Example keyword: SEQUENCE, SEQUENCE OF
SAL
APPLICA-
InOut:
TION
Context Specific, Primitive Example Keyword: IMPLICIT Context Specific,
CON-
Constructed Example Keywords: IMPLICIT SEQUENCE IMPLICIT SEQUENCE OF
TEXT_SPEC
PRIVATE_

eIEC61850C_ASN1_MMS_TAG (ENUM)

Attributes:
qualified_only
Name Initial
0
_None
_Array
_Structure
_Boolean
_Bitstring
_Int
_Uint
_Float
_Reserved

InOut: _OctString
_VisString
_Gentime
_TOD
_BCD
_BoolArray
_Object
_MMSString
_UTCTime
100
_Structure_Start
_Structure_Stop

eIEC61850C_ASN1_MMS_UNIVERSAL_TAG (ENUM)

Attributes:
qualified_only

8.3. 030 Client 339


WagoAppRTU, Release 1.2.13.1

Name Initial
-1
_NONE
0
_EOC
1
_BOOL
2
_INT
3
_BIT_STRING
4
_OCTED_STRING
6
_OBJECT_ID
16
_SEQUENCE
17
_SET
18
_NUMERIC_STRING
19
InOut: _PRINTABLE_STRING
20
_TELETEXT_STRING
21
_VIDEOTEXT_STRING
22
_UTCTime
24
_GENERALIZED_TIME
25
_GRAPHIC_STRING
26
_VISIBLE_STRING
27
_GENERAL_STRINGg
28
_UNIVERSAL_STRING
29
_CHARACTER_STRING
30
_BMPString
31
_CONTINUE_TYPE

tyIEC61850C_ASN1_Object (STRUCT)

Name Type Initial Comment


xIsStruct BOOL
byTAG BYTE
byFirstByteBYTE
dwLength DWORD Lenght of the data
dwBlockLength
DWORD Lenght of the complete block,
include the header (tag and
length)
InOut:
dwHeaderLength
DWORD Lenght of the header (tag and
length)
eClass eIEC61850C_ASN1_Class eIEC61850C_ASN1_Class.APPLICATION
eMMS_TAG eIEC61850C_ASN1_MMS_TAG
eIEC61850C_ASN1_MMS_UNIVERSAL_TAG
eUNIVERSAL_TAG
xError BOOL Error occurred at decoding the
byte stream
sErrorText STRING

8.3. 030 Client 340


WagoAppRTU, Release 1.2.13.1

uIEC61850C_ASN1_Data (UNION)

Name Type
s255 STRING(254)
ws127 WSTRING(127)
aW ARRAY [0..254] OF WORD
aB ARRAY [0..254] OF BYTE
aX ARRAY [0..254] OF BOOL
InOut:
rVal REAL
dwVal DWORD
diVal DINT
byVal BYTE
xVal BOOL
tyTimeStamp tyIEC61850_TimeStamp

ISO8073

tyIEC61850C_ISO8073_CR_Para (STRUCT)

Name Type Comment


wDstRef WORD
wSrcRef WORD
byProtocollClassBYTE
wTPDU_SIZE WORD
wPreTPDU_SIZE WORD
w0x85_Ack_Time WORD nicht verwendet bei ProtokollClass 0
by0xC0_TPDU_SIZEBYTE 16#0D = 8192, 16#0C = 4096, 16#0B = 2048, 16#0A = 1024, 16#09 =
InOut:
512, 16#08 = 256, 16#07 = 128 (Vorgabe-Wert)
w0xC1_Src_TSAP WORD
w0xC2_Dst_TSAP WORD
w0xC3_Checksum WORD
by0xC4_Version_Number
BYTE
by0xC5_Protection_Para
BYTE
by0xC6_Add_Options
BYTE
by0xF0_Pre_TPDU_SIZE
BYTE

ISO8327

tyIEC61850C_ISO8327_AC_Data (STRUCT)

Name Type Comment


tyConnectionIdent tyIEC61850C_ISO8327_AC_DataIdent
tyConnect_AcceptItem tyIEC61850C_ISO8327_AC_DataAcceptItem
wSessionUserRequirements WORD C: 20, L: 2, O
InOut: sCallingSessionSelector STRING(16) C: 51, L: <= 16,
O
sCalledSessionSelector STRING(16) C: 52, L: <= 16,
O
byDataOverflow BYTE C: 60, L: 1, O

8.3. 030 Client 341


WagoAppRTU, Release 1.2.13.1

tyIEC61850C_ISO8327_AC_DataAcceptItem (STRUCT)

Name Type Comment


byProtocolOptions BYTE C: 19, L: 1, M
dwTSDU_MaxSize DWORD C: 21, L: 4, O
byVersionNumber BYTE C: 22, L: 1, M
sInitialSerialNumber STRING(6) C: 23, L: <= 6, O
InOut:
byTokenSettingItem BYTE C: 26, L: 1, O
sSecInitialSerialNumber STRING(6) C: 55, L: <= 6, O
wUpperLimitSerialNumber WORD C: 56, L: ????, O
wLageInitialSerialNumber WORD C: 57, L: ????, O
wSecLageInitialSerialNumber WORD C: 58, L: ????, O

tyIEC61850C_ISO8327_AC_DataIdent (STRUCT)

Name Type Comment


sCallingSSUserReference STRING(64) C: 10, L: <= 64, O
InOut:
sCommonReference STRING(64) C: 11, L: <= 64, O
dwAdditionalReferenceInfo DWORD C: 12, L: <= 4, O

tyIEC61850C_ISO8327_Header (STRUCT)

Name Type
InOut: byTAG BYTE
wLength WORD

ISO8650

8.3. 030 Client 342


WagoAppRTU, Release 1.2.13.1

tyIEC61850C_ISO8650_Data (STRUCT)

Name Type Comment


wProtocolVersion WORD
aAPContextName ARRAY [1..5] OF BYTE
byResult BYTE accepted (0)}, rejected-
permanent (l), rejected-transient
(2)
byResultSourceDiagnosticBYTE
null NV, no-reason-given
(1), application-context-
name-not-supported
(2), calling-AP-title-
not-recognized (3),
calling-AP-invocation-
identifier-not-recognized
(4), calling-AE-qualifier-
not-recognized (5),
calling-AE-invocation-
identifier-not-recognized
(6), called-AP-title-
not-recognized (7),
called-AP-invocation-
identifier-not-recognized
(8), called-AE-qualifier-
not-recognized (9),
called-AE-invocation-
identifier-not-recognized
(lo), authentication-
mechanism-name-not-
InOut:
recognized (ll), 28 ITU-T
Rec. X.227 (1995 E)
Licensed to 3S-Systems
GmbH / Mr. Schneider
ISO Store order #: 10-
1169492/Downloaded:
2010-12-01 Single user
licence only, copying
and networking prohib-
ited ISO/IEC 8650-l :
1996 (E) authentication-
mechanism-name-required
(12), authentication-failure
(13), authentication-
required (14)

aAPTitle ARRAY [1..5] OF BYTE


byAEQualifier BYTE
iAPInvokeID INT
iAEInvokeID INT
byResponderACSERequirements
BYTE
aMechanismName ARRAY [1..5] OF BYTE
byAuthenticationValue BYTE
sAuthenticationString STRING
iDirectReference INT
iIndirectReference INT
byEncoding BYTE

8.3. 030 Client 343


WagoAppRTU, Release 1.2.13.1

ISO8823

tyIEC61850C_ISO8823_CP_Data (STRUCT)

Name Type Comment


byModeSelector BYTE 0=X410-Mode,
InOut: 1=Normal-Mode
tyNormalModePara tyIEC61850C_ISO8823_NormalModePara
tyDataUser tyIEC61850C_ISO8823_DataUser

tyIEC61850C_ISO8823_ContextList (STRUCT)

Name Type Comment


byID BYTE 1=id-as-acse, 3=mms
InOut:
aAbstractSyntaxName ARRAY [0..9] OF BYTE
aTransferSyntaxName ARRAY [0..9] OF BYTE

tyIEC61850C_ISO8823_ContextName (STRUCT)

Name Type
InOut: sAbstractSyntaxName STRING
sTransferSyntaxName STRING

tyIEC61850C_ISO8823_DataUser (STRUCT)

Name Type Comment


byEncodingType BYTE
sSimplyEncodedData STRING
InOut:
sTransferSyntaxName STRING Optional
byPresentContextId BYTE 1=Association Control Service (ISO 8650-1), 3=MMS
byEncoding BYTE 0=ASN1, 1=octet-aligned, 2=arbitrary

8.3. 030 Client 344


WagoAppRTU, Release 1.2.13.1

tyIEC61850C_ISO8823_NormalModePara (STRUCT)

Name Type Comment


byProtocolVersion BYTE Bitstring
dwCallingPresentSelect DWORD OctedString
dwCalledPresentSelect DWORD OctedString
dwRespPresentSelector DWORD OctedString
tyPresentContextList ARRAY [0..1] OF
tyIEC61850C_ISO8823_ContextList
ARRAY
tyPresentContextResultList [0..1] OF
tyIEC61850C_ISO8823_ResultList
tyDefaultContextName tyIEC61850C_ISO8823_ContextName
byPresentRequire BYTE BIT STRING { context-
management (0), restoration (1)
1
InOut: byUserResentRequire BYTE
User-session-requirements ::= BIT STRING {
half-duplex (0) 9 duplex
(1) 9 expedited-data (2)
9 minor-synchronize
(3) 9 major-synchronize
(4 9 resynchronize (5)
9 activity-management
(f-99 negotiated-release
(7) 9 capability-data
(8) 9 exceptions (9)
9 typed-data (10) 9
symmetric-synchronize
(11) 9 data-separation (12)

tyIEC61850C_ISO8823_ResultList (STRUCT)

Name Type Comment


byResult BYTE result [0] IMPLICIT Result,
aTransferSyntaxName ARRAY [0..9] OF BYTE transfer-syntax-name [l] IM-
PLICIT Transfer-syntax-name
OPTIONAL,
nProviderReason INT
provider-reason [2] IMPLICIT INTEGER
InOut: reason-not-specified (0)
abstract-syntax-not-
supported (1) proposed-
transfer-syntaxes-not-
supported (2) local-limit-
on-DCS-exceeded (3)

eIEC61850C_ISO (ENUM)

Attributes:
qualified_only

8.3. 030 Client 345


WagoAppRTU, Release 1.2.13.1

Name Initial
0
None
Tx_CR
Tx_DT_Reject
Tx_DT_Release
Tx_DT_Initiate
Tx_DT_Confirmed
Tx_DT_Conclude
Rx_Unconfirmed_PDU
Rx_Reject_PDU
Rx_Abort
Rx_Release
InOut:
Rx_Confirmed_RequestPDU
Rx_Confirmed_ResponsePDU
Rx_Confirmed_ErrorPDU
Rx_Cancel_RequestPDU
Rx_Cancel_ResponsePDU
Rx_Cancel_ErrorPDU
Rx_Initiate_RequestPDU
Rx_Initiate_ResponsePDU
Rx_Initiate_ErrorPDU
Rx_Conclude_RequestPDU
Rx_Conclude_ResponsePDU
Rx_Conclude_ErrorPDU

8.3. 030 Client 346


WagoAppRTU, Release 1.2.13.1

tyIEC61850C_ISO_Parameter (STRUCT)

Name Type Initial Comment


aAPTitle ARRAY [1..5] [16#29, 16#1, 16#87, called-AP-title: ap-title-form2 =
OF BYTE 16#67, 16#1] iso.1.1.999.1
byAPTitleLenBYTE 5
byAEQualifier
BYTE 12 called-AE-qualifier: aso-qualifier-form2
= 12 ISO 8650-1 ACSI
iAPInvokeID INT -1 Called AP Invocation-identifier ISO
8650-1 ACSI
iAEInvokeID INT -1 Called AE Invocation-identifier ISO
InOut:
8650-1 ACSI
wNSAP WORD ???
dwPSEL DWORD 16#1 called-presentation-selector: 00000001
ISO 8823
wSSEL WORD 16#1 Called Session Selector: 0001 ISO 8327
wTSEL WORD 16#1 Destination TSAP: 0001 ISO 8073
COTP
xAuthentication
BOOL TRUE = Authentication
sPassword STRING

fbIEC61850C_ISO8327 (FB)

Receive

fbIEC61850C_ISO8327.mRX_DN (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8327.mReceive (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8327.mRx_AB (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8327.mRx_AC (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

8.3. 030 Client 347


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_ISO8327.mRx_DT (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

Send

fbIEC61850C_ISO8327.mTx_CN (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8327.mTx_DT (METH)

Interface variables

Scope Name Type


Return mTx_DT BOOL
Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8327.mTx_FN (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650 (FB)

Receive

fbIEC61850C_ISO8650.mReceive (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650.mRx_AARE (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650.mRx_AARQ (METH)

fbIEC61850C_ISO8650.mRx_ABRT (METH)

Interface variables

8.3. 030 Client 348


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650.mRx_MMS_Service (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650.mRx_RLRE (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650.mRx_RLRQ (METH)

Send

fbIEC61850C_ISO8650.mTx_AARQ (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8650.mTx_RLRQ (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8823 (FB)

Receive

fbIEC61850C_ISO8823.mRx_ARU_PPDU (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8823.mRx_CPA_PPDU (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

8.3. 030 Client 349


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_ISO8823.mRx_UserData (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

Send

fbIEC61850C_ISO8823.mTx_CP_TYPE (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_ISO8823.mTx_UserData (METH)

Interface variables

Scope Name Type


Return mTx_UserData BOOL
Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_TransportLayer (FB)

Interface variables

Scope Name Type


itfService IIEC61850C_Service_Response
Input
xEnable BOOL
xIsConneced BOOL
Output xDataReceived BOOL
xReadyToSend BOOL

fbIEC61850C_TransportLayer.mDisconnect (METH)

fbIEC61850C_TransportLayer.mSend (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

prgIEC61850C_ISO8073 (PRG)

Receive

prgIEC61850C_ISO8073.mNonCompleteMsgCheck (METH)

Interface variables

Scope Name Type


fbRx fbTCBase_ComBuffer
Inout
fbRxBuffer fbIEC61850C_Buffer

8.3. 030 Client 350


WagoAppRTU, Release 1.2.13.1

prgIEC61850C_ISO8073.mReceive (METH)

Interface variables

Scope Name Type


fbRx fbTCBase_ComBuffer
Inout
fbRxBuffer fbIEC61850C_Buffer
Input itfService IIEC61850C_Service_Response

prgIEC61850C_ISO8073.mRx_DT (METH)

Interface variables

Scope Name Type


Return mRx_DT BOOL
fbRx fbTCBase_ComBuffer
Inout
fbRxBuffer fbIEC61850C_Buffer
Return true, if the message is complete

Send

prgIEC61850C_ISO8073.mTx_DT (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

prgIEC61850C_ISO8073.mTx_DT_TPDUHeader (METH)

Interface variables

Scope Name Type


Return mTx_DT_TPDUHeader DWORD
Inout fbBuffer fbIEC61850C_Buffer
dwLen DWORD
Input
xLastUnit BOOL
Return the length of the TPDU header

20 Service
10 Unconfirmed

fbIEC61850C_MMS_UnconfirmedPDU (FB)

fbIEC61850C_MMS_UnconfirmedPDU.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

20 Interfaces

IIEC61850C_Service (ITF)

8.3. 030 Client 351


WagoAppRTU, Release 1.2.13.1

IIEC61850C_Service.Status (PROP)

IIEC61850C_Service.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

IIEC61850C_Service.mReset (METH)

IIEC61850C_Service.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

IIEC61850C_Service_Response (ITF)

IIEC61850C_Service_Response.mResponse (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

IIEC61850C_UnconfirmedReport (ITF)

IIEC61850C_UnconfirmedReport.mCall (METH)

fbIEC61850C_MMS_COTP (FB)

Interface variables

Scope Name Type Initial


Input wDestinationTSAP WORD 1
Output tyRxISO8073_Para tyIEC61850C_ISO8073_CR_Para

fbIEC61850C_MMS_COTP.Status (PROP)

fbIEC61850C_MMS_COTP.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_COTP.mReset (METH)

fbIEC61850C_MMS_COTP.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

8.3. 030 Client 352


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_MMS_Conclude (FB)

fbIEC61850C_MMS_Conclude.Status (PROP)

fbIEC61850C_MMS_Conclude.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Conclude.mReset (METH)

fbIEC61850C_MMS_Conclude.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Initiate (FB)

Interface variables

Scope Name Type


Output tyRxInit_Para tyIEC61850C_Initiate

fbIEC61850C_MMS_Initiate.Status (PROP)

fbIEC61850C_MMS_Initiate.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Initiate.mReset (METH)

fbIEC61850C_MMS_Initiate.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Read (FB)

Interface variables

Scope Name Type


pfbRequest POINTER TO fbIEC61850C_RequestBasic
Input fbInvokeID REFERENCE TO fbIEC61850C_InvokeID
fbRejectPDU REFERENCE TO fbIEC61850C_MMS_Reject

8.3. 030 Client 353


WagoAppRTU, Release 1.2.13.1

Private

fbIEC61850C_MMS_Read._mSetRejectPara (METH)

Interface variables

Scope Name Type


byRejectReason BYTE
Input
byRejectPDU BYTE

fbIEC61850C_MMS_Read.Status (PROP)

fbIEC61850C_MMS_Read.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Read.mReset (METH)

fbIEC61850C_MMS_Read.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Reject (FB)

Interface variables

Scope Name Type Initial


dwInvokeID DWORD
Input byRejectReason BYTE 5
byRejectPDU BYTE 16#85

fbIEC61850C_MMS_Reject.Status (PROP)

fbIEC61850C_MMS_Reject.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Reject.mReset (METH)

fbIEC61850C_MMS_Reject.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

8.3. 030 Client 354


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_MMS_Release (FB)

fbIEC61850C_MMS_Release.Status (PROP)

fbIEC61850C_MMS_Release.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Release.mReset (METH)

fbIEC61850C_MMS_Release.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Write (FB)

Interface variables

Scope Name Type


pfbRequest POINTER TO fbIEC61850C_RequestBasic
Input fbInvokeID REFERENCE TO fbIEC61850C_InvokeID
fbRejectPDU REFERENCE TO fbIEC61850C_MMS_Reject

Private

fbIEC61850C_MMS_Write._mSetRejectPara (METH)

Interface variables

Scope Name Type


byRejectReason BYTE
Input
byRejectPDU BYTE

fbIEC61850C_MMS_Write.Status (PROP)

fbIEC61850C_MMS_Write.mRequest (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_MMS_Write.mReset (METH)

fbIEC61850C_MMS_Write.mResponse (METH)

Interface variables

Scope Name Type


Inout fbBuffer fbIEC61850C_Buffer

8.3. 030 Client 355


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_Service (FB)

Interface variables

Scope Name Type Initial Comment


tResponseTimeout TIME TIME#2s0ms
Input
xEnable BOOL
eState eIEC61850C_ServiceState
Output
xErrorPDU BOOL Error PDU received

fbIEC61850C_Service.mExecute (METH)

Interface variables

Scope Name Type


Return mExecute BOOL
Input itfExeService IIEC61850C_Service

fbIEC61850C_Service.mReset (METH)

fbIEC61850C_Service.mResponse (METH)

Interface variables

Scope Name Type


Inout fbRxBuffer fbIEC61850C_Buffer

30 Objects
fbIEC61850C_DataSet (FB)

Interface variables

Scope Name Type Comment


Input xIsConneced BOOL
eState eIEC61850C_RequestState State of the request
Output
tyStatus tyIEC61850C_RequestStatus Response is valid, but contains Read/Write
error

fbIEC61850C_DataSetItem (FB)

fbIEC61850C_Datapoint (FB)

Interface variables

Scope Name Type Initial Comment


eDatatype eIEC61850C_ASN1_MMS_TAG################ Read by the Cfg file
###################
diBitSize DINT Bitstring exception: If the Bitsize is -1, it will used
Input
the tyVariable.wSize to write the data
xOptional BOOL Datapoint is optional
xIsCodedEnum
BOOL
tyVariable tyTCBase_ProcessIO_Con ##### Code initialize and reference to real variable
####
iIOListIx INT -1

8.3. 030 Client 356


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_Goose (FB)

Interface variables

Scope Name Type Comment


xIsConneced BOOL
Input
tyPara tyIEC61850C_GoosePara
eState eIEC61850C_RequestState State of the request
Output
tyStatus tyIEC61850C_RequestStatus Response is valid, but contains Read/Write
error

fbIEC61850C_Report (FB)

Interface variables

Scope Name Type Comment


xIsConneced BOOL
Input
tyPara tyIEC61850C_ReportPara
eState eIEC61850C_RequestState State of the request
tyReportPDU tyIEC61850C_ReportData Received Unconfirmed-PDU
Output
tyStatus tyIEC61850C_RequestStatus Response is valid, but contains Read/Write
error
xInitDone BOOL

fbIEC61850C_Request (FB)

Interface variables

Scope Name Type Comment


Input xIsConneced BOOL
eState eIEC61850C_RequestState State of the request
Output
tyStatus tyIEC61850C_RequestStatus Last error

fbIEC61850C_Request.mRead (METH)

fbIEC61850C_Request.mWrite (METH)

fbIEC61850C_RequestItem (FB)

00 SYSTEM

fbIEC61850C_RequestItem.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

fbIEC61850C_RequestItem.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

8.3. 030 Client 357


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_RequestItem.mAddDataPointItem (METH)

Interface variables

Scope Name Type


Input pDatapoint POINTER TO fbIEC61850C_Datapoint

fbIEC61850C_RequestItem.mFromDataSetItem (METH)

Interface variables

Scope Name Type


Return mFromDataSetItem BOOL
Inout fbDataSet fbIEC61850C_DataSet

fbIEC61850C_Server (FB)

Interface variables

Scope Name Type Initial


Input xEnable BOOL TRUE
Output sServerIP STRING

fbIEC61850C_Server.mInit (METH)

40 Helpers
fIEC61850C_ASN1_GetLen (FUN)

Interface variables

Scope Name Type Comment


Return fIEC61850C_ASN1_GetLen WORD
Input _Any __SYSTEM.AnyType Any value
Get the length of the ASN.1 object

fIEC61850C_ASN1_GetLenPtr (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_ASN1_GetLenPtr WORD
Input refDP REFERENCE TO fbIEC61850C_Datapoint
Get the length of the ASN.1 object

fIEC61850C_Bits_SwapLeft (FUN)

Interface variables

Scope Name Type


pByteIn POINTER TO BYTE
Input pByteOut POINTER TO BYTE
diUsedBits DINT

8.3. 030 Client 358


WagoAppRTU, Release 1.2.13.1

fIEC61850C_Bits_SwapRight (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_Bits_SwapRight BOOL
pBits POINTER TO BYTE
Input byUsedBits BYTE
pOut POINTER TO BYTE

fIEC61850C_GetNextReportDataIx (FUN)

Interface variables

Scope Name Type Comment


Return fIEC61850C_GetNextReportDataIx
DINT
Inout abyInclusionBitstring ARRAY [0..31] InclusionBitstring, always be present |
OF BYTE 256 items possible

fIEC61850C_GetRequestPara (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_GetRequestPara BOOL
pfbRequest POINTER TO fbIEC61850C_RequestBasic
Input
eRequestPara eIEC61850C_RequestPara

fIEC61850C_MMSType_To_String (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_MMSType_To_String STRING
Input byTag eIEC61850C_ASN1_MMS_TAG

fIEC61850C_MemCpyAndSwap (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_MemCpyAndSwap BOOL
pDest POINTER TO BYTE
Input pSrc POINTER TO BYTE
wCount WORD
Function copy and swapp ‘n’ Bytes *)

fIEC61850C_OidStringToArray (FUN)

Interface variables

8.3. 030 Client 359


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return fIEC61850C_OidStringToArray BOOL
Inout tyISOParameter tyIEC61850C_ISO_Parameter
Input sOID STRING

fIEC61850C_RFI_To_String (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_RFI_To_String STRING
Input byDataReasonForInclusion BYTE

fIEC61850C_ReadWord (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_ReadWord WORD
Input pBuffer POINTER TO ARRAY [0..1] OF BYTE

fIEC61850C_To_MMS_Tag (FUN)

Interface variables

Scope Name Type


Return fIEC61850C_To_MMS_Tag eIEC61850C_ASN1_MMS_TAG
Input sText STRING

fbIEC61850C_InvokeID (FB)

fbIEC61850C_InvokeID.mAddToMsg (METH)

Interface variables

Scope Name Type


Return mAddToMsg BOOL
Inout fbBuffer fbIEC61850C_Buffer

fbIEC61850C_InvokeID.mCheck (METH)

Interface variables

Scope Name Type


Return mCheck BOOL
Input dwRxInvokeID DWORD

fbIEC61850C_InvokeID.mReset (METH)

fbIEC61850C_RequestJob (FB)

fbIEC61850C_RequestJob.mAdd (METH)

Interface variables

8.3. 030 Client 360


WagoAppRTU, Release 1.2.13.1

Scope Name Type


Return mAdd BOOL
pfbRequest POINTER TO fbIEC61850C_RequestBasic
Input
eJob eIEC61850C_ServerState

fbIEC61850C_RequestJob.mGetNext (METH)

Interface variables

Scope Name Type


Return mGetNext tyIEC61850C_RequestJob

50 Get Objects
fIEC61850C_GetGoose (FUN)

Interface variables

Scope Name Type Initial


Return fIEC61850C_GetGoose POINTER TO fbIEC61850C_Goose
iServerIx INT 1
Input
iGoIx INT 1

fIEC61850C_GetReport (FUN)

Interface variables

Scope Name Type Initial


Return fIEC61850C_GetReport POINTER TO fbIEC61850C_Report
iServerIx INT 1
Input
iRptIx INT 1

fIEC61850C_GetRequest (FUN)

Interface variables

Scope Name Type Initial


Return fIEC61850C_GetRequest POINTER TO fbIEC61850C_Request
iServerIx INT 1
Input
iRequestIx INT 1

60 Clock
prgIEC61850C_Clock (PRG)

Interface variables

Scope Name Type Initial Comment


xLeapSecondsKnown BOOL Time Quality
xClockFailure BOOL
Input
xClockNotSynchronized BOOL
wTimeAccuracy WORD 7
tyLocal tyIEC61850_TimeStamp
Output
tyUTC tyIEC61850_TimeStamp

8.3. 030 Client 361


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_Buffer (FB)
Interface variables

Scope Name Type


Input eISOType eIEC61850C_ISO
Output xRxError BOOL

Decode

Without Increment

fbIEC61850C_Buffer.mGet_ASN1_TagAndLen (METH)

Interface variables

Scope Name Type


Return mGet_ASN1_TagAndLen tyIEC61850C_ASN1_Object
Return the TAG and lenght of the object wihout increment the current index

fbIEC61850C_Buffer.mDecode_ASN1 (METH)

Interface variables

Scope Name Type Comment


Return mDecode_ASN1tyIEC61850C_ASN1_Object
Input pData POINTER TO BYTE Pointer to the data to decode. If the Pointer is 0, decode
only the header

fbIEC61850C_Buffer.mDecode_Byte (METH)

Interface variables

Scope Name Type


Return mDecode_Byte BYTE

fbIEC61850C_Buffer.mDecode_DWord (METH)

Interface variables

Scope Name Type


Return mDecode_DWord DWORD

fbIEC61850C_Buffer.mDecode_Data (METH)

Interface variables

Scope Name Type


Return mDecode_Data tyIEC61850C_ASN1_Object
Input refDP REFERENCE TO fbIEC61850C_Datapoint
Decode a data block and copy the data into the datapoint

8.3. 030 Client 362


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_Buffer.mDecode_Float32 (METH)

Interface variables

Scope Name Type


Return mDecode_Float32 REAL

fbIEC61850C_Buffer.mDecode_String (METH)

Interface variables

Scope Name Type


Return mDecode_String STRING(255)
Input wSize WORD

fbIEC61850C_Buffer.mDecode_WString (METH)

Interface variables

Scope Name Type


Return mDecode_WString WSTRING(127)
Input wSize WORD

fbIEC61850C_Buffer.mDecode_Word (METH)

Interface variables

Scope Name Type


Return mDecode_Word WORD

Encode

fbIEC61850C_Buffer.mEncode_Block (METH)

Interface variables

Scope Name Type


Return mEncode_Block DWORD
byTAG BYTE
Input
dwBlockSize DWORD
Add a struct of the input length

fbIEC61850C_Buffer.mEncode_Data (METH)

Interface variables

Scope Name Type


Return mEncode_Data DWORD
Input refDP REFERENCE TO fbIEC61850C_Datapoint
Add data into the buffer

8.3. 030 Client 363


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_Buffer.mEncode_Size (METH)

Interface variables

Scope Name Type


Return mEncode_Size DWORD
Input dwSize DWORD

fbIEC61850C_Buffer.mEncode_Specific (METH)

Interface variables

Scope Name Type Comment


Return mEncode_Specific DWORD
_Any __SYSTEM.AnyType Any value
Input
byTAG BYTE Tag to encode

fbIEC61850C_Buffer.mEncode_Specific_Byte (METH)

Interface variables

Scope Name Type Comment


Return mEncode_Specific_Byte DWORD
byValue BYTE
Input
byTAG BYTE Tag to encode

fbIEC61850C_Buffer.mEncode_Specific_DWord (METH)

Interface variables

Scope Name Type Comment


Return mEncode_Specific_DWord DWORD
dwValue DWORD
Input
byTAG BYTE Tag to encode

fbIEC61850C_Buffer.mEncode_Specific_Word (METH)

Interface variables

Scope Name Type Comment


Return mEncode_Specific_Word DWORD
wValue WORD
Input
byTAG BYTE Tag to encode

fbIEC61850C_Buffer.mEncode_Struct (METH)

Interface variables

Scope Name Type


Return mEncode_Struct DWORD
Input byTAG BYTE
Add a struct of the current buffer

8.3. 030 Client 364


WagoAppRTU, Release 1.2.13.1

fbIEC61850C_Buffer.IsDataAvailable (PROP)

LowLevel

fbIEC61850C_Buffer.mAddBlk_ToRx (METH)

Interface variables

Scope Name Type


Return mAddBlk_ToRx DINT
pBlk POINTER TO BYTE
Input
wInLen WORD

fbIEC61850C_Buffer.mAddByte (METH)

Interface variables

Scope Name Type


Return mAddByte INT
Input byIn BYTE
Add a single byte

fbIEC61850C_Buffer.mAddWord (METH)

Interface variables

Scope Name Type


Return mAddWord INT
Input wIn WORD
Add a single word

fbIEC61850C_Buffer.Reset (METH)

fbIEC61850C_Buffer.mAddLogging (METH)

Interface variables

Scope Name Type


eEvent eTCBase_Logging_Event
eType eTCBase_Logging_Type
eDir eTCBase_Logging_Dir
Input
sPlaceholder1 STRING
sPlaceholder2 STRING
sPlaceholder3 STRING

fbIEC61850C_Buffer.mRemoveBulk (METH)

Interface variables

Scope Name Type Comment


Input wSize WORD Size to remove
Remove bulk and move the rest forward. The first 7 bytes stay empty for the TPKT header

8.3. 030 Client 365


WagoAppRTU, Release 1.2.13.1

prgIEC61850M_Main (PRG)
Interface variables

Scope Name Type


Output xEnable BOOL

00 SYSTEM

prgIEC61850M_Main.mCfgRead (METH)

Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgIEC61850M_Main.mCfgWrite (METH)

Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

prgIEC61850M_Main.mExit (METH)

Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eTCBase_Logging_Event

prgIEC61850M_Main.mLogger (METH)

Interface variables

Scope Name Type


Return mLogger BOOL
eEvent eIEC61850C_LoggerEV
Input
sInfo STRING(79)

8.3.3 040 Visu


8.3.4 IEC61850C_GC (GVL)
Attributes:
qualified_only

Scope Name Type


C_MAX_BUFFER WORD
C_MAX_REQUEST_TIMEOUT TIME
C_MAX_REQUEST_ITEMS WORD
C_MAX_REQUEST_LIST WORD

8.3. 030 Client 366


WagoAppRTU, Release 1.2.13.1

Scope Name Type


C_MAX_REQUEST_ITEMS_DP WORD
C_MAX_DATASET_ITEMS WORD
C_MAX_REPORT WORD
C_MAX_GOOSE WORD
C_MAX_CONTROL WORD
C_MAX_SERVER WORD
C_LOG_DIR ARRAY [0..2] OF STRING(10)
C_LOG_DIR_COLOR ARRAY [eTCBase_Logging_Dir.eNone..eTCBase_Logging_Dir.eTx] OF D
C_LOG_TYPE_COLOR ARRAY [eTCBase_Logging_Type.None..eTCBase_Logging_Type.Error] O
C_MMS_ConfErrPDU ARRAY [0..12] OF STRING
C_MMS_ConfErrPDU_0 ARRAY [0..4] OF STRING
C_MMS_ConfErrPDU_1 ARRAY [0..4] OF STRING
C_MMS_ConfErrPDU_2 ARRAY [0..5] OF STRING
C_MMS_ConfErrPDU_3 ARRAY [0..5] OF STRING
C_MMS_ConfErrPDU_4 ARRAY [0..5] OF STRING
C_MMS_ConfErrPDU_5 ARRAY [0..3] OF STRING
C_MMS_ConfErrPDU_6 ARRAY [0..1] OF STRING
C_MMS_ConfErrPDU_7 ARRAY [0..4] OF STRING
C_MMS_ConfErrPDU_8 ARRAY [0..7] OF STRING
C_MMS_ConfErrPDU_9 ARRAY [0..1] OF STRING
C_MMS_ConfErrPDU_10 ARRAY [0..2] OF STRING
C_MMS_ConfErrPDU_11 ARRAY [0..9] OF STRING
C_MMS_ConfErrPDU_12 ARRAY [0..3] OF STRING
C_MMS_DataAccessError ARRAY [0..11] OF STRING
C_MMS_UnconfAddCauseError ARRAY [0..3] OF STRING
C_MMS_UnconfAddCauseAddCause ARRAY [0..27] OF STRING

8.4 prgIEC61850_Main (PRG)


Interface variables

Scope Name Type


Output xEnable BOOL

8.4.1 00 SYSTEM
prgIEC61850_Main.mCfgRead (METH)
Interface variables

Scope Name Type


Return mCfgRead BOOL
Inout fbFileReader fbTCBase_FileHandler

prgIEC61850_Main.mCfgWrite (METH)
Interface variables

Scope Name Type


Return mCfgWrite BOOL
Inout fbFileWriter fbTCBase_FileHandler

8.4. prgIEC61850_Main (PRG) 367


WagoAppRTU, Release 1.2.13.1

8.4.2 prgIEC61850_Main.mExit (METH)


Interface variables

Scope Name Type


Return mExit BOOL
Input eEvent eTCBase_Logging_Event

8.4.3 prgIEC61850_Main.mInit (METH)


Interface variables

Scope Name Type


Return mInit BOOL

8.4. prgIEC61850_Main (PRG) 368


CHAPTER 9

fTCBase_Version (FUN)

Interface variables

Scope Name Type


Return fTCBase_Version STRING(63)

369
CHAPTER 10

grgDebugEntry (PRG)

370
CHAPTER 11

prgWagoAppRTU_HP (PRG)

371
CHAPTER 12

prgWagoAppRTU_LP (PRG)

Interface variables

Scope Name Type


Input xAsyncRun BOOL

372
CHAPTER 13

Library Reference

This is a dictionary of all referenced libraries and their name spaces.

13.1 CAA File


13.1.1 Library Identification
Placeholder: CAA File
Default Resolution: CAA File, * (CAA Technical Workgroup)
Namespace: FILE

13.1.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: True
• Key: CAA File
• SystemLibrary: False
• Optional: False

13.2 CmpErrors Interfaces


13.2.1 Library Identification
Name: CmpErrors Interfaces
Version: newest
Company: System
Namespace: CmpErrors

13.2.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: CmpErrors Interfaces, * (System)
• SystemLibrary: False

373
WagoAppRTU, Release 1.2.13.1

• Optional: False

13.3 Standard
13.3.1 Library Identification
Placeholder: Standard
Default Resolution: Standard, * (System)
Namespace: Standard

13.3.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: Standard
• SystemLibrary: False
• Optional: False

13.4 Standard64
13.4.1 Library Identification
Name: Standard64
Version: 3.5.15.0
Company: System
Namespace: Standard64

13.4.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: Standard64, 3.5.15.0 (System)
• SystemLibrary: False
• Optional: False

13.5 SysDir
13.5.1 Library Identification
Placeholder: SysDir
Default Resolution: SysDir, * (System)
Namespace: SysDir

13.5.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysDir
• SystemLibrary: False
• Optional: False

13.3. Standard 374


WagoAppRTU, Release 1.2.13.1

13.6 SysFile
13.6.1 Library Identification
Placeholder: SysFile
Default Resolution: SysFile, * (System)
Namespace: SysFile

13.6.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysFile
• SystemLibrary: False
• Optional: False

13.7 SysMem
13.7.1 Library Identification
Placeholder: SysMem
Default Resolution: SysMem, * (System)
Namespace: SysMem

13.7.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysMem
• SystemLibrary: False
• Optional: False

13.8 SysProcess
13.8.1 Library Identification
Placeholder: SysProcess
Default Resolution: SysProcess, * (System)
Namespace: SysProcess

13.8.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysProcess
• SystemLibrary: False
• Optional: False

13.9 SysSocket
13.9.1 Library Identification
Placeholder: SysSocket
Default Resolution: SysSocket, * (System)

13.6. SysFile 375


WagoAppRTU, Release 1.2.13.1

Namespace: SysSocket

13.9.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysSocket
• SystemLibrary: False
• Optional: False

13.10 SysTask
13.10.1 Library Identification
Placeholder: SysTask
Default Resolution: SysTask, * (System)
Namespace: SysTask

13.10.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysTask
• SystemLibrary: False
• Optional: False

13.11 SysTimeRtc
13.11.1 Library Identification
Name: SysTimeRtc
Version: 3.5.5.0
Company: System
Namespace: SysTimeRtc

13.11.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysTimeRtc, 3.5.5.0 (System)
• SystemLibrary: False
• Optional: False

13.12 SysTypes Interfaces


13.12.1 Library Identification
Name: SysTypes Interfaces
Version: newest
Company: System
Namespace: SysTypes

13.10. SysTask 376


WagoAppRTU, Release 1.2.13.1

13.12.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: SysTypes Interfaces, * (System)
• SystemLibrary: False
• Optional: False

13.13 VisuElem3DPath
13.13.1 Library Identification
Placeholder: System_VisuElem3DPath
Default Resolution: VisuElem3DPath, 3.5.15.40 (System)
Namespace: VisuElem3DPath

13.13.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElem3DPath
• SystemLibrary: True
• Optional: False

13.13.3 Library Parameter


Parameter: GC_POINTS_PER_POLYGON = 100

13.14 VisuElemCamDisplayer
13.14.1 Library Identification
Placeholder: System_VisuElemCamDisplayer
Default Resolution: VisuElemCamDisplayer, 3.5.15.0 (System)
Namespace: VisuElemCamDisplayer

13.14.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemCamDisplayer
• SystemLibrary: True
• Optional: False

13.14.3 Library Parameter


Parameter: GC_POINTS_PER_CAM = 100

13.15 VisuElemMeter
13.15.1 Library Identification
Placeholder: System_VisuElemMeter
Default Resolution: VisuElemMeter, 3.5.15.30 (System)

13.13. VisuElem3DPath 377


WagoAppRTU, Release 1.2.13.1

Namespace: VisuElemMeter

13.15.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemMeter
• SystemLibrary: True
• Optional: False

13.16 VisuElemTextEditor
13.16.1 Library Identification
Placeholder: System_VisuElemTextEditor
Default Resolution: VisuElemTextEditor, 3.5.15.0 (System)
Namespace: VisuElemTextEditor

13.16.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemTextEditor
• SystemLibrary: True
• Optional: False

13.17 VisuElemTrace
13.17.1 Library Identification
Placeholder: System_VisuElemTrace
Default Resolution: VisuElemTrace, 3.5.15.20 (System)
Namespace: VisuElemTrace

13.17.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemTrace
• SystemLibrary: True
• Optional: False

13.18 VisuElemXYChart
13.18.1 Library Identification
Placeholder: System_VisuElemXYChart
Default Resolution: VisuElemXYChart, 3.5.15.0 (System)
Namespace: VisuElemXYChart

13.18.2 Library Properties


• LinkAllContent: False

13.16. VisuElemTextEditor 378


WagoAppRTU, Release 1.2.13.1

• QualifiedOnly: False
• Key: System_VisuElemXYChart
• SystemLibrary: True
• Optional: False

13.19 VisuElems
13.19.1 Library Identification
Placeholder: System_VisuElems
Default Resolution: VisuElems, 3.5.15.30 (System)
Namespace: VisuElems

13.19.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElems
• SystemLibrary: True
• Optional: False

13.20 VisuElemsAlarm
13.20.1 Library Identification
Placeholder: System_VisuElemsAlarm
Default Resolution: VisuElemsAlarm, 3.5.15.0 (System)
Namespace: VisuElemsAlarm

13.20.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemsAlarm
• SystemLibrary: True
• Optional: False

13.21 VisuElemsDateTime
13.21.1 Library Identification
Placeholder: System_VisuElemsDateTime
Default Resolution: VisuElemsDateTime, 3.5.15.10 (System)
Namespace: VisuElemsDateTime

13.21.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemsDateTime
• SystemLibrary: True
• Optional: False

13.19. VisuElems 379


WagoAppRTU, Release 1.2.13.1

13.22 VisuElemsSpecialControls
13.22.1 Library Identification
Placeholder: System_VisuElemsSpecialControls
Default Resolution: VisuElemsSpecialControls, 3.5.15.0 (System)
Namespace: VisuElemsSpecialControls

13.22.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemsSpecialControls
• SystemLibrary: True
• Optional: False

13.23 VisuElemsWinControls
13.23.1 Library Identification
Placeholder: System_VisuElemsWinControls
Default Resolution: VisuElemsWinControls, 3.5.15.40 (System)
Namespace: VisuElemsWinControls

13.23.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuElemsWinControls
• SystemLibrary: True
• Optional: False

13.24 VisuInputs
13.24.1 Library Identification
Placeholder: system_visuinputs
Default Resolution: VisuInputs, 3.5.15.0 (System)
Namespace: visuinputs

13.24.2 Library Properties


• LinkAllContent: False
• Optional: False
• QualifiedOnly: False
• Key: system_visuinputs
• SystemLibrary: True
• PublishSymbolsInContainer: True

13.25 VisuNativeControl
13.25.1 Library Identification
Placeholder: System_VisuNativeControl

13.22. VisuElemsSpecialControls 380


WagoAppRTU, Release 1.2.13.1

Default Resolution: VisuNativeControl, 3.5.15.0 (System)


Namespace: VisuNativeControl

13.25.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: System_VisuNativeControl
• SystemLibrary: True
• Optional: False

13.26 WagoAppCom
13.26.1 Library Identification
Placeholder: WagoAppCom
Default Resolution: WagoAppCom, * (WAGO)
Namespace: WagoAppCom

13.26.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoAppCom
• SystemLibrary: False
• Optional: False

13.26.3 Library Parameter


Parameter: CUIDEFAULTSYSTEMBUFFERSIZE = 1028

13.27 WagoAppConfigTool
13.27.1 Library Identification
Placeholder: WagoAppConfigTool
Default Resolution: WagoAppConfigTool, * (WAGO)
Namespace: WagoAppConfigTool

13.27.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoAppConfigTool
• SystemLibrary: False
• Optional: False

13.27.3 Library Parameter


Parameter: MAX_CONFIG_REQUEST = 32

13.26. WagoAppCom 381


WagoAppRTU, Release 1.2.13.1

13.28 WagoAppTime
13.28.1 Library Identification
Placeholder: WagoAppTime
Default Resolution: WagoAppTime, * (WAGO)
Namespace: WagoAppTime

13.28.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoAppTime
• SystemLibrary: False
• Optional: False

13.29 WagoSysKbusAsyncCom
13.29.1 Library Identification
Placeholder: WagoSysKbusAsyncCom
Default Resolution: WagoSysKbusAsyncCom, * (WAGO)
Namespace: WagoSysKbusAsyncCom

13.29.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoSysKbusAsyncCom
• SystemLibrary: False
• Optional: False

13.30 WagoSysKbusTerminalControl
13.30.1 Library Identification
Placeholder: WagoSysKbusTerminalControl
Default Resolution: WagoSysKbusTerminalControl, * (WAGO)
Namespace: WagoSysKbusTerminalControl

13.30.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoSysKbusTerminalControl
• SystemLibrary: False
• Optional: False

13.31 WagoSysModuleBase
13.31.1 Library Identification
Placeholder: WagoSysModuleBase
Default Resolution: WagoSysModuleBase, * (WAGO)

13.28. WagoAppTime 382


WagoAppRTU, Release 1.2.13.1

Namespace: WagoSysModuleBase

13.31.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: True
• Key: WagoSysModuleBase
• SystemLibrary: False
• Optional: False

13.31.3 Library Parameter


Parameter: SYSLOG_MBX2_MAX_STRING_LEN = 0

Parameter: MAX_MBX_OUTPUT_SIZE = 47

Parameter: MAX_MODULE_QUANTITY = 250

Parameter: MAX_MODULE_INPUT_SIZE = 48

Parameter: STARTUP_MODE = eStartUpMode.NONE

Parameter: MAX_RUNNABLES = MAX_MODULE_QUANTITY

Parameter: MBX_PIPE_SIZE = 1024

Parameter: SYSLOG_MBX2_LOGLEVEL = 2#10001

Parameter: SYSLOG_SERVER_IP = ‘127.0.0.1’

Parameter: SYSLOG_SERVER_PORT = 514

Parameter: MAX_MODULE_OUTPUT_SIZE = 48

Parameter: MAX_MBX_INPUT_SIZE = 47

13.32 WagoSysModule_75x_65x
13.32.1 Library Identification
Placeholder: WagoSysModule_75x_65x
Default Resolution: WagoSysModule_75x_65x, * (WAGO)
Namespace: WagoSysModule_75x_65x

13.32. WagoSysModule_75x_65x 383


WagoAppRTU, Release 1.2.13.1

13.32.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoSysModule_75x_65x
• SystemLibrary: False
• Optional: False

13.32.3 Library Parameter


Parameter: MAX_PIPE_SIZE = 1024

13.33 WagoSysSQL_SQLite
13.33.1 Library Identification
Placeholder: WagoSysSQL_SQLite
Default Resolution: WagoSysSQL_SQLite, * (WAGO)
Namespace: WagoSysSQL_SQLite

13.33.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoSysSQL_SQLite
• SystemLibrary: False
• Optional: False

13.34 WagoSysSSL
13.34.1 Library Identification
Placeholder: WagoSysSSL
Default Resolution: WagoSysSSL, * (WAGO)
Namespace: WagoSysSSL

13.34.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: False
• Key: WagoSysSSL
• SystemLibrary: False
• Optional: False

13.35 WagoTypesBusServices
13.35.1 Library Identification
Placeholder: WagoTypesBusServices
Default Resolution: WagoTypesBusServices, * (WAGO)
Namespace: WagoTypesBusServices

13.33. WagoSysSQL_SQLite 384


WagoAppRTU, Release 1.2.13.1

13.35.2 Library Properties


• LinkAllContent: False
• QualifiedOnly: True
• Key: WagoTypesBusServices
• SystemLibrary: False
• PublishSymbolsInContainer: True
• Optional: False

13.35.3 Library Parameter


Parameter: MAX_RUNNABLES = MAX_MODULE_QUANTITY

Parameter: MAX_MODULE_QUANTITY = 250

© WAGO Kontakttechnik GmbH & Co. KG, Germany 2018 – All rights reserved. For the avoidance of doubt,
this copyright notice does not only apply to the information above but also and primarily to the described library
itself. Please note that third-party products are always mentioned without reference to intellectual property rights,
including patents, utility models, designs and trademarks, accordingly the existence of such rights cannot be
excluded. WAGO is a registered trademark of WAGO Verwaltungsgesellschaft mbH.

13.35. WagoTypesBusServices 385

You might also like