Program Examples - Mitsubishi Electric MELSEC iQ-R Series User Manual

Programmable controller
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

7.2

Program Examples

System configuration
The following figure shows an example of the system configuration.
(1)
(1) Power supply module (R61P)
(2) CPU module (R04CPU)
(3) Pulse input module (RD60P8-G)
(4) Input module (RX10)
Program conditions
This example shows a program that counts the pulses input to CH1 of the pulse input module.
Parameter settings
Make the initial settings in the module parameter 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 Pulse Input Module User's Manual (Application)
Function
Input voltage selection
Pulse edge selection
Linear counter/ring counter selection
Input filter setting
Comparison output function
Pre-scale function
Moving average function
Count cycle change function
Warning output function
Counter reset function
Set default values for the parameters of CH2 to CH8.
7 OPERATION EXAMPLES
30
7.2 Program Examples
(2)
(3)
(4)
Setting item
Input voltage selection
Pulse edge selection
Linear counter/ring counter selection
Input filter setting
Comparison output selection
Comparison output setting value
Pre-scale function selection
Pre-scale setting value
Moving average processing selection
Number of times of moving average processing
Count cycle change function selection
Count cycle setting value
Warning output selection
Warning output setting value upper/upper limit
Warning output setting value upper/lower limit
Warning output setting value lower/upper limit
Warning output setting value lower/lower limit
Preset setting value for accumulating count value
Setting value of CH1
0: 12 to 24VDC
0: Pulse up edge
0: Linear counter
0: 30kpps
1: Comparison output function valid
500000
3: 0.01
252
1: Moving average processing
10 times
0: Count cycle change function invalid
0: 1s
1: Warning output function valid
1100
1000
600
500
0

Advertisement

Table of Contents
loading

Table of Contents