FB_CX7080_LED_ERR
You can use the WD/ERR LEDs of the CX7080 to make the states of the PLC program, communication or other indications externally visible.
The function block enables the ERR LED of the CX7080 to be set. The LED has two colors, red and green. If both colors are switched on, the LED lights up 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 RS485 interface is linked to the ERR LED.
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.
|
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 controls the LED as soon as and as long as the input is TRUE. |
eLED | E_CX7080_LED | LED mode |
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 | The function block has an error. |
nErrorID | UDINT | ADS Error Code 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. |