IoDrvPLCNextAxio_Diag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR Inout deiInfo DEVICE_INFO Device information struct
IoDrvPLCNextAxio_Diag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE InOut: Scope Name Type Return GetDeviceState DED.DEVICE_STATE Output xDiagnosisInfoAvailable BOOL eError DED.ERROR
IoDrvPLCNextAxio_Diag.GetSpecificDeviceErrorAsync (METH) ¶ METHOD GetSpecificDeviceErrorAsync : DED.PROC_STATE Returns the device error of the current node InOut: Scope Name Type Comment Return GetSpecificDeviceErrorAsync DED.PROC_STATE Input eCmd PROC_CMD eCommand pData CAA.PVOID szSize CAA.SIZE Output szCount CAA.SIZE eError DED.ERROR
IoDrvPLCNextAxio_Diag.GetSpecificDeviceState (METH) ¶ METHOD GetSpecificDeviceState : DED.ERROR InOut: Scope Name Type Return GetSpecificDeviceState DED.ERROR Input pData CAA.PVOID szSize CAA.SIZE Output szCount CAA.COUNT
INode ¶ ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
IoDrvPLCNextAxio_Diag.SetCommunicationState (METH) ¶ METHOD SetCommunicationState : DED.ERROR InOut: Scope Name Type Return SetCommunicationState DED.ERROR Input eRequestedState DEVICE_TRANSITION_STATE
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.