Omron SYSMAC C Series Operation Manual page 114

Analog i/o units
Hide thumbs Also See for SYSMAC C Series:
Table of Contents

Advertisement

User Programming Examples
Example 2: READ the Entire
Unit Memory Map into Data
Memory
Q000105
Q000101
Q000104
Q000112
Q000107
Q000105
Q000107
Q000106
Q000115
Q000109
Q000107
Q000109
Q000108
Q000112
Q000112
Q000109
Q000111
This example shows how to read the entire Unit Memory Map into the Data
Memory of the CPU Unit.
(030)
[
MOV
#0000
(191)
[
WRIT
#0001
D00154
(011)
A50006
[
KEEP
(190)
[
I0003
READ
#0047
(020)
A50006
]
[
CMP D00154
D00046
(011)
[
KEEP
(030)
[
MOV
#0046
(191)
[
WRIT
#0001
D00154
(011)
A50006
[
KEEP
(190)
[
READ
#0108
I0003
(020)
A50006
[
]
CMP D00154
D00046
Step 1: Using a 1-word write
]
D00154
instruction, set the pointer word to 0.
]
Q0002
Q000104
( )
]
Q000105
Step 2: Read the first 47 words from
]
D00000
the Unit memory map and store in
DM000 to DM0046. Confirm that the
Q000106
pointer was set to 0.
( )
A50006 Q000115
( )
]
Q000107
Step 3: Read complete
Step 4: Set pointer with word equal to
]
D00154
0046 using a 1-word write instruction.
]
Q0002
Q000108
( )
]
Q000109
Step 5: Read 108 words from the Unit
]
D00046
memory map beginning with word 46
and store in DM0046 DM015.
Q000111
( )
A50006
Q000112
( )
Section
5-7
99

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC C Series and is the answer not in the manual?

Questions and answers

Table of Contents