Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.2 HKY / Hexadecimal Input
357
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)
14.2 HKY / Hexadecimal Input
Outline
This is a command for setting the input data of numerical value (0 to 9) or operation condition (function keys A
to F), by the input of keys from 0 to F (16 keys).
When the extension function is turned ON, the key input is entered in hexadecimal notation by keys 0 to F.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
HKY 16 bits Continuous HKY(EN, s, d1, d2, d3);
DHKY 32 bits Continuous DHKY(EN, s, d1, d2, d3);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Beginning device for entering 16 keys (X) (4 points occupied) ARRAY [0..3] OF Bit
Output
variable
ENO Execution state Bit
Beginning device for sending output (Y) (4 points occupied) ARRAY [0..3] OF Bit
Device for storing numerical value entered from 16 keys ANY16 ANY32
Beginning bit device for turning ON key pushing information
(8 points occupied)
ARRAY [0..7] OF Bit
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
number
Character
string
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
""
P
zz
zz
zzz
S2 S2
zz z
zz z
S1
z
HKY
EN
s
ENO
d1
d2
d3
DHKY
EN
s
ENO
d1
d2
d3