Hexadecimal Key Input - Hky(212) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Basic I/O Unit Instructions
Timing Chart
I
00
01
02
to
09
D
2
00
01
02
to
09
10
(1)
Flags
Precautions
Example
3-23-7 HEXADECIMAL KEY INPUT – HKY(212)
Purpose
948
Input from 10-key
Turn ON flags corre-
sponding to 10-key
inputs (The flags re-
main ON until the
next input.)
ON if a key is pressed.
(2)
(3)
(4)
Name
Error Flag
TKY(211) will not operate correctly if I/O refreshing is not performed Input Unit
connected to the ten-key keypad after TKY(211) is executed. Consequently,
set the input time constant for the Input Units used for the data line input word
to a value that is shorter than the cycle time, or do not connect the ten-key
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)
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 0100 (allocated to a CS1W-ID211 16-point DC Input Unit).
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.
This instruction is supported only by CS/CJ-series CPU Unit Ver. 2.0 or later.
Before
0 0 0 0 0 0 0 0
execution
0 0 0 0 0 0 0 1
(1)
(2)
0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 2
(3)
(4)
0 0 0 0 1 0 2 9
Label
ER
OFF
P_On
Always ON Flag
Section 3-23
D
+1
D
1
1
"1" key input
"0" key input
"2" key input
"9" key input
Operation
TKY(211)
I
0100
D
0200
1
D
D00000
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents