objective: the objective of this technote is to establish...

31
Objective: The Objective of this technote is to establish the communication between TSXETY110 over Ethway and Vijeo Citect through OPC. Software Used: Unity Pro XL V7.0, OFS v3.4, Vijeo Citect v7.4 Procedure: PLC and TSXETY110 Configuration: 1. Configure the TSXETY110 NETWORK module as mentioned below. Set Network No. and Station ID by using combination of rotary switches on TSXETY110 Module.(For Example Net= 1 ,Station=2) then X-way address for the module will be 1.2 2. Add One Ethernet network by right clicking on Networks under Communication option as mentioned below:

Upload: hoangphuc

Post on 05-Jul-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Objective: The Objective of this technote is to establish the communication between

TSXETY110 over Ethway and Vijeo Citect through OPC.

Software Used: Unity Pro XL V7.0, OFS v3.4, Vijeo Citect v7.4

Procedure:

PLC and TSXETY110 Configuration:

1. Configure the TSXETY110 NETWORK module as mentioned below.

Set Network No. and Station ID by using combination of rotary switches on TSXETY110 Module.(For

Example Net= 1 ,Station=2) then X-way address for the module will be 1.2

2. Add One Ethernet network by right clicking on Networks under Communication option as mentioned

below:

Page 2: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Click on New Network, one window will come like below :

Select and press ok to Exit.

Set Communication parameters in assigned network i.e. Ethernet_1. Follow below steps to

configure.

Double Click on Ethernet_1 network,One window will appear as shown below:

Select the Model Family to TCP/IP 10 and Ethway by default it is configured to TCP/IP 10/100

Regular Connection.

Next Configure the IP Address and Subnetwork Mask as shown in above screen.

Page 3: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

After this configure and enable the Messaging setting as mentioned below:

X-way Address(i.e. 1.2) is same as setted on TSXETY110 Module.

IP Address(i.e. 192.168.1.60) is the IP of the Client PC or on which data need to be read.

Note: Always validate the settings done else it will not take effect.

3. Link the Ethernet_1 network with TSXETY110 as follows:

Double click on ETY110 module will open one window

Page 4: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Select the Function and Net Link from drop down menu and then validate(in red circle) and build the

project as shown above.

4. Connect to PLC and download the configuration via UNITELWAY Cable.Make sure the Unitelway

driver must be installed.

Follow the steps to connect with PLC and download:

Go to PLC option and click on Set Address

Configuration should be in Standard Mode(i.e. PLC)

Click on Test Connection. One Pop will come as shown below:

Select Ok to Exit.

Page 5: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Check at the bottom of Unity Pro Software , Program should be built, selected connecting media

(Unitelway)also must be furnished.i.e

Go to PLC Option again and click on connect.

IF program is being downloaded first time or with any offline modification then it will prompt

Different message as below:

Go to PLC Option and select Transfer Project to PLC

Click on Transfer. Follow the below prompted steps :

Page 6: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Once download completed. Below message will be displayed on the bottom of Unity Pro

Software.

5. Check and monitor the status of configuration of TSXETY110 in online state.

Page 7: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

In Red marked circle- Configured X-way address will be displayed.

In Blacked marked circle- Configured IP address of Client PC will be displayed.

In Blue marked circle – Health status of ETY module can be monitored.

We can also check the connectivity or Data Exchange in between ETY module and client PC on

which vijeo citect or OPC client is running by giving pinging request as shown:

Select the IP address furnished in black circle and then click on Ping button .

After completion of request on popup will come as below:

Message Traffic can also monitored as shown below:

Page 8: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

6. Create Variable Tag in Unity Pro

Go to Variable % FB Instances in Project browser tree and double click on Elementary Variable as shown

below:

Create desired variables as shown below:

After creation of Tag Database ,Export it in .XVM format by right clicking on Elementry Variable as

shown below:

Page 9: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

ETHWAY DRIVER INSTALLATION:

Open Local Area Connection from My Network Places.Then click on Properties as shown below:

Click on Install Tab one more window will open as shown below:

