82
Shared Memory Setting
Counter Setting
Setting the operation mode for each counter CH.
In the example, the phase signal from encoder is input to R0.0 and
R0.1, and counter function is used in 1 multiplication phase input
mode; therefore, enter
「
FFFFFF20
」
to shared memory addresses
100h and 101h.
Shared Memory 100h, 101h Settings
Setting the Comparison Output Set Value
Setting the Comparison output set value to be compared with Counter
current value.
In this example, enter
「
K1000 (H 3E8)
」
into shared memory addresses
120h and 121h when R4.0 turns ON, and
「
K-1500 (H FFFFFA24)
」
into 120h and 121h when R4.1 ON.
Shared Memory 120h, 121h Settings (R4.0 ON)
Shared Memory 120h, 121h Settings (R4.1 ON)
Setting the Comparison Output Point
Select the counter channel number and output logic for each
comparison output point.
In the example, counter current value at CH0 is compared with
comparison output set value, and the result is output at CMP0 and
CMP1. Therefore, enter
「
FFFFFF44
」
or
「
FFFFFF00
」
in shared
memory addresses 104h and 105h.
Shared Memory 104h, 105h Settings
(1)
CMPO is ON when current value
≥
set value
R0.13
R0.12
R0.9
R0.8
R0.5
R0.4
R0.1
R0.0
CH3
CH2
CH1
CH0
Input
mode
Functions
setting
Input
mode
Functions
setting
Input
mode
Functions
setting
Input
mode
Functions
setting
F
F
F
F
F
F
2
0
Unused
Unused
Unused
Unused
Unused
Unused
Phase
input
Terminal
Input
External input
Setting item
(bit) 32
Counter
number
Set value
Settings
16 15
0
Comparison output set value (for CMP0)
0
0
0
0
0
3
E
8
K 1000
Setting item
(bit) 32
Set value
Settings
16 15
0
Comparison output set value (for CMP0)
F
F
F
F
F
A
2
4
K-1500
Setting item
(bit) 32
Set value
Settings
16 15
0
CMP7
CMP6
CMP5
CMP4
CMP3
CMP2
CMP1
CMP0
F
F
F
F
F
F
4
4
Unused
Unused
Unused
Unused
Unused
Unused
CH0
(1)
Comparison
CH0
(1)
Comparison
Comparison
input
(bit) 32
Set value
Settings
16 15
0