Unity pro to vijeo variables

SparkyAB

Member
Join Date
Jan 2016
Location
alberta
Posts
5
Hey all just hoping for a little help here. I'm using unity pro to reprogram a Plc and also using Veijo to add a small touch screen hmist5u. Plc is a Modcon3040. I have experience programming the Plc and was able to build the operator screen no problems. My issue is connecting a variable set in the hmi to the unity software so I can use it in my program. Can anyone walk me through the steps as Schneider does a garbage job of explaining it
 
hi sparky

There is a way to do it without addressing the tags in the modicon program, the process is similar but I think you need to link a .stu file instead of .xvm.

1. In Unity select all the tags you want to use in the PLC and export them in a .xvm file. I have taken to checking the "HMI" property on any tags I want on the HMI so I filter the tags by HMI property in the data editor and then export the list.

An aside:
the "HMI" tag property can be used in conjunction with one of the project properties to only include tags which have HMI checked in the data dictionary, which is some database of tags stored in the PLC memory that HMI software can read from the PLC to get a list of tags it can read.

2. In vijeo designer under IO manager add new driver, add driver modbus TCP modbus
3. IO manager ->modbusTCPIP, add new equipment, enter the IP address of your modbus slave (m340 plc)
4. right click variables in the tree and "Link Variables".
5. select the XVM file you made and the equipment at the bottom of the link variables dialog should be the modbus slave you made in step 3.
6. right click variables and select new variables from equipment. all the tags in the XVM file should be there. select the tags you want the HMI to read. I use "Variables that keep the same name" but you might have multiple data sources and want to select one of the other options to avoid tag name collisions.
 
if you use variables without addresses, then it is useful to select data dictionary setting to use from Unity project settings.
With data dictionary setting there is no need to update also HMI program every time when you make modifications on CPU program.
If you use only addressed variables, then there is no need select data dictionary.
 

Similar Topics

Hi, Ive had this issue with vijeo designer for a while where every time you do a complete rebuild of the plc program in unity pro you would need...
Replies
1
Views
1,573
Hi guys! I am working with Unity pro and Vijeo citect. I am getting TT input on PLC analog input model addressd as %IW0.1.0 where in the citect...
Replies
2
Views
2,698
Hi guys, I mostly used AB product to work in my life, View Studio ME, RSLogix500 and RSLogix5000. Some company asked me to work for them and...
Replies
6
Views
3,494
Hello, I am using Unity Pro S V8.0 and Vijeo Designer V6.2, both are not licensed yet. I followed tutorial video from youtube but I still cant...
Replies
2
Views
5,326
Hello all. I was told that you could run a "desktop" simulation between these devices to test out your programming, but I am running into issues...
Replies
10
Views
8,022
Back
Top Bottom