MELSEC-A
5. PULSE INPUT AND COUNTING METHOD
5 - 3
5.2 2-phase pulse input
In 2-phase pulse input, the counting mode can be selected from multiplication by one,
two and four.
(1) Relationship between phase A pulse input and phase B pulse input
The following diagram shows the relationship between phase A pulse input and
phase B pulse input.
High-speed counter module
Encoder
Phase A pulse input
To A
Phase B pulse input
To B
(2) Counting mode setting
To use this counting mode, set the following value to the lower 8 bits of the remote
register {address RWwm+2 (RWwm+A)} using the sequence program.
When the value set is not the following set value, the initial value (1-phase
multiplication by one) is set.
Counting Mode Setting
2-phase multiplication by one 02H
2-phase multiplication by two 03H
2-phase multiplication by four 04H
000
4 bits 8 bits
015
Counter function
selection register
(Refer to Chapter 9)
External output hold/clear setting
0: Clear
1: Hold
Refer to A
endix 1
Address
RWwm+2(CH1)
RWwm+A(CH2)
Set in hexadecimal.
Pulse input mode register
[Sequence program example]
• Counting in 1-phase, multiplied-by-two mode
Write command
MOV
TO
H0003 D0
H
×
H
◎
D0 K1
×
: First I/O number of master module
◎
: Corres
ondin
station re
ister address of master module buffer memor
POINT
Exercise care when setting the pulse input mode, since the upper 8 bits are used
for the counter function selection register and external output hold/clear setting.
Downloaded from ManualsNet.com search engine