FB_CX7080_LED_WD

FB_CX7080_LED_WD 1:

You can use the WD/ERR LEDs of the CX7080 to display the states of the PLC program, communication, or other information.

The function block allows setting the WD LED of the CX7080. The LED has two colors, red and green. If both colors are activated, the LED will be yellow. You therefore have three colors at your disposal. You can turn on the LED and/or make it flash.

To use the LED, the corresponding COM port must be included in the configuration. The RS232 interface is linked to the WD LED.

The function block should be called cyclically. The desired LED mode can be selected or changed using eLED.

FB_CX7080_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_CX7080_LED_WD 3: Inputs

VAR_INPUT
    bEnable     : BOOL;                // set TRUE to enable LED handling; Reset in order to reset error
    eLED        : E_CX7080_LED;        // LED flashing mode
END_VAR

Name

Type

Description

bEnable

BOOL

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

eLED

E_CX7080_LED

LED mode

FB_CX7080_LED_WD 4: Outputs

VAR_OUTPUT
    bError      : BOOL;             // error flag
    nErrorID    : UDINT;            (* ADS Error ID. 
If nErrorID=DEVICE_NOTFOUND probably the COM port is not set in the TC config.
If nErrorID=DEVICE_SRVNOTSUPP probably the image version need to be updated to support this feature.
*) 
END_VAR

Name

Type

Description

bError

BOOL

Error in function block.

nErrorID

UDINT

ADS Error Code
Examples:

DEVICE_NOTFOUND: The COM port is probably not included in the TwinCAT system configuration.

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

Notice

Function block can only be used for CX7080

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

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.26

CX 7080

Tc2_SystemCX (System) >= 3.4.8.0