Download Print this page

Panasonic FP-XH Series User Manual page 168

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

Advertisement

10.4 High-speed Counter Cam Control Instruction
Code
Description
(7)
Target value 2: ON set value K7000
(8)
Target value 2: ON set value K9000
(9)
Upper limit + K11000
(10)
Presets 0 as the elapsed value.
(11)
Executes the F165 (CAM0) instruction and starts the cam control.
(12)
Clears the executed F165 (CAM0) instruction by turning the DT90052 (bit 3) OFF → ON → OFF.
10.4.4 Sample Program (Upper Limit Control, Subtraction)
The following shows the program for performing three cam outputs (R100-R102) according to
the elapsed value of the high-speed counter CH0. In the case of subtraction, when the elapsed
value falls below the target value (OFF set value), the cam output turns ON, and when it falls
below the target value (ON set value) the cam output turns OFF. When it falls below the target
value (OFF set value), the interrupt program is started. When the elapsed value falls below 0, it
returns to the upper limit.
Code
Value
(a)
Upper limit
(b)
Elapsed value
Target value 3: OFF
(c)
set value
Target value 2: OFF
(d)
set value
Target value 1: OFF
(e)
set value
10-28
Description
When the high-speed counter elapsed value falls below 0, it returns to the
upper limit.
The control is started from the elapsed value when executed. In this example,
the elapsed value 13000 is preset.
The cam output is performed according to the target values.
In this example, the ON set value is smaller than the OFF set value for each
target value.
When subtracted: When the elapsed value falls below the OFF set value, the
cam output turns ON, and when it falls below the ON set value, it turns OFF.
When added: When the elapsed value reaches the ON set value, the cam
output turns ON, and when it reaches the OFF set value, it turns OFF.
WUME-FPXHPOSG-01

Advertisement

loading