Omron SYSMAC C Series Operation Manual page 198

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

Advertisement

User Programming Examples
Incremented by INC
Reading Data
Example:
Data is read from RAM addresses 01 to 18 of the Analog Output Unit to address-
es D00001 to D00018 (when the Analog Output Unit is allocated to words
CIO 0002 to CIO 0005).
Specifies
Sets #0001 in D00197 (default).
Turns ON CIO 200101 for 1 cycle when the PC Read
Completed Bit (bit 07 of word n+1, CIO 000307) turns
OFF.
Increments the value of D00197 by 1 each time
CIO200101 turns ON.
Compares the value of D00197 with #0018, and turns ON
CIO 200102 if they match (or data up to D00018 has been
written).
Sets the rightmost byte of D00197 in the leftmost byte of
word n+1 (CIO 0003).
When the Analog Output Unit reads data from RAM
address, bit 06 of word n+3 (CIO 000506) turns ON to
latch CIO 200103.
Also, when the Analog Output Unit Write Completed Flag
(bit 07 of word n+3, CIO 000507) turns ON, data is written
from word n+2 (CIO 0004) to the address indicated by the
value of D00197 in the data memory (indirect address). At
the same time, bit 07 of word n+1 (CIO 0003) is turned
ON.
Analog Output Unit
Address
Section
9-5
187

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