Mitsubishi Electronics FX3G User Manual

Page of 964
425
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.2 FNC 71 – HKY / Hexadecimal Input
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
15.2
FNC 71 – HKY / Hexadecimal Input
Outline
This instruction multiplexes four X-devices and four Y-devices to allow for 16 key (0 to F) 4-digit (byte) input. Keys 0 to
9 stores numerical values, and keys A to F represent function keys.
When the extension function is set to ON, hexadecimal keys 0 to F all store their corresponding numerical values.
1. Instruction format
2. Set data
3. Applicable devices
S: "D .b" cannot be indexed with index registers (V and Z).
Explanation of function and operation
1. 16-bit operation (HKY)
signals [
 to 
+3] and [
 to 
+3] connected to the 16 key input (0 to F) are scanned.
When a key 0 to 9 is pressed, the corresponding numeric value is shifted into 
 from the least significant byte, and
+7 turns ON.
When a key A to F is pressed, the corresponding key press information bit [
 to 
+5] turns ON, and 
+6
turns ON. 
Operand Type
Description
Data Type
Head X device number to be used (Four devices occupied.)
Bit
Head Y device number to be used (Four devices occupied.)
Bit
Device number storing the numerical input from the 16 keys
16- or 32-bit binary
Head bit device number storing the key pressing information 
(Eight devices are occupied.)
Bit
Oper-
and 
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special 
Unit
Index
Con-
stant
Real 
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
V Z Modify K H
E
" "
P
S
HKY
16-bit Instruction
9 steps
Mnemonic
Operation Condition
Continuous
Operation
DHKY
32-bit Instruction
17 steps
Mnemonic
Operation Condition
Continuous
Operation
FNC 71
HKY
D
  S
  
D
1
  
D
2
  
D
3
  S
  
D
1
  
D
2
  
D
3
   
S
   
S
  
D
1
  
D
1
  
D
2
  
D
3
  
D
3
  
D
3
  
D
3
Command
input
FNC 71
HKY
D
1
 
D
2
 
D
3