11 - 104 11 - 104
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
KEY
Instruction
KEY
• Defines a character string to a function key of the console.
KEY <key number> , <character string>
key number
• • • •
Specify a function key to define the character string.
Syntax
character string
• • • •
Specify the character string to be defined.
Examples
KEY 1, “MITSUBISHI”
• • • •
Defines the character string “MITSUBISHI” to the
function key ( F1 ) of function key number 1 of the
console.
Description
• The KEY instruction defines a character string or a control character to a function key of
the console.
• Specify <key number> which corresponds to the function key number on the keyboard.
• The range of the function key number is from 1 to 10.
• In <character string>, specify a character string of up to 15 characters to assign to the
specified function key. (A control character is also counted as one character.)
The first 15 characters are valid if 16 or more characters are specified.
Specify control characters using the CHR$ function.
• After the assignment is finished, pressing the function key is equivalent to entering the
character string assigned to the key from the keyboard.
• The defined character string can be displayed on the screen by the KEY LIST instruction.
• The following character string is defined to each function key:
F1
• • • •
load”
F6
• • • •
save”
F2
• • • •
auto
F7
• • • •
key
F3
• • • •
goto
F8
• • • •
F4
• • • •
list
F9
• • • •
list.+0D
H
+1E
H
+1E
H
F5
• • • •
run+0D
H
F10
• • • •
cont+0D
H
REMARK
See the KEYLIST instruction.