Fnc 70 - Tky / Ten Key Input - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
15.1
FNC 70 – TKY / Ten Key Input
Outline
This instruction sets data to timers and counters through inputs of the ten keys from "0" to "9".
1. Instruction format
FNC 70
D
TKY
2. Set data
Operand Type
S
D
1
D
2
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
1
D
2
: "D .b" cannot be indexed with index registers (V and Z).
Explanation of function and operation
1. 16-bit operation (TKY)
stores a numeric value input from
D
1
key pressing and key sensing are output to
1) Input numeric value
- When an input value is larger than "9999", it overflows from the most significant digit.
- An input numeric value is stored in the binary format.
- When the ten keys are pressed in the order "[1] → [2] → [3] → [4]" in the figure shown on the next page,
"2130" is stored in
Mnemonic
16-bit Instruction
7 steps
TKY
Head bit device number from which one of the ten keys is input [10 devices are
occupied]
Word device number storing the data
Head bit device number storing the key pressing information [11 devices are
occupied]
Digit Specification
S
D
1
.
D
1
15 External FX I/O Device – FNC 70 to FNC 79
Operation Condition
32-bit Instruction
Continuous
13 steps
Operation
Description
Word Devices
Special
System User
Unit
V Z Modify K H
to
+9 connected to the ten keys. Output informations for
S
to
+10.
D
D
2
2
15.1 FNC 70 – TKY / Ten Key Input
Mnemonic
Operation Condition
Continuous
DTKY
Operation
Data Type
Bit
16- or 32-bit binary
Bit
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
11
12
13
14
15
Pointer
P
16
17
18
19
20
439

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents