Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 819

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Basic I/O Unit Instructions
Precautions
Example
3-22-6 MATRIX INPUT: MTR(213)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
786
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)
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.
P_On
Always ON Flag
Inputs up to 64 signals from an 8
Output Unit (using 8 input points and 8 output points) and stores that 64-bit
data in the 4 destination words.
MTR(213)
I
I: Input word
O
O: Output word
D
D: First destination word
C
C: System word
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
Not allowed
OK
HKY(212)
2
I
102
O
D0
D
D32000
C
8 matrix connected to an Input Unit and an
Step program areas
Subroutines
OK
Section 3-22
MTR(213)
Not supported.
Not supported.
Interrupt tasks
Not allowed

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents