![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268993.webp)
954
Basic I/O Unit Instructions
Section 3-23
Flags
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.
• Basic I/O Units or High-density I/O Units mounted in a SYSMAC BUS
Remote I/O Slave Rack
• 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 D00000 and D00001. The hexa-
decimal keypad is connected through CIO 0100 (allocated to a CS1W-ID211
16-point DC Input Unit) and CIO 0200 (allocated to a CS1W-OD211 16-point
Transistor Output Unit). D32000 is used as the system word.
3-23-8 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.
This instruction is supported only by CS/CJ-series CPU Unit Ver. 2.0 or later.
Ladder Symbol
Variations
Applicable Program Areas
Name
Label
Operation
Error Flag
ER
OFF
I
O
D
C
HKY(212)
0100
0200
D00000
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
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...