EasyManuals Logo

Omron SYSMAC C Series User Manual

Omron SYSMAC C Series
166 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #25 background imageLoading...
Page #25 background image
Introduction
to
programming
Sample
program
for
coding
practice
Preset
counter
5
counts
X2
[ag
O
O
1
Solenoid
0000
1000
CNT47
5
counts
CNT47
TIMOO
i
peie-
1000
1000
i
2s
END
Now
let's
try
a
slightly
more
complicated
program
that
shows
how
to
relate
Steps
1—4
to
an
actual
application.
In
the
figure
is
a
control
circuit
for
a
packaging
machine.
The
circuit
is
used
to
detect
and
count
the
number
of
products
being
carried
on
an
assembly
tine.
When
it
counts
five
products,
the
circuit
energizes
a
solenoid.
The
solenoid
receives
electrical
current
for
a
period
of
two
seconds
and
is
then
shut
off.
Using
Step
1
we
determine
that
there
is
an
input
device
(a
limit
switch),
an
output
device
(a
solenoid),
a
control
relay
(an
internal
auxiliary
relay),
a
timer,
and
a
counter.
To
carry
out
Step
2,
we
have
to
assign
numbers
to
the
components
constituting
this
circuit.
This
is
how
our
assignment
looks:
Input
device
(limit
switch)
:
Input
relay
No.
0000
Output
to
solenoid
:
Output
relay
No.
0500
Control
relay
(X1)
:
Internal
auxiliary
relay
No.
1000
Counter
CC
:
CNT47
Timer
T
:
TIMOO
The
ladder
diagram
that
represents
this
circuit
using
the
numbers
we
assigned
looks
like
the
one
at
left.
Next
we'll
encode
the
ladder
diagram
as
required
for
Step
3.
These
are
the
key
things
that
require
attention:
Be
sure
to
use
the
assigned
input
number.
Since
the
timers
and
counters
must
be
assigned
numbers
from
a
range
of
0
to
47,
a
convenient
way
to
make
this
assignment
is
to
begin
at
one
end
of
the
range
for
timers
and
the
other
end
for
counters.
That’s
why
we
gave
Timer
T
the
number
00,
while
Counter
CC
was
assigned
the
number
47.
This
helps
to
prevent
possible
use
of
the
same
number
for
both
a
timer
and
a
counter.
Timers
and
counters
cannot
directly
produce
an
output
but
must
be
output
by
means
of
an
output
relay.
This
relay
contact
can
be
reused
as
often
as
desired,
but
the
coil
cannot
be
reassigned.
The
assigned
output
relay
plays
the
role
of
the
load
in
this
example.
The
right
bus
bar
does
not
need
to
be
written.
Each
logic
line
must be
ended
with
a
relay
coil,
timer/counter,
or
special
instruction.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC C Series and is the answer not in the manual?

Omron SYSMAC C Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC C Series
CategoryController
LanguageEnglish

Related product manuals