Mitsubishi MELSEC QCPU Programming Manual page 278

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
POINTS
(1) The SPD instruction registers the data from the argument device in the CPU module work
area, and the actual count operation is conducted during a system interrupt.
(The device data registered to the work area of the CPU module are cleared when the
command input is turned OFF or when the CPU module is STOPped and then RUN.)
Therefore, to count the pulses, it is necessary to provide their ON and OFF time as long as
the interrupt time of the CPU module or longer.
The interrupt time of individual CPU module is shown below:
High Performance model QCPU, Process CPU
(2) • When QCPU is used:
The instruction is not processed when n=0.
• When QnACPU is used:
The instruction is not processed when n=0 or when n is not a multiple of 5.
(3) The SPD instruction can be used as many as 6 times within all the programs being
executed.
The seventh and the subsequent SPD instructions are not processed.
[Operation Errors]
(1) There are no operation errors associated with the SPD instruction.
[Program Example]
(1) The following program measures the pulses input to X0 for a period of 500 ms when X10 goes
ON, and stores the result at D0.
[Ladder Mode]
6 - 127
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
CPU module Type Name
QnACPU
[List Mode]
Steps
MELSEC-Q/QnA
Interrupt Time
1ms
5ms
Instruction
Device
6 - 127

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents