61
Configuration of comparison output set value
Setting the "Comparison output set value" to be compared with
"Counter current value".
In the example, CMP0 is gained as output when counter current value
reaches 10000. Enter
「
K10000 (H2710)
」
into shared memory
addresses 120h and 121h.
Shared memory 120h, 121h settings
Setting the comparison output point
Select the counter CH number and output logic to be used for
comparison output function.
In this example, enter
「
FFFFFFF0
」
into shared memory addresses
104h and 105h. Results of comparison between counter current value
and comparison output set value are gained as output to CMP0.
Shared memory 104h, 105h settings
PLS/PWM frequency setting
Pulse output form is determined by PLS/PWM setting.
In this example, enter
「
FFFFFFF6
」
into shared memory addresses
140h and 141h. Pulse output starts at R2.8 and R2.9 (PLS0) in direction
control mode, when PLSx Start signal edge rises, or in comparison
output mode.
Shared memory 140h, 141h settings
Comparison output set value (CMP0)
0
0
0
0
2
7
1
0
K 1000
Setting item
(bit) 32
Set value
16 15
0
Settings
CMP7
CMP6
CMP5
CMP4
CMP3
CMP2
CMP1
CMP0
F
F
F
F
F
F
F
0
Unused
Unused
Unused
Unused
Unused
Unused
Unused
CH0 Comparison
(1)
Setting item
Set value
Settings
(bit) 32
16 15
0
(1)
CMP0 is ON when current value
≥
set value
Unused
Unused
Unused
Unused
PWM3
PWM2
PWM1
PWM0
Unused
Unused
Unused
Unused
Form
setting
Form
setting
Form
setting
Form setting
F
F
F
F
F
F
F
6
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Data refresh with
Start signal or
comparison output
Output number
(bit) 32
Setting item
Set value
Settings
16 15
0