Programming; For Use In Normal System Configuration - Mitsubishi Electric Melsec Q Series User Manual

Analog-digital converter module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

6

PROGRAMMING

6 PROGRAMMING

6.1 For Use in Normal System Configuration

6
6 - 1
This chapter describes the programs of the A/D converter module.
When applying any of the program examples introduced in this chapter to the actual
system, verify the applicability and confirm that no problems will occur in the system
control.
System configuration used in the program explanation
(1)
System configuration
X/Y0
X10
to
to
X1F
X/YF
Perform the following intelligent function module switch settings in advance.
• Switch 1 0430
(CH1: 4 to 20mA, CH2: 0 to 5V, CH3: -10 to 10V)
H
• Switch 2 Empty
• Switch 3 Empty
• Switch 4 0000
(Normal mode (A/D conversion processing))
H
• Switch 5 0000
(0: Fixed)
H
(2)
Program conditions
This program reads the digital output values that have been A/D converted using
CH 1 to CH3 of the Q64AD. CH1 performs sampling processing, CH2 performs
averaging processing every 50 times, and CH3 performs averaging processing
every 1000 ms. Error code appears in BCD format if a write error occurs.
(a)
Contents of initial setting
• A/D conversion enable channel
........................................ CH1 to CH3
• Channel performing averaging processing using number of times
........................................ The average number of times set for CH2 is 50.
• Channel performing averaging processing using time
........................................ The average time set for CH3 is 1000 ms
(b)
Devices used by the user
• Error reset signal .............................................................. X10
• Input signal for Digital output value read command ........ X11
• Error code display (3-digit BCD) ...................................... Y20 to Y2B
• CH1 Digital output value .................................................. D11
• CH2 Digital output value .................................................. D12
• CH3 Digital output value .................................................. D13
• Error code ...................................................................... D14
Y20
to
Y2F
MELSEC-Q
6 - 1

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Melsec q64adMelsec q68advMelsec q68adi

Table of Contents