800XA Saftey Function Blocks
Is it possible to Insert CMD libraries and blocks(created in CMD editor) in FBD editor?
If yes, please advise on the procedure.
Voted best answer
- Create a Function Block Type
- Right Click the Type and Insert (a) Control Module(s) with "New Control Module"
- Open the Function Block Type and add the following Statement ...
- Add parameters and supporting code as required. Be aware that while the Control Modules inside the Function Block are code sorted, they will all execute at the point where you wrote the ExecuteControlModules() statement in your Function Block code.
Because of Code Sorting you can sometimes get strange problems if you Initialize variables like "Name" that are used in the "Start_" block of the Control Module but are not yet ready in the Function Block when the application warm starts. Check carefully for these types of errors. Its not usually a problem.