FBusIO_GetBusStatus Method
Description
Returns the status of the specified Fieldbus.
Syntax
Function FBusIO_GetBusStatus (BusNumber As Integer) As Integer
Parameters
- BusNumber
An integer indicating the Fieldbus system number. This number must be 16, which is the ID of the bus connected to the Fieldbus master board on the PC side of the controller.
Return Value
0 - OK
1 - Disconnected
2 - Power off
Remarks
Note
This method will only work if the Fieldbus Master option is active.
See Also
FBusIO_GetDeviceStatus Method, FBusIO_SendMsg Method, IsOptionActive Method
FBusIO_GetBusStatus Use Example
VB Examples:
Dim val As Integer
val = m_spel.FBusIO_GetBusStatus(16)
C# Example:
int busStatus;
busStatus = m_spel.FbusIO_GetBusStatus(16);