(1) Performing the preset/replace function by a program
The following figure shows an operation example of changing the present value to the preset value (100) at any
timing.
Turning on CH Preset/replace command (RY21, RY39) by a program performs the preset/replace function.
Controlled by the high-speed counter module
Controlled by the program
CH
Count enable command
CH
(RWw14 to RWw15, RWw2C to RWw2D)
CH
Preset/replace command
CH
Preset/replace completion
(RWr10 to RWr11, RWr28 to RWr29)
No.
Write any value to CH Preset value setting (RWw14 to RWw15, RWw2C to RWw2D) in 32-bit binary.
1)
(Setting range: -2147483648 to 2147483647)
The value in CH Preset value setting (RWw14 to RWw15, RWw2C to RWw2D) is stored in CH Present value (RWr10 to RWr11,
RWr28 to RWr29) at the rising edge (off to on) of CH Preset/replace command (RY21, RY39). Also, CH Preset/replace
completion (RX21, RX39) turns on.
2)
When turning off CH Preset/replace command (RY21, RY39) after checking CH Preset/replace completion (RX21, RX39) turns
on, CH Preset/replace completion (RX21, RX39) turns off.
The value can be replaced regardless of the ON/OFF status of CH Count enable command (RY24, RY3C).
For ΔT
*1
, refer to Page 283, Appendix 4.
1
(RY24, RY3C)
OFF
Counter pulse
Preset value setting
(RY21, RY39)
OFF
(RX21, RX39)
OFF
CH
Present value
ON
1)
0
100
t
t
ON
2)
0
1
2 to 65 66 67 68 100 101102103 104100 101102103 104
Description
CHAPTER 8 FUNCTIONS
1 *1
t
T
123
8