IoDrvPfc200 (FB) ¶ FUNCTION_BLOCK IoDrvPfc200 EXTENDS IoDrvBase InOut: Scope Name Type Comment Input xRestart BOOL Positve edge will restart the bus Output xConfigFinished BOOL True: if startup phase has been sucessfully finished and process data is exchanged xError BOOL True if an error has ocurred while starting the bus Properties: EnableIoCheck Structure: EnableIoCheck (Property)
IoDrvPfc200.EnableIoCheck (PROP) ¶ PROPERTY EnableIoCheck : BOOL Enables the control mode for Wago I/O check software if set to true. In this case the K-Bus transmission cycle is controlled by the PFC software and not by CODESYS therefore the K-Bus bus cycle time is independent of the CODESYS bus cycle. It should be only enabled if the WAGO I/O Check software is used for the time of setting special parameters in the modules. If the parameters are set then change back to false to set the default bus cycle control by CODESYS. Example This example shows how to set the Wago I/O Check mode. The K-Bus needs to be restarted to enable the new mode. Set variable bEnableIoCheck to true and then xRestart to true. PROGRAM PLC_PRG VAR xEnableIoCheck : BOOL := FALSE ; xRestart : BOOL ; END_VAR Pfc200Bus.EnableIoCheck := xEnableIoCheck ; // set new mode Pfc200bus.xRestart := xRestart ; // positive edge will trigger restart Pfc200bus (); // call the function block to read the xRestart input
IoDrvPfc200_Diag (FB) ¶ FUNCTION_BLOCK IoDrvPfc200_Diag EXTENDS IoDrvPfc200 IMPLEMENTS IDevice2 InOut: Scope Name Type Comment Inherited from Input xRestart BOOL Positve edge will restart the bus IoDrvPfc200 Output xConfigFinished BOOL True: if startup phase has been sucessfully finished and process data is exchanged IoDrvPfc200 xError BOOL True if an error has ocurred while starting the bus IoDrvPfc200 Properties: ChildNodeCount Connector Enable EnableIoCheck , inherited from IoDrvPfc200 FirstChildNode Index IsRootNode NextSiblingNode ParentNode SiblingNodeCount Methods: CheckCurrentSupportedCommunicationState CheckSupportedCommunicationState GetDeviceDiagnosisInfo GetDeviceErrorAsync GetDeviceInfo GetDeviceState GetSpecificDeviceErrorAsync GetSpecificDeviceState SetCommunicationState Structure: CheckCurrentSupportedCommunicationState (Method) CheckSupportedCommunicationState (Method) GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) SetCommunicationState (Method)
IoDrvPfc200_Diag.CheckCurrentSupportedCommunicationState (METH) ¶ METHOD CheckCurrentSupportedCommunicationState : BOOL InOut: Scope Name Type Return CheckCurrentSupportedCommunicationState BOOL Input eRequestedState DEVICE_TRANSITION_STATE
IoDrvPfc200_Diag.CheckSupportedCommunicationState (METH) ¶ METHOD CheckSupportedCommunicationState : BOOL InOut: Scope Name Type Return CheckSupportedCommunicationState BOOL Input eRequestedState DEVICE_TRANSITION_STATE
IoDrvPfc200_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
IoDrvPfc200_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
IoDrvPfc200_Diag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR Inout deiInfo DEVICE_INFO Device information struct
IoDrvPfc200_Diag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE InOut: Scope Name Type Return GetDeviceState DED.DEVICE_STATE Output xDiagnosisInfoAvailable BOOL eError DED.ERROR
IoDrvPfc200_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