Four-Word Operating Mode - Omron SYSMAC C Series Operation Manual

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

Advertisement

User Programming Examples

9-5-2 Four-word Operating Mode

Writing Data
(Continued on next page)
184
Writing Default Data and Conversion Data
Example:
Parameters are set in RAM addresses 13 to 18 of the Analog Output Unit and,
100 ms later, data is set in RAM address 01 (when the Analog Output Unit is allo-
cated to words CIO 0002 to CIO 0005.)
Note Data is set by calculating a logical sum (OR) and reset by
Sets #0013 in D00112 (first RAM address).
Sets the value of D00113 OR #0001 in D00113 (see
note). (Enables scaling for output 1.)
Sets the value of D00113 AND #FEFF in D00113 (see
note). (Disables output ramp for output 1.)
Sets the value of D00114 OR #0100 in D00114 (see
note). (Sets BCD mode for output 1.)
Sets the value of D00114 AND #FFFE in D00114 (see
note). (Disables upper/lower limits for output 1.)
Sets the value of D00115 OR #0001 in D00115 (see
note). (Enables data for output 1.)
Sets #B000 (–3000) in D00117. (Scaling lower limit)
Sets #3000 in D00118. (Scaling upper limit)
Sets #0113 in D00199.
Increments the value of D00199 by 1 when the Analog
Output Unit Read Completed Flag (bit 06 of word n+3,
CIO 000506) is turned OFF.
Compares the value of D00199 with #0118, and turns
ON CIO 200001 if they match (or data up to D00118 has
been written).
calculating a logical product (AND) to make settings with-
out changing the previous values of other output points.
Writes the data memory value at the address
indicated by the value of D00199 to word n (word
0002). (indirect address)
Sets the rightmost byte of D00199 in the leftmost byte of
word n+1 (CIO 0003).
Turns ON CIO 200200 to set the Read/Write Request Bit
to Write.
Turns ON CIO 200300 to turn ON the PC Write
Completed Bit. Turns OFF this bit when the Analog
Output Unit Read Completed Flag (bit 06 of word n+3,
CIO 000506) turns ON.
Section
9-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents