7
- 1
7
PROGRAMMING
CHAPTER7 PROGRAMMING
This chapter describes programs using channel 1 of QD63P6, whose system configuration
example shown below, in the following two cases:
• GX Configurator-CT is used
• GX Configurator-CT is not used
When applying any of the program examples introduced in this chapter to the actual
system, verify the applicability and confirm that no problem occurs in the system control.
(1) System configuration
Figure 7.1 System configuration
(2) Setting conditions of the intelligent function module switch
Set the pulse input mode, counting speed setting, counter format, and present value
selection setting with the intelligent function module switch on GX Developer. (Refer
to Section 4.5.)
(3) Program conditions
This program uses the QD63P6 to perform counting on the conditions listed below.
* 1 Set this only when using the ring counter function.
* 2 Set this only when using the periodic pulse counter function.
Table 7.1 Setting conditions of the intelligent function module switch
Pulse input mode
Counting speed
setting
Present value
selection setting
CH1
1 multiple of 2 phases
200 kPPS
Present value A
Table 7.2 Initial setting
Item
Setting value
Preset value setting
2500
Coincidence detection point change request
Change request
Coincidence detection point setting
1000
Ring counter lower limit value
*1
-5000
Ring counter upper limit value *1
5000
Period setting
*2
500 (5000ms)
QX10 (X20 to X2F)
QY10 (Y30 to Y3F)
QD63P6
(X/Y0 to X/Y1F)