FunctionBlocks ¶ CommunicationErrorCIFX (Enum) IoDrvCIFXProfibus (FunctionBlock) ICmpIoDrvLiveList GetLiveList (Method) ICmpIoDrvPbSlaveActivation GetSlaveActivation (Method) SetSlaveActivation (Method) ICmpIoDrvProfibus ClearData (Method) Freeze (Method) Sync (Method) Unfreeze (Method) Unsync (Method) ICmpIoDrvProfibusConfig GetSlaveConfiguration (Method) Profibus CommFB MasterID (Property) PBSlave (FunctionBlock) GetDiag (Method) GetExtDiag (Method) ID (Property) RedundancyStatus (FunctionBlock)
CommunicationErrorCIFX (ENUM) ¶ TYPE CommunicationErrorCIFX : InOut: Name Initial Comment OK 0 CONFIGURATION_FAULT 16#C0000120 General configuration fault. INSUFFICIENT_LICENSE 16#C0000123 Insufficient license. INVALID_NETWORK_ADDRESS 16#C0000125 Network address invalid. NETWORK_FAULT 16#C0000140 General communication fault CONNECTION_CLOSED 16#C0000141 Connection closed. CONNECTION_TIMEOUT 16#C0000142 Connection timeout. LONELY_NETWORK 16#C0000143 Lonely network. DUPLICATE_NODE 16#C0000144 Duplicate network address. CABLE_DISCONNECT 16#C0000145 Cable disconnected. PROFIBUS_NON_EXCHANGE_SLAVE 16#C0390005 No data exchange with at least one slave. PROFIBUS_NON_EXCHANGE_ALL 16#C0390006 No slave in data exchange. PROFIBUS_CHANNEL_INIT_FAILED 16#C039000B Channel initialization failed. PROFIBUS_ADR_DOUBLE 16#C039003A Double station address detected. PROFIBUS_WATCHDOG_ERROR 16#C03900DC Watchdog Error. PROFIBUS_AUTOCLEAR_ERROR 16#C03900DE Auto-clear activated.
IoDrvCIFXProfibus (FB) ¶ FUNCTION_BLOCK IoDrvCIFXProfibus EXTENDS IoDrvCIFX IMPLEMENTS ICmpIoDrvDPV1C1Master, ICmpIoDrvDPV1C2Master, ICmpIoDrvProfibus, ICmpIoDrvLiveList, ICmpIoDrvPbSlaveActivation, ICmpEventCallback, ICmpIoDrvProfibusConfig, CommFB.ICommFBFactory, CommFB.ICommFBDiagProvider, CommFB.ICommFBFactoryExt An Instance of this function block is created for each profibus master in the device tree. InOut: Scope Name Type Comment Output xConfigured BOOL configuration ok xBusOn BOOL profibus is online xBusy BOOL driver is busy xError BOOL an error occured, see ErrorCode ErrorCode UDINT internal CIFX error, e.g during firmware configuration or bus startup. CommunicationError CommunicationErrorCIFX CommunicationError, e.g. NETWORK_FAULT if Profibus cable is disconnected Properties: MasterID Methods: ClearData Freeze GetLiveList GetSlaveActivation GetSlaveConfiguration SetSlaveActivation Sync Unfreeze Unsync Structure: ICmpIoDrvLiveList GetLiveList (Method) ICmpIoDrvPbSlaveActivation GetSlaveActivation (Method) SetSlaveActivation (Method) ICmpIoDrvProfibus ClearData (Method) Freeze (Method) Sync (Method) Unfreeze (Method) Unsync (Method) ICmpIoDrvProfibusConfig GetSlaveConfiguration (Method) Profibus CommFB MasterID (Property)
ICmpIoDrvLiveList ¶ GetLiveList (Method)
IoDrvCIFXProfibus.GetLiveList (METH) ¶ METHOD GetLiveList : UDINT This method returns the latest live list in the DUT PB_LiveList InOut: Scope Name Type Comment Return GetLiveList UDINT Inout tLiveList HIL_LiveList Return parameter for the live list, operation state and error code
ICmpIoDrvPbSlaveActivation ¶ GetSlaveActivation (Method) SetSlaveActivation (Method)
IoDrvCIFXProfibus.GetSlaveActivation (METH) ¶ METHOD GetSlaveActivation : UDINT Method GetSlaveActivation is part of the interface ICmpIoDrvPbSlaveActivation. It is can be used in the application to get information on the current state of slave activation. See documentation of PB_SlaveActivation in IoDriver Profibus2 Interface Library for further information. InOut: Scope Name Type Return GetSlaveActivation UDINT Inout tSlaveActivation PB_SlaveActivation
IoDrvCIFXProfibus.SetSlaveActivation (METH) ¶ METHOD SetSlaveActivation : UDINT Method SetSlaveActivation is part of the interface ICmpIoDrvPbSlaveActivation. It can be used in the application to get a slave set activated. Set slave activation of a certain slave. See documentation of PB_SlaveActivation in IoDriver Profibus2 Interface Library for further information. InOut: Scope Name Type Return SetSlaveActivation UDINT Inout tSlaveActivation PB_SlaveActivation
ICmpIoDrvProfibus ¶ ClearData (Method) Freeze (Method) Sync (Method) Unfreeze (Method) Unsync (Method)
IoDrvCIFXProfibus.ClearData (METH) ¶ METHOD ClearData : UDINT The CLEAR DATA function sets the Master in CLEAR, the input parameters are not used InOut: Scope Name Type Comment Return ClearData UDINT Input udiRemAdr UDINT Not used. udiGroupSelect UDINT Not used.