Professional Documents
Culture Documents
LCD Instructions
LCD Instructions
LCD_KEY
EN:Enable
LCD_PAGE
EN:Enable
page.
241
Supplementary explanation:MASK input is a byte.Take VB0 as an example:
VB0
7 6 5 4 3 2 1 0
When 0 bit is equal to 1, LCD will display 0 group.
When 1 bit is equal to 1, LCD will display 1 group.
When 2 bit is equal to 1, LCD will display 2 group.
.
.
.
When 7 bit is equal to 1, LCD will display 7 group.
LCD_EDIT
the LCD.
EN:Enable
LOOP:LOOP edit.
For example:
You have to edit display pages in LCD software.
242
Display page 1:
Display page 2:
Display page 3:
Display page 4:
243
Display page 1:Display page 1 is divided into 0 group and 1 group.
244
PLC program:
Analysis:
In network 0,the program binds LCD keys and PLC variables.
PLC has ten function keys.Each function key corresponds to a PLC variable.
F1 corresponds to SM191.0
F2 corresponds to SM191.1
F3 corresponds to SM191.2
245
F4 corresponds to SM191.3
ESC corresponds to SM190.0
OK corresponds to SM190.1
UP corresponds to SM190.2
DOWN corresponds to SM190.3
LEFT corresponds to SM190.4
RIGHT corresponds to SM190.5
NETWORK 0:
Operation result:
246
VB200 is 1.0 bit is equal to 1,so LCD displays 0 group.The value of VB201
is 0, which means the first display page.The first display page is display
page 1.
You can use the program to specify the display group and the display page .
For example:
LCD -EDIT instruction binds the PLC variables and LCD edit states.
247
For example:
When you modify the first variable of display page 1:
248
For example:
Modify the value of variable to 161.
For example:
Modify text list
249