73
CHAPTER 8 FUNCTIONS
8
8.4 Preset Function
8.4 Preset Function
This function overwrites the present counter value with the set value.
The set value is referred to as a preset value.
This function can be used to start counting pulses from the preset value.
The function can be performed using a program or an external control signal.
(1) Performing the preset function using a program
Perform the preset function by turning on CH Preset command (Y1, Y9).
No. Description
1) Write a value to CH Preset value (Un\G0, Un\G1, Un\G32, Un\G33) in 32-bit signed binary.
2)
On the rising edge (off to on) of CH Preset command (Y1, Y9), the value stored in CH Present value (Un\G2,
Un\G3, Un\G34, Un\G35) is replaced with the value stored in CH Preset value (Un\G0, Un\G1, Un\G32, Un\G33).
The preset function is performed regardless of the on/off status of CH Count enable command (Y4, YC).
ON
OFF
ON
OFF
101100676665210
Counter input pulse
CH Count enable command
(Y4, YC)
CH Preset command
(Y1, Y9)
CH Present value
(Un\G2, Un\G3, Un\G34, Un\G35)
CH Preset value
(Un\G0, Un\G1, Un\G32, Un\G33)
1000
1)
2)
102 103 104 105
to