30
7 OPERATION EXAMPLES
7.2 Program Examples
Conditions in the program
This program reads digital output values from the A/D converter module's CH1, CH3, CH5, and CH7 where A/D conversion is
enabled.
The A/D conversion takes place in CH1 and CH7 by means of sampling processing; in CH3 by means of averaging
processing for 50 samples; and in CH5 by means of moving average for 10 samples.
Parameter settings
Perform initial settings in the parameter settings of the engineering tool. The auto refresh setting does not need to be changed
here.
For details on the parameter settings, refer to the following.
MELSEC iQ-R Channel Isolated Analog-Digital Converter Module User's Manual (Application)
Function
Setting item
CH1
CH2
CH3
CH4
CH5
CH6
CH7
CH8
Range switching
function
Input range setting
0 to 10V
0 to 10V
4 to 20mA
4 to 20mA
A/D conversion
enable/disable setting
function
A/D conversion enable/
disable setting
A/D
conversion
enable
A/D
conversion
disable
A/D
conversion
enable
A/D
conversion
disable
A/D
conversion
enable
A/D
conversion
disable
A/D
conversion
enable
A/D
conversion
disable
A/D conversion
method
Averaging process
specification
Sampling
processing
Count
average
Moving
average
Sampling
processing
Time average/Count
average/Moving
average/Primary delay
filter constant setting
50
10
Scaling function
Scaling enable/disable
setting
Disable
Disable
Enable
Disable
Scaling upper limit value
16000
Scaling lower limit value
2000
Shift function
Conversion value shift
amount
0
0
2000
0
Digital clipping
function
Digital clipping enable/
disable setting
Disable
Disable
Enable
Disable
Alert output function
(process alarm)
Alert output setting
(process alarm)
Disable
Enable
Disable
Disable
Process alarm upper
upper limit value
32000
Process alarm upper
lower limit value
28000
Process alarm lower
upper limit value
4000
Process alarm lower
lower limit value
0
Alert output function
(rate alarm)
Alert output setting (rate
alarm)
Enable
Disable
Disable
Disable
Rate alarm alert
detection cycle setting
400 times
Rate alarm upper limit
value
25.0%
Rate alarm lower limit
value
-50.0%
Input signal error
detection function
Input signal error
detection setting
Upper/
lower limit
detection
Disable
Disable
Disable
Input signal error
detection upper limit
setting value
8.0%
Input signal error
detection lower limit
setting value
8.0%
Summary of Contents for Melsec iQ-R60AD16-G
Page 2: ......
Page 18: ...16 1 PART NAMES MEMO ...
Page 24: ...22 4 PROCEDURES BEFORE OPERATION MEMO ...
Page 26: ...24 5 SYSTEM CONFIGURATION MEMO ...
Page 40: ...38 8 OFFSET GAIN SETTING 8 1 Setting Procedure 10 Click the Yes button ...
Page 49: ...I 47 MEMO ...
Page 55: ......