Interrupt Program Activation Function; Overview Of Interrupt Program; Settings Of High-Speed Counter Unit - Panasonic FP7 User Manual

High-speed counter unit
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

9.1 Interrupt Program Activation Function

9.1.1 Overview of Interrupt Program

• The high-speed counter unit can activate interrupt programs of CPU using comparison
match flags.
• If the activation condition is met, the interrupt program of a corresponding program number
will be activated. Once the execution of the interrupt program is complete, the process
returns to the execution of the main program.
 Interrupt program specifications
Item
Interrupt program
activation condition
No. of interrupt
programs

9.1.2 Settings of High-speed Counter Unit

 Switch setting of the unit
For using the interrupt program activation function, it is necessary to set the switch on the side
of the unit. Refer to "2.1 Names and Functions of Parts".
 Configuration setting
Confirm if the comparison function has been set and the interrupt function has been set to
"Enable" in the configuration menu.
9.1.3 Overview of Interrupt Program
Use the following instructions to execute the interrupt program activation function.
 Instructions used for interrupt program activation.
Described area
Main program
Interrupt program
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Activates a corresponding interrupt program when the comparison match 0 flag and
comparison match 1 flag of each channel turns on.
Per 1 channel of high-speed
counter unit
Per 1 high-speed counter unit
Per 1 CPU unit
Instruction
EI
Allows the interrupt process for the CPU.
DI
Prohibits the interrupt process for the CPU.
IMASK
Allows or prohibits the interrupt process of each unit.
Clears the interrupt activation request signal that has not been processed
ICLR
on the unit side when the interrupt program activation is prohibited by DI
or IMASK instruction.
INTPG
It is described at the beginning of the interrupt program.
IRET
It is described at the end of the interrupt program.
Description
Max. 2 programs
Max. 4 programs (2-ch type High-speed counter unit)
Max. 8 programs (4-ch type High-speed counter unit)
Max. 64 programs (8 programs x 8 units)
Function

Advertisement

Table of Contents
loading

Table of Contents