Using Omron PLCs with the RMC ENET

Overview

The CS1 and CV families of PLCs from Omron Electronics Inc. can be used to control the RMC over Ethernet. These PLCs require the ETN01 Ethernet Unit and use Omron's FINS protocol to communicate with the RMC.

Note: Ethernet communication with the Omron PLCs requires RMC ENET firmware dated 20001023 or later.

 

Note: The documentation below assumes the user is familiar with Omron PLC programming, and instead focuses on how to initiate reads and writes to an RMC.

The FINS protocol uses a three-stage addressing system: network address, node number, and unit number. These three address elements have the following purposes:

 

The RMC does not require manually setting these values in the RMC. Only the IP address needs to be set in the RMC; see RMC Ethernet IP Address Setup for details. See the discussion below on setting up the RECV and SEND instructions for details on what values to use for the Network, Node, and Unit numbers when communicating with an RMC.

The RMC has 64K registers. When accessed by Omron PLCs, this data appears in Data Memory (DM) registers D0 to D16383, and Extended Data Memory (EM) registers En_0 to En_6143, where n is the bank number from 0 through 7. For CPUs that do not support some or all of these Extended Data Memory Banks, the only functionality that will be lost is reading up complete plot data. The CV500 PLC also cannot read data beyond D8191, however, the only feature that is lost by this limitation is access to the Spline Download Area. See RMC Register Map (Omron FINS) for details.

The Omron CS1 and CV PLCs use the Network Receive (RECV) and Network Send (SEND), instructions to read and write registers in remote devices such as the RMC over FINS. The Omron PLC instruction manuals are very well written and should suffice as a reference for setting up this communication. However, a brief synopsis of each of these instructions is provided below, followed by an example.

Network Receive: RECV(098) for CS1, RECV(193) for CV

This instruction is used to read data from the RMC's registers into the PLC's registers. It has the following format:

image\ebx_1092395380.gif

RECV should be energized for only one scan to start the communication. After that, the Communications Port Enabled Flag (A202.00 to A202.07 on the CS1 family and A502.00 to A502.07 on the CV family) should be used to determine when the operation is complete, as described in the Omron documentation. Each parameter is described below:

S First Source Word in Remote Node. Give the starting address to read from in the RMC. This must be either a DM (Dnnnnn) or EM (Eb_nnnnn) address. The current extended data memory bank on the RMC is always set to bank 0. Refer to the RMC Register Map (Omron FINS) topic for exact addresses.

D First Destination Word in Local Node. Give the starting address in the PLC to store the data read from the RMC. This is typically a DM address.

C First Control Word. This instruction uses a block of five control words. These words are used to control the network communication itself. These five words are defined as follows:

Word

MSB (Bits 8-15)

LSB (Bits 0-7)

C

Number of words to read (1 to 512).
The PLC supports reads up to 990 words, but the RMC is limited to 512 words.

C+1

Always 00 for RMCs.

Remote Network Address.
For RMCs, this value should be set to the address of the RMC's Ethernet network.

C+2

Remote Node Number.
For RMCs, this value should be set to whichever Node Number will be mapped to the RMC's IP address.

Remote Unit Number.
For RMCs, this value should be 0.

C+3

Port Number: 00 to 07.
The Port Number is used to allow simultaneous communications in the PLC. Use a different number for each communication that may be requested simultaneously.

No. of Retries: 00 to 0F (0 to 15).
For RMC communications, this value should be between 2 and 5.

C+4

Timeout: 0001 to FFFF (0.1 to 6553.5 seconds).
The default setting of 0000 sets a monitoring time of 2 seconds. For RMC communications, this value should be set to 0001 or 0002 for 0.1 or 0.2 second timeouts.

 

Network Send: SEND(090) for CS1, SEND(192) for CV

This instruction is used to write data from the PLC's registers to the RMC's registers. It has the following format:

image\ebx_1076178432.gif

SEND should be energized for only one scan to start the communication. After that, the Communications Port Enabled Flag (A202.00 to A202.07 on the CS1 family and A502.00 to A502.07 on the CV family) should be used to determine when the operation is complete, as described in the Omron documentation. Each parameter is described below:

S First Source Word in Local Node. Give the starting address in the PLC of the data to write to the RMC. This is typically a DM address.

D First Destination Word in Remote Node. Give the starting address in the RMC of the place to write the data. This must be a DM address (Dnnnnn). None of the RMC's EM banks can be written to. Refer to the RMC Register Map (Omron FINS) topic for exact addresses.

