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.
IoDrvCIFXProfibus.Freeze (METH) ¶ METHOD Freeze : UDINT Method Freeze is part of the interface ICmpIoDrvProfibus. By this service a master causes a slave or a group of slaves to freeze the actual state of their inputs. CARE: Use either udiRemAdr, or udiGroupSelect. Do not assign values <> 0 to both inputs at the same time. InOut: Scope Name Type Comment Return Freeze UDINT Input udiRemAdr UDINT Remote address OF slave (==127, IF all slaves are concerned). 0 if one ore more groups shall be selected. udiGroupSelect UDINT Number of group. This is a bit-field. Example: Use 1 for first Group, 4 for third Group, or 5 to address group 1 and 3. 0 if no group should be selected.
IoDrvCIFXProfibus.Sync (METH) ¶ METHOD Sync : UDINT Method Sync is part of the interface ICmpIoDrvProfibus. By use of a SYNC telegram a master causes a slave or a group of slaves to write the actual output data and to freeze the output afterwards. CARE: Use either udiRemAdr, or udiGroupSelect. Do not assign values <> 0 to both inputs at the same time. InOut: Scope Name Type Comment Return Sync UDINT Input udiRemAdr UDINT Remote address OF slave (==127, IF all slaves are concerned). 0 if one ore more groups shall be selected. udiGroupSelect UDINT Number of group. This is a bit-field. Example: Use 1 for first Group, 4 for third Group, or 5 to address group 1 and 3. 0 if no group should be selected.