Hello,
I'm currently trying to generate copies of a few Command Driven Control Modules; the sequences are quite complex so instead of copy pasting the modules and manually going into each SFC Step to edit the contents, I'm trying to do an .FHX export and carefully search/replace the parameters I need to change. The problem I have encountered is the following:
The field "FUNCTION BLOCK DEFINITION: Name: __#####_#####__" inside the .FHX file, which identifies each SFC-based composite block (COMMAND Block) seems to be auto generated when the Control Module and its components are first created. So even if I was to create a copy of the original Command Driven Control Module, export it as an .FHX, search/replace its contents, and then re-import it, it also updates the contents of the SFC Steps in the original Command Driven Control Module, this makes sense as the Function Block Definition Names of the COMMAND Blocks are the exact same on both Command Driven Control Modules.
I'm curious to know if there a way to uniquely identify the COMMAND Blocks' Function Block Definition Names of the new the module copy? I have not tried to manually change the numbers to something random, as this could cause issues if the Function Block Definition Name is already being used by another module.
Any thoughts, help, or comments would be appreciated.
Thank you,
Jaime M.
What you are asking for is very risky (won't be supported) and you could potentially lose configuration and/or corrupt the database if you don't do this correctly (which is why it wouldn't be supported).
Can you use a Command Driven Class and then just link the module blocks to the correct item needed?
If the logic is staying the same and you are only changing module names then I would definitely suggest using this method instead. You can even IGNORE module blocks for cases that don't have "exactly" the same equipment. To learn more about this method, In Books Online you can go to
In reply to Matt Stoner:
In reply to Jaime M.:
In reply to Jack_France: