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
SncEtherCATDriver (FB) ¶ FUNCTION_BLOCK FINAL SncEtherCATDriver EXTENDS SncDeviceDriverBase IMPLEMENTS IBusSpecificDataHandler Function block for an EtherCAT device driver to handle the SNC services addressed to its connected F-SPS extends ‘SncDeviceDriverBase’ and implements the interface ‘IDeviceSpecificDataHandler’ represents one connected EtherCAT F-SPS and registers it to the SncServiceProvider scans for this specific F-SPS and synchronizes its communication buffer size with the one from the Std-SPS handles the service requests coming from the SNC service handler with the help of the EtherCAT bus handler Properties: BlockTimeoutMs BlockTimeoutMultiplier CommBufferSize CommTimeout FSpsBusID MsgTimeoutMs ScanTimeoutMs FSpsDeviceAddress , inherited from SncDeviceDriverBase SyncdWriterSize , inherited from SncDeviceDriverBase WasInitialized , inherited from SncDeviceDriverBase Methods: InitDeviceSpecificFSps ScanDeviceSpecificFSps InitOnDownload , inherited from SncDeviceDriverBase Initialize , inherited from SncDeviceDriverBase TransmitDeviceSpecificData , inherited from SncDeviceDriverBase WriteScanReply , inherited from SncDeviceDriverBase Structure: BlockTimeoutMs (Property) BlockTimeoutMultiplier (Property) CommBufferSize (Property) CommTimeout (Property) FSpsBusID (Property) InitDeviceSpecificFSps (Method) MsgTimeoutMs (Property) ScanDeviceSpecificFSps (Method) ScanTimeoutMs (Property)
SncEtherCATDriver.BlockTimeoutMs (PROP) ¶ PROPERTY BlockTimeoutMs : UDINT Property of type ‘UDINT’ to get the block timeout in ms of the underlying block driver The block timeout is used while sending a data block
SncEtherCATDriver.BlockTimeoutMultiplier (PROP) ¶ PROPERTY BlockTimeoutMultiplier : UDINT Property of type ‘UDINT’ to get the multiplier for the block timeout on base of the comm timeout
SncEtherCATDriver.CommBufferSize (PROP) ¶ PROPERTY CommBufferSize : UINT Property of type ‘UINT’ to get the comm buffer size of the underlying EtherCAT VoE interface is limited to a maximum value set by ETC_GCL.VoE_COMMBUFFERSIZE_DEFAULT
SncEtherCATDriver.CommTimeout (PROP) ¶ PROPERTY CommTimeout : UDINT Property of type ‘UDINT’ to get the timeout in ms of the underlying EtherCAT VoE interface
SncEtherCATDriver.FSpsBusID (PROP) ¶ PROPERTY FSpsBusID : FSPSBUSDRV Property of type ‘FSPSBUSDRV’ to get the unique ID ‘FSPSBUSDRV.ETHERCAT’ as the F-SPS bus driver type
SncEtherCATDriver.InitDeviceSpecificFSps (METH) ¶ METHOD InitDeviceSpecificFSps : ERROR Method to do some specific bus initialization and its underlying components InOut: Scope Name Type Return InitDeviceSpecificFSps ERROR
SncEtherCATDriver.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 the standard SPS Return ScanDeviceSpecificFSps ERROR