Mitsubishi MELSEC-Q/L Programming Manual page 616

Table of Contents

Advertisement

KEY
(5) The digits for the numbers actually fetched to
converted to the ASCII codes input at
Execution command
Condition contact for the
execution of KEY instruction
S
Strobe signal (
8)
ASCII code input
S
to
S
7)
(
D1
D1
D1
(6) The number of digits that can be designated by n is from 1 to 8.
(7) Fetching of the input data is completed when any of the inputs shown below has been made. At the completion, the bit
device designated by
D2
• When the number of digits specified by n has been input
• When the "0D
" code has been input
H
For example, the operations at the location designated if n
Execution command
Strobe signal
(
+8)
S
ASCII code input
When the
S
to
(
designated
number of digits
are input
Processing
completed (
Execution command
Strobe signal
(
+8)
S
ASCII code input
When 0D code
H
to
(
S
is input
Processing
completed (
If input processing is to be performed a second time, it is necessary to clear the number of digits input and the input data
stored at
, and turn OFF the designated device at the user program.
D1
If
is not cleared and
D1
614
will be stored at the device designated by
D1
+1 and
+2, converted to hexadecimal BIN values, and stored.
D1
D1
31
33
H
H
1
2
1
0 0 0 1
0 0 1 3
0 1 3 5
2
0 0 0 0
0 0 0 0
0 0 0 0
is turned ON.
31
42
H
S
+7)
D1
1
2
D1
+1
0 0 0 1
0 0 1 B
D1
+2
0 0 0 0
0 0 0 0
)
D2
31
42
H
+7)
S
D1
1
2
D1
+1
0 0 0 1
0 0 1 B
+2
D1
0 0 0 0
0 0 0 0
)
D2
not turned OFF, the next input processing cannot be performed.
D2
35
37
39
H
H
3
4
5
1 3 5 7
3 5 7 9
0 0 0 0
0 0 0 1
5 will be as indicated below:
35
37
H
H
H
3
4
0 1 B 5
1 B 5 7
0 0 0 0
0 0 0 0
35
0D
H
H
H
3
3
0 1 B 5
0 1 B 5
0 0 0 0
0 0 0 0
, and these will be
D1
H
39
H
5
B 5 7 9
0 0 0 1

Advertisement

Table of Contents
loading

Table of Contents