User Programming Examples; Two-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

User Programming Examples

9-5-1 Two-word Operating Mode

(= Flag)
182
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 0003.)
(= Flag)
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)
Writes 7 words to the Analog Output Unit using the value
of D00112 as the first RAM address.
Turns ON CIO 200001 when the WRIT instruction ends
normally.
Note Data is set by calculating a logical sum (OR) and reset by
calculating a logical product (AND) to make settings with-
out changing the previous values of other output points.
100-ms timer (delay timer for internal processing time of
Analog Output Unit)
Self-holding bit
Writes the parameter values of D00113 to D00118 to RAM
addresses 13 to 18 and, 100 ms later, turns ON the
Parameter Update Bit (bit 05 of word n+1).
Turns ON CIO 200003 when the Parameter Update Bit
turns ON (self-holding bit).
Sets #0001 in D00100.
Sets the value of D00201 in D00101.
Writes the value of D00101 to RAM address 01 (the
value of D00100).
Turns ON CIO 200005 when the WRIT instruction ends
normally.
Section
9-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents