Delta RMC151 User Manual
Page 611
6 Communication
12.
Save the Network Configuration
a.
On the File menu, click Save. Follow the instructions to save the network
configuration.
Performing Communications
Once the EtherNet/IP connection is configured and applied to the PLC, the
communications will automatically start, assuming the PLC and RMC are both on a
properly set up Ethernet network. Notice that the Omron will communicate even when it
is in Program mode.
Reading Data from the RMC
This data will automatically update each Requested packet interval, and you can use the
data as you wish. You cannot write to the Input Data. The Input Data will contain the
Indirect Data from the RMC. However, if you selected to use the Sync Register, the first
item in the Input Data array will be the SyncIn value, followed by the Indirect Data from
the RMC.
The SyncIn is used only for synchronizing commands with the logic, as explained below.
The SyncIn and SyncOut registers are only visible in the PLC. They are not visible in
RMCTools.
Writing to the RMC - General
If you selected to not use a Sync Register, the Output Data is written to the RMC when
any value in the Output Data changes.
If you selected to use a Sync Register, the Output Data is sent to the RMC at each
Requested Packet Interval, but the RMC ignores it until the SyncOut register changes. The
first item in the Output Data array is the SyncOut register, followed by the registers that
will be sent to the Incoming Data location in the RMC. Use the following procedure to
write to the RMC with a Sync Register:
1. Wait Until the Sync In and Sync Out Registers Match
If they do not match, then this means that another write is in progress.
2. Write to the Output Data
Write the desired to the Output Data array.
3. Change the Sync Out Register
The easiest way to do this is to add one to it. However, you must take care to handle
overflowing this register (the Sync register is a REAL). One method is to add one and
then MOD it with some large number, such as 10000. This will make the register count
from 0 to 9,999, and then wrap back down to 0 without an error.
4. Wait Until the Sync In and Sync Out Registers Match
This indicates that the RMC has received the data and processed it.
See Using an EtherNet/IP I/O Connection for further details.
Sending Commands to the RMC
If you are writing to the Command Area, either directly or via the Indirect Data Map,
Delta recommends using a Sync Register and following the procedure below to send
commands to the RMC. The Output Data is sent to the RMC each RPI, but the RMC
ignores it until the SyncOut register changes. The first item in the Output Data array is
the SyncOut register, followed by the registers that will be sent to the Incoming Cyclic
I/O Data location in the RMC.
1. Wait Until the Sync In and Sync Out Registers Match
If they do not match, then this means that another write is in progress.
2. Clear Old Commands from the Command Registers
Clear old commands from the command registers in the Output Data. Otherwise, when
the Sync Out register is changed, the commands would be re-issued. One method of
clearing the old commands is to fill the Output Data array with zeroes (except the
SyncOut value).
deltamotion.com
591