IoDrvCIFXProfibus.Unsync (METH) ¶ METHOD Unsync : UDINT Method UnSync is part of the interface ICmpIoDrvProfibus. This service abolishes the effect of the service Syncf. All slaves concerned will restart to send the actual output data. CARE: Use either udiRemAdr, or udiGroupSelect. Do not assign values <> 0 to both inputs at the same time. InOut: Scope Name Type Comment Return Unsync 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.
ICmpIoDrvProfibusConfig ¶ GetSlaveConfiguration (Method)
IoDrvCIFXProfibus.GetSlaveConfiguration (METH) ¶ METHOD GetSlaveConfiguration : UDINT Returns the slave configuration of a certain slave. See documentation of IIoDrvProfibus.PB_SlaveConfigurationData for further information. InOut: Scope Name Type Return GetSlaveConfiguration UDINT Inout tGetSlaveConfig IIoDrvProfibus.PB_SlaveConfigurationData
Profibus ¶ CommFB MasterID (Property)
CommFB ¶ MasterID (Property)
PBSlave (FB) ¶ FUNCTION_BLOCK PBSlave An Instance of this fucntion block is created for each profibus slave that is configured for the PB master Properties: ID Methods: GetDiag GetExtDiag Structure: GetDiag (Method) GetExtDiag (Method) ID (Property)
PBSlave.GetDiag (METH) ¶ METHOD GetDiag : DPSlaveDiag Returns the PROFIBUS Slave’s status InOut: Scope Name Type Return GetDiag DPSlaveDiag
PBSlave.GetExtDiag (METH) ¶ METHOD GetExtDiag : UINT Returns the PROFIBUS Slave’s status InOut: Scope Name Type Comment Return GetExtDiag UINT Input pExtDiag POINTER TO BYTE Pointer to memory where the status should be copied to uiMaxLen UINT Size of memory available for the status. If size is chosen too small, the status may be cut.
PBSlave.ID (PROP) ¶ PROPERTY ID : UDINT Slave’s ID
RedundancyStatus (FB) ¶ FUNCTION_BLOCK RedundancyStatus Check the current status of the Profibus Master redundancy functionality. InOut: Scope Name Type Comment Input xEnable BOOL Inout ProfibusDriver IoDrvCIFXProfibus Output xRedundancyActive BOOL Redundancy is activated xBusy BOOL driver is busy xError BOOL error occured, see error code or ErrorCode UDINT CIFX errors etc. xRedundancyLink BOOL redundant PLCs are synchronized, for details see RedundancyState output RedundancyState RDCY.RedundancyState current state of CODESYS PLC Redundancy xOnline BOOL Profibus Master is online xPrimary BOOL Profibus Master is Primray xBackup BOOL Profibus Master is Backup xPrimaryDetected BOOL primary Profibus Master is detected xBackupDetected BOOL backup Profibus Master is Backup