Page 10: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Select Protocol Option and then press Add Tab.Then One more window will open ,click on Have Disk as

shown below:

Provide the Path for the Ethway driver setup file

Page 11: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to
Page 12: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

After Completion of setup Ethway protocol will be visible in connections:

Select the Ethway protocol and then click on properties, below window will appear.Make the

appropriate settings (i.e. Network,Station, Size etc as given)

Network will be same as the ETY module is, and Station will be different.

Click Ok to Exit or complete the setup.

Page 13: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

OFS v 3.4 CONFIGURATION:

1. Open OFS Configuration Tool to configure the setting to connect with TSXETY110 over

Ethway.

Create a new Device Alias from FILE.

Configure the various settings as mentioned below:

Device Address:

Setting of device protocol and Ethway address to be done as shown below:

Page 14: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Attach Symbol table file (ie. .XVM) those was exported from Unity Elementry variable.

Keep the rest of the settings as default.

Page 15: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Data Read in OFS(OPC) Client:

In OPC client we can read the Data available in PLC over Ethway by following the below

procedure to read the Values.

Open OPC Client

Select the OFS Server as below:

Page 16: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

After clicking OK, OPC Server will automatically start.

Add new group in client by Go to File ->New

Page 17: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Add Item or Tags whose values need to be read or write.

Go to Group ->Add items

Below window will appear and press Add button in bottom to add the tags

Select the configured Alias and Add the Tag which is on right side by double click and then press Cancel

button in bottom to Exit this window.

Next window will come and show the selected tags, If selection is OK then press OK button in bottom.

Page 18: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Next window will come which will display all the status of individual Tags

Item in Red marking shows communication is not Healthy.Might be PLC or OFS Server not responding.

Below is the Example of Healthy Communication with PLC through TSX ETY110 Communication Module.

NOTE: If in any case Communiation is not coming to healthy then also re-export the Variable from Unity

pro as .XVM file and re-attache to OFS symbol Table File.

Page 19: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

We can simulate the State and values by double clicking on the Tags displayed on Left.For Example In

above Screen shot value for Motor is 0, now we will simulate it to 10.Put Value 10 and then press Write

button in bottom.

Page 20: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Vijeo Citect CONFIGURATION:

Following are the steps to configure Vijeo Citect to pull data over OPC.

1. Create new Project in Vijeo Citect.

2. Follow the below Steps to configure the IO Device.

Go to Citect Project Editor -> Communication->Express Wizard

Press Next

Press Next

Page 21: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Press Next

Press Next

Page 22: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Press Next

Add Alias Name as created in OFS i.e. ETY110

Press Next

Page 23: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Link IO device with External Tag Database i.e OPC.

Browse for Et=xternal tag database

Press Ok then Next

Page 24: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Press Finish to complete the setup.

As soon as setup completed the TAGs will import automatically.

If you want to see the log file then press Yes else press No.

IODevice will be configured as shown below and same can be access from

Project Editor ->Communication->I/O Device.

Page 25: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to
Page 26: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Variable Tags are imported and same can be access by follow:

Press on Variable Tags to get the Variables.

Here we can monitor the Tag Name ,Address, I/O Device, Data Type etc.

Page 27: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

3. Design graphic page to read the values from OPC .

Go to Graphic Builder -> File -> New

We can use any available Templates or we can design our own also.

Save the page with any Name.

Add objects and animate it with the TAGs.

Page 28: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

In a same manner animate all other objects also.

Page 29: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Save Page

Update Pages from Tool Option.

Compile Project.

Then Run the Project

Page 30: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Click on Pages shown in red mark

Page 31: Objective: The Objective of this technote is to establish ...origin-faq.pro-face.com/resources/sites/PROFACE/content/live/FAQS... · Objective: The Objective of this technote is to

Select the Page on which objects are pasted and animated. i.e.Say page Name is OPC_ETY

Below is the runtime page which shows the values and status whatever it is getting from OFS.

Conclusion:

So we can Hand shake the data upto Vijeo citect through OPC(OFS) over Ethway Protocol.