14 Applied Instructions (External FX I/O Device)
14.1 TKY / Ten Key Input
354
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation(TKY)
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 9,999, the value overflows from the higher digits.
- The entered numerical value is stored in the BIN (binary) value.
- In the diagram of next page, when numeric keys are pressed in the sequence of 1, 2, 3, 4, then "2,130"
is stored in the device designated in .
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.
The diagram below shows an example of FX
3U PLC (sync
input). As for the wiring, see the manual of each PLC.
Command input
TKY
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
+1
1
2
3
4
1234
Key sense output
+2
+3
+9
+1
+2
+3
+9
+10
Numeric key inputKey pushing information
2,130 is stored in .
d1
s
s
s
s
s
d2
d2
d2
d2
d2
d2
PLC
567812340 9Numeric key
s
+1
s
+4
s
+3
s
+2
s
+5
s
+8
s
+7
s
+6
s
+9
s
24V 0V S/S