Mitsubishi Electric MELSEC FX3U Programming Manual page 447

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
2. 32-bit operation (DHKY)
Hexadecimal numerical value data input using keys 0 to F is shifted into [
significant byte.
1) Input of a numeric value using keys 0 to F:
- When the input value is larger than "FFFFFFFF", it overflows from the most significant digit.
- Example:
When "9 → 2 → 3 → B → F → A → F" is input, numerical value "923BFAF" is stored in [
in binary.
Command
input
Related devices
Device
M8167
Extension function flag
Instruction execution
M8029
complete flag
Cautions
1. Limitation in the number of instructions
HKY or DHKY instruction can be used only once in a program.
When TKY and/or DTKY instruction should be used two or more times, use the indexing (V, Z) function.
2. When two or more keys are pressed at the same time
In such a case, the first key pressed is valid.
3. When the command contact turns OFF
Though the contents of
4. Number of devices occupied
1) Four devices are occupied from the head X device
2) Four devices are occupied from the head Y device
3) Eight devices are occupied from the head device
Make sure that these devices are not used by other machine controls.
-
to
D
D
3
-
+6: Key sensing output for the keys A to F
D
3
-
+7: Key sensing output for the keys 0 to 9
D
3
5. Key input receiving timing
HKY and DHKY instructions are executed in synchronization with the operation cycle of the PLC.
8 scan cycles are required to finish reading the keys.
To prevent key input receiving errors caused by the filter delay, utilize the "constant scan mode" and "timer
interrupt" function.
6. Output format
Use a transistor output type PLC.
M8167
FNC 71
S
D
DHKY
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Name
Turns ON/OFF the hexadecimal data handling function of HKY (FNC 71) instruction.
OFF: Ten-keys and function keys
ON:
Hexadecimal keys
OFF: Data is being output to
ON:
A cycle operation of outputting data to
F) is completed.
do not change,
D
2
+5: Key pressing information for the keys A to F
3
15 External FX I/O Device – FNC 70 to FNC 79
D
D
1
2
3
Description
D
to
D
1
1
to
+7 turn OFF.
D
D
3
3
for connecting 16 keys.
S
for connecting 16 keys.
D
1
for outputting the key pressing information.
D
3
15.2 FNC 71 – HKY / Hexadecimal Input
+1,
] from the least
D
D
2
2
+1,
D
2
+3 or the instruction is not executed yet.
D
to
D
+3 (scan of the keys 0 to
1
1
11
12
]
D
2
13
14
15
16
17
18
19
20
445

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents