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
Description
(a)
Upper limit
When the high-speed counter elapsed value falls below 0, it returns to the
upper limit.
(b)
Elapsed value
The control is started from the elapsed value when executed. In this example,
the elapsed value 13000 is preset.
(c)
Target value 3: OFF
set value
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.
(d)
Target value 2: OFF
set value
(e)
Target value 1: OFF
set value
10.4 High-speed Counter Cam Control Instruction
10-28
WUME-FPXHPOSG-01
Содержание FP-XH Series
Страница 2: ... MEMO 2 WUME FPXHPOSG 01 ...
Страница 18: ... MEMO 1 10 WUME FPXHPOSG 01 ...
Страница 30: ... MEMO 3 8 WUME FPXHPOSG 01 ...
Страница 51: ...4 4 Reading Elapsed Values WUME FPXHPOSG 01 4 21 ...
Страница 52: ... MEMO 4 22 WUME FPXHPOSG 01 ...
Страница 88: ... MEMO 5 36 WUME FPXHPOSG 01 ...
Страница 94: ... MEMO 6 6 WUME FPXHPOSG 01 ...
Страница 140: ... MEMO 9 8 WUME FPXHPOSG 01 ...
Страница 193: ... MEMO WUME FPXHPOSG 01 ...
Страница 194: ...Panasonic Industrial Devices SUNX Co Ltd 2020 October 2020 WUME FPXHPOSG 01 ...