DL06 Micro PLC User Manual, 3rd Edition, Rev. E
xix
Table of Contents
Program Example 3: Counter With Preload ............................................................ E–21
Troubleshooting Guide for Mode 10 ...................................................................... E–23
Symptom: The counter does not count. ................................................................. E–23
Symptom: The counter counts but the presets do not function. ............................ E–23
Symptom: The counter counts up but will not reset. ............................................. E–23
Mode 20: Up/Down Counter ..................................................................................E–24
Purpose .................................................................................................................. E–24
Functional Block Diagram ....................................................................................... E–24
Quadrature Encoder Signals ................................................................................... E–25
Wiring Diagram ...................................................................................................... E–25
Interfacing to Encoder Outputs .............................................................................. E–26
Setup for Mode 20 ................................................................................................. E–27
Presets and Special Relays ...................................................................................... E–27
X Input Configuration ............................................................................................ E–28
Mode 20 Up/Down Counter .................................................................................. E–28
Writing Your Control Program ................................................................................ E–29
Program Example 1: Quadrature Counting with an Interrupt ................................. E–30
Program Example 2: Up/Down Counting with Standard Inputs ............................. E–32
Program Example 3: Quadrature Counting ............................................................ E–34
Troubleshooting Guide for Mode 20 ...................................................................... E–37
Symptom: The counter does not count. ................................................................. E–37
Symptom: The counter counts in the wrong direction .......................................... E–37
Symptom: The counter counts up and down but will not reset. ............................. E–37
Mode 30: Pulse Output ...........................................................................................E–38
Purpose .................................................................................................................. E–38
Functional Block Diagram ....................................................................................... E–39
Wiring Diagram ...................................................................................................... E–40
Interfacing to Drive Inputs ...................................................................................... E–40
Motion Profile Specifications .................................................................................. E–41
Physical I/O Configuration ...................................................................................... E–41
Logical I/O Functions ............................................................................................. E–41
Setup for Mode 30 ................................................................................................. E–42
Profile/Velocity Select Register ................................................................................ E–43
Profile Parameter Table ........................................................................................... E–43
Automatic Trapezoidal Profile ................................................................................. E–43
Step Trapezoidal Profile .......................................................................................... E–44
Velocity Control ..................................................................................................... E–44