![background image](http://html.mh-extra.com/html/ifm/cr0452/cr0452_programming-manual_620768172.webp)
172
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
SET_LED
8052
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0452_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
8054
Via SET_LED frequency and color of the status LED can be changed in the application program.
If the flashing mode is changed in the application program, the default setting table is no longer
valid (
chapter
Status-LED
(
>
Parameters of the inputs
8223
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
COLOR_1
BYTE
LED color for "switched on"
color constant from the data structure "System LED Color"; allowed:
00 = LED_BLACK (= LED out)
01 = LED_RED
02 = LED_GREEN
03 = LED_YELLOW
COLOR_2
BYTE
LED color for "switched off"
color constant from the data structure "System LED Color"; allowed:
00 = LED_BLACK (= LED out)
01 = LED_RED
02 = LED_GREEN
03 = LED_YELLOW
FREQUENCY
BYTE
LED flashing frequency
Frequency constant from the data structure "System LED Frequency";
allowed:
00 = LED_0HZ = permanently ON
01 = LED_05HZ = flashes at 0.5 Hz
02 = LED_1HZ = flashes at 1 Hz
04 = LED_2HZ = flashes at 2 Hz
10 = LED_5HZ = flashes at 5 Hz