106
Length
<l>
Set
the
length
of
the
data.
All
communications
with
the
3G3RV
are
performed
in
byte
units.
Select
1
Byte
and
BIN.
Select
No
for
read-
ing
data
because
there
is
no
data
to
be
read.
Address
<a>
Set
the
addresses
of
the
Slaves.
In
this
example,
the
Slave
addresses
are
set
in
S
+
2,
S
+
5,
and
S
+
8.
Therefore,
retrieve
the
data
from
those
locations.
The
address
is
set
in
the
LSB
of
each
word.
To
read
the
byte,
select
Variable
Reverse,
otherwise
the
data
is
read
from
the
MSB.
Then
click
on
Edit
Variable
with
the
left
button
of
the
mouse.
Select
Read
R
()
and
set
Data/Address
to
the
operand
(3N
+
2)
using
the
number
(N)
of
times
to
repeat
the
step.
Set
Edit
Length
to
1
byte
as
a
default.
If
the
default
value
has
been
changed,
set
it
to
0N
+
1.
Data
Set
the
DSR
message
in
detail.
• DSR
Message
Requesting
that
the
RUN
Command
and
Frequency
Reference
Be
Written
The
DSR
message
to
write
data
to
two
registers
from
register
0001
Hex
(the
RUN
command)
consists
of
the
following
items.
Fig 6.68 DSR Message to Write Data
a 10 00 01 00 02 l R 3N 3 4 c
a
The Slave address is set in the address box. Insert the address with the Insert icon.
10 00 01 00 02
Set the constants contained in the DSR message.
Use Set Constant and set the constants in Hex.
l
The length is set in the length box. Insert the length by using the Insert icon. The length is the number of bytes of the
succeeding data (R(3N +3), 4). The length is automatically set by the CX-Protocol.
(R(3N +3), 4)
The Inverter’s actual data to be sent. This example selects Variable and Read R() and sets the operand. Set Data to
3N + 3 because the RUN command data uses four bytes each from S + 3, S +6, and S + 9.
Set Edit Length to 0N + 4 so that it will be set to four bytes.
c
The check code is set in the check code box. Insert the check code by using the Insert icon. All the data including the
address data before the check code is operated. Mark all the items if the PST is used. The check code is automatically
set by the CX-Protocol.
1000010002
Slave address (Set with <a>)
Function code (Write 10)
Write start register number (RUN command: 0001)
Number of write data registers: 2
Number of bytes of attached data (Set with <l>)
Start register data
Next register data
CRC-16 check (Set with <c>)
Set with variables
Set data