8 - 1 8 - 1
MELSEC-Q
8 PROGRAMMING
8 PROGRAMMING
This chapter describes programs of the QD62 (E/D).
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.
8.1 Using Programs in Normal System Configuration
This section describes program examples based on the following system configuration
and conditions.
(1) System configuration
QX10 (X10 to X1F)
QY10 (Y20 to Y2F)
QD62
(X/Y0 to X/YF)
(2) Setting conditions of the intelligent function module switch
Set the pulse input mode, counting speed setting, and counter format with the
intelligent function module switch on GX Developer. (See Section 4.5.)
Channel Pulse input mode Counting speed setting Counter format
CH1 2-phase multiple of 1 200 kPPS User setting
(3) Program conditions
This program uses QD62 to perform counting with the conditions listed below.
Item Setting value
Preset value 2500
Coincidence output point No. 1 1000
Ring counter minimum value 1 –5000
Ring counter maximum value 1 5000
Sampling time setting 2 10000 ms
Periodic pulse time setting 3 5000 ms
1 Set only when a ring counter function is used
2 Set only when the sampling counter function is used
3 Set only when the periodic pulse counter function is used
POINT
Programs that were used in earlier products such as A1SD62(E/D/D-S1) cannot be
used because the I/O signals and the buffer memory configuration of these
products differ from those of QD62(E/D). The conventional dedicated instructions
cannot be used.
8