4-To-16 Decoder - Mlpx(76) - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Data Conversion
Flags
Example
00000
HR 12
5
HR 13
1
DM 0100
3
DM 0101
2
5-16-7
4-TO-16 DECODER – MLPX(76)
Limitations
Description
For the results, the seconds is placed in bits 00 through 07 and the minutes
is placed in bits 08 through 15 of R. The hours is placed in R+1. The maxi-
mum will be 9,999 hours, 59 minutes, and 59 seconds.
ER:
S and S+1 or R and R+1 are not in the same data area.
S and/or S+1 do not contain BCD or exceed 36,000,000 seconds.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
Turns ON when the result is zero.
When 00000 is OFF (i.e., when the execution condition is ON), the following
instruction would convert the seconds given in HR 12 and HR 13 to hours,
minutes, and seconds and store the results in DM 0100 and DM 0101 as
shown.
9
2
7
10,135,927 s
0
1
3
2
0
7
2,815 hrs, 32 min, 07 s
8
1
5
Ladder Symbols
MLPX(76)
S
Di
R
The rightmost two digits of Di must each be between 0 and 3.
All result words must be in the same data area.
When the execution condition is OFF, MLPX(76) is not executed. When the
execution condition is ON, MLPX(76) converts up to four, four-bit hexadeci-
mal digits from S into decimal values from 0 to 15, each of which is used to
indicate a bit position. The bit whose number corresponds to each converted
value is then turned ON in a result word. If more than one digit is specified,
Address Instruction
STH(66)
00000
HR 12
00001
DM 0100
000
@MLPX(76)
S
Di
R
Section 5-16
Operands
LD NOT
00000
STH(66)
HR
DM
0100
Operand Data Areas
S: Source word
IR, SR, AR, DM, HR, TC, LR
Di: Digit designator
IR, AR, DM, HR, TC, LR, #
R: First result word
IR, AR, DM, HR, LR
12
000
153

Advertisement

Table of Contents
loading

Table of Contents