C First Control Word. This instruction uses a block of five control words. These words are used to control the network communication itself. These five words are defined as follows:

Word

MSB (Bits 8-15)

LSB (Bits 0-7)

C

Number of words to write (1 to 512).
The PLC supports writes up to 990 words, but the RMC is limited to 512 words.

C+1

Always 00 for RMCs.

Remote Network Address.
For RMCs, this value should be set to the address of the RMC's Ethernet network.

C+2

Remote Node Number.
For RMCs, this value should be set to whichever Node Number will be mapped to the RMC's IP address.

Remote Unit Number.
For RMCs, this value should be 0.

C+3

Port Number: 00 to 07.
The Port Number is used to allow simultaneous communications in the PLC. Use a different number for each communication that may be requested simultaneously.

No. of Retries: 00 to 0F (0 to 15).
For RMC communications, this value should be between 2 and 5.

C+4

Timeout: 0001 to FFFF (0.1 to 6553.5 seconds).
The default setting of 0000 sets a monitoring time of 2 seconds. For RMC communications, this value should be set to 0001 or 0002 for 0.1 or 0.2 second timeouts.

 

CS1 Example

The user has an Omron CS1 PLC with a CS1W-ETN01 Ethernet Unit and an RMC-ENET. The Omron PLC has just one network, which is the Ethernet network accessible through an ETN01 Ethernet Unit. This network has Network Address 1. The ETN01 Ethernet Unit has Unit Number 0. The Omron PLC has IP address 192.168.0.2, and the RMC has IP address 192.168.0.5. The Omron ETN01 is set up to use Automatic Address Generation, so the RMC has Node Number 5, and the ETN01 has node number 2.

The following diagram demonstrates the configuration:

image\ebx_-104322722.gif

The Omron PLC must have one entry in its Local Network Table. This entry assigns Network Address 1 (the Ethernet network) to Unit Number 0 (the ETN01 Ethernet Unit).

The user wishes to continuously read the 80 status words starting at address D0 in the RMC and store them at D0 in the PLC. The user also wishes to write 48 words from D100-D147 to the RMC's command registers D80-D127 whenever the 1200.00 coil is set. The following ladder logic does this:

image\ebx_987817540.gif

In this example, the RECV(098) instruction will be triggered each time the Communication Port 0 Enabled Flag (A202.00) is set. This flag will be set any time port 0 is not busy. Therefore, the PLC will read these registers from the RMC continuously as fast as it can. Depending on the load of the PLC, this will read the RMC's status as often as every 18 ms.

The SEND(090) instruction uses port 1. It is important that this is a different port number from the RECV(098) instruction. It is possible to use the same port number for two network instructions, but this reduces performance and requires additional synchronization ladder logic. Examples of doing so are given in the Omron documentation.

 

CV Example

The user has an Omron CV PLC with a CV500-ETN01 Ethernet Unit and an RMC-ENET. The Omron PLC has just one network, which is the Ethernet network accessible through an ETN01 Ethernet Unit. This network has Network Address 1. The ETN01 Ethernet Unit has Module Address (equivalent to Unit Number in the CS1) 0. The Omron PLC has IP address 192.168.0.2, and the RMC has IP address 192.168.0.5. The Omron ETN01 is set up to use Automatic Address Generation, so the RMC has Node Number 5, and the ETN01 has node number 2.

The following diagram demonstrates the configuration:

image\ebx_2125376179.gif

The Omron PLC must have one entry in its Local Network Table. This entry assigns Network Address 1 (the Ethernet network) to Module Address 0 (the ETN01 Ethernet Unit).

The user wishes to continuously read the 80 status words starting at address D0 in the RMC and store them at D0 in the PLC. The user also wishes to write 48 words from D100-D147 to the RMC's command registers D80-D127 whenever the 1200.00 coil is set. The following ladder logic does this:

image\ebx_-683632024.gif

In this example, the RECV(193) instruction will be triggered each time the Communication Port 0 Enabled Flag (A502.00) is set. This flag will be set any time port 0 is not busy. Therefore, the PLC will read these registers from the RMC continuously as fast as it can. Depending on the load of the PLC, this will read the RMC's status as often as every 18 ms.

The SEND(192) instruction uses port 1. It is important that this is a different port number from the RECV(193) instruction. It is possible to use the same port number for two network instructions, but this reduces performance and requires additional synchronization ladder logic. Examples of doing so are given in the Omron documentation.

 


Copyright (c) 1997-2015 by Delta Computer Systems, Inc.