Hi,
I would like to know if there are any options to create or design the SFC charts dynamically using scripting or some other means.?
I do see one possibility of creating the sfc.xml through scripting and try that way, but I'm not sure regarding the unique id's for each element that gets created and is it like normal guid? or is that stored internally anywhere? or will it get referenced in chaining items? etc...
If there are some pointers to reference article or any shareable info regarding this, it will be of great help.
thanks
did you ever figure anything out on this?
Not yet, looking for guidance or best practices from anyone who has done similar to this here
i spoke with tech support, and they said there isn't really a way to "dynamically" create an SFC. I took that as you cant import in an SFC through a script, but im pretty sure you can develop a script to create an XML to manually import....
thanks for sharing the update.
yeah through a script i can automate and create the xml and place in the location for where the SFC stays, but if you see the SFC's xml file that it creates, it uses a unique id for each of the nodes/blocks/elements etc.. and i'm not sure if we can generate ourselves those unique ids and also if that is being stored somewhere else as well.
I've been using the uuid library..
import using:
import uuid
generate id using:
uuid.uuid4()
1 Like
when you place the xml file in the sfc folder, does it populate into the ignition designer automatically?
I have not tried yet, but if you haven't tried already try to reduce the project directory scan rate in ignition.conf, have a lower value to pick it up after you place the file
Gateway Configuration File Reference - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)
1 Like