GlobalVariables ¶ GVL (GVL)
GVL (GVL) ¶ Global public variables for the SubNode Communication Manager Attributes: qualified_only InOut: Name Type Initial Comment SncServer SncServiceProvider global SNC service provider: includes service handler and registered bus drivers SncLogger SncLogger global SNC logger bRtsSupportsServiceHandlerWithRecall BOOL FALSE this is true for version 3.5.5.0 or higher
Interfaces ¶ IBusSpecificDataHandler (Interface) InitDeviceSpecificFSps (Method) ScanDeviceSpecificFSps (Method) SyncdWriterSize (Property) TransmitDeviceSpecificData (Method) ISncDevDesc (Interface) FSpsAddress (Property) FSpsDevAddress (Property) FSpsMasterIdx (Property) FSpsVendorID (Property)
IBusSpecificDataHandler (ITF) ¶ INTERFACE IBusSpecificDataHandler Interface for the bus specific data handler ability to initialize this bus data handler and its underlying components ability to scan a specific bus for a given F-SPS and to synchronize buffer sizes between CODESYS / Std-SPS and the F-SPS ability to transmit the content of a SNC service request to a specific F-SPS and to transform its reply as a SNC service reply Properties: SyncdWriterSize Methods: InitDeviceSpecificFSps ScanDeviceSpecificFSps TransmitDeviceSpecificData Structure: InitDeviceSpecificFSps (Method) ScanDeviceSpecificFSps (Method) SyncdWriterSize (Property) TransmitDeviceSpecificData (Method)
IBusSpecificDataHandler.InitDeviceSpecificFSps (METH) ¶ METHOD InitDeviceSpecificFSps : ERROR Method to do some specific bus initialization and its underlying components InOut: Scope Name Type Return InitDeviceSpecificFSps ERROR
IBusSpecificDataHandler.ScanDeviceSpecificFSps (METH) ¶ METHOD ScanDeviceSpecificFSps : ERROR Method to check if a specific F-SPS physically exists and to synchronize the buffer size of CODESYS / Std-SPS with the F-SPS InOut: Scope Name Type Comment Input eFSpsBusId FSPSBUSDRV F-SPS bus driver ID hWriter RTS_IEC_HANDLE writer for the reply udiStdSpsBufferSize UDINT size of the communication buffer of CODESYS / the standard SPS Return ScanDeviceSpecificFSps ERROR
SncDeviceDriverBase.TransmitDeviceSpecificData (METH) ¶ METHOD TransmitDeviceSpecificData : ERROR Method to transmit the content of a SNC service request to a specific F-SPS and to transform its reply as a SNC service reply InOut: Scope Name Type Comment Input eFSpsBusId FSPSBUSDRV F-SPS field bus ID szSafetySvcDevAddr STRING device address to which the service should be directed pbySafetySvcData POINTER TO BYTE pointer to the specific safety service data udiSafetySvcDataSize UDINT size of this data hWriter RTS_IEC_HANDLE writer for the reply; udiStdSpsBufferSize UDINT size of the communication buffer of the standard SPS Return TransmitDeviceSpecificData ERROR
SncDeviceDriverBase.WasInitialized (PROP) ¶ PROPERTY WasInitialized : BOOL Property of type ‘BOOL’ to get / set if the service provider has been already Initialized
SncDeviceDriverBase.WriteScanReply (METH) ¶ METHOD PROTECTED WriteScanReply : ERROR Method to write the reply of the field bus specific scan result InOut: Scope Name Type Comment Input hWriter RTS_IEC_HANDLE writer for the reply bAlive BOOL flag if F-SPS is still alive eError ERROR SNC ERROR Return WriteScanReply ERROR
DEVDRV_ETC (GVL) ¶ Global constants for the EtherCAT device driver for reading config parameters from the device description Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant VoE_COMMBUFFERSIZE_ID UDINT 16#88000000 size of the comm buffer of the EtherCAT mailbox VoE_TIMEOUT_ID UDINT 16#88000001 timeout of the EtherCAT mailbox BLOCK_TIMEOUT_MULTIPLIER_ID UDINT 16#88000002 multiplier to get a block timeout on base of the above timeout MSG_TIMEOUT_ID UDINT 16#88000003 message timeout for a complete reply