FB_C69xxSetLedColor
This function block is deprecated on newer IPCs. Use FB_SetLedColor_BAPI from Tc2_System instead. |
The function block FB_C69xxSetLedColor can be used to switch the user LED on the C69xx PC. The LED color is switched via a rising edge at bExecute and the eNewColor parameter. The LED can be switched off (eNewColor = eULED_Off) or set to red (eNewColor = eULED_Red), blue (eNewColor = eULED_Blue) or green (eNewColor = eULED_Green).
TYPE E_UserLED_Color : (
eULED_Off := 0,
eULED_Red := 1,
eULED_Blue := 2,
eULED_Green := 3
);
END_TYPE
Inputs
VAR_INPUT
bExecute : BOOL;
eNewColor : E_UserLED_Color;
END_VAR
Name | Type | Description |
---|---|---|
bExecute | BOOL | Switching of the LED with rising edge. |
eNewColor | E_UserLED_Color | Color value to be set |
Outputs
VAR_OUTPUT
eLastSetColor : E_UserLED_Color;
bError : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
eLastSetColor | E_UserLED_Color | Last color value set with this function block |
bError | BOOL | Error while setting the LED color |
Requirements
Development environment |
Target plattform |
PLC Libraries to include |
---|---|---|
TwinCAT v3.0.0 |
PC (i386) |
Tc2_SystemC69xx |