IEC_TMWDEFS_EVENT_MODE (ENUM) ¶ TYPE IEC_TMWDEFS_EVENT_MODE : Attributes: qualified_only InOut: Name Initial Comment TMWDEFS_EVENT_MODE_SOE 0 Sequence of Events, return all events TMWDEFS_EVENT_MODE_MOST_RECENT Most Recent, only most recent event TMWDEFS_EVENT_MODE_CURRENT For DNP Analog Inputs only, current value TMWDEFS_EVENT_MODE_PER_POINT For DNP only, allow configuration per point
IEC_TMWDTIME (STRUCT) ¶ TYPE IEC_TMWDTIME : STRUCT InOut: Name Type Comment mSecsAndSecs IEC_TMWTYPES_USHORT 0 TO 59,999 minutes IEC_TMWTYPES_UCHAR 0 to 59 hour IEC_TMWTYPES_UCHAR 0 to 23 dayOfWeek IEC_TMWTYPES_UCHAR 1 to 7 (0 = not used, 1= Monday) dayOfMonth IEC_TMWTYPES_UCHAR 1 to 28,29,30,31 month IEC_TMWTYPES_UCHAR 1 to 12 year IEC_TMWTYPES_USHORT 1901 to 2099, the years over which the calculations in this module are valid dstInEffect IEC_TMWTYPES_BOOL TMWDEFS_TRUE when daylight savings time in effect, otherwise TMWDEFS_FALSE invalid IEC_TMWTYPES_BOOL set to TMWDEFS_TRUE when the date/time is deemed inaccurate. genuineTime IEC_TMWTYPES_BOOL set to TMWDEFS_TRUE if time was acquired from RTU, TMWDEFS_FALSE if time was substituted by intermediate equipment (used only by IEC 60870-5-101/104 when sending time in the monitor direction) As defined in 101 edition 2 2003 7.2.6.18 tis IEC_TMWTYPES_BOOL TMWDEFS_TRUE if tariff info switch is on (used only by IEC 60870-5-102) energyTariff IEC_TMWTYPES_UCHAR Energy tariff info (used only by IEC 60870-5-102) powerTariff IEC_TMWTYPES_UCHAR Power tariff info (used only by IEC 60870-5-102) qualifier IEC_TMWDTIME_QUAL Specifies how this time was generated pSession POINTER TO BYTE pointer to TMWSESN structure. This allows target layer to return time on per session basis. This will be valid or set to TMWDEFS_NULL before tmwtarg_getDateTime() is called
IEC_TMWDTIME_QUAL (ENUM) ¶ TYPE IEC_TMWDTIME_QUAL : Define enumerated type used to indicate how the time stamp was generated when storing a binary input change event. Attributes: qualified_only InOut: Name Comment TMWDTIME_UNKNOWN TIME qualifier is NOT known TMWDTIME_ABSOLUTE Absolute time was returned in message TMWDTIME_SYNC Time was calculated based on relative time and a synchronized base time. This will occur in DNP with a binary input with relative time and a synchronized common time of occurrence or in IEC 65870-5-101/104 when a 24 bit time is received after a time sync event. TMWDTIME_UNSYNC Time was calculated from a relative time and an unsynchronized base time. For example, this will occur in DNP with a binary input with relative time and an unsynchronized common time of occurrence or in IEC 60870-5-101/104 when a 24 bit time is received with out receiving a time sync event.
CmpDNP3 Interfaces Library Documentation ¶ Company : CODESYS GmbH Title : CmpDNP3 Interfaces Version : 1.0.0.0 Categories : System|SysLibs Namespace : CmpDNP3_Itfs Author : CODESYS Development GmbH Description [ 1 ] ¶ CmpDNP3 library is the library related to CmpDNP3 runtime component. It is not intended to work with at application level. Use DNP3 library at application level. Contents: ¶ CmpDNP3 Interfaces CmpDNP3Types Enums GlobalConstants Interfaces Types Indices and tables ¶ [ 1 ] Based on CmpDNP3_Itfs.library, last modified 04.10.2023, 09:30:17. LibDoc 4.4.0.0-b.37 The content file CmpDNP3_Itfs.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 04.10.2023, 09:30:19.
CmpDNP3 Interfaces ¶ CmpDNP3Types CmpDNP3IoConfig (Struct) CmpDNP3MasterSessionConfig (Struct) CmpDNP3OutstationSessionConfig (Struct) CmpDNP3RS232Configuration (Struct) CmpDNP3SocketConfiguration (Struct) Enums CmpDNP3ChannelReason (Enum) CmpDNP3ChannelState (Enum) CmpDNP3Error (Enum) CmpDNP3IoConfigParameter (Union) CmpDNP3IoType (Enum) CmpDNP3Mode (Enum) CmpDNP3Parity (Enum) CmpDNP3Role (Enum) CmpDNP3SessionEvent (Enum) CmpDNP3StopBits (Enum) GlobalConstants Constants (GVL) DNPDEFS (GVL) LogMask (GVL) SDNPDEFS (GVL) TMWDEFS (GVL) TMWDIAG (GVL) Interfaces IDNP3SessionEventCallback (Interface) SessionEvent (Method) Types TMW IEC_DNPDATA_FREEZE_TIME_DATE_FIELD (Enum) IEC_DNPDEFS_CROB_ST (Alias) IEC_DNPDEFS_CTLSTAT (Alias) IEC_SDNPDATA_CROB_CTRL (Alias) IEC_TMWDEFS_CLASS_MASK (Alias) IEC_TMWDEFS_EVENT_MODE (Enum) IEC_TMWDTIME (Struct) IEC_TMWDTIME_QUAL (Enum) IEC_TMWTYPES_ANALOG_TYPE (Enum) IEC_TMWTYPES_ANALOG_VALUE (Struct) IEC_TMWTYPES_ANALOG_VALUE_ValueUnion (Union) IEC_TMWTYPES_BOOL (Alias) IEC_TMWTYPES_BYTE (Alias) IEC_TMWTYPES_CHAR (Alias) IEC_TMWTYPES_DOUBLE (Alias) IEC_TMWTYPES_LONG (Alias) IEC_TMWTYPES_SCALED_DOUBLE (Struct) IEC_TMWTYPES_SCALED_FLOAT (Struct) IEC_TMWTYPES_SFLOAT (Alias) IEC_TMWTYPES_SHORT (Alias) IEC_TMWTYPES_UCHAR (Alias) IEC_TMWTYPES_ULONG (Alias) IEC_TMWTYPES_USHORT (Alias)
CmpDNP3Types ¶ CmpDNP3IoConfig (Struct) CmpDNP3MasterSessionConfig (Struct) CmpDNP3OutstationSessionConfig (Struct) CmpDNP3RS232Configuration (Struct) CmpDNP3SocketConfiguration (Struct)
CmpDNP3IoConfig (STRUCT) ¶ TYPE CmpDNP3IoConfig : STRUCT Target io configuration InOut: Name Type Comment pName POINTER TO STRING The master or outstation name ioType CmpDNP3IoType The master or outstation interface type config CmpDNP3IoConfigParameter Configuration parameters
CmpDNP3MasterSessionConfig (STRUCT) ¶ TYPE CmpDNP3MasterSessionConfig : STRUCT Parameters to master session InOut: Name Type Comment masterAddress UINT Source address (master address) for this session. outstationAddress UINT Destination address (outstation address) for this session. autoEnableUnsolClass1 BOOL If MDNPSESN_AUTO_ENABLE_UNSOL is set, these three flags will indicate which event classes should be enabled for unsolicited reporting. autoEnableUnsolClass2 BOOL autoEnableUnsolClass3 BOOL defaultResponseTimeout TIME Default absolute response timeout. This is the default value for the response timeout for any request generated on this session. This value can be overridden on a per command basis by changing the responseTimeout value in the MDNPBRM_REQ_DESC data structure. This value is the absolute maximum amount of time this device will wait for the final response to a request. This time starts as soon as the request is put into the transmit queue.
CmpDNP3OutstationSessionConfig (STRUCT) ¶ TYPE CmpDNP3OutstationSessionConfig : STRUCT Parameters to outstation session InOut: Name Type Comment masterAddress UINT Destination address (master address) for this session. If validateSourceAddress is TMWDEFS_TRUE, this will be the address to compare the masters source address to. If validateSourceAddress is TMWDEFS_FALSE, this address will be used as the address to send unsolicited responses. All other responses will be sent to the source address received from the master. outstationAddress UINT Source address (outstation address) for this session. validateSourceAddress BOOL Specify whether or not to validate source address in received frames. DNP3 frames contain both a source address field and a destination address field. If TMWDEFS_FALSE the TMW DNP3 SCL does not validate the source address and frames whose destination address matches a configured slave session will be accepted. Setting this to TMWDEFS_TRUE requires both source and destination addresses to match a local slave session before the frame is accepted. samplingRate TIME Specify the timeframe between samples of each data point. enableUnsolicitedResponse BOOL Enable (TRUE) unsolicited responses of the outstation. If enabled the outstation will send an initial unsolicited response to give the peer a chance to disable them. If disabled (FALSE), unsolicited respopnses will be deactivated a peer will not be able to activate them.
CmpDNP3RS232Configuration (STRUCT) ¶ TYPE CmpDNP3RS232Configuration : STRUCT Settings to open and to configure a COM interface. InOut: Name Type Comment comPortNumber INT Port number: 0=disabled, 1=COM1, 2=COM2, …. comPortBaudrate UDINT Baudrate: 4800, 9600, 19200, 38400, 57600, 115200…. comPortDataBits USINT Number of bits 4-8 comPortStopBits CmpDNP3StopBits Supported stop bits comPortParity CmpDNP3Parity Supported parity comPortBufferSize UDINT Buffer size of FIFO buffer comPortTimeout TIME The Timeout is the TIME between two received OR sent characters until the read or write operation will return.