Structured Text Sim

I have used the Control IO for my class with good success. But it is only FBD. I would like to use Structured Text. We are doing everything remotely these days, and I am looking for a simple / reliable way to get my students using ST. Any suggestions?

1 Like

@paul.murray I would recommend CODESYS. It follows the IEC 61131-3 standard which includes ST. The demo version allows your students to program the included soft PLC (CODESYS Control Win) which runs for two hours - after two hours they will have to restart it. The downside is that you will have to use Modbus TCP or OPC UA in order to connect it to Factory I/O.

You can find some tutorials here:


I see three different ways to connect FIO to Codesys (DA, UA & Modbus). Which one is better (aka, most simple and/or reliable)?

1 Like

I believe you will have to purchase a license in order to use the classic OPC DA, which offers no advantage over OPC UA. OPC UA and Modbus TCP drivers are included in the Codesys demo.

In my opinion Modbus TCP is the most straightforward to configure and use. However, if you intend to use analog values, keep in mind that Modbus registers only support 16-bit values. Factory I/O Modbus driver allows you to scale sensors’/actuators’ values as a workaround for this limitation. See more here:

OPC UA works better when using analog values and allows you to get a list of variables available in the softPLC. I would recommend you to try both and see which one would work best for your students.

1 Like

I agree with Bruno, Modbus TCP is really easy to use with CODESYS

Hallo ich kann TIA V15.1 nicht mit Factory IO Verbinden . Ich habe alles gemacht was auf einem Mail Support Factory IO mir geschickt hat. Aber Leider hat nicht Funktioniert. Kann Jemand mir Helfen

1 Like