Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 815

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
SDEC
Instruction
7-SEGMENT DECODER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source word
Di
Digit designator
D
First destination word
Di: Digit designator
15
12 11
8 7
Di
0
1/0
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
Di
OK
OK
OK
D
Flags
Name
Error Flag
778
Mnemonic
Variations
SDEC
@SDEC
Block program areas
Step program areas
OK
OK
Description
4 3
0
m
n
First digit of S to convert (0 to 3)
0: Digit 0 (bits 0 to 3 of S)
1: Digit 1 (bits 4 to 7 of S)
2: Digit 2 (bits 8 to 11 of S)
3: Digit 3 (bits 12 to 15 of S)
Number of digits to convert
0 to 3: 1 to 4 digits
First half of D to receive converted data
0: Rightmost 8 bits (1st half)
1: Leftmost 8 bits (2nd half)
Not used; set to 0.
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
ER
• ON if settings in Di are not within the specified ranges.
• OFF in all other cases.
Function
code
Converts the hexadecimal contents of the desig-
nated digit(s) into 8-bit, 7-segment display code
078
and places it into the upper or lower 8-bits of the
specified destination words.
SDEC
SDEC(078)
S: Source word
S
Di: Digit designator
Di
D: First destination word
D
Subroutines
OK
Data type
UINT
UINT
UINT
addresses
Con-
stants
*DM
DR
*EM
---
OK
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
1
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents