7-20
Section
Conversion Instructions
443
Some example Di values and the digit-to-word conversions that they produce
are shown below.
0
1
2
3
R
R + 1
R
R + 1
R + 2
0
1
2
3
0
1
2
3
0
1
2
3
R
R + 1
R + 2
R + 3
R
R + 1
R + 2
R + 3
S
Di: 0031
Di: 0023
Di: 0030
Di: 0010
S
S
S
Flags
ER:
Undefined digit designator, or R plus number of digits exceeds a data
area.
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD or the DM area boundary has been exceeded.)
The following program converts digits 1 to 3 of data from DM 0020 to bit positions
and turns ON the corresponding bits in three consecutive words starting with HR
10. Digit 0 is not converted.
00000
MLPX(76)
DM 0020
#0021
HR 10
Address
Instruction
Operands
00000
LD
00000
00001
MLPX(76)
DM
0020
#
0021
HR
10
S: DM 0020
R: HR 10
R+1: HR 11
R+2: HR 12
DM 0020
00
HR 1000
0
HR 1100
0
HR 1200
1
DM 0020
01
HR 1001
0
HR 1101
0
HR 1201
0
DM 0020
02
HR 1002
0
HR 1102
0
HR 1202
0
DM 0020
03
HR 1003
0
HR 1103
0
HR 1203
0
DM 0020
04
1
HR 1004
0
HR 1104
0
HR 1204
0
DM 0020
05
1
HR 1005
0
HR 1105
0
HR 1205
0
DM 0020
06
1
HR 1006
0
HR 1106
1
HR 1206
0
DM 0020
07
1
HR 1007
0
HR 1107
0
HR 1207
0
DM 0020
08
0
HR 1008
0
HR 1108
0
HR 1208
0
DM 0020
09
1
HR 1009
0
HR 1109
0
HR 1209
0
DM 0020
10
1
HR 1010
0
HR 1110
0
HR 1210
0
DM 0020
11
0
HR 1011
0
HR 1111
0
HR 1211
0
DM 0020
12
0
HR 1012
0
HR 1112
0
HR 1212
0
DM 0020
13
0
HR 1013
0
HR 1113
0
HR 1213
0
DM 0020
14
0
HR 1014
0
HR 1114
0
HR 1214
0
DM 0020
15
0
HR 1015
1
HR 1115
0
HR 1215
0
15
6
0
Not
Converted
Example
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...