(b) Operation example of the preset/replace function by CH Phase Z input terminal
(Z1, Z2)
The following figure shows an operation example of turning on CH External preset/replace (Z Phase) request
detection (RX23, RX3B) and changing the present value to the preset value (100) at the rising edge of CH
Phase Z input terminal (Z1, Z2).
Controlled by the high-speed counter module
Controlled by the program
CH
Count enable command
(RY24, RY3C)
Counter pulse
CH
Preset value setting
(RWw14 to RWw15,
RWw2C to RWw2D)
CH
Preset/replace command
(RY21, RY39)
CH
Preset/replace completion
(RX21, RX39)
CH
Phase Z input terminal
(Z1, Z2)
CH
External preset/replace
(Z Phase) request detection
(RX23, RX3B)
CH
External preset/replace
(Z Phase) request detection
reset command (RY23, RY3B)
CH
Present value
(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. (Setting range: -
1)
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 Phase Z input terminal (Z1, Z2). Also, CH External
2)
preset/replace (Z Phase) request detection (RX23, RX3B) turns on. The value can be replaced regardless of the ON/OFF status
of CH Count enable command (RY24, RY3C).
While CH External preset/replace (Z Phase) request detection (RX23, RX3B) is on, the value cannot be replaced by either CH
Preset/replace command (RY21, RY39) or CH Phase Z input terminal (Z1, Z2). Also, when CH Preset/replace command
3)
(RY21, RY39) is turned off then on, CH Preset/replace completion (RX21, RX39) turns on. However, the value is not replaced.
Turn off CH Preset/replace completion (RX21, RX39) by turning off CH Preset/replace command (RY21, RY39).
When CH External preset/replace (Z Phase) request detection (RX23, RX3B) turns off by turning on CH External
4)
preset/replace (Z Phase) request detection reset command (RY23, RY3B), the value can be replaced.
ON
OFF
1)
0
100
t
OFF
OFF
OFF
0
1
to
65 66 67
Description
t
3)
ON
ON
2)
100
101
102
103 104
105
106 107
CHAPTER 8 FUNCTIONS
ON
ON
2)
4)
108 109
110
100 101
t
T
1
137
8