GetTBusStatus

GetTBusStatus 1:

The terminal bus status can be read by the function "GetTBusStatus".

FUNCTION GetTBusStatus : WORD

VAR_INPUT

VAR_INPUT
    bDummy  : BOOL
END_VAR

At least one input is required for functions. 

The return parameter has the following significance:

Return value

Description

Bit 0 set

General K-bus error

Bit 1 set

General configuration error

Bit 2 - 3

reserved 

Bit 4 set

PLC cycle time monitoring 

Bit 5 - 15

reserved

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v2.7.0 and above

BCxxxx (165)

PlcSystemBC.Lb6