Omron SYSMAC CP Series Instruction & Reference Manual page 228

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

Advertisement

2 Instructions
8-to-256 bit conversion
S: Source Word
15
8
7
Digit 1
S
Digits from the starting digit going left are
decoded
(Returns to digit 0 after digit 1)
C: Control Word
15
12
11
8
7
C
1
Always 0.
Conversion process
1: 8-to-256 bits (byte to 16-word range)
Operand Specifications
Area
CIO
WR
HR
S
C
OK
OK
OK
R
Flags
Name
Error Flag
Function
MLPX(076) can perform 4-to-16 bit or 8-to-256 bit conversions. Set the leftmost digit of C to 0 to specify
4-to-16 bit conversion and set it to 1 to specify 8-to-256 bit conversion.
4-to-16 bit Conversion
When the leftmost digit of C is 0,
MLPX(076) takes the value of the speci-
fied digit in S (0 to F) and turns ON the
corresponding bit in the result word. All
other bits in the result word will be turned
OFF. Up to four digits can be converted.
2-192
0
Digit 0
4
3
0
l
n
Specifies the first digit/byte to be converted
0 or 1 (byte 0 or 1)
Number of digits/bytes to be converted
0 or 1 (1 or 2 bytes)
Word addresses
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
• ON if C is not within the specified ranges.
• OFF in all other cases.
R: First Result Word
D+15 to D: Decoding result of 1st digit of decoded digits
D+31 to D+16:
Decoding result of 2nd digit of decoded digits
Note The result words must be in the same data area.
Indirect DM addresses
Constants
@DM
*DM
---
OK
OK
OK
---
Operation
R=1 (Convert 2 digits.)
l
n
S
p
m
4-to-16 bit decoding
(Bit m of R is turned ON.)
15
p
m
1
R
R+1
1
CP1E CPU Unit Instructions Reference Manual(W483)
CF
Pulse bits
---
---
C
0
l
n
n=2 (Start with third digit.)
0
TR bits
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents