Numerical Key Input Using Keyboard - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Numerical key input using keyboard

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

Advertisement

Table of Contents
loading

Table of Contents