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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Basic I/O Unit Instructions
Precautions
Example
3-22-5 HEXADECIMAL KEY INPUT – HKY(212)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
782
TKY(211) will not operate correctly if I/O refreshing is not performed with the
Input Unit connected to the ten-key keypad after TKY(211) is executed. Con-
sequently, do not connect the ten-key keypad to the following Units.
• Communications Slaves (DeviceNet or CompoBus/S Slaves)
In this example, TKY(211) reads key inputs from a ten-key keypad and stores
the inputs in CIO 200 and CIO 201. The ten-key keypad is connected to CIO
2.
P_On
Always ON Flag
Reads numeric data from a hexadecimal keypad connected to an Input Unit
and Output Unit and stores up to 8 digits of hexadecimal data in the specified
words.
HKY(212)
I
I: Input word
O
O: Output word
D
D: First register 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
I: Input Word (Data Line D0 to D3 Inputs)
Specify the input word allocated to the Input Unit and connect the hexadeci-
mal keypad's D0 to D3 data lines to the Input Unit as shown in the following
diagram.
15
14
13
12
11
10
9
8
7
I
TKY(211)
2
I
200
D
1
D
D0
2
Step program areas
Subroutines
OK
6
5
4
3
2
1
0
0
1
Bits 00 to 03 correspond
2
to Input Unit inputs 0 to 3.
3
Section 3-22
HKY(212)
Not supported.
Not supported.
Interrupt tasks
Not allowed

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents