Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
419
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.1 FNC 70 – TKY / Ten Key Input
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
15.1 FNC 70 – TKY / Ten Key Input
Outline
This instruction sets data to timers and counters through inputs of the ten keys from "0" to "9".
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 (TKY)
stores a numeric value input from to +9 connected to the ten keys. Output informations for key
pressing and key sensing are output to to +10.
1) Input numeric value
- When an input value is larger than "9999", it overflows from the most significant digit.
- An input numeric value is stored in the binary format.
- When the ten keys are pressed in the order "[1] [2] [3] [4]" in the figure shown on the next page, "2130"
is stored in .
Operand Type Description Data Type
Head bit device number from which one of the ten keys is input [10 devices are occupied] Bit
Word device number storing the data 16- or 32-bit binary
Head bit device number storing the key pressing information [11 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
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
333 3 S 3
3333333 3 333
33 3 S 3
FNC 70
TKY
D
TKY
16-bit Instruction
7 steps
Mnemonic Operation Condition
Continuous
Operation
DTKY
32-bit Instruction
13 steps
Mnemonic Operation Condition
Continuous
Operation
S
D
1
D
2
S
D
1
D
2
D
1
S
S
D
2
D
2
D
1
D
1