Omron SYSMAC C20K Operation Manual page 128

K-type programmable controllers
Hide thumbs Also See for SYSMAC C20K:
Table of Contents

Advertisement

Data Conversion
Flags
Example
0000
S: DM 20
0
DM 00
2
1
DM 01
2
2
DM 02
2
3
DM 03
2
0
DM 04
1
2
1
DM 05
1
2
1
2
DM 06
1
2
3
DM 07
1
2
0
DM 08
0
2
1
DM 09
1
2
2
2
DM 10
1
2
3
DM 11
0
2
0
DM 12
0
2
1
DM 13
0
2
3
2
DM 14
0
2
3
DM 15
0
2
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.
The following program converts three digits of data from DM 20 to bit posi-
tions and turns ON the corresponding bits in three consecutive words starting
with HR 1.
R: HR 1
HR 100
Not
HR 101
Converted
HR 102
HR 103
HR 104
15
HR 105
HR 106
HR 107
HR 108
6
HR 109
HR 110
HR 111
HR 112
0
HR 113
HR 114
HR 115
R
R + 1
R
R + 1
R + 2
R + 3
Address
MLPX(76)
0000
DM 20
0001
#0021
HR 1
R+1: HR 2
0
HR 200
0
HR 201
0
HR 202
0
HR 203
0
HR 204
0
HR 205
0
HR 206
0
HR 207
0
HR 208
0
HR 209
0
HR 210
0
HR 211
0
HR 212
0
HR 213
0
HR 214
1
HR 215
Section 5-15
Di : 0030
S
R
0
R + 1
1
R + 2
2
R + 3
3
Di : 0023
S
R
0
R + 1
1
R + 2
2
3
Instruction
Operands
LD
MLPX(76)
DM
#
HR
R+2: HR 3
0
HR 300
0
HR 301
0
HR 302
0
HR 303
0
HR 304
0
HR 305
1
HR 306
0
HR 307
0
HR 308
0
HR 309
0
HR 310
0
HR 311
0
HR 312
0
HR 313
0
HR 314
0
HR 315
0000
20
0021
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
117

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c40kSysmac c60kSysmac c28k

Table of Contents