786
Basic I/O Unit Instructions Section 3-22
Precautions Do not read or write the system word (C) from any other instruction. HKY(212)
will not operate correctly if the system word is accessed by another instruc-
tion. The system word is not initialized by HKY(212) in the first cycle when
program execution starts. If HKY(212) is being used from the first cycle, clear
the system word from the program.
HKY(212) will not operate correctly if I/O refreshing is not performed with the
Input Unit and Output Unit connected to the hexadecimal keypad after
HKY(212) is executed. Consequently, do not connect the hexadecimal keypad
to the following Units.
• Communications Slaves (DeviceNet or CompoBus/S Slaves)
Example In this example, HKY(212) reads up to 8 digits of hexadecimal data from a
hexadecimal keypad and stores the data in D0 and D1. The hexadecimal key-
pad is connected through CIO 2 and CIO 102. D32000 is used as the system
word.
3-22-6 MATRIX INPUT: MTR(213)
Purpose Inputs up to 64 signals from an 8 × 8 matrix connected to an Input Unit and an
Output Unit (using 8 input points and 8 output points) and stores that 64-bit
data in the 4 destination words.
Ladder Symbol
Variations
Applicable Program Areas
I
O
D
C
HKY(212)
2
102
D0
D32000
P_On
Always ON Flag
MTR(213)
I
O
D
C
I: Input word
O: Output word
D: First destination word
C: System word
Variations Executed Each Cycle for ON Condition MTR(213)
Executed Once for Upward Differentiation Not supported.
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
Not allowed OK OK Not allowed