Numerical Key Input From Keyboard (Key) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.18.7

Numerical key input from keyboard (KEY)

KEY
KEY
Setting
Data
S
n
D1
D2
Function
(1) Fetches ASCII data from the 8 points of input (X) designated by
hexadecimal values and stores the result in the area starting from the device designated by
.
D1
D1
+1
D1
+2
D1
For example, in a case where the number of digits (n) has been set at 5, and the values "31",
"33", "35", "37" and "39" have been input through X10 to X18 of the input module, the
following will take place:
b15
D10
D11
D12
Command
: Head number of the devices (X) to which a numeral will be input (bits)
S
n : Number of digits of the numeral to be input (BIN 16 bits)
: Head number of the devices where the input numeral will be stored (BIN 16 bits)
D1
: Number of the bit device to turn ON at the completion of input (bits)
D2
Internal Devices
R, ZR
Bit
Word
––
(Only X)
––
Designation of
n
the number of
digits to be input
b15
b12
b11
b8
b7
b4
b3
Number of digits that are input
5 digits
6 digits
7 digits
8 digits
2 digits
3 digits
1 digit
4 digits
Number of digits
of input data D0
b12
b11
b8
b7
b4
b3
5
3
5
7
9
H
H
H
0
0
0
1
H
H
H
High
Basic
performance
KEY
S
J
\
U
\G
Bit
Word
––
––
Input module
S
+1
S
+2
S
+3
S
b0
+4
S
+5
S
+6
S
+7
S
+8
S
5
Input module
X10
X11
X12
X13
b0
X14
X15
X16
X17
H
X18
H
KEY
Process
Redundant
Universal
n
D1
D2
Constants
Zn
K, H
––
––
––
, converts it to
S
"0" (30 ) to "9" (39 )
H
H
"A" (41 ) to "F" (46 )
H
H
Strobe signal
The first input value
" 1
3
5
7
9 "
(31
)(33
)(35
)(37
)(39
)
H
H
H
H
H
Strobe signal
1
2
LCPU
3
4
6
Other
6
––
––
––
7
––
8
7-395

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents