FB_CX7000_LED_WD

FB_CX7000_LED_WD 1:

The function block allows the use of the WD LED on the CX7000. The function block is immediately active with the call and controls the WD LED via the mode.

You can use the WD LED of the CX7000 to make the states of the PLC program, communication or other indications externally visible. The WD LED has two colors, red and green. If both colors are switched on, the LED lights up yellow. You can turn on the LED and/or make it flash.

FB_CX7000_LED_WD 2:

User-specific function of the LEDs

Due to the user-specific usability of the LEDs, Beckhoff Support cannot know the meaning of a flashing code and cannot support the customer.

  • Document the function of the LEDs for your customers.

FB_CX7000_LED_WD 3: Inputs

VAR_INPUT
    bEnable             : BOOL;             // set TRUE to enable LED handling; Reset in order to reset error
    eLED                : E_CX7000_LED;     // LED flashing mode 
    tFlashingTimeP1     : TIME:=T#250MS;    // Flashing Time >=200ms first pulse
    tFlashingTimeP2     : TIME:=T#250MS;    // Flashing Time >=200ms second pulse
END_VAR

Name

Type

Description

bEnable

BOOL

The function block controls the LED as soon as and as long as the input is TRUE.

eLED

E_CX7000_LED

LED mode

tFlashingTimeP1

TIME

Time for the first pulse (>= 200 ms)

tFlashingTimeP2

TIME

Time for the second pulse (>= 200 ms)

FB_CX7000_LED_WD 4: Outputs

VAR_OUTPUT
    bError         : BOOL;       // error flag
    nErrorID       : UDINT;      (* ADS Error ID. If nErrorID=DEVICE_SRVNOTSUPP probably the image version need to be updated to support this feature. *) 
END_VAR

Name

Type

Description

bError

BOOL

The function block has an error.

nErrorID

UDINT

ADS Error Code
Example:

DEVICE_SRVNOTSUPP: the image version of the CX7000 does not support this feature. An update (>=35695) is necessary.

Note

Function block can only be used for CX7000

The function block can and must only be used for the CX7000.