1 / 26

Unity Application Generator

Unity Application Generator. How Can I… Exchange data between TWIDO PLC and any Unity PLC using UAG. I want to exchange data between TWIDO PLC over ModBus TCP with any Unity PLC. The TWIDO has to communicate over IO Scanner. I need to read and write 5 inputs and outputs words. Issue.

Download Presentation

Unity Application Generator

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unity Application Generator How Can I… Exchange data between TWIDO PLC and any Unity PLC using UAG

  2. I want to exchange data between TWIDO PLC over ModBus TCP with any Unity PLC. The TWIDO has to communicate over IO Scanner. I need to read and write 5 inputs and outputs words. Issue

  3. UAG offers a possibility to include a generic device and made it available through out the project. A new generic device can be included in customization. Goal: To develop a device to represent TWIDO PLC with five inputs and five outputs of type word. This device should be capable of communicating with PLC over IO Scanner. This means user should be able to key-in IP address to the device. How to do.. Basic explanation

  4. Under UAG customization PLC User defined module, a new module can be inserted. By clicking on User defined module, a list of existing modules will be appeared. New device can be added by using ADD option. How to do.. In Customization

  5. By clicking on ADD option, this screen will appear. How to do.. In Customization

  6. User can select Module category. These options are available User can select possible rack type. These options are available How to do.. In Customization

  7. We have named the device as TWIDO with Complex IO as Module category and Rack is of type Ethernet IO. Description and Icon can be changed. IO Areas can be defined each area for Input, Output or both can be defined. How to do.. In Customization

  8. In this case we have defined only one IO Area with 10 bytes for inputs and 10 bytes for outputs. Input slave and output slave represent the starting address of these words in TWIDO. How to do.. In Customization

  9. By clicking on IO Mapping, IO can be mapped for each areas. Here we are defining words under IO Area “XDIO” How to do.. In Customization

  10. For each IO area, number of bytes, data types, description and quantity can be defined. How to do.. In Customization

  11. In this example, we have defined two IO areas under “XDIO” under INPUT they look like this: Note: Each word representing 16 digital inputs i.e. XDI1 is word for first 16 Bool inputs on TWIDO. How to do.. In Customization

  12. In this example, we have defined two IO areas under “XDIO” under OUTPUT they look like this: Note: Each word representing 16 digital outputs i.e. XDO1 is word for first 16 Bool outputs on TWIDO. How to do.. In Customization

  13. How to do..In UAG • After analyzing and saving the customization file, the project should be opened in UAG. Following message will appear: • Note: We have selected ETHERNET IO , it should be ensured that a PLC with proper Ethernet interface is available and proper IP address has been given.

  14. Under the PLC, a new rack should be included. Following parameter should be selected. How to do.. In UAG

  15. Under the new Ether IO drop, rack should be opened with “Open Rack” option. How to do.. In UAG

  16. Under the rack, the new module can be inserted. Following parameters should be selected. How to do.. In UAG

  17. Note: the new module “TWIDO” should be available under MODULE column. Parameters window can be opened by right clicking on the module How to do.. In UAG

  18. By clicking on “Open IO”, this screen should be appeared. To test, following variables should be created, under variable table in UAG. How to do.. In UAG

  19. The variable should be connected to input /output of the newly developed device.. How to do.. In UAG

  20. The new block will appear like this under UAG VIEW  Topological viewer How to do.. In UAG

  21. UAG will generate Unity project with read /write area under IO Scanner How to do.. In Unity Read /write areas for IO scanner

  22. UAG will generate sections for communication and the section will be containing the variables like this How to do.. In Unity

  23. Please note that we have written in our new device, the slave index as “0” and “20” That is why it was appeared in Unity like this: How to do.. Very important: Note

  24. But this indexing has to be configured according to the requirement of the device. In another example, we have placed 22, results are like this: How to do.. Very important: Note

  25. In IO Scanner, in one telegram, one can write/read maximum 100 words We strongly recommend to do the address ranges in consecutive address areas. So if the first area is starting from 1002, then it is better to place the next address area at 1004 and not at 1120. It is very important to understand the address ranges of the device. We have used only one IO Mapping with “INPUT /OUTPUT” that is why UAG has only one IO Scanning entry generated. User can define two or more separate IO mapping and UAG will generate as many entries in IO Scanner. There should be proper program written in TWIDO /UAG so that the program can read and write the date in addresses defined in UAG. How to do.. Recommendations /Notes

  26. Conclusion • In UAG new devices can be included by defining them under Customization. • There are different methods of communication and rack types possible Thanksfor your attention!

More Related