Download Print this page

Panasonic FP-XH Series User Manual page 166

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

Advertisement

10.4 High-speed Counter Cam Control Instruction
Code
Description
(4)
Specification of the number of target values K2
(5)
Target value 1: ON set value K1000
(6)
Target value 1: OFF set value K5000
(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.
10.4.3 Sample Program (Upper Limit Control, Instruction Clear, Addition)
The following shows the program for performing two cam outputs (R100, R101) according to
the elapsed value of the high-speed counter CH0. In the case of addition, 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.
The instruction is cleared by the high-speed counter control instruction F0 (MV).
Code
Value
Positive maximum
(a)
value
(b)
Upper limit
Target value 2: OFF
(c)
set value
Target value 2: ON set
(d)
value
10-26
Description
When the instruction clear is executed, the upper limit control is canceled and
the counting continues up to the positive maximum value.
When the elapsed value exceeds the upper limit, it returns to 0.
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.
Therefore, 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