packml compliant state machine design
packml or packaging machine language defines a standard for programming automated machines, maintained by omac (organization for machine automation and control). packml is part of the .
when developing packml compliant state machines, engineers usually have to check compliance with the standard periodically during the design process. while standard solutions for packml support include only a template for developing iec 61131-3 code, mathworks expands support for packml compliance with an integrated way to design, simulate, and test packml compliant machine control software that:
- accelerates the creation by leveraging modeling templates
- ensures compliance through static checks
- targets different plc platforms by using automatic code generation for iec 61131-3 st and ansi/iso c/c
-
templates for modeling packml compliant state machines in simulink and stateflow
an additional user interface ensures that the model remains- packml compliant, meaning the state and transitions comply with the definitions in the standard
- enabled for simulation in simulink, providing the developers the ability to perform early and incremental validation
- testable – simulink design verifier is used to generate coverage-based test cases for the model, simulink test is used to execute and manage the test cases
- configured for automatic code generation, using simulink coder (c/c ) or simulink plc coder (iec 61131-3). the generated code conforms to packtag and thus can be integrated seamlessly to other packml compliant software.
-
automated static checks ensuring packml compliance
static checks are executed using model advisor and check the structural conformance of the modeled packml state machine model. this includes propriety of states, transitions, state functions and interfaces. thus manual reviews to ensure packml compliance become obsolete. -
code generation for common plc platforms using simulink plc coder (iec 61131-3 st) or simulink coder (c/c )
the following plc and industrial pc platforms support code generation from simulink:- bosch rexroth
- mitsubishi electric
- phoenix contact
simulink plc coder is capable of generating a test bench from test cases used to verify the model to ensure the equivalent behavior of model and code.
software reference
see also: plc simulation, virtual commissioning