Sei sulla pagina 1di 10

This document describes a simple example for IGS read/write date from RX 3i CPE305 through

embedded Ethernet interface based on OPC UA. The IGS would be configured as OPC UA Client.
RX3i CPE305 would run as OPC UA Server.

Material Required:

- IC695CPE305 with firmware version 8.20 or later which support OPC UA.
- Proficy Machine Edition (version 8.60 SIM 7 will be used for this example)
- Industrial Gateway OPC Server (version 7.58 will be used for this example)

Setting up the PLC:

1. Create RX3i project with CPE305 and configure embedded Ethernet.

In the figure above, Force Compact PVT is set to true. This is the required setting for the OPC UA
Server.

2. Configure OPC UA Server Authentication.

OPC UA provides three authentication methods to logon to a server: Anonymous,


Username/Password and Certificate-based. In this example, we will use Anonymous. It is
enabled by disabling Controller passwords.
3. Add OPC UA Server Subroutine.

There is one service request dedicated to the PACSystems OPC UA Server. This is service request
130, protocol 0x0001 (Refer to GFK 2224 Chapter 10 OPC Server for details). It is recommended
that user create a subroutine to encapsulate the service quest.

An application note entitled OPC-UA Server: Application Logic Quick Start Guide that includes an
example subroutine is available at the GE Intelligent Platforms support site. You can get it from
following link:
http://support.ge-ip.com/support/index?page=docchannel&id=S:DO2516&actp=search

Two files can be downloaded from above link. “OPCUA_Server.XML” is the example subroutine
and would be imported to PME in this example. For the details about the example subroutine
could refer to the other file “OPC-UA App Note.docx”.

From the PME Navigator Tab, right click on “Program Block” and select “Import Block from File…”
Browse to the location of “OPCUA_Server.xml” and select open.

4. Called Parameterized Block in Main Block.


In this example, using embedded Ethernet interface status bit 13 (LAN OK) and bit 16 (LAN
Interface OK) to verify the operable of the embedded Ethernet interface.

5. Arrange the data that to be read by OPC UA Client (IGS).


Arranged following data in this example:
Name Data Type
TestArray01 Word 6 elements
TestData01 BOOL
TestData02 INT
TestData03 REAL

The data required to be read by OPC UA Client should be published as External Read-only or
External Read/Write.
6. Download project to target CPE305.

Toggle “Enable_OPC_UA_CALL” to call the parameterized block. If OPC _UA Server has been
configured, the Coil “ServerConfigured” would be turned to on. Then toggle “Start_Server” to
start this OPC Server and reference Coil “ServerRunning” would be turned to on.

OPC UA Server is configured and it is running now.

Setting up the IGS

1. Create OPC-UA Client channel.

Create new channel and select OPC-UA Client as device driver.


Then discover UA Server.
In next pop window “UA Server Browser”, select “Use Discovery URL” and type connection URL
as following format “opc.tcp://<RX3i IP address>:4840”. In this example, the IP address of the
embedded Ethernet interface on CPE305 is 192.168.0.100, so will type
“opc.tcp://192.168.0.100:4840”. Then click Refresh, you will find the name of RX3i Controller in
UA Servers.
Select the Server and click OK button.

In this example, for the OPC UA Server Authorization, we used Anonymous, that is Controller
Password has been disabled (check Setting up the PLC Step 2). So keep Username and Password
blank in Channel Authentication.
Now Channel has been configured completely.

2. Add new device under the configured OPC UA Client channel.

Once new device has been created properly, it would be added under the Channel.

3. Import items from OPC UA Server

Right click the device and select properties.


Then select import tab and click “Select import items” button.

In next pop window, you can find the data we arranged in PLC side (check Step 5).

Select them and add to Import Items. Then click OK.


4. Online monitor.

Launch OPC Quick Client to monitor.

Potrebbero piacerti anche