File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 18.05.2017, 08:42:01 companyName string 3S-Smart Software Solutions GmbH libraryFile SNCM_Manager.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP10 Patch 2 contentFile SNCM_Manager.clean.json version version 1.0.1.1 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 01.01.1601, 00:53:00 LibraryCategories library-category-list Intern|Networking Author string 3S - Smart Software Solutions GmbH Company 3S - Smart Software Solutions GmbH DefaultNamespace SNCM Description See: Description LanguageModelAttribute qualified-access-only Placeholder SNCM_Manager Project SNCM_Manager Title SNCM Manager Version version 3.5.8.30
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Types CmpBinTagUtilIec ¶ Library Identification ¶ Placeholder: CmpBinTagUtilIec Default Resolution: CmpBinTagUtilIec, * (System) Namespace: CmpBinTagUtilIec Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpBinTagUtilIec CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) CmpEventMgr ¶ Library Identification ¶ Placeholder: CmpEventMgr Default Resolution: CmpEventMgr, * (System) Namespace: CmpEventMgr Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpEventMgr CmpIecTask ¶ Library Identification ¶ Placeholder: CmpIecTask Default Resolution: CmpIecTask, * (System) Namespace: CmpIecTask Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpIecTask CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpLog CmpSrv ¶ Library Identification ¶ Placeholder: CmpSrv Default Resolution: CmpSrv, * (System) Namespace: CmpSrv Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpSrv Component Manager ¶ Library Identification ¶ Placeholder: Component Manager Default Resolution: Component Manager, * (System) Namespace: Component_Manager Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Component Manager IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard Rts Service Handler ¶ Library Identification ¶ Placeholder: Rts Service Handler Default Resolution: Rts Service Handler, * (3S - Smart Software Solutions GmbH) Namespace: GSH Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Rts Service Handler SNCM ECAT Slave ¶ Library Identification ¶ Placeholder: SNCM_ECATSlave Default Resolution: SNCM ECAT Slave, * (3S - Smart Software Solutions GmbH) Namespace: SNCM_ETC_ITF Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SNCM_ECATSlave SNCM ECATSlave Interfaces ¶ Library Identification ¶ Name: SNCM ECATSlave Interfaces Version: newest Company: 3S - Smart Software Solutions GmbH Namespace: SNCM_ECATSLAVE_ITF Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SNCM ECATSlave Interfaces, * (3S - Smart Software Solutions GmbH) Standard Monitoring Data Server Driver ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard Monitoring Data Server Driver, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysMem ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysMem SysShm ¶ Library Identification ¶ Placeholder: SysShm Default Resolution: SysShm, * (System) Namespace: SysShm Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysShm SysTarget ¶ Library Identification ¶ Placeholder: SysTarget Default Resolution: SysTarget, * (System) Namespace: SysTarget Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTarget SysTask ¶ Library Identification ¶ Placeholder: SysTask Default Resolution: SysTask, * (System) Namespace: SysTask Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTask SysTime ¶ Library Identification ¶ Placeholder: SysTime Default Resolution: SysTime, * (System) Namespace: SysTime Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTime SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
SncDeviceDriverBase.FSpsBusID (PROP) ¶ PROPERTY FSpsBusID : FSPSBUSDRV Property of type ‘FSPSBUSDRV’ to get the unique ID for the F-SPS bus driver type
SncDeviceDriverBase.FSpsDeviceAddress (PROP) ¶ PROPERTY FSpsDeviceAddress : STRING Property of type ‘STRING’ to get the device address of the F-SPS bus in the format <busAddress>:<FSpsAddress>
SncDeviceDriverBase.InitDeviceSpecificFSps (METH) ¶ METHOD InitDeviceSpecificFSps : ERROR Method to do some specific bus initialization and its underlying components It should be implemented by derived FB InOut: Scope Name Type Return InitDeviceSpecificFSps ERROR
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
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
SncDevDesc (FB) ¶ FUNCTION_BLOCK FINAL SncDevDesc IMPLEMENTS ISncDevDesc Base class for a device description of a F-SPS which is addressed by SNC services Properties: FSpsAddress FSpsDevAddress FSpsMasterIdx FSpsVendorID Structure: FSpsAddress (Property) FSpsDevAddress (Property) FSpsMasterIdx (Property) FSpsVendorID (Property)