external output transistor failure may keep
external monitoring circuit for
result
0
Do not bundle control lines or communication wires together with main circuit
or power lines, or lay them close
As a guide, separate the lines by a distance of at least
malfunctions may occur due
[Cautions on Mounting]
0
Use
the manual.
Using the PC in environments outside the ranges stated
specifications will cause electric shock, fire, malfunction, or damage
to/deterioration of the product.
in
serious accidents.
A
the PC in an environment that conforms
DANGER
output
A
CAUTION
to
to
noise.
CAUTION
output
signals whose incorrect execution could
these lines.
to
ON
or
OFF.
150
mm, otherwise
the general specifications in
in
the general
Add an
0
Make
sure that the module fixing projection on the base of the module is
properly engaged in the module fixing hole in the base unit before mounting
the module.
Failure
the module falling.
to
mount the module properly will result in malfunction or failure, or in
Page 5
[Cautions on Wiring]
Q
1
CAUTION
Ground
grounding). Otherwise, malfunctioning
Carry out wiring
arrangement of the product.
Using a power supply that does not conform
out wiring incorrectty, will *cause fire or failure.
Input voltage in excess of the voltage set
Tighten the terminal screws
Loose
Make sure that no foreign matter such as chips or wiring offcuts gets inside
module.
[Cautions on Startup and Maintenance]
Do
This
Switch the power off before cleaning or re-tightening terminal screws.
Carrying out
of the module.
he
shield wire to the encoder
to
screws will cause
It
will
cause fire, failure or malfunction.
not
touch
terminals while the power is
will
cause malfunctions.
this
work while the power is
@lay
the PC correctly, checking the rated voltage and terminal
to
the stipulated torque.
short
circuits, fire, or malfukctions.
@
DANGER
box)
(using class 3 or higher class
wilt
result.
to
the rated voltage, or carrying
by
the setting pin will cause failures.
ON.
ON
will cause failure or malfunction
the
A
CAUTION
Do
not disassemble or modify any module.
This will cause failure, malfunction, injuries, or fire.
Switch the power
Mounting or removing
the module.
[Cautions on Disposal]
Dispose of this product as industrial waste.
OFF
before mounting or removing
it
with the power
A
CAUTION
ON
the
module.
can cause failure or malfunction of
Page 6
INTRODUCTtON
Thank you for choosing the Mitsubishi MELSEC-A Series
lers. Please read this manual carefully
Install the module on the base unit by engaging the module locking tabs
in the module locking holes in the base unit and tightening the module
mounting screws.
the module mounting screws, then disengage the module locking tabs
from the module locking holes.
Screw, Looation
(M4
AISD62(E/D)
to
install the module
screw)
(M3.5
screw) I 59 to
(M4
screw)
To
remove the module from the base unit, unfasten
are given below:
to
the base unit as indicated in
I
I
78
I
78
Tlghtenlng
Nacm (kgocm) [Ibmln]
to
118
(8
88
(6
to
118
(8
to
to
to
12)
9)
12)
Torque
[6.93 to
[5.20
t6.93
to
7.81
to
Range
10.401
10.401
I
I
I
I
Base unit
Module locking hole
Module mounting screw
/
4-2
Page 27
The
names
below:
of..each
part
of
A1 SD62(E)
the
AlSD62(E/O)
and
the settings are shown
r
1
I
,-
0A
C
H
08
1
..
PRST
$St
<-
CH2
CHl CH2
OK
1
lPOK
08
04
BB
PRST
FST
.I
(4)
-
'The portion
of
(7)
of
the
,
.
24v
AlSD62E
is
as
shown in
the
following figure:
+
4-3
Page 28
4.
INSTALLATION
-
No.
Pulse input voltage setting pin
1Ok
n
/ooo/
Pulse input voltage setting pin
CHl CH2 CH1 CH2
U
lorn
CH2
10k
n
F]
AND
-
CHI
U
100k
PRE-OPERAlnON
100
k : Counts single-phase/2-phase pulse inputs at a speed of
up
to
10
k
Used
:
to
100
Counts single-phase pulse inputs at a speed of up
kpps, and 2-phase pulse inputs at a speed of up
set
the pulse input voltage
(Factory setting:
(Set using a jumper)
SETTING
Description
kpps.
24
V)
PROCE
(Factory setting:
(Set using a jumper)
to
phase Nphase
WRE
~ ~ ~ ~~~~~~
B.
1
MELSEC-A
to
10
to
7
kpps.
1
OOk)
0A
0B
,tH
24V
U
OFF
g:R
0
0
24v
External input voltage setting pin
Fqqq
0
0
24v 24V
CH1 CH2 CHI CH2
Ring counter setting pin
U
OFF
LED
indicators
i-1
0
m::fl
Used
to
set
PRESET/F.START terminals.
0
0
Used
Remains lit while voltage is applied
terminal.
Remains lit while voltage ia applied
terminal.
the input voltage
(Factory setting: 24
(Set using a jumper)
to
set whether
(Factory setting: OFF)
(Set
to
using a jumper)
to
be applied
V)
use the ring counter function.
to
the
to
the phase A pulse input
to
the phase B pulse input
Input terminals
Output terminals
DEC
PRESET
FUNCTION
EQUl
EQU2
%N0B Pulse input terminal
PRST
FST
EQUl to EQU2
Remains lit during subtraction.
Remains lit while voltage is applied
goes off with an external preset detection reset command (write
buffer memory addresses 10 and 42).
Remains lit while voltage is applied
Remains lit while external coincidence output from
executed.
Remains lit while external coincidence output from CH2 is
executed.
The terminal
response
The terminal
function.
External output terminals for coincidence output
to
which voltage is applied
to
an external preset command.
to
which voltage is applied
4-4
to
the PRESET terminal, and
to
the F.START terminal.
CHI
is
to
execute presetting in
to
select a counter
to
Page 29
A1
SD62D
&I
200K
f2
'
200K
CH2
CHI
T
7
I
A'SD62D
PRST
F
PRST
F
I
0A
OB
ST
0A
00
ST
4-5
Page 30
No.
Name
~~
Description
Pulse input vottage setting pin
1Ok 1Ok
n
(beol
External input voltage setting pin
Ring counter setting pin
(4)
I
LED
CH2
U
look look
ON
n n
indicators
r-
Fl
CH1
U
CH1 cn2
ON
0A
100
k
:
Counts singte-phase/2-phase pulse inputs at a speed of
up
to
100
:
10 k
Used to set the input
PRESET/F.START terminals.
Used
Remains lit while voltage is applied to the phase A pulse input
terminal.
Counts single-phase pulse inputs at a speed of up to 10
kpps, and 2-phase pulse inputs at a speed of up to 7 kpps.
(Factory setting: 24
(Set using a jumper)
to
set
(Factory setting: OFF)
(Set
kpps.
voltage
whe4her
to
use
using a jumper)
(Factory
(Set using a jumper)
to
be
applied to the
V)
the ring counter function.
settiw:
100
k)
(6)
I
Input terminals
Output terminals
0B
DEC
PRESET
FUNCTION
EQU
1
EQU2
0N0B Pulse input terminal
PBST
FST
EQUl to
EQU2
Remains lit while voltage is applied to the phase
terminal.
Remains lit during subtraction.
Remains lit while voltage is applied to the PRESET terminal, and
goes off with an external preset detection reset command (write to
buffer memory addresses 10 and 42).
Remains lit while voltage is applied to the F.START terminal.
Remains lit while external coincidence output from CH1 is
executed.
Remains lit while external coincidence output from CH2 is
executed.
The terminal to which voltage is applied to execute presetting in
response to an external preset command.
The terminal to which voltage is applied to select a counter
function.
External output terminals for coincidence output
B
pulse input
4-6
Page 31
4.4
wring
4.4.1
..
Wing
Details
described below:
preconditions
The preconditions when a pulse generator device
are described
(1) For a high-speed pulse input, take the following counter measures against
(2) For 1-phase input, connect count input signal
(3)
(4)
on
how
-to
wire a pulse generator device
to
is
wired
the
AlSB62(UD)
to
the A1 SD62(E/D)
are
below:
noise:
(a) Be sure
grounded
Do
(b)
not run a twisted pair cable in parallel with power cables or other
I/O
lines which
(5.91
in.)
use shielded twisted pair cables.
to
Class 3 specifications.
may
generate noise. Run cables at least
away
from the above-mentioned lines and over the shortest
Also,
make sure it is
150
mm
to
distance possible.
to
phase A only.
If
the AlSD62(E/D) picks
up
pulse noise, it will count incorrectly.
The specific measures against noise are shown below:
A1
PC
arate
more
from
[Also
taka
thgn
equlp-
cere
It8
mrn
meni such as Invert-
ern.
of
wiring inside the
panel.)
Y
A
Ground twisted shielded wire on the encoder side (joint box). (This is a connection example for 24 V sink loading.)
I
I
/
SD62(E/D)
Metal piping. Never run solenoid or inductive wiring through the same conduit.
If
sufficient distance cannot be provided between the high current line and input
wiring, use shielded wire for the high current line.
Encoder
Joint
Distance between the encoder and the joint
box should be as short as ossible.
tance from
box
too long, anrxcessive voltage drop occurs.
Therefore, measure
tion and make sure that the voltages are
within the rated voltage
voltage drop is large, increase the size of wir-
ing
rent consumption.
the
A1
SD62(E/p) to the encoder
the
er
use
an encoder of 24 VDC with
voltage during opera-
of
the encoder.
If
the dis-
less
If
IS
the
cur-
to
Connect the encoder shield wire
shield wire of the encoder that is not grounded In the
encoder. Ground it inside the joint box as indicated by
dotted line.
I
I
the twisted pair
4-7
Page 32
4.
INSTALLATION
AND
PRE-OPERATIOH
SEmNG
.PROCEDm
.:
:
XISEC-A
4.4.2
Wiring
A1
SD62(E)
example
for
the connection with the open collector
(1)
Connection
of
a
24
VDC
pulse generator
output
pulse
generator
Pulse generator
The encoder signal and
A1
SD62(E) CORRECT:
?==)I
INCORRECT:
supply
lines should be
wired
as shown below:
Since the same twisted pair wire is
used for both the encoder signal and
the power supply, a reduction in the
canceling effect and electromagnetic
Induction may occur.
4-8
Page 33
A1
SD62(E)
1)
Set the pulse input voltage setting pin
(2)
Connection
of
a voltage
to
We
output
Twisted pair wire
wise generator
h
.'
position.
(5
EC-A
VDC)
Pulse generator
r
---.-.-
IREMARK]
1)
Set
the pulse input
voltage
setting pin
to
the
m
position.
,
4-9
Page 34
A1
SD62D
(3):
Wirlng exampie between the
driver (Am26LS31
or
equivalent)
AlSD62D
and a pulse
Pulse
generator
generator
for
line
....
J
4- 10
Page 35
EC-A
4.4.3
YU~~~mple
F.START)
A1 SD62(E/D)
This diagram assumes that
AlSD62(E/D)
for
the
mnnectkm
(1)
When a controller
External input voltage
setting pin
the
intemat circuit is set to PRESET.
(2)
When
of a
riaaWkr
(sink
acentroller (source load type)
SET
or
F.START
bexbmqtinput
load type) is supplied with
is
supplied
terminals
12
Controller
with 5 V:
Controller
.-.-.-.
(PRESET
V:
VDC
and
-I
1
This diagram assumes that the internal circuit is
IRE MARK^
(1) Set the pulse input voltage setting pin to the
set
to
PRESET.
m
1
position.
4-
11
Page 36
4.
INSTALLATION
,.
.
ANU,F4MXW€RATtON
SETTUW
pwacEouRE
.
I
MELEC-A
4.4.4
Wiring
examples
To
For this example, 10.2
methods are as follows:
(1)
at
external output
termids
use an external terminal,
to
AlSD62(D)
(Mus
30
1
to
2)
the
internal photocoupler should be activated.
VDC external power is necessary. Connection
-
+
10.2V
to
30V
(2) A1 SD62E
...
+
10.2V
to
30V
4-
32
Page 37
.
. .
This section describes the pulse
AISDM(E/D).
(1)
The pulse input mode is classified into single-phase pulse input and
'
'
2-phase pulse input. Single-phasepcllse input
plication by one and multiplication
input
8nd counting modes of the
I
is
subdivided into multi-
by
two, whereas 2-phase pulse input
covers multiplication by one, two and four.
Table
5.1
shows the pulse input modes and the count timing.
Puke Input
Single-phase,
multiplied by one
Single-phase,
multiplied by two
2-phase,
multiplied by one
Mode
Table
5.1
I
In up count
In down count
I
In
upcount
In down count
In
up count
In down count
Pulse
1
/0B
IDA
Input and Count
Count Timlng
.BA
JlJL
0B
Y13
(Y1 A)
@A
OB
Y13
J-L
(Y1A)
0A
0B
(Y1 A)
0A
_f-Lf-L
0A
TlTl
m
m
Timing
Counts a pulse at
0A.Yl3 (YlA)
Counts a pulse at 1 of
0A.Yl3 (YlA)
Counts a pulse at t and
1
of
0A.Yl3 (YlA)
OFF.
Counts a pulse at f and
1
of
0A.Yl3 (YlA)
ON.
Counts a pulse at
0A.
The pulse count
increases in response
to
the phase difference
between
Counts a puke at
0A.
The pulse count
decreases in response
to
the phase difference
between
OA
OA
are
are
and
and
0B.
0B.
t
of
OFF.
ON.
are
are
t
of
.1
of
2-phase,
multiplied by two
In up count
In down count
.5
-
I
0A
0B
m
m
Counts a pulse at 7 and
1
of
0A.
The pulse count
increases in response
to
the phase difference
0A
and
in
response
and
0B.
0B.
between
Counts a pulse at t and
1
of
0A.
The pulse count
decreases
to
the phase difference
between
0A
Page 38
Pulse Input
Mode
I
Count Timing
.
2-phase,
multiplied by four
(2)
Even
value at
up
count
In
In down count
if
the
pulse
the
time the.mode is changed.
input mode
is
changed, counting
Counts a pulse at
L
of
0A
The pulse count
increases in response
to
between
Counts a pulse at T and
5.
The pulse count
decreases in response
to
between
and
the phase difference
0A
of
0A
and
the phase difference
0A
will
start from the
0%.
and
OB.
and
T
and
0B.
0B.
5-2
Page 39
5.1
SingieWiase
Pufsi
Input
I'
,.
,.
.,
'!
In single-phase pulse input, multiplication by
counting.
(1)
The
,,
-
following figure
and a down count command.
Encoder
/
(2)
Counting mode setting
To
use this counting mode,
memory (address
shows
Down'count command
0
{or Y13 (YlA)
3
(35))
the relationship between phase A pulse input
Pulse
of
gram.
Counting Mode Set Value
one
oqtwo can be selected for
Ai SD62(
UD)
R
.
,
input
ON}
set
the
the
AlSD62(E/D) using the sequence pro-
>*,
0A
@B
pulse input mode setting buffer
Multiplication by one
Multiplication by two
[Sequence program]
Write
command
IREMARKS
(1) In
[
the A1 SD62(UD).
(2) Set 3 in
(3) In
S,
I[
1,
set the first
[ ]
set
KO
I
two
for CH1,
or
representing multiplication by one, or
digits
of
the hexadecimal three-digit first
35 for CH2.
110
number allocated to
K8
for multiplication by two.
5
-3
Page 40
5.2 Counting at 2-Phase Pulse Input
When the 2-phase:pufse
from multiplication
(1)
The relationship between the phase A pulse input and the phase B pulse
input
is
Encoder
(2)
Counter processing mode setting
To
use the above-mentioned mode (counting using the incremental
phase
A,lS@2(E/D)
to
A
any number from 2
by
given below:
pulse input and decrementat phase
pulse input mcde setting bdfer memory {address
inpld
one,
two,-and four.
Phase A
to
Counting
is
done,
4
using the sequence program.
hode
the counting mode can be selected
A1
SD62(E/D)
1
J
getting
B
pulse input),
Value
set
the
3(35))
I
I
[Sequence program]
Write
command
[
I[
1,
1) In
the A1
2)
3)
set the first two digits
SD62(UD).
Set
3
in [ ] for CH1, or
In
S,
set
K2
representing multiplication by one, K10 for multiplication by two, or K18
multiplication by four.
Multiplied by
Multiplied by
Multiplied by four
35
for CH2.
one
two
of
K2
I
'I
the hexadecimal three-digit first
K10
K18
I
I
I/O
number allocated to
for
5-4
Page 41
5.3
Reading the Present Value
L.
.
This
section givea.details
present value
to
read it.
(1)
The buffer memory
@torage
on,#hq?rrsant
buffer;memory
stores
the
value
(addrewes
cwnt
value
stored in the
4
to
5
(36
when the following are in
,
'*
AlSD62(E/D)'s
to
37)},
and how
effect: pulse input, presetting, ring counter function execution or count
disable (counter function selection).
However,
periodic pulse
count value when the latch counter, sampling counter
counter
function is executed
will
be stored in the counter
or
the
function selection count value storage buffer memory shown in Table
5.3.
Table
5.3
Counter Function Selection Count
Value Storage Buffer Memory
Perlodlc Periodlc
Previous
to
50
to
51
24-bit
Descrlptlon
Buffer
memory
bdctt'ess
I
(2)
The present value
CH1
CH2
14to15
46
(0
to
Latch
Count
Vdue
to
47
16777215)
Count
Value
to
48,to
is stored in
17
49
present value storage buffer memory.
(3)
In up count, the present value storage buffer memory returns
the count value reaches
1677721
In down count, the buffer memory returns to
value reaches
0.
5.
1677721 5
Pulse Count Pulse Count
Present
Value Value
19 16
20
52
binary in the
to 0 when
when the count
to
to
21 18
53
5-5
Page 42
5.
PULSE
INPUT
AND
(4)
Shown
in
cO.l,WTEU
below
the
present value
Is
Pt!SOCBS~M€~D
the
sequence
storage
program
to
read
buffer memory.
the
present value stored
(a) Reading using FROM/TO instructions (when
PC
selected as the
Read
,
command
Set
data
n
A1
SD62(VD)'s
Firot
*
D
1)
Set
2)
The present value
AlSD62(E/D)
.I
.*
1
device numbrr.to
a count value read request Y(n + 15).
CPU I/O control method)
DFRO
I
first
I/O
number
store
is
set
for n, and is stored in the device
fram.wh1d.l
I
.;..
*.=Pi..
the
repd
read from
the
-.
.
.
present
the
I/O
present value
value
number of the
In present value reading, data is read directly from
AlSD62(E/D)'s buffer
CH1)-or
No.
36 and
No.
rnerrhry
37 (for
addresses
CH2).
the
SET
n
I
K4(K36) 1 D
No.
direct method is
I
Y
(ntl5)
I
K1
will
be
read
set
for D.
4
and
No.
5
I
(for
3)
Reset
the count value read request Y(n + 15).
5-6
Page 43
..
'
14
(b)
Reading:
using.PRobdiT-0
sebcfed'asJW~PCaUPF%LP
Read
instructions
(when
t'Klcbnttwtmethod)
the refresh method is
Frn
RST
I
Y
(n+15)
t.
.
.-
Set
data
n
AiSb'62(Eh)'s
-.
Cd
First device number to store
D
first
I10
number from
whichthe
the
read present value
present value
will
be read
1)
Set a count vatue read request Y(n
2)
The
presant
AlSD62(E/D) set far
In
present
A1
SD62(E/D)'s buffer memory addresses
CH1)
or
3)
Designate partial refresh.
4)
Y(n + 10)
5)
Reset the count value read request Y(n
value
No.
to
value is
wad
n,
and
from the
is
stored in the device
reading, data is read directly from
36
and
No.
37
(for
CH2).
Y(n
+
ID)
are partially refreshed.
+
15).
I/O
number of the
No.
+
15).
4
set
and
for D.
No.
5
(for
5-7
Page 44
(c)
Read
Reading
using an
A2ASCPU(SI/S30)
dedicated
instruction
LEDA
...
Reading is
executed when
the command
ON.
...
LEDB
Reading is
executed at the
leading edge
the
is
of
command.
I
LEDR
r----,
Instruction symbol in
I
L----I
I
IPVRD1,PVRD21
Set
data
n D AlSD62(WD)'s
First device number to
1) The present value is read from the I/O number of the
AlSD62(E/D) set for n, and is stored
In present value reading, data is read directly from
AlSD62(E/D)'s buffer memory addresses
CH1) or
The channel for present value reading depends on the instruc-
to
tion
2) In present value reading using a PVRD1 or PVRD2 instruction,
ON/OFF
Y(n+l C) (count value read request) is automatically executed
internally, which means that the user does not have
it.
first
No.
36 and
be used.
control
I/O
number
store,~,the
PVRD1 instruction
PVRD2 instruction
of
the AlSD62(E/D) I/O signals Y(n+l5),
from
read present value.
No.
37 (for CH2).
which
........
........
the
present value will
to
the device
No.
For CHI
For CH2
4
set
and
be
No.
to
read
for D.
5
(for
execute
POINTI
To
perform communications with a special function module using an
APASCPU(Sl/S30) dedicated instruction, register AD61 as the module
type when setting parameters.
5-8
Page 45
6.
EXECUVINQ,THfi
-6.1
Coincidence Output Function
GOtNBIDENCE
This section describes the coincidence output function.
The coincidence output function issues a signal when a preset count value is
compared with and matches the present counter value.
Two coincidence output points can be set.
To use the coincidence output function,
command to
[Example of how to use the coincidence output function]
Manufacturing products by performing each machining operation in response
to a coincidence output in a machining line system.
ON.
BUTPUT~FUWFION
set
the coincidence signal enable
(1) The material is conveyed by a belt conveyor.
,.
.
(2)..~-T:ke.material
.is determined
13)
As
soonas
machining operation takes place in response to a coincidence output
(EQU1, EQU2) from the AlSD62(E/D).
positionambe identified as4he present count value which
by
a
pulse
sent
the
material
is
located at each specified position, the relevant
Part
cutting
to
/.
the
AlSD62(E/D).
Drilling
n'
67
!
0:
T
6-1
Page 46
6.1
.I
Coincidence output function operation
Count,embk command
{Y14
(YlB)}
OFF
Coincidence signal enable
command
Input
Coincidence
setting
{addresses
Counter value small
(point
Counter value coincidence
(point
Coincidence signal reset
command
{Y12 (YlQ)}
pulse
to counter
out
No.
1
buhr
to
6
No.
1) {X02 (X06)}
No.
1) {X01 (X05)}
{YlO (Y17)}
ut
7
point
memo
(38
to
38)
OFF
Present value storage
buffer
memory
4
to
5
...
(36
The
{addresses
(1)
the
6
to
(2)
...
When the counter value reaches the
value, the counter value small stpal is turned
value coincidence signal is turned on.
(3)
...
The coincidence signal reset command is turned on, and the counter
value coincidence signal is
The subsequent coincidence signal output does not take place as
long as the counter value coincidence signa4 remains on.
(4)
...
When the counter value is larger than the
point value, the counter value large signal is turned on.
',!Ill
'
0,
1, 2,
to
37))
set
coincidence output point value is written in 24-bit binary
coinckfence
7
(38
to
output
39))
point setting
of
the
AlSD62(E/D)
to,
98, 99:100:101:102~103~
No.
1
buffer memory {addresses
in advance.
set
coincidence output point
off,
and the counter
reset.
set
coincidence output
to
6-2
Page 47
6.1.2
Program
Examples
T~e
one mode using
[System configuration]
following
program
CH1,
and ,exebute
is
to
count pulses in
X00
to
XiF
YOOtoYIF
2-phase
the
limit switch,w'put function.
X20t0x3F
pulse input multiplied by
[Devices
(1)
(2)
DO
to
be used]
Execution commands
(a) Pulse input mode setting command
(b)
Counting start command
(c) Present value read command
(d) Coincidence output data setting command
Set the pulse mode consistent with the 2-phase pulse
1
input multiplied by one.
Start the pulse count with
the count enable command
4
(SET).
t
I
Count operation stop
CIRCUIT
END
I
PH
DTO
PH K K
C.
TO
0000
C
MOV
.
oooO-.
K K
10
D3
PK
0
10
D5
RST
YO14
1
D5
1
Store the preset value of
100
to address
buffer
E
1
l-
E
4
memory.
Reset the external preset
command detection flag.
Stop the pulse count by
the count enable command
(RST).
6
of
the
7-9
Page 60
7.
EXECUTING
THE PRESET
Present value read
.._
,
FUNCTION
(b)
Execution using
selected as the PC CPU
I.
FROM/TO
I/O
instructions (when the refresh method is
control method)
The portion of the program example shown in (a) enclosed
be
broken line must
replaced with the following:
"EWE@A
by
the
.*
-
-
,
I[
II[
DFRO
H
0000
SEG
[SET
K
4
L
K4
YO10
RST
yo15q
K
D1
BOO1
YO15
Read
the
and store it
present value,
to
Dl
to
D2.
7-10
Page 61
7.
EXECUTING
,:,I
,.
.x
THE
PRESET
(c)
Emution
FMW:;
using
&ASCPU(.Sl/S@)
'_
..
.
dedicated instructions
,
.,
used
in
me of
enclosmhby the
Asshown below,
Present value read
To
perform communications with a special function module using an
A2ASCPU(Sl/S30)
A2ASCPU(S1/S30)
the
portion
of the program example shown in (a)
broken line.
dedicated instruction, register
dedicated instructions can be
Read the
and store it to
AD61
as the module
present value,
Dl
to
D2.
type when setting parameters.
7-11
Page 62
8.
EXECUTING
8.
EXECUTING THE RING COUNTER FUNCTION
8.1
Ring
Counter
THE
RING.CWNTER
This section describes the ring counter function.
.
..
Function
FUNCTlON
-_
e
.'
-
MELSEC-A
The ring counter function automatically
that has been preset and executes counting operations.
The ring counter function can be used when executing controlled cycles such
as incremental feed.
Ring counter function application example:
to
Using a system
the ring counter value, and cut the sheet
1)
Set the preset and ring counter values
function.
2)
Turn on the motor
3)
Operate the rollers
cut a sheet
to
a specified size, adjust its rollers by setting
to
operate
so
sets
the present value
to
the specified size.
to
the
rollers.
that the sheet can
to
the value
execute the ring counter
be
cut
to
the specified
size.
4)
Cut the sheet.
5)
Repeat steps
2
to
4.
Roller Sheet
m
8-1
Page 63
8.1.1
Ring counter function operation
To
use
the,fdng
AlSD62(E/D)
counter function, set
PC
board
to
ON
the
in advance.
rhg
..counter setting pin on the
,
..
Set the preset value and the ring count value in'tbebuffer memory.
Gaunt enable command
(Y14 (YlB)}
Input
pulse
to
counter
OFF
ON
I
Coincidence output point
setting
No.
(addresses 6
,
Counter value coincidence
(point No. 1) (X01 (X05)}
Coincidence signal reset
command (YlO (Y17)}
Preset command
(Yll (Y18))
Present value storage buffer
memory
{addresses 4
1 buffer memory
to
to
(1)
....
The preset value is written in 24-bit binary
buffer memory (addresses
advance.
....
The ring counter value is written in 24-bit binary
(2)
output point setting
in advance.
7 (38
5
(36
to
to
39)}
37)}
ON
OFF
ON
OFF
IIIIIO
J,,,,,II,I,
I,,IIIIIII,
'I I
'6
I,,,
'It,,#
I,,,,,
I,,,,,,
1,
',,,,,lIIII
~IIIIIIIII,
:I:::::,
'
0
I
1
No.
1 buffer memory {addresses
1
I
I
' 2 '
to
I I
I
,//,
to
2
(33
,
I I,
'98'99'
to
'100:
to
the preset value setting
34))
of
I I
;
0
' 1 ' 2 ' 3 '
: :
the AlSD62(E/D) in
to
the coincidence
6
to
7
(38
to
39))
...
The preset value stored in the preset value setting buffer memory is
(3)
in
preset
of
the preset command [Y
the present value storage buffer memory at the leading edge
11
(Y 18)).
Presetting can be executed whether the count enable command (Y14
(Y1
B))
is
ON
or
OFF.
(4).
. .
When the counter value reaches the ring counter value, the counter
to
value coincidence signal is turned on
execute presetting.
reading the present value during presetting, the ring counter value or
preset value is read.
(5)
....
The coincidence signal reset command is turned on, and the counter
value coincidence signal is reset.
The subsequent coincidence signal output does not take place as long
as the counter value coincidence signal remains on.
8-2
By
Page 64
8.1.2
Count range
As
shown
ing on the relationship between
present value and the counting mode (up count/down count).
(1)
below,
When preset value s present value I ring counter value
If the ring counter function is executed when the preset value is
ring counter value is
events occur:
the count range of the
the
2000,
and the present value is
ring
preset
counter function differs depend-
value, the ring counter value, the
500,
0,
the
the following
(a) In up count, the present value becomes equivalent
(0)
value
(b)
In down count,
reached the preset value
counted down
to
the preset value
500
(2)
When preset value I ring counter value I present value
If
the ring counter function is executed when the preset value is
ring counter value is
events occur:
In
(a)
up count, the present value returns
it has reached the mdmum value
present value is counted up
becomes equivaient
as soon as
501
490
it
is counted up
to
1998 1999 20WO 1 2 3
the
present value returns
(0).
Then, when the present value is
to
the ring counter value
(0).
to
0
16777215
2000,
and the present value is
to
the preset value
to
to
to
the ring counter value
(2000),
2002 2001 200010 1677721
to
the minimum value
(16777215).
the ring counter value
(0).
to
the preset
(2000).
to
I6777215
it becomes equivalent
3000,
after
the following
(0)
Then, when the
(2000),
it
has
0,
the
after
5
it
I
POINT
(1)
I
3000 3001
(b)
In down count, the present value becomes equivalent
value when it is counted down
3000 2999
to
16777215
to
2001 200010 1677721 5 16777214 16777213 16777212
0
1999 200010 1 2
to
the ring counter value
I
Do
not write the preset and ring count values during execution
the ring counter function.
8-3
to
the preset
(2000).
of
I
Page 65
8.2
Example
Program
.
.*
IC
Createlaprogram
ring
the
System
Devices
(1)
counter
&figuration:
to
be used:
Execution commands
(a)
Pulse
(b) Count operation start command
(c) Present value read command
(d) Preset value write command
sistent with the 2-phase
pulse input multiplied by
Start the pulse count with
4
the count enable command
(SET).
Read the present
value and store it
devices
Dl
to
D2.
to
,
Count operation stop
F6
CIRCUIT
END
4
PH
PH
C
TO
0000
K
PK
MOV
500 OB
K
9
DB
E
RST
K
1
YO14
Read and store the
periodic pulse count
present value
to
D6, and the peri-
odic pulse count previous value
D4
Set the sampling counter
function.
Set the sampling time
Execute the periodic
pulse counter.
Stop the pulse count with
e count enable com-
4
th
mand
to
(RST).
to
D3
D5
to
8
'
9
-25
Page 94
Present value read
I
x021
+I
(b)
Execution using
selected as the
The portions of
broken and dotted lines must be replaced with the following:
FROMlTO
PC
CPU
the
program example shown in (a) enclosed by the
[
instructions (when the refresh method is
1/0
control method)
1
DFRO
H
0000
SET YO15
K K
4 Dl
f-
1
Read the present
value, and store it
to
Dl
to
02.
K4
RST
K
16
K
18
M9052
SET-
D3
03
[
SET
[
SEG YO10 BOO1
[
.-
t
Latch count command
DFRO
DFRO
H
0000
H
.
oo00
SET M9052
SEG YO10 BOO1
>
K4
YO15
E
YO15 Read and store
1 value toD5
K pulse count pre-
1
the periodic pulse
count present
and the periodic
vious value
to
D4.
to
to
D6,
D3
9-26
Page 95
Present value read
I
x021
I+
t
I
?ILEDA
I
1
PO'lNT1
Exeqution.using
As
show
W
indace
endosed
by
A2ASGPU(Sl/Wj Micated instructions
belapl,.MASCPU@1&.30) dedicated instructions can
of
the
broken
the
portion
line.
of
the
Droaram example shown in (a)
m1
r
PVRDl
HOOOO
Read
value, and store
to
Dl
the
to
be
present
it
D2.
I
To
perform communications with a special function module using an
A2ASCPU(Sl/S30) dedicated instruction, register
type when setting parameters.
AD61
as the module
9-27
Page 96
IO.
PROGRAMMING
WITH ..
I
A
REMOTE
-L
-.
10.
PWGRAWWG
Program
scan time
FOR
I/O
USING
THE
STATION
AI
SD62(ElD)
.MECsEM
FOR
USING
This section describes programming for using the AlSD62(E/D) with a remote
VO
station.
(1)
When the AlSO62(E/D) is used with a
I/O
signals
Communication with this link
instruction of the sequence program has been executed.
Thus, several scan times are required
between the AlSD62(E/D) and the PC CPU.
As an example, resetting
coincidence signal reset command(Y10) is described below, on the
assumption that the A1 SD62(E/D) is allocated
to
the first
point value is 10000.
THE AISD62(E/D)
are processed through a link unit.
I/O
numbers X100 and Y100 and the
SET
Y110
Y110
ON
WiTH
unit
a
counter coincidence signal(X01) with a
A
REMOTE
remote
takes place only once after the END
to
complete all handshake signals
VO
STATION
I/O
station, all data and
to
the
slot
corresponding
set
coincidence output
RSTY110
Y,llOOFF
Link scan
Counter value
x1
01
w
XlOi
ON
d
10000/0
1'
Since the time the counter requires
output point value(lOOO0) is longer than the handshake signal process-
ing time between the AlSD62(E/D) and the PC CPU, the module oper-
ates normally.
However, if the counting time is shorter than the handshake signal
processing time (the
10000, or the pulse frequency
performs incorrect operations, or counts a larger value than the
value. (In such a case, the A1 SD62(E/D) cannot be used with a remote
I/O
station. Mount
The above factors may make it difficult
local station. Consider the program scan time, link scan time and
count-up time carefully
To operate the AlSD62(E/D) through a link unit,
with the master station or a local station.
(When using the AlSD62(E/D) with a remote
above handshake sequence with extreme care.)
set
coincidence output point value is smaller than
to
it
at the master station or a local station.)
to
allow the A1 SD62(E/D)
w
~101'0~~
J
1
oooo/o
1'
to
count from
be counted is large), the AlSD62(E/D)
to
0
to
the set coincidence
use the AlSD62(E/D) for a
to
operate properly.
it
is advisable
I/O
station, examine the
to
use it
set
10-
1
Page 97
(2)
lncorprwste
as the read instruction from the module
1/0
station.
These instructions are executed in
however, the following points are different.
ikSystem Reference
Manual.)
RTQP
st
as
thelvrb
I/c)
.. ..
insifrdctianfo
in
tlwsarne
Of
th@
A1.~3~F/Dl
.
MlA#Sn,M(E/D)anti
the program for
way as TO and FROM,
IS
the
UAu
RFRP
remote
..
SDeclfled
<Example>
fWhen
toX1001Y100
the
first
I/O
number
to
XlIF/YllF
P
TO
HI0
K3
of
the
AlSD62(E/D) is allocated
W10
n
Specify in three digits.
All
data
is
processed through link registers,
the link registers when setting the
The following is an example when the AlSD62(E/D) is allocated
00
to
X1 OO/Y1
External preset detection reset
Preset detection
I
reset
X103
11
XI
X1 1 F/Y 1 1 F.
reset
X103
PC
W,
CPU
parameters.
RST
and it is necessary
I
Y116
4
to
to
set
the
Mode register setting
Mode
register settlng
I/[
M4
Y1OF XllF YIOE XllE
w-)f--)f-$f-[
I-['I_[
X1
IF
10-2
HI00
MOJK,
PLS
SET
HI2
W10
M5
W10
K1
Handshake signal
4
tiplication Select 2 phase,
Write
station
Handshake signal
to
remote
by
4
mul-
I/O
Page 98
,--
10.
PROGRAMMING
WITHiA REMOTE
FOR
I/O
USING THE
STATION
AI
SD62(E/D)
MLm
To
execute the
sponding number of points
loaded in the remote
of the link register.
Set the link register
not conflict with that for the system. (See the MELSECNET and
MELSECNET/B Data’Link System Reference Manual.)
RFRP/RTOP
to
I/O
station from the first device in the M
to
be used for the RTOP instruction
instructions, the system uses the corre-
the number
of
special function modules
@
R
so
that it will
area
10-3
Page 99
11.
TROUBLE
11.1
Error
Information
.-
I.
..
SHOOTING
This
section
troubleshosting
-,
Thg,
AlSD62(E/D)
when the coincidence output fuse has blown
EQU
terminals.
describes
for
error
count
information detected
emrs.
turns on the fusdexternal
by
the AlSD62(E/D) and
power
cqtoff detection flag
or
voltage is not applied to the
(XOE)
11
-1
Page 100
11.2
Counter Value
is
Incorrect
Check item
Is
the pulse input mode consistent with the
pulse input setting
Is
the sequence program data processed
as
24Mt
BtN
Is
a twisted pair wire used as the pulse
input wire?
Does noise come in through the ground of
the A1 SD62(E/D)?
Have adequate measures been taken
against noise in the panel or noise
resulting from the other equipment?
Is
sufficient distance provided between
heavy current equipment and counter
input line?
Is
the
count
CHP
after the same count value was
entered?
Do the pulses input waveform to the
specifications?
data?
value
in
the buffer memory?
the
Same
at
~~
and
.Corr,actlve
)I
Input pulses consistently with the setting.
(see
section
Correct the sequence program
1
data is
Use
a
~~
Disconnect the A1 SD62(E/D) from the
ground.
If
the AlSD62(OD) comes
with the ground, separate it from
ground.
Provide
switches, etc.
Wire the pulse input line independently,
and separate wire
in.) or more from power line.
If
the count value is different, the
hardware is faulty. Investigate the cause
of
the failure, and contact and return it to
our branch office or agent.
Monitor and confirm the input waveform
using a synchroscope.
not consistent with the specifications,
correct the waveform.
5)
prow&
twisted
pair
CR
surge suppression to magnetic
Action
c
~24-bit-BCN
wire,
in
in
panel 150 mm (5.91
If
the waveform
so
that the
data.
contact
the
is
11.3
Count Cannot
be
Made
Check item
Is
the external wiring of 0A and
correct?
When voltage is applied to the pulse input
terminals 0A and
and
OB
go
Is
the count enable command {Y14 (Y1
ON?
OB,
do the LEDs of 0A
OB
ON?
Does
the PC CPU signal that an error
occurred?
Is
the counter
command {Y16 (Y1
voltage applied to the F.START terminal?
function
D)}
selection
ON;
or is the
start
Corrective Action
Check the external wiring, and correct it.
When the
external wiring and the pulse generator,
and take appropriate measures.
When the LEDs did not go
hardware may
consult your nearest Mitsubishi
representative.
Turn
B))
(Y1
B)}
When the PC CPU contains an error,
the troubleshooting section in the PC CPU
manual, and verify the correct operation
functions.
When the count dieable function was
by the counter function selection, turn
{Yl6 (YlD)} or the F.START terminal.
LEDs
went
ON,
be
faulty. In this case,
ON
the count enable command {Y14
with the sequence program.
check the
ON,
the
see
eat
OFF
11
-2
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.