Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.1 TKY / Ten Key Input
355
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)
X030
TKY
EN
s
ENO
d1
d2
X000 D0
M10
[Structured ladder/FBD] [ST]
TKY(X030, X000, D0, M10);
2. 32-bit operation(DTKY)
By pressing key from the input for connecting the numeric keys (device designated in ), the entered
numerical value is stored in the device designated in , and the key pushing information and key sense
output are issued to the device designated in .
1) Entered numerical value
- If more than 99,999,999, the value overflows from the higher digits.
- The entered numerical value is stored in the BIN (binary) value.
2) Key pushing information
- Key pushing information of to +9 is turned ON/OFF depending on the pushed key.
- Key sense output of +10 is ON when either key is being pushed.
As for numeric key connection example and key pushing information, see the above explanation of 16-bit
operation (TKY).
Cautions
1. When keys are pressed simultaneously
When plural keys are pressed, only the first pressed key is valid.
2. When command contact is turned
OFF
If turned OFF, the
content of is not changed, but all of
to +10 are turned OFF.
3. Number of bits occupied
1) When a numeric key is connected, 10 points are occupied from .
When numeric key is not connected (not used), the devices are occupied and cannot be used in other
applications.
2) A total of 11 points are occupied from the beginning device for output of key pushing information.
Be careful not to overlap with the device used in control of machine.
- to +9: Turned ON corresponding to the input of numeric keys 0 to 9.
- +10: Kept ON while any one of 0 to 9 is being pressed (key sense output).
4. Limit of number of times of use of command
Only one of TKY command and DTKY command can be used in the program.
If desired to use plural times, you can program by the index modifier (V, Z) function.
5. Some restrictions to applicable devices.
S1: The FX3U and FX3UC PLCs only are applicable.
However, index modifier (V, Z) is not applicable.
S2: The FX
3U and FX3UC PLCs only are applicable.
Command input
DTKY
EN
s
ENO
d1
d2
Beginning bit device
for entering numeric
key
Word device for storing data
Beginning bit device
for turning ON key
pushing information