SncDeviceDriverBase.InitOnDownload (METH) ¶ METHOD InitOnDownload : UDINT Method to register the initialization callback to EVT_BeforeWritingOutputs. If this event is posted the address of the F-SPS is set correctly and the corresponding device driver can be initialized. InOut: Scope Name Type Comment Return InitOnDownload UDINT Input wModuleType UINT module type dwInstance UDINT instance of the device pConnector POINTER TO IoConfigConnector pointer to the IO config connector
SncDeviceDriverBase.Initialize (METH) ¶ METHOD Initialize : ERROR Method to initialize the corresponding device driver to a given F-SPS and to register it to the global service provicder. If not done yet the global service provider is initialized, too. By initializing the service provider its linked SNC service handler is registered to the RTS service handler. Error return values: ERROR.ERR_OK -> success ERROR.ERR_NO_SERVICE_PROVIDER -> the given service provider is invalid (null pointer) ERROR.ERR_START_SERVICE_PROVIDER -> the given service provider could not be started because the registering of the SNC service handler to the RTS service handler failed ERROR.ERR_DRIVER_INVALID -> this driver is invalid for registering ERROR.DRIVER_IS_ALREADY_REGISTERED -> this driver is already registered to the given service provider InOut: Scope Name Type Comment Input dwVendorID DWORD vendor ID from the device description dwFSpsAddress DWORD address from the device description wMasterIdx WORD index of first master Return Initialize ERROR
SncDeviceDriverBase.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 It should be implemented by derived FB 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
Serial Communication Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title Serial Communication Version 3.5.7.0 Categories Use Cases Author 3S - Smart Software Solutions GmbH Description 1 ¶ A Container Library for libraries related to the use case Serial Communication. Indices and tables ¶ 1 Based on SerialCommunication.library, last modified 01.01.1601, 00:53:00. LibDoc 4.4.0.0-b.27 The content file SerialCommunication.clean.json was generated with CODESYS V3.5 SP10 Patch 2 on 17.05.2017, 17:06:46.
SncDeviceDriverBase.SyncdWriterSize (PROP) ¶ PROPERTY SyncdWriterSize : UDINT Property of type ‘UDINT’ to save the size of the writer which is set by the standard RTS. This size is used to synchronize with the F-SPS because there is no writer’s inteface yet to get the size
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 17.05.2017, 17:06:46 companyName string 3S-Smart Software Solutions GmbH libraryFile SerialCommunication.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP10 Patch 2 contentFile SerialCommunication.clean.json version version 1.0.1.1 ProjectInformation IsContainerLibrary bool True Released True LastModificationDateTime date 01.01.1601, 00:53:00 LibraryCategories library-category-list Use Cases Author string 3S - Smart Software Solutions GmbH Company 3S - Smart Software Solutions GmbH Description See: Description Project SerialCommunication Title Serial Communication Version version 3.5.7.0
SML_ETC_CO_SdoRead (FB) ¶ FUNCTION_BLOCK SML_ETC_CO_SdoRead InOut: Scope Name Type Initial Inout Slave SML_ETC_SLAVE Input xExecute BOOL xAbort BOOL FALSE wIndex WORD bySubindex BYTE udiTimeOut UDINT pBuffer POINTER TO BYTE 0 szSize CAA_SIZE 0 Output xDone BOOL xBusy BOOL xError BOOL eError SML_ETC_CO_ERROR udiSdoAbort UDINT szDataRead CAA_SIZE
SML_ETC_CO_SdoRead4 (FB) ¶ FUNCTION_BLOCK SML_ETC_CO_SdoRead4 InOut: Scope Name Type Initial Inout Slave SML_ETC_SLAVE Input xExecute BOOL xAbort BOOL FALSE wIndex WORD bySubindex BYTE udiTimeOut UDINT Output xDone BOOL xBusy BOOL xError BOOL eError SML_ETC_CO_ERROR udiSdoAbort UDINT abyData ARRAY [1..4] OF BYTE usiDataLength USINT
SML_ETC_CO_SdoWrite (FB) ¶ FUNCTION_BLOCK SML_ETC_CO_SdoWrite InOut: Scope Name Type Initial Inout Slave SML_ETC_SLAVE Input xExecute BOOL xAbort BOOL FALSE wIndex WORD bySubindex BYTE udiTimeOut UDINT pBuffer POINTER TO BYTE szSize CAA_SIZE eMode SML_ETC_CO_MODE Output xDone BOOL xBusy BOOL xError BOOL eError SML_ETC_CO_ERROR udiSdoAbort UDINT szDataWritten CAA_SIZE
SML_ETC_CO_SdoWrite4 (FB) ¶ FUNCTION_BLOCK SML_ETC_CO_SdoWrite4 InOut: Scope Name Type Initial Inout Slave SML_ETC_SLAVE Input xExecute BOOL xAbort BOOL FALSE wIndex WORD bySubindex BYTE udiTimeOut UDINT abyData ARRAY [1..4] OF BYTE usiDataLength USINT Output xDone BOOL xBusy BOOL xError BOOL eError SML_ETC_CO_ERROR udiSdoAbort UDINT