Download Print this page

Panasonic FP-XH Series User Manual page 164

Programmable controller
Hide thumbs Also See for FP-XH Series:

Advertisement

10.4 High-speed Counter Cam Control Instruction
● When controlling the output device using the main program, set each target value so that
"minimum moving time between each target value" is larger than "1 scan time".
● When controlling the output device using an interrupt program, set each target value so that
"minimum moving time between each target value" is larger than "maximum execution time
of interrupt program".
● When the maximum value control and the hardware / software reset is used at the same
time, do not operate them intensively in a short time.
● When hardware / software reset is used, set the minimum target value to an integer value
that is 1 or more.
● When the hardware reset or software reset is executed during the high-speed counter
control, the high-speed counter elapsed value is reset to 0. The output allocated to the cam
output will be the output according to the elapsed value 0.
● It is also possible to start the interrupt program INTn every time the elapsed value reaches
each target value. For this operation, the activation of the interrupt program should be
permitted by the interrupt control instruction ICTL.
● For details of the allocations of I/O and flags, refer to "Allocation of Memory Areas".
REFERENCE
11.2.4 When Using High-speed Counter Function
10.4.2 Sample Program (Upper Limit Control, Reset, Addition)
The following shows the program for performing two cam outputs (R100, R101) according to
the elapsed value of the high-speed counter CH0. When the elapsed value reaches the target
value (ON set value), the cam output turns ON, and when it reaches the target value (OFF set
value), it turns OFF. When it reaches the target value (ON set value), the interrupt program is
started. When the elapsed value exceeds the upper limit, it returns to 0.
10-24
WUME-FPXHPOSG-01

Advertisement

loading