2:
A
DVANCED
I
NSTRUCTIONS
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
2
‐
7
Structure
of
an
Advanced
Instruction
Input
Condition
for
Advanced
Instructions
Almost
all
advanced
instructions
must
be
preceded
by
a
contact,
except
NOP
(no
operation),
LABEL
(label),
LRET
(label
return),
and
STPA
(stop
access)
instructions.
The
input
condition
can
be
programmed
using
a
bit
device
such
as
input,
output,
internal
relay,
or
shift
register.
Timer
and
counter
can
also
be
used
as
an
input
condition
to
turn
on
the
contact
when
the
timer
times
out
or
the
counter
counts
out.
While
the
input
condition
is
on,
the
advanced
instruction
is
executed
in
each
scan.
To
execute
the
advanced
instruction
only
at
the
rising
or
falling
edge
of
the
input,
use
the
SOTU
or
SOTD
instruction.
While
the
input
condition
is
off,
the
advanced
instruction
is
not
executed
and
device
statuses
are
held.
Source
and
Destination
Devices
The
source
and
destination
devices
specify
16
‐
or
32
‐
bit
data,
depending
on
the
selected
data
type.
When
a
bit
device
such
as
input,
output,
internal
relay,
or
shift
register
is
designated
as
a
source
or
destination
device,
16
or
32
points
start
‐
ing
with
the
designated
number
are
processed
as
source
or
destination
data.
When
a
word
device
such
as
timer
or
coun
‐
ter
is
designated
as
a
source
device,
the
current
value
is
read
as
source
data.
When
a
timer
or
counter
is
designated
as
a
destination
device,
the
result
of
the
advanced
instruction
is
set
to
the
preset
value
for
the
timer
or
counter.
When
a
data
register
is
designated
as
a
source
or
destination
device,
the
data
is
read
from
or
written
to
the
designated
data
register.
Using
Timer
or
Counter
as
Source
Device
Since
all
timer
instructions—TML
(1
‐
sec
timer),
TIM
(100
‐
ms
timer),
TMH
(10
‐
ms
timer),
and
TMS
(1
‐
ms
timer)—
subtract
from
the
preset
value,
the
current
value
is
decremented
from
the
preset
value
and
indicates
the
remaining
time.
As
described
above,
when
a
timer
is
designated
as
a
source
device
of
an
advanced
instruction,
the
current
value,
or
the
remaining
time,
of
the
timer
is
read
as
source
data.
Adding
counters
CNT
start
counting
at
0,
and
the
current
value
is
incremented
up
to
the
preset
value.
Reversible
counters
CDP
and
CUD
start
counting
at
the
preset
value
and
the
current
value
is
incremented
or
decremented
from
the
preset
value.
When
any
counter
is
designated
as
a
source
device
of
an
advanced
instruction,
the
current
value
is
read
as
source
data.
Using
Timer
or
Counter
as
Destination
Device
As
described
above,
when
a
timer
or
counter
is
designated
as
a
destination
device
of
an
advanced
instruction,
the
result
of
the
advanced
instruction
is
set
to
the
preset
value
of
the
timer
or
counter.
Timer
and
counter
preset
values
can
be
0
through
65535.
When
a
timer
or
counter
preset
value
is
designated
using
a
data
register,
the
timer
or
counter
cannot
be
designated
as
a
destination
of
an
advanced
instruction.
When
executing
such
an
advanced
instruction,
a
user
program
execution
error
will
result.
For
details
of
user
program
execution
error,
see
page
(
Basic
Vol.)
.
Note:
When
a
user
program
execution
error
occurs,
the
result
is
not
set
to
the
destination.
Repeat
Designation
Specifies
whether
repeat
is
used
for
the
device
or
not.
Repeat
Cycles
Specifies
the
quantity
of
repeat
cycles:
1
through
99.
I0
S1
R
*****
REP
**
D1
R
*****
Opcode
The
opcode
is
a
symbol
to
identify
the
advanced
instruction.
Data
Type
Specifies
the
word
(W),
integer
(I),
double
word
(D),
long
(L),
or
float
(F)
data
type.
Source
Device
The
source
device
specifies
the
16
‐
or
32
‐
bit
data
to
be
pro
‐
cessed
by
the
advanced
instruction.
Some
advanced
instruc
‐
tions
require
two
source
devices.
Destination
Device
The
destination
device
specifies
the
16
‐
or
32
‐
bit
data
to
store
the
result
of
the
advanced
instruction.
Some
advanced
instructions
require
two
destination
devices.
Opcode
Source
Device
Repeat
Cycles
Destination
Device
Repeat
MOV(W)
Data
Type
Designation
I0
REP
S1
–
D10
D1
–
D20
SOTU
MOV(W)
Содержание MICROSmart FC5A Series
Страница 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Страница 2: ......
Страница 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Страница 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...