Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 991

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

Advertisement

Basic I/O Unit Instructions
Description
Area
Indirect DM/EM
*D00000 to *D32767
addresses in BCD
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
Data Registers
DR0 to DR15
Index Registers
---
Indirect addressing
,IR0 to ,IR15
using Index Regis-
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
ters
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
HKY(212) outputs the selection signals to bits 00 to 03 of O, reads the data in
order from bits 00 to 03 of I, and stores up to 8 digits of hexadecimal data in
register words D and D+1.
HKY(212) inputs each digit in 3 to 12 cycles, and then starts over and contin-
ues inputting. In addition, each time that a key is pressed, the corresponding
bit in D+2 (0 to F) will be turned ON and remains ON until another key is
pressed.
HKY(212) determines which key is pressed by identifying which input is ON
when a given selection signal is ON, so it can take anywhere from 3 to 12
cycles for one hexadecimal digit to be read. After the key input is read,
HKY(212) starts over and reads another digit in the next 3 to 12 cycles.
When executed, HKY(212) begins reading the key input data from the first
selection signal, regardless of the point at which the last instruction was
stopped.
The two-word register in D
When a key is pressed on the ten-key keypad, the corresponding hexadeci-
mal digit is shifted into the least significant digit of D
D
+1 are shifted left and the most significant digit of D
1
When one of the keypad keys is being pressed, input from the other keys is
disabled.
There is no restriction on the number of times that HKY(212) can appear in
the program (unlike the CQM1H Series).
I
O
---
and D
+1 operates as an 8-digit shift register.
1
1
Section 3-23
D
C
DR0 to DR15
. The other digits of D
1
+1 is lost.
1
951
,
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents