GT panel instructions
1136
Part IV Tool Instructions
GT_ChangeBacklight
Brightness
Changes the backlight brightness of a GT panel
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types see page 1327
Input variable Data type Function
iBrightness INT Brightness value 0–15
Input/output variable
dutGTBitArea GT_BasicComBitArea GT basic communication bit area
Output variable
bError BOOL Turns on if the brightness value is out of range
Description
This instruction changes the backlight brightness of the GT Panel using the variables described in
the table for data types.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
ST
fb_GT_ChangeBacklightBrightness((* EN := TRUE, *)
iBrightness := iBrightness,
dutGTBitArea := g_GT_BitArea,
bError => bErrorBacklightBrightness
(* , ENO => ?BOOL? *));