KEY_READ (read keys on LCD)

The KEY_READ instruction reads the Key status on the optional LCD module when the user display is active.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the
Micro810
controller.
KEY_READ
KEY_READ
KEY_READ parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Enables the instruction block.
  • TRUE: Enable Read Keys on the remote LCD keypad.
  • FALSE: Disable Read Keys on the remote LCD keypad.
CKYL
Output
BOOL
TRUE: ESC key pressed for more than 2 seconds.
EKYL
Output
BOOL
TRUE: OK key pressed for more than 2 seconds.
CKY
Output
BOOL
TRUE: ESC key pressed.
EKY
Output
BOOL
TRUE: OK key pressed.
UKY
Output
BOOL
TRUE: Up key pressed.
DKY
Output
BOOL
TRUE: Down key pressed.
LKY
Output
BOOL
TRUE: Left key pressed.
RKY
Output
BOOL
TRUE: Right key pressed.

KEY_READ examples

KEY_READ function block diagram example
KEY_READ function block diagram example
KEY_READ ladder diagram example
KEY_READ ladder diagram example
KEY_READ structured text example
KEY_READ structured text example
(* ST Equivalence: *) KEY_READ_1(KEYENABLE) ; KEY_EKYL := KEY_READ_1.EKYL ; KEY_CKY := KEY_READ_1.CKY ; KEY_EKY := KEY_READ_1.EKY ; KEY_UKY := KEY_READ_1.UKY ; KEY_DKY := KEY_READ_1.DKY ; KEY_RKY := KEY_READ_1.RKY ; KEY_LKY := KEY_READ_1.LKY ;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal