{"id":14536,"date":"2017-02-21T00:00:00","date_gmt":"2017-02-21T00:00:00","guid":{"rendered":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/"},"modified":"2025-07-07T13:30:23","modified_gmt":"2025-07-07T13:30:23","slug":"packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine","status":"publish","type":"our_work","link":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/","title":{"rendered":"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine"},"content":{"rendered":"\n<p>DMC was asked to rewrite code from an older version of a packaging machine using a CPG Template for the PackML State Machine. In this machine, product was introduced through an infeed system and moved through two wrapping layers to an outfeed system. The new machine incorporated more servos, the variable package size functionality, and an updated HMI. Due to these new features and the request to use the PackML CPG template, a direct translation from the old packaging machine would not meet all of the requirements of the customer.<\/p>\n\n\n\n<p>One feature of PackML that makes it useful across many systems is its flexibility. The CPG template allows for the customization of the PackML State Machine in a way that makes sense for this particular application. By using <a href=\"https:\/\/www.omac.org\/packaging-workgroup-solutions\">tools and resources <\/a>such as the Siemens PackML Implementation Guide and Planning Spreadsheets, the user can easily create the structure for a unique state machine project. For example, the PackML structure can accommodate up to eleven modes and seventeen states, however, DMC determined that only three modes containing eleven states each were necessary for this implementation. In addition to using the PackML architecture, DMC took advantage of the CPG template\u2019s built-in features such as event handling and OEE data.<\/p>\n\n\n\n<p>In order to ensure that the state machine was operating as expected, DMC used iDevice to communicate between the PLC and the motion controller. DMC chose iDevice to handshake the necessary data between the two devices because only a few bytes of data needed to be shared and it allowed for fast transfer speeds.<\/p>\n\n\n\n<p>The solution was designed to conform to the ISA TR88 standard and simultaneously maintain some similarity to the old program in order to make the operator transition as seamless as possible. By using the PackML State Machine, DMC was able to create a flexible, easily modifiable, and robust solution that can be incorporated into many different systems and is familiar to individuals working with the old version of the machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DMC was asked to rewrite code from an older version of a packaging machine using a CPG Template for the PackML State Machine. In this machine, product was introduced through an infeed system and moved through two wrapping layers to an outfeed system. The new machine incorporated more servos, the variable package size functionality, and [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":14535,"template":"","meta":{"customer":"","summary":"<p>DMC used the PackML State Machine architecture to program a packaging machine for a food and beverage company. The machine coordinates the motion of several servo motors that together package a variable number of products at high speeds. This project was part of the customer&rsquo;s larger initiative to revamp their packaging machines.<\/p>\r\n","description":"","customer_benefits":"<ul>\r\n <li>PackML architecture conforms to industry standard ISA TR88<\/li>\r\n <li>Allows for common software design methodology between other PackML machines and systems<\/li>\r\n <li>Variable package size functionality eliminates the need for multiple packaging machines<\/li>\r\n<\/ul>\r\n","components_used":"<ul>\r\n <li>Siemens S7-1500 PLC<\/li>\r\n <li>Siemens SIMOTION D435 Motion Controller<\/li>\r\n <li>Siemens Sinamics Servo Drives<\/li>\r\n <li>Siemens Comfort Panel HMI<\/li>\r\n <li>Siemens TIA Portal<\/li>\r\n <li>Siemens SIMOTION Scout<\/li>\r\n<\/ul>\r\n","project":"","author":"","notes":""},"work_category":[696,680,691,713,681,682],"class_list":["post-14536","our_work","type-our_work","status-publish","has-post-thumbnail","hentry","work_category-food-and-beverage","work_category-manufacturing-automation-and-intelligence","work_category-motion-control","work_category-packaging-machinery-programming","work_category-plc-programming","work_category-siemens-plc"],"yoast_head":"<title>PackML CPG Template State Machine Implementation for High-Speed Packaging Machine | DMC, Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine\" \/>\n<meta property=\"og:description\" content=\"DMC was asked to rewrite code from an older version of a packaging machine using a CPG Template for the PackML State Machine. In this machine, product was introduced through an infeed system and moved through two wrapping layers to an outfeed system. The new machine incorporated more servos, the variable package size functionality, and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/\" \/>\n<meta property=\"og:site_name\" content=\"DMC, Inc.\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-07T13:30:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"230\" \/>\n\t<meta property=\"og:image:height\" content=\"230\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/\",\"url\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/\",\"name\":\"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine | DMC, Inc.\",\"isPartOf\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg\",\"datePublished\":\"2017-02-21T00:00:00+00:00\",\"dateModified\":\"2025-07-07T13:30:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#primaryimage\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg\",\"width\":230,\"height\":230,\"caption\":\"Pack-ML-Siemens-PLC\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Work\",\"item\":\"https:\/\/www.dmcinfo.com\/our-work\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dmcinfo.com\/#website\",\"url\":\"https:\/\/www.dmcinfo.com\/\",\"name\":\"DMC, Inc.\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dmcinfo.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\",\"name\":\"DMC, Inc.\",\"url\":\"https:\/\/www.dmcinfo.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png\",\"width\":418,\"height\":167,\"caption\":\"DMC, Inc.\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929\",\"https:\/\/www.instagram.com\/dmcengineering\",\"https:\/\/www.youtube.com\/DMCEngineering\",\"https:\/\/www.linkedin.com\/company\/dmc-engineering\"]}]}<\/script>","yoast_head_json":{"title":"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine | DMC, Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/","og_locale":"en_US","og_type":"article","og_title":"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine","og_description":"DMC was asked to rewrite code from an older version of a packaging machine using a CPG Template for the PackML State Machine. In this machine, product was introduced through an infeed system and moved through two wrapping layers to an outfeed system. The new machine incorporated more servos, the variable package size functionality, and [&hellip;]","og_url":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/","og_site_name":"DMC, Inc.","article_publisher":"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","article_modified_time":"2025-07-07T13:30:23+00:00","og_image":[{"width":230,"height":230,"url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/","url":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/","name":"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine | DMC, Inc.","isPartOf":{"@id":"https:\/\/www.dmcinfo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#primaryimage"},"image":{"@id":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg","datePublished":"2017-02-21T00:00:00+00:00","dateModified":"2025-07-07T13:30:23+00:00","breadcrumb":{"@id":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#primaryimage","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165935\/unnamed-file-88.jpg","width":230,"height":230,"caption":"Pack-ML-Siemens-PLC"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dmcinfo.com\/our-work\/packml-cpg-template-state-machine-implementation-for-high-speed-packaging-machine\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Work","item":"https:\/\/www.dmcinfo.com\/our-work\/"},{"@type":"ListItem","position":2,"name":"PackML CPG Template State Machine Implementation for High-Speed Packaging Machine"}]},{"@type":"WebSite","@id":"https:\/\/www.dmcinfo.com\/#website","url":"https:\/\/www.dmcinfo.com\/","name":"DMC, Inc.","description":"","publisher":{"@id":"https:\/\/www.dmcinfo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dmcinfo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dmcinfo.com\/#organization","name":"DMC, Inc.","url":"https:\/\/www.dmcinfo.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png","width":418,"height":167,"caption":"DMC, Inc."},"image":{"@id":"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","https:\/\/www.instagram.com\/dmcengineering","https:\/\/www.youtube.com\/DMCEngineering","https:\/\/www.linkedin.com\/company\/dmc-engineering"]}]}},"_links":{"self":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/our_work\/14536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/our_work"}],"about":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/types\/our_work"}],"author":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/users\/8"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media\/14535"}],"wp:attachment":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media?parent=14536"}],"wp:term":[{"taxonomy":"work_category","embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/work_category?post=14536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}