36
Setting Counter Function
●
To use counter function, shared memory setting is needed.
●
Besides shared memory setting, counter can be masked or cleared
with counter control signal.
Step 1. Shared Memory Setting
Set the operation mode for each counter CH in the shared memory
settings. Set the counter functions mode as shown in the table below.
(1)
Used when counting the number of output pulses via internal connection to pulse or
PWM output.
(2)
Do not use this setting.
(3)
Initial values on power input are set as direction control for input mode and unused for
function setting.
b31~
b28
b27~
b24
b23~
b20
b19~
b16
b15~
b12
b11~
b8
b7~
b4
b3~
b0
Counter CH0 setting (used/unused)
Counter CH0 setting (input mode)
Counter CH1 setting (used/unused)
Counter CH1 setting (input mode)
Counter CH2 setting (used/unused)
Counter CH2 setting (input mode)
Counter CH3 setting (used/unused)
Counter CH3 setting (input mode)
Counter
setting
Address: 100h 101h
Setting (Input Mode): Effective only for
terminal input
Set value
(HEX)
Functions
Terminal input mode
Multiplication
0
Direction control
(3)
N/A
1
Individual input
2
Phase input
1 multiplication
3
2 multiplications
4
4 multiplications
5
Invalid
(2)
6
7
8
9
A
B
C
D
E
F
Setting (Function)
Set value
(HEX)
Functions
Counter
0
Used
(Terminal input)
1
2
Used (Internal
connection)
(1)
3
4
5
Invalid
(2)
6
7
8
9
A
B
C
D
E
F
Unused
(3)