EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 179

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
139
Basic I/O Unit Instructions
Section 3-21
7-SEGMENT
DECODER
SDEC
@SDEC
078
Output
Required
DIGITAL SWITCH
INPUT
DSW
210
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
Reads the value set on an external digital switch (or thumbwheel
switch) connected to an Input Unit or Output Unit and stores the 4-digit
or 8-digit BCD data in the specified words.
Output
Required
TEN KEY INPUT
TKY
211
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
Reads numeric data from a ten-key keypad connected to an Input Unit
and stores up to 8 digits of BCD data in the specified words.
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
SDEC(078)
S
Di
D
S: Source word
Di: Digit
designator
D: 1st destination
word
Number of digits
Rightmost 8 bits (0)
Di
7-segment
Converts the hexadecimal contents of the designated digit(s) into
8-bit, 7-segment display code and places it into the upper or lower
8-bits of the specified destination words.
First digit to convert
DSW (210)
I
O
D
C1
C2
I: Data i
nput
word
(D0 to D3)
O:
Output word
D:
1st result
word
C1:
C2:
S
y
stem word
Number of
digits
TKY (211)
I
D1
D2
I: Data input
word
D1: 1st register
word
D2: Key input
word

Table of Contents

Related product manuals