User`s manual
125
CHAPTER 4 FUNCTION
4
4.4 Preset/replace Function
4.4 Preset/replace Function
The preset/replace function replaces the count value with any value preset by the user. This value is called a preset
value. This function can be used to start counting pulses from the preset value.
The preset/replace function cannot be performed while CH1 External preset/replace (Z Phase) request detection (X05) is on.
(1) Preset/replace function by GX Works2
With GX Works2, the preset/replace function can be performed without using the sequence program or external
input. For more details, refer to the following section.
Page 189, Section 6.5
(2) Preset/replace function by CH1 Preset/replace command (Y03)
Turning on CH1 Preset/replace command (Y03) in the sequence program performs the preset/replace function.
(a) Operation example of the preset/replace function by CH1 Preset/replace command
(Y03)
Num
ber
Description
1)
Write any value within the rage from -2147483648 to 2147483647 (in 32-bit signed binary) to CH1 Preset value (Un\G1014,
Un\G1015).
2)
The preset value in CH1 Preset value (Un\G1014, Un\G1015) is stored in CH1 Present value (Un\G1050, Un\G1051) on the rising
edge (OFF to ON) of CH1 Preset/replace command (Y03).
The preset/replace function is performed regardless of the status of CH1 Count enable command (Y06).
t *1
0 100
1)
2)
ON
OFF
ON
OFF
CH1 Count enable command
(Y06)
Counter input pulse
CH1 Preset value
(Un\G1014, Un\G1015)
CH1 Preset/replace command
(Y03)
CH1 Present value
(Un\G1050, Un\G1051)
0 1 2 to 65 66 67 68 100101102103 104105100 101102103 104
t *1
*1 t 2ms










