Is something like this what you are after? https://www.youtube.com/watch?v=zzvaT2iJr2g
I've been using the CODESYS python scripting feature to automate downloading programs and licensing our devices. I've done this as we are looking quickly setup many devices. I'm having trouble with the licensing side, and can't find much info about it online. Connecting to the device/gateway, downloading programs etc. with are all working fine via the python scripting. I have my python script setup to login into devices and license the target device. I use the following python function to attempt...
I'll try summarized what I am trying to do in a more simple format. I am essentially trying to to create a mapping structure to map variables to ports on an IO block. I have a class FB_PORT which accesses a particular port on an IO block and grabs the data from it. This class has various methods such as GetDigitalInput(), GetConnectionStatus(), GetShortCircuitDetected(). I use this class within my code to access my IO. When the port class is initialized I pass in a pointer to both the IO_Block class...
I'll try summarized what I am trying to do in a more simple format. I am essentially trying to to create a mapping structure to map variables to ports on an IO block. I have a class FB_PORT which accesses a particular port on an IO block and grabs the data from it. This class has various methods such as GetDigitalInput(), GetConnectionStatus(), GetShortCircuitDetected(). I use this class within my code to access my IO. When the port class is initialized I pass in a pointer to both the IO_Block class...
I am looking to see if there is any way to use FB_INIT on function blocks nested inside a struct. I want to init the struct when I use it in the main code. I've looked around and the closest I can find is initializing an array of objects using FB_INIT. (https://forge.codesys.com/forge/talk/Engineering/thread/dbf5a245f1/). I can think of several work arounds to get around this without using FB_INIT, but was just wondering if anyone knew a way to do this as it would be useful to keep my code tidier....
I am looking to see if there is any way to use FB_INIT on function blocks nested inside a struct. I want to init the struct when I use it in the main code. I've looked around and the closest I can find is initializing an array of objects using FB_INIT. (https://forge.codesys.com/forge/talk/Engineering/thread/dbf5a245f1/). I can think of several work arounds to get around this without using FB_INIT, but was just wondering if anyone knew a way to do this as it would be useful to keep my code tidier....
I've been playing around with tables a bit recently and don't know if what you are trying to do is possible. The only workaround I can think of is similar to the string approach you mentioned for the first column. Instead I would add an extra column to the start of your array with numbers corresponding to your textlist. Then in your table properties under the first column tick "use template" and then display the textlist using dynamic texts as usual. For the other tables that you don't want to see...
We are currently using CODESYS Linux ARM and looking to restore a software license. We re-flashed our linux PC due to some software issues and are looking to restore our Codesys licenses onto it. Have been attempting to do this using various methods listed but nothing seems to work. Before re-flashing our linux PC we backed up the licensing files on the computer. Have attempted to restore via the .WibuCmRau file as well as using the restore ticket functionality from the license manager. I have read...