Fnc 71 - Hky / Hexadecimal 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.2
FNC 71 – HKY / Hexadecimal Input
Outline
This instruction multiplexes four X-devices and four Y-devices to allow for 16 key (0 to F) 4-digit (byte) input.
Keys 0 to 9 stores numerical values, and keys A to F represent function keys.
When the extension function is set to ON, hexadecimal keys 0 to F all store their corresponding numerical
values.
1. Instruction format
FNC 71
D
HKY
2. Set data
Operand Type
S
D
1
D
2
D
3
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
3
: "D .b" cannot be indexed with index registers (V and Z).
Explanation of function and operation
1. 16-bit operation (HKY)
signals [
to
S
When a key 0 to 9 is pressed, the corresponding numeric value is shifted into
byte, and
+7 turns ON.
D
3
When a key A to F is pressed, the corresponding key press information bit [
+6 turns ON.
D
3
Command
input
FNC 71
Mnemonic
16-bit Instruction
9 steps
HKY
Head X device number to be used (Four devices occupied.)
Head Y device number to be used (Four devices occupied.)
Device number storing the numerical input from the 16 keys
Head bit device number storing the key pressing information
(Eight devices are occupied.)
Digit Specification
+3] and [
to
S
D
D
1
S
D
1
HKY
15 External FX I/O Device – FNC 70 to FNC 79
Operation Condition
32-bit Instruction
Continuous
17 steps
Operation
Description
Word Devices
Special
System User
Unit
V Z Modify K H
+3] connected to the 16 key input (0 to F) are scanned.
1
D
D
2
3
15.2 FNC 71 – HKY / Hexadecimal Input
Mnemonic
Operation Condition
Continuous
DHKY
Operation
Data Type
Bit
Bit
16- or 32-bit binary
Bit
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
from the least significant
D
2
to
+5] turns ON, and
D
D
3
3
11
12
13
14
15
Pointer
P
16
17
18
19
20
443

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents