Tky (Fnc 70) - Mitsubishi FX1S Series Programming Manual

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controlers
5.8.1

TKY (FNC 70)

Mnemonic
TKY
FNC 70
(
Ten key
input)
16 BIT OPERATION
Points to note:
a) When a source device becomes active its associated destination (bit) device D
becomes active. This destination device will remain active until another source device is
operated. Each source device maps directly to its own D
maps to D
destination data devices specified by D
b) One source device may be active at any one time. The destination device D
signify that a key (one of the 10 source devices) has been pressed. D
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
reset, but the data value in D
c) When the TKY instruction is used with 16 bit operation, D
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
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 zero's 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
identified as (e) is then pressed the value in D
become 1,309. The initial '2' has been lost.
Function
Reads 10 devices
X, Y, M, S
with associated
Note: uses 10
decimal values
consecutive
into a single
devices
number
(identified as
S
+0
32 BIT OPERATION
etc. These in turn, map directly to decimal values which are then stored in the
2+7
remains intact.
1
Operands
S
D
1
KnY, KnM,
KnS,
T, C, D, V, Z
Note: uses 2
consecutive
to S
)
devices for 32
+9
bit operation
Operation:
This instruction can read from 10 consecutive
devices(S
+0
numeric string in device D
.
1
. When the TKY is OFF, all of the D
1
. If the key
1
will
1
Applied Instructions 5
FX
FX
1N
1S
Program steps
D
2
Y, M, S
TKY:
Note: uses 11
7 steps
consecutive
devices
DTKY:
(identified
13 steps
D
to D
2+0
2+10)
PULSE-P
to S
) and will store an entered
+9
.
1
device, i.e. S
maps to D
2
+0
will remain active
2+10
can store numbers from 0 to
1
FX
FX
2N
2NC
also
2
, S
2+0
+7
is used to
2+10
devices are
2
and D
.
1
1+1
5-101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents