This article will discuss how the EXOR JSmart Panel communicates with the OMRON NX CPU and converts the OMRON NX1 CPU’s Tag to the OPC UA Historical Trend View.
It also introduces the Data Transfer feature of the EXOR panel, which allows direct data exchange between devices without programming.
Let’ start!
Implementation
Omron Side
Create tag
Please create a new project from Sysmac Studio and define some variables in the Global Variables section.
Export tag
Next, Export Tags from Sysmac Studio, by selecting Tools>Export Global Variables>CX-Designer.
Done!Tag has been Exported.
Open Notepad and press Ctrl+V to paste the data exported from Sysmac Studio. You will see the description of the Global Variables you have just defined.
Save the File.
Set the saving destination.
Testing Program
A simple test program is created on the OMRON side.
myArrayR32[0]:=myArrayR32[0]+0.01; myArrayR32[1]:=myArrayR32[1]+0.02; myArrayR32[2]:=myArrayR32[2]+0.03; IF myArrayR32[0] >=5.0 THEN myArrayR32[0]:=0.0; myArrayR32[1]:=0.0; myArrayR32[2]:=0.0; END_IF; |
JMoblie Side
Now we need to set the EXOR side.
Add Protocol
Add a new Protocol by Go to Configuration>Protocols>+ to communicate with the OMRON NX PLC.
Add Ethernet/IP CIP from Drop-List.
The Ethernet/IP CIP parameter setting screen is now displayed.
PLC Models
In the PLC Models Field, we set the type of Omron CPU to be connected with our EXOR Panel.For this Tutorial, let’s choose Omron NJ/NX Series.
IP Address
Enter the IP address of the NX CPU.
Done!
Import Tag
The next step is to import Omron’s Tag.
Select Omron Sysmac V15 >OK to proceed.
Open the Tag list File that was just exported.
Tag has been imported.
Thus, all the Tags of the OMRON CPU are shown.
Add Tag
Now we can import the tags that are required in this tutorial.
Select the desired Tag>Right click>Add to tags.
At the end, you can uncheck the Show all tags checkbox to display only the ones that have been Imported into the JMobile project.
Group Tags
The larger the project, the larger the number of tags becomes, and the Group Tags feature helps keep tags organized.
For example, the Tags for the Omron NX CPU were grouped together in Groups in Omron_NX_1.
Thus, devices to be Triggered on the Alarm screen can be divided into Groups.
Configure OPC UA Historical
The next step is to build the EXOR OPC UA Historical function.
Add Trends
Add a new Trend to the Trend screen and set it up to record Omron’s Tag.
Enable the OPC UA Function
Next, enable the following Options on the OPC UA Server Interface configuration screen.
- Enable Historical Alarms
- Enable Trends
And for Tags Groups and Alarms Groups, select the Groups you want to apply to OPC UA Historical (that’s why you defined Groups earlier, many features in EXOR’s JMobile Runtime are also managed in Groups).
Test From UaExpert
Finally, check out the Historical function from UaExpert.
Go to Documents>Add.
Select History Trend View for Document Type > Add to proceed.
Done!We could see the Tag set in the EXOR panel.
Tags set in Historical Alarm can also be viewed from the History Trend View.
Done!
Start Data Transfer function
Next, we will introduce a rather useful feature of the EXOR panel. This is the Data Transfer feature, which allows direct data exchange between devices without programming.
Configuration
Add Data Transfer Item
Open Configuration>Data transfers and add a new Data Transfer Item with the + button.
TagA
First, set Tag A. This time, set the 5th data in Index 5 of myArrayR32 on the Omron NX CPU side.
Tag B
TagB is set to Index 5 of the IQR_Float32Array_D200_10 array on the Mitsubishi IQ-R side.
Done!
Direction
Next, we need to set the Direction. In other words, this operation can be done from TagA to TagB, TagB to TagA, or in both directions, in this case we will choose case B->A.
Update method
Update Method is a method to trigger the Data Transfer function. In this case, On Timestamp update is selected.
Done!
Table
Now we will add Tables Objects to Screen, which will allow us to neatly arrange the various objects.
Go to Add Tables>Table.
Done!Table has been added.
Grid Layout
The Layout of the Table can of course be freely changed.
The number of Rows and Columns can be freely set in the Properties.
In this example, we will use 2×2.
Adjust the cell
Next, adjust the cell size, etc. Click on the > button in the Table’s cell.
The Cell adjustment screen appears.
In this way, multiple Cells can be selected at the same time and their heights, etc., can be adjusted.
Add Element inside
Finally, add the necessary Objects to the Table.
This can be set up with a simple Drag And Drop like this.
Result
If the Tag is changed to the current value from the Mitsubishi IQ-R side, it can be automatically transferred to the Omron NX CPU side!
The figure below illustrates how this works. By utilizing this Data Transfer function, data can be exchanged between different PLCs via the EXOR panel without programming.