65
Shared Memory Setting
Counter setting
Setting the operation mode for each counter CH.
In this example, counter functions is used in direction control mode,
output pulses are counted via internal connection, and
「
FFFFFF02
」
is recorded in shared memory address 100h and 101h.
Shared memory 100h, 101h 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
Setting the 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 500. Enter
「
K500 (H1F4)
」
into shared memory addresses
120h and 121h. Two values
「
K9500 (H251C)
」
and
「
K10000 (H2710)
」
are entered in turn every time comparison coincidence (CMP0) is ON.
Shared memory 120h, 121h settings (Increase/decrease end pointer)
Shared memory 120h, 121h settings (Max. speed end pointer)
R0.7
R0.6
R0.5
R0.4
R0.3
R0.2
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
0
2
Unused
Unused
Unused
Unused
Unused
Unused
Direction
control
Internal
connection
External input
Setting item
(bit) 32
Counter
number
Set value
Settings
16 15
0
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)
Comparison Input
Set value
Settings
(bit) 32
16 15
0
(1)
CMP0 is ON when current value
≥
set value
Comparison output set value (CMP0)
0
0
0
0
0
1
F
4
K 500
Setting item
(bit) 32
Set value
16 15
0
Settings
Comparison output set value (CMP0)
0
0
0
0
2
5
1
C
K 9500
Setting item
(bit) 32
Set value
16 15
0
Settings