Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 179

Programmable controllers
Table of Contents

Advertisement

Basic I/O Unit Instructions
Instruction
Symbol/Operand
Mnemonic
Code
7-SEGMENT
SDEC(078)
DECODER
SDEC
@SDEC
078
S: Source word
Di: Digit
designator
D: 1st destination
word
DIGITAL SWITCH
INPUT
DSW (210)
DSW
210
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
I:
Data i nput
word
(D0 to D3)
O: Output word
D: 1st result
word
C1:
Number of
digits
C2: System word
TEN KEY INPUT
TKY (211)
TKY
211
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
I:
Data input
word
D1: 1st register
word
D2: Key input
word
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.
S
Di
D
7-segment
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.
I
O
D
C1
C2
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.
I
D1
D2
Function
Di
Number of digits
First digit to convert
Rightmost 8 bits (0)
Section 3-21
Location
Execution condition
Output
Required
Output
Required
Output
Required
139

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 12-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents