# Problems with CODESYS OPC and FactoryIO

**URL:** <https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392>\
**Category:** Drivers\
**Created:** [August 15, 2020, 2:57am UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392 "2020-08-15T02:57:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabian.e.muegues](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fabian.e.muegues](https://community.factoryio.com/u/fabian.e.muegues)\
**Post date:** [August 15, 2020, 2:57am UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/1 "2020-08-15T02:57:18Z")

</div>

Does anyone know why I get this error and how can I fix it?

I am trying to connect my CODESYS program with OPC Client Data Access to Factory I / O, for some unknown reason I get this error.

Please, if anyone knows how to solve it I would appreciate it very much

 ![Sin título](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/6f9c1f14d6c2954ea402bcbff2df8d8303ec0d28.jpeg)

---

<div class="post-metadata">

**Author:** ![brunovgr](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/brunovgr/32/12_2.png) [@brunovgr](https://community.factoryio.com/u/brunovgr)\
**Post date:** [August 17, 2020, 10:24am UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/2 "2020-08-17T10:24:45Z")

</div>

Can you share your Codesys project file, so I can take a look?

---

<div class="post-metadata">

**Author:** ![fabian.e.muegues](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fabian.e.muegues](https://community.factoryio.com/u/fabian.e.muegues)\
**Post date:** [August 19, 2020, 4:43pm UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/3 "2020-08-19T16:43:16Z")

</div>

This is my CODESYS Projectc, In the compilation I don’t have any errors.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/bdfbd307a0646e5037c763ee72c5ba8dff38ddcd.png)

---

<div class="post-metadata">

**Author:** ![fabian.e.muegues](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fabian.e.muegues](https://community.factoryio.com/u/fabian.e.muegues)\
**Post date:** [August 19, 2020, 4:49pm UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/4 "2020-08-19T16:49:50Z")

</div>

Do you want the project file by mail?

---

<div class="post-metadata">

**Author:** ![brunovgr](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/brunovgr/32/12_2.png) [@brunovgr](https://community.factoryio.com/u/brunovgr)\
**Post date:** [August 20, 2020, 10:37am UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/5 "2020-08-20T10:37:59Z")

</div>

Yes, you can post it here (in a zip archive) or send it to me in a private message.

---

<div class="post-metadata">

**Author:** ![fabian.e.muegues](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fabian.e.muegues](https://community.factoryio.com/u/fabian.e.muegues)\
**Post date:** [August 21, 2020, 2:41pm UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/6 "2020-08-21T14:41:36Z")

</div>

New users cannot upload attachments

---

<div class="post-metadata">

**Author:** ![fabian.e.muegues](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@fabian.e.muegues](https://community.factoryio.com/u/fabian.e.muegues)\
**Post date:** [August 21, 2020, 4:14pm UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/7 "2020-08-21T16:14:20Z")

</div>

Now yes, thank you; This is my CODESYS project  
[MPS\_STATIONS.zip](https://community.factoryio.com/uploads/short-url/rbSHLYF7ENz61WbHhy2cgqLUAjB.zip) (63.4 KB)

---

<div class="post-metadata">

**Author:** ![brunovgr](https://dub1.discourse-cdn.com/flex017/user_avatar/community.factoryio.com/brunovgr/32/12_2.png) [@brunovgr](https://community.factoryio.com/u/brunovgr)\
**Post date:** [August 24, 2020, 1:42pm UTC](https://community.factoryio.com/t/problems-with-codesys-opc-and-factoryio/392/8 "2020-08-24T13:42:21Z")

</div>

I recommend that you update to the latest version of Factory I/O first. Next, try to update CodeSys to version 3.5.11.0. The CodeSys version you are using is quite old (3.5.7.10). I’m attaching a copy of your project which is working fine. Another thing, always build the Symbol Configuration before using global vars as OPC items/nodes:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/54db1f352ffc1e37c83054192c9f8e9c0530f2ed.png)

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/factoryio/original/1X/c8efaa10223decd758d64811a7aefa75ab5f4c5e.jpeg)

Note, I had to remove the visualization part of your project since it requires Spanish libraries which on don’t have installed.
