I/O Allocation; Instructions Used With High-Speed Counter Function - Panasonic FP E Series User Manual

Table of Contents

Advertisement

6.3.4 I/O Allocation

• As shown in the table in the previous section "6.2.1", the inputs and outputs used will differ depending
on the channel number being used.
• The output turned on and off can be specified from Y0 to Y7 as desired with instructions F166 (HC1S)
and F167 (HC1R).
When using CH0 with incremental input and
reset input
* The output turned on and off when the target
value is reached can be specified from Y0 to Y7
as desired.
Reference: <6.2.1 Table of Specifications>

6.3.5 Instructions used with High-speed Counter Function

High-speed counter control instruction (F0)
• This instruction is used for counter operations such as software reset and count disable.
• Specify this instruction together with the special data register DT90052.
• Once this instruction is executed, the settings will remain until this instruction is executed again.
Operations that can be performed with this instruction
• Counter software reset (bit0)
• Counting operation enable/disable (bit1)
• Hardware reset enable/disable (bit2)
• Clear high-speed counter instructions F166 to F176
• Clear target value match interrupt
Example: Performing a software reset
In case of CH0
In case of CH1
6-12
When using CH0 with two-phase input and
reset input
* The output turned on and off when the target
value is reached can be specified from Y0 to Y7
as desired.
In the above program, the reset is performed in step
(1) and 0 is entered just after that in step (2). The
count is now ready for operation. If it is only reset,
counting will not be performed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents