PdiRead (FB) ¶ FUNCTION_BLOCK PdiRead EXTENDS CBML.ETrig Reads an object from a module Example: Reads object with slot 1 and index 1 ( vendorname ) The result will be 'Phoenix Contact' PROGRAM PLC_PRG VAR read : IoDrvPLCNextAxioLib.PDIRead ; stDataRead : STRING ; END_VAR IF PLCNext_Axioline.GetDeviceState () = DED.DEVICE_STATE.RUNNING THEN read.uiSlot := 1 ; read.uiIndex := 1 ; read.pData := ADR ( stDataRead ); read.uiMaxDataSize := SIZEOF ( stDataRead ); read ( xExecute := TRUE ); IF read.xDone THEN read ( xExecute := FALSE ); END_IF END_IF InOut: Scope Name Type Comment Inherited from Input xExecute BOOL Rising edge: Starts defined operation FALSE : Resets the defined operation after ready condition was reached ETrig Output xDone BOOL TRUE : Ready condition reached ETrig xBusy BOOL TRUE : Operation is running ETrig xError BOOL TRUE : Error condition reached ETrig Input uiSlot UINT Slot number usiSubSlot USINT Subslot number uiIndex UINT Index usiSubIndex USINT SubIndex pData POINTER TO BYTE Pointer to data to read uiMaxDataSize UINT Maximum number of bytes to read Output uiErrorCode UINT Error code uiAddInfo UINT Error code, further information uiDataRead UINT Number of bytes read to pData pointer
PdiWrite (FB) ¶ FUNCTION_BLOCK PdiWrite EXTENDS CBML.ETrig Writes an object to the module Example: Writes object with slot 1 and index 0x14 (location) PROGRAM PLC_PRG VAR write : IoDrvPLCNextAxioLib.PDIWrite ; stWriteData : STRING := 'Office' ; END_VAR IF PLCNext_Axioline.GetDeviceState () = DED.DEVICE_STATE.RUNNING THEN write.uiSlot := 1 ; write.uiIndex := 16#14 ; write.pData := ADR ( stWriteData ); write.uiDataSize := TO_UINT ( len ( stWriteData )); write ( xExecute := TRUE ); END_IF InOut: Scope Name Type Comment Inherited from Input xExecute BOOL Rising edge: Starts defined operation FALSE : Resets the defined operation after ready condition was reached ETrig Output xDone BOOL TRUE : Ready condition reached ETrig xBusy BOOL TRUE : Operation is running ETrig xError BOOL TRUE : Error condition reached ETrig Input uiSlot UINT Slot number usiSubSlot USINT Subslot number uiIndex UINT Index usiSubIndex USINT SubIndex pData POINTER TO BYTE Pointer to data to write uiDataSize UINT Number of bytes to write Output uiErrorCode UINT Error code uiAddInfo UINT Error code, further information
Structs ¶ AxioStatusRegister (Struct)
AxioStatusRegister (STRUCT) ¶ TYPE AxioStatusRegister : STRUCT InOut: Name Type Comment F_FW_BIT BIT I/O warning: At least one device indicates an I/O warning. F_PF_BIT BIT I/O error: At least one device indicates an I/O error. F_BUS_BIT BIT Bus error: A bus error occurred. F_CTRL_BIT BIT Controller error: The driver detected an internal error. Reserved BIT Reserved F_RUN_BIT BIT Run: Data cycles are being exchanged, output data is enabled. F_ACTIVE_BIT BIT Active: Configuration is active, PDI to the devices is possible, data exchange with invalid/non-enabled process data. F_READY_BIT BIT Ready: The local bus master is ready for operation, no data exchange over the bus. F_BD_BIT BIT Bus different: A device which does not belong to the current configuration has been detected at the last interface. F_BASP_BIT BIT SYS_FAIL: The controller is in the STOP state OR no application PROGRAM has been loaded. Output data is blocked (substitute value behavior is active) F_FORCE_BIT BIT Force mode: Force mode (startup tool/I/O check) is active. F_SYNC_BIT BIT Synchronization: Synchronization between higher-level system and local bus master has failed. F_PARA_REQ BIT Module parameter: At least one device is requesting parameters.
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 25.10.2023, 14:05:37 companyName string 3S-Smart Software Solutions GmbH libraryFile IoDrvPLCNextAxio.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile IoDrvPLCNextAxio.clean.json version version 2.0.0.0 ProjectInformation AutoResolveUnbound bool True IsEndUserLibrary False Released True SourceLibrary False LastModificationDateTime date 25.10.2023, 14:05:36 LibraryCategories library-category-list Intern|IoDrivers Author string CODESYS Development GmbH Company CODESYS CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace IoDrvPLCNextAxioLib Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder IoDrvPLCNextAxio Project IoDrvPLCNextAxio Title IoDrvPLCNextAxio Version version 4.10.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Device Diagnosis ¶ Library Identification ¶ Placeholder: CAA Device Diagnosis Default Resolution: CAA Device Diagnosis, * (CAA Technical Workgroup) Namespace: DED Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CAA Device Diagnosis 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 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) CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpLog CmpSchedule ¶ Library Identification ¶ Placeholder: CmpSchedule Default Resolution: CmpSchedule, * (System) Namespace: CmpSchedule Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpSchedule Common Behaviour Model ¶ Library Identification ¶ Placeholder: CBML Default Resolution: Common Behaviour Model, * (3S - Smart Software Solutions GmbH) Namespace: CBML Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CBML 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 IoDriver Interfaces ¶ Library Identification ¶ Name: IoDriver Interfaces Version: newest Company: System Namespace: IoDriver_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDriver Interfaces, * (System) IoDrvBase ¶ Library Identification ¶ Placeholder: IoDrvBase Default Resolution: IoDrvBase, * (System) Namespace: IoDrvBase Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDrvBase IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysCpuHandling ¶ Library Identification ¶ Placeholder: SysCpuHandling Default Resolution: SysCpuHandling, * (System) Namespace: SysCpuHandling Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysCpuHandling SysMem ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysMem SysSocket ¶ Library Identification ¶ Placeholder: SysSocket Default Resolution: SysSocket, * (System) Namespace: SysSocket Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysSocket SysTime ¶ Library Identification ¶ Name: SysTime Version: 3.5.9.0 Company: System Namespace: SysTime Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTime, 3.5.9.0 (System) 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)