Omron CQM1H - PROGRAM Programming Manual page 320

Programmable controllers; inner boards
Table of Contents

Advertisement

Conversion Instructions
Digit Designator
Flags
Example
00000
The digits of Di are set as shown below.
Digit number: 3 2 1 0
Some example Di values and the digit-to-word conversions that they produce
are shown below.
Di: 0010
S
0
1
2
3
Di: 0031
S
0
1
2
3
ER:
Undefined digit designator, or R plus number of digits exceeds a data
area.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
The following program converts digits 1 to 3 of data from DM 0020 to bit posi-
tions and turns ON the corresponding bits in three consecutive words starting
with HR 10. Digit 0 is not converted.
Specifies the first digit to be converted (0 to 3)
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
Not used (Set to zero)
Di: 0030
S
0
R
R + 1
1
2
3
Di: 0023
S
R
0
R + 1
1
R + 2
2
R + 3
3
Address Instruction
MLPX(76)
00000
LD
DM 0020
00001
MLPX(76)
#0021
HR 10
Section 5-20
R
R + 1
R + 2
R + 3
R
R + 1
R + 2
Operands
00000
DM
0020
#
0021
HR
10
295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents