5
- 17
5.4 Using the Preset Function
5
FUNCTIONS
5.4
Using the Preset Function
The preset function is used to replace the counter's present value A (Un\G10 and 11)/
present value B (Un\G200 and 201) with any given value (preset value), from which the
pulse counting can be started.
(1) Preset function operation
The preset function is activated by turning ON the preset command (Y02) on the
sequence program.
Figure 5.11 contains the I/O numbers (X/Y) and buffer memory addresses of channel
1 only. For channels 2 to 6, refer to Section 3.3.1 and Section 3.4.1.
Figure 5.11 Preset function operation example
Table 5.4 Details of the preset function operation example
No.
Description
1)
Writes any value into the preset value setting (Un\G4 and 5) of the QD63P6 in
the 32-bit binary format.
2)
When the preset command (Y02) rises (from OFF to ON), a value in the preset
value setting (Un\G4 and 5) is stored in the present value A (Un\G10 and 11)/
present value B (Un\G200 and 201).
The preset function can be executed regardless of the ON/OFF status of the
count enable command (Y04).
ON
OFF
ON
OFF
101
100
67
66
65
to
2
1
0
Count enable command (Y04)
Counter input pulse
Preset command (Y02)
Present value A (Un\G10 and 11)
Preset value setting (Un\G4 and 5)
100
0
1)
2)
t*
102 103 104 105
* t 2ms