Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.1 TKY / Ten Key Input
353
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.1 TKY / Ten Key Input
Outline
This is a command for setting data in the timer or counter by the input of numeric keys 0 to 9.
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
TKY 16 bits Continuous TKY(EN, s, d1, d2);
DTKY 32 bits Continuous DTKY(EN, s, d1, d2);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Beginning bit device for entering numeric keys (10 points occupied) ARRAY [0..9] OF Bit
Output
variable
ENO Execution state Bit
Word device for storing data ANY16 ANY32
Beginning bit device for turning ON key pushing information
(11 points occupied)
ARRAY [0..10] 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
zzz z
S1
z
zzzzzz
S2 S2
zz z
zz z
S1
z
TKY
EN
s
ENO
d1
d2
DTKY
EN
s
ENO
d1
d2