Mitsubishi Q64AD User Manual Page 90

  • Download
  • Add to my manuals
  • Print
  • Page
    / 164
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 89
6 - 1 6 - 1
MELSEC-Q
6 PROGRAMMING
6
6 PROGRAMMING
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.
6.1 For Use in Normal System Configuration
System configuration used in the program explanation
(1) System configuration
Power supply module
QnCPU
Q64AD
QX10
QY10
X/Y0
to
X/YF
X10
to
X1F
Y20
to
Y2F
Perform the following intelligent function module switch settings in advance.
• Switch 1 0030
H
(CH1: 4 to 20mA, CH2: 0 to 5V, CH3: -10 to 10V)
• Switch 2 Empty
• Switch 3 Empty
• Switch 4 0000
H
(Nomal mode (A/D conversion processing))
• Switch 5 0000
H
(0: Fixed)
(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. An 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
Page view 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 163 164

Comments to this Manuals

No comments