Sdec - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions

SDEC

Instruction
7-SEGMENT DECODER
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
S
Source word
Di
Digit designator
D
First destination word
Di: Digit designator
15
12 11
8 7
0
1/0
Di
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
Di
OK
OK
OK
D
Flags
Name
Error Flag
2-354
Mnemonic
Variations
SDEC
@SDEC
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.
AR
T
C
DM
OK
OK
OK
OK
Label
P_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
Indirect DM addresses
Constants
@DM
*DM
---
OK
OK
OK
---
Operation
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Interrupt tasks
OK
Size
1
1
Variable
CF
Pulse bits
TR bits
---
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents