Omron SYSMAC C Series Operation Manual page 118

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

Advertisement

User Programming Examples
Example 4: Configuring the
Averaging Function
Execution
condition
Q000501
Q000500
Latch
Q000501
Q000503
Q000502
Latch
Q000505
Q000503
Q000504
Latch
A50013
Always ON
This example shows how to configure the averaging function for specific input
points. Refer to 5-6-3 Averaging for information on using the averaging function.
(191)
WRIT
#0004
D00508
[
A50006
= Flag
[
WRIT
#0002
D00506
A50006
= Flag
[
WRIT
#0002
D00504
A50006
= Flag
(190)
[
READ
#0047
0003
Step 1: Set the averaging
Q0002
]
sample counts for input points
7, 8, and 9 in Unit memory
map locations 109, 110, and
111. The value is 25.
Q000500
D00508 = 0109 (pointer)
( )
D00509 = 0025
D00510 = 0025
Latch
D00511 = 0025
Q000501
( )
Step 2: Turn ON the
Q0002
]
averaging enable bits for input
points 7, 8, and 9 in Unit
memory map location 50.
Q000502
D00506 = 0050 (pointer)
D00507 = 01C0
( )
(0000 0001 1100 0000)
Latch
Q000503
( )
Step 3: Turn ON the input
]
Q0002
point enable bits for input
points 7, 8, and 9 in Unit
memory map location 47.
D00504 = 0047 (pointer)
Q000504
D00505 = 01C0
( )
(0000 0001 1100 0000)
Latch
Q000505
( )
]
Step 4: Read the first 47
DM00000
words from the Unit memory
map and store the values in
D00000 to D00046.
Section
5-7
103

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents