EasyManuals Logo

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #221 background imageLoading...
Page #221 background image
FX Series Programmable Controlers Applied Instructions 5
5-101
5.8.1 TKY (FNC 70)
Operation:
This instruction can read from 10 consecutive
devices(S
+0 to S+9) and will store an entered
numericstringindeviceD
1.
Points to note:
a) When a source device becomes active its associated destination (bit) device D
2 also
becomes active. This destination device will remain active until another source device is
operated. Each source device maps directly to its own D
2 device, i.e. S+0 maps to D2+0,S+7
maps to D2+7 etc. These in turn, map directly to decimal values which are then stored in the
destination data devices specified by D
1.
b) One source device may be active at any one time. The destination device D
2+10 is used to
signify that a key (one of the 10 source devices) has been pressed. D
2+10 will remain active
for as long as the key is held down. When the TKY instruction is active, every press of a key
adds that digit to the stored number in D
1. When the TKY is OFF, all of the D2 devices are
reset, but the data value in D
1 remains intact.
c) When the TKY instruction is used with 16 bit operation, D
1 can store numbers from 0 to
9,999 i.e. max. 4 digits. When the DTKY instruction is used (32 bit operation) values of 0 to
99,999,999 (max. 8 digits) can be accommodated in two consecutive devices D
1and D1+1.
In both cases if the number to be stored exceeds the allowable ranges, the highest digits
will overflow until an allowable number is reached. The overflowed digits are lost and can
no longer be accessed by the user. Leading zeros are not accommodated, i.e. 0127 will
actually be stored as 127 only.
d) The TKY instruction may only be used ONCE.
e) Using the above instruction as a brief example: If the
keys identified (a) to (d) are pressed in that order
the number 2,130 will be entered into D
1.Ifthekey
identified as (e) is then pressed the value in D
1 will
become 1,309. The initial 2 has been lost.
Mnemonic Function
Operands
Program steps
SD
1 D2
TKY
FNC 70
(
Ten key
input)
Reads 10 devices
with associated
decimal values
into a single
number
X, Y, M, S
Note: uses 10
consecutive
devices
(identified as
S
+0 to S+9)
KnY, KnM,
KnS,
T, C, D, V, Z
Note: uses 2
consecutive
devices for 32
bit operation
Y, M, S
Note: uses 11
consecutive
devices
(identified
D
2+0 to D2+10)
TKY:
7steps
DTKY:
13 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X30
X 0 D 0
[ S ]
[ D2 ]
M 10TKY
[ D1 ]
M10
M11
M12
M13
M20
(a) (b) (c) (d)
(a)
(b)
(c)
(d)
X0
X1
X2
X3
.
.
.
X11X0 X1 X2 X3 X4 X524V 0V S/S X6 X7
0 1 2 3 4 5 6 7 8 9
X10
(a)(b) (c)(d) (e)
Example key connections
Input 'keys'and their decimal values

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
Programming LanguageLadder Logic
Output TypeRelay, Transistor
Operating Temperature0 to 55°C
Power Supply100-240V AC or 24V DC
Program Capacity8K steps
Communication PortsRS-422
Data Memory8000 words
High-speed CountersUp to 6 channels
Expansion ModulesAvailable
Pulse Output2 points

Related product manuals