IoDrvPLCNextAxio_Diag.GetDeviceDiagnosisInfo (METH) ¶ METHOD GetDeviceDiagnosisInfo : DED.ERROR InOut: Scope Name Type Return GetDeviceDiagnosisInfo DED.ERROR Input pData CAA.PVOID szSize CAA.SIZE Output szCount CAA.SIZE
IoDrvPLCNextAxio_Diag.GetDeviceErrorAsync (METH) ¶ METHOD GetDeviceErrorAsync : DED.PROC_STATE InOut: Scope Name Type Comment Return GetDeviceErrorAsync DED.PROC_STATE Input eCmd PROC_CMD eCommand Inout eriDeviceError ERROR_INFO error struct Output eError DED.ERROR
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