# Automatic generation of UNITY and CODESYS applications from a FACTORY I/O Scene

**URL:** https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584
**Category:** Shared Projects
**Created:** [December 2, 2020, 3:10pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584 "2020-12-02T15:10:04Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![bernard.riera](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bernard.riera](https://community.factoryio.com/u/bernard.riera)
#### Post date: [December 2, 2020, 3:10pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/1 "2020-12-02T15:10:04Z")

</div>

Hi guys,

We have developped a web application which allows to get from a FACTORY I/O scene file, the application framework for UNITY PRO (.xef) and CODESYS (.xml) with all the declared PLC variables and the configured Modbus/TCP client communication allowing a connection with their soft PLC. In the case of CODESYS, the soft PLC device CODESYS Control Win V3 3.5.14.20 must be used. Hence, you can save time and avoid errors.

The bêta is here:

> **[CReSTIC](http://davidannebicque.ovh/)**

Do not hesitate to test and to give me your feedback

Bernard

---

<div class="post-metadata">

### Author: ![wayneschaefer](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/wayneschaefer/32/50_2.png) [@wayneschaefer](https://community.factoryio.com/u/wayneschaefer)
#### Post date: [December 3, 2020, 1:20pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/2 "2020-12-03T13:20:03Z")

</div>

Thanks for sharing your work.

---

<div class="post-metadata">

### Author: ![broogreg](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@broogreg](https://community.factoryio.com/u/broogreg)
#### Post date: [December 17, 2020, 9:18pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/3 "2020-12-17T21:18:11Z")

</div>

How do I open the Codesys xml after conversion?

---

<div class="post-metadata">

### Author: ![bernard.riera](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bernard.riera](https://community.factoryio.com/u/bernard.riera)
#### Post date: [December 18, 2020, 8:21am UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/4 "2020-12-18T08:21:36Z")

</div>

1- open CODESYS V3.5 SP14  
2- file -\> newproject  
3- select Empty project  
4- Project -\> Import PLCopenXML file

if it does not work because you use CODESYS V3.5 SP 16 please contact me.

Bernard

---

<div class="post-metadata">

### Author: ![mmd604](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mmd604](https://community.factoryio.com/u/mmd604)
#### Post date: [December 18, 2020, 4:11pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/5 "2020-12-18T16:11:17Z")

</div>

Is it possible to use CODESYS v3.5 sp 16?

---

<div class="post-metadata">

### Author: ![bernard.riera](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bernard.riera](https://community.factoryio.com/u/bernard.riera)
#### Post date: [December 18, 2020, 4:27pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/6 "2020-12-18T16:27:02Z")

</div>

yes

1- open CODESYS V3.5 SP16  
2- Tools -\>Device Repository-\>PLCs-\>Install  
3-open the file 4096\_0000 0004\_3.5.14.20.devdesc.xml (see zip file)  
[4096\_0000 0004\_3.5.14.20.zip](https://community.factoryio.com/uploads/short-url/wOPlTI1YwKne5DAZe4yWoocCDID.zip) (6.4 KB)  
4- file -\> newproject  
5- select Empty project  
6- Project -\> Import PLCopenXML file-

tell me if it works please

---

<div class="post-metadata">

### Author: ![mmd604](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mmd604](https://community.factoryio.com/u/mmd604)
#### Post date: [December 18, 2020, 4:54pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/7 "2020-12-18T16:54:30Z")

</div>

Yes it did work but after you have imported plcopenxml file you most download the appropriate libaries in applications folder

---

<div class="post-metadata">

### Author: ![bernard.riera](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bernard.riera](https://community.factoryio.com/u/bernard.riera)
#### Post date: [December 18, 2020, 5:07pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/8 "2020-12-18T17:07:26Z")

</div>

Thanks for the feed-back. Do you think this application useful ?

---

<div class="post-metadata">

### Author: ![mmd604](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mmd604](https://community.factoryio.com/u/mmd604)
#### Post date: [December 18, 2020, 5:11pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/9 "2020-12-18T17:11:31Z")

</div>

100% its use! at the moment I am converting every scene.

---

<div class="post-metadata">

### Author: ![bernard.riera](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bernard.riera](https://community.factoryio.com/u/bernard.riera)
#### Post date: [December 18, 2020, 5:14pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/10 "2020-12-18T17:14:10Z")

</div>

Thanks 🙂

---

<div class="post-metadata">

### Author: ![janbumer1](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/janbumer1/32/60_2.png) [@janbumer1](https://community.factoryio.com/u/janbumer1)
#### Post date: [May 17, 2021, 9:57am UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/11 "2021-05-17T09:57:46Z")

</div>

I’m sorry, but what is the use of this? What can one do with this? 😮

---

<div class="post-metadata">

### Author: ![bernard.riera](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bernard.riera](https://community.factoryio.com/u/bernard.riera)
#### Post date: [May 18, 2021, 10:13am UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/12 "2021-05-18T10:13:18Z")

</div>

Hi,

the interest of this application is to generate a file for UNITY (Schneider) or CODESYS from a FIO scene and a modbus TCP client driver. All the variables are defined and the mapping is done. You save time.

---

<div class="post-metadata">

### Author: ![janbumer1](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/janbumer1/32/60_2.png) [@janbumer1](https://community.factoryio.com/u/janbumer1)
#### Post date: [May 18, 2021, 12:15pm UTC](https://community.factoryio.com/t/automatic-generation-of-unity-and-codesys-applications-from-a-factory-i-o-scene/584/13 "2021-05-18T12:15:04Z")

</div>

Aaah, sorry. I thought of Unity the game engine (made sense for me in combination with Factory I/O) and was kinda confused what you would do in Unity.
