Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.2 HKY / Hexadecimal Input
359
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
Extension function
When the extension function is validated by turning ON the M8167, the hexadecimal key pushing data of 0 to
F is stored in BIN.
Except for the following, this is same as the "function and operation explanation" given above.
FX
U PLC: V2.30 or lower has no extension function.
1. 16-bit operation(HKY)
Hexadecimal data entered by keys 0 to F is directly written into the device designated in .
1) Numerical value input by keys 0 to F
- If more than FFFF, the value overflows sequentially from the upper digits.
- Example:
In the case of input of 1 2 3 B F, "23BF" is stored in BIN in the device designated in .
That is, 1 overflows at the time of input of F.
2. 32-bit operation(DHKY)
Hexadecimal data entered by keys 0 to F is directly written into the device designated in .
1) Numerical value input by keys 0 to F
- If more than FFFFFFFF, the value overflows sequentially from the upper digits.
- Example:
In the case of input of 9 2 3 B F A F, "923BFAF" is stored in BIN.
Related devices
As for the method of using the command execution complete flag, see paragraph 1.3.4.
Device Name Content
M8167 Function extension flag
HEX data handling function of HKY command
OFF : numeric key + function key
ON : hexadecimal key
M8029
Command execution
complete
OFF : During scanning from to +3, or command not executed
ON : To be turned ON after one-cycle operation of to +3 output (key scan of 0 to
F).
Command input
M8167
Beginning device
for entering 16 keys
HKY
EN
s
ENO
d1
d2
d3
Beginning device to be output
Device for storing numerical value
entered from 16 keys
Beginning bit device for turning
ON key pushing information
Command input
M8167
Beginning device
for entering 16 keys
DHKY
EN
s
ENO
d1
d2
d3
Beginning device to be output
Device for storing numerical value
entered from 16 keys
Beginning bit device for turning
ON key pushing information