Omron CJ2 CPU UNIT SOFTWARE User Manual page 543

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Instruction
Mnemonic
Code
7-SEGMENT
SDEC
078
DECODER
@SDEC
DIGITAL
DSW
210
SWITCH
INPUT
TEN KEY
TKY
211
INPUT
HEXADECI-
HKY
212
MAL KEY
INPUT
MATRIX
MTR
213
INPUT
CJ2 CPU Unit Software User's Manual
Symbol/Operand
Converts the hexadecimal contents of the designated
SDEC(078)
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
S: Source word
Di: Digit designator
D: 1st destination
word
7-segment
1: Leftmost 8 bits
Reads the value set on an external digital switch (or thumbwheel
DSW (210)
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
I:
Data i nput
word (D0 to D3)
O: Output word
D: 1st result word
C1:
Number of
digits
C2: System word
Reads numeric data from a ten-key keypad connected to an Input
TKY (211)
Unit and stores up to 8 digits of BCD data in the specified words.
I
D1
D2
I:
Data input word
D1: 1st register word
D2: Key input word
Reads numeric data from a hexadecimal keypad connected to an
HKY (212)
Input Unit and Output Unit and stores up to 8 digits of hexadeci-
mal data in the specified words.
I
O
D
C
I:
Data input
word
O: Output word
D: 1st register
word
C: System word
Inputs up to 64 signals from an 8 × 8 matrix connected to an Input
MTR (213)
Unit and Output Unit (using 8 input points and 8 output points)
and stores that 64-bit data in the 4 destination words.
I
O
D
C
I:
Data input
word
O: Output word
D: 1st destination
word
C: System word
Function
Di
Number of digits
First digit to convert
Rightmost 8 bits (0)
0: Rightmost 8 bits
Appendices
Execution
Location
condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
A-59

Advertisement

Table of Contents
loading

Table of Contents