FbusIO_GetBusStatus Function
Returns the status of the specified Fieldbus.
Syntax
FbusIO_GetBusStatus(busNumber)
Parameters
- busNumber
- Integer expression representing the fieldbus system number. This number is always 16 and is the ID of the bus connected to the fieldbus master board on the PC side of the controller.
Return Values
- 0 - OK
- 1 - Disconnected
- 2 - Power off
Description
FbusIO_GetBusStatus can be used to verify the general status of the Fieldbus.
Note
This command will only work if the Fieldbus Master option is active.
See Also
FbusIO_GetDeviceStatus, FbusIO_SendMsg
FbusIO_GetBusStatus Function Example
Long sts
sts = FbusIO_GetBusStatus(16)