{"id":14546,"date":"2017-03-21T00:00:00","date_gmt":"2017-03-21T00:00:00","guid":{"rendered":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/"},"modified":"2025-05-29T22:38:50","modified_gmt":"2025-05-29T22:38:50","slug":"serial-communication-with-a-siemens-s7-1200-plc","status":"publish","type":"our_work","link":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/","title":{"rendered":"Serial Communication with a Siemens S7-1200 PLC"},"content":{"rendered":"<p>DMC worked with our client to develop a means of changing servo setpoints from a remote HMI. The system consisted of two servos controlled with Contrex CX-1010 servo controllers, which were located on the side of the machine opposite the operator. The servo setpoints must be changed with each product changeover, requiring the operators to walk around the machine and enter the setpoints on the control panel. To solve this problem, a Siemens TP-700 Comfort Panel was installed on the operator side, and was used to send setpoints to a Siemens S7-1200 PLC.<\/p>\r\n\r\n<p>The PLC communicated to the servo controllers using a serial connection through a Siemens CB 1241 RS485 serial interface. Each serial message consisted of several parts: a start signal, a device address, a function command, an error field, the results of the function, an end signal, and a checksum. The PLC would take the setpoint from the HMI and format it as a serial message to the correct drive. It would send the message over the serial port, wait for a response, and process the response into the correct data. All serial messages were sent and received using standard Siemens instructions. Any communication errors would trigger a warning on the HMI to notify the operator.<\/p>\r\n\r\n<p>The serial architecture was set up with the PLC as the master, and the controllers as the slaves. As a result, the controllers would not send data until the PLC asked for it This eliminated the need for monitoring the serial channel, streamlining the communications. However, this setup does require the PLC to send data to one controller and wait for a response before sending data to the next controller. This might render a larger system may susceptible to communication delays, but the effects were negligible in this system with only two controllers.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>DMC worked with our client to develop a means of changing servo setpoints from a remote HMI. The system consisted of two servos controlled with Contrex CX-1010 servo controllers, which were located on the side of the machine opposite the operator. The servo setpoints must be changed with each product changeover, requiring the operators to [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":14545,"template":"","meta":{"customer":"Victor Envelope","summary":"<p>DMC programmed a Siemens S7-1200 PLC to communicate with servo controllers, using a serial interface. The serial communication was used to allow the operators to change the servo setpoints from a remote HMI.<\/p>\r\n","description":"","customer_benefits":"<ul>\r\n <li>Reduced operator downtime<\/li>\r\n <li>Configurable system can accommodate up to 99 servo controllers<\/li>\r\n <li>Communication parameters can be expanded to encompass additional servo commands<\/li>\r\n<\/ul>\r\n","components_used":"<ul>\r\n <li>Siemens S7-1200&nbsp;PLC<\/li>\r\n <li>Siemens TP700 Comfort Panel<\/li>\r\n <li>TIA Portal<\/li>\r\n <li>Siemens CB 1241 RS485 Serial Interface<\/li>\r\n <li>Contrex CX-1010 Servo Controller<\/li>\r\n<\/ul>\r\n","project":"Servo HMIs","author":"Patrick Smith","notes":"February 2017\r\nPM - Ken Brey\r\nEngineers - Caleb Stoll, Patrick Smith"},"work_category":[680,681,718,682],"class_list":["post-14546","our_work","type-our_work","status-publish","has-post-thumbnail","hentry","work_category-manufacturing-automation-and-intelligence","work_category-plc-programming","work_category-printing","work_category-siemens-plc"],"yoast_head":"<title>Serial Communication with a Siemens S7-1200 PLC | 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\/serial-communication-with-a-siemens-s7-1200-plc\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Serial Communication with a Siemens S7-1200 PLC\" \/>\n<meta property=\"og:description\" content=\"DMC worked with our client to develop a means of changing servo setpoints from a remote HMI. The system consisted of two servos controlled with Contrex CX-1010 servo controllers, which were located on the side of the machine opposite the operator. The servo setpoints must be changed with each product changeover, requiring the operators to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/\" \/>\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-05-29T22:38:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\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\/serial-communication-with-a-siemens-s7-1200-plc\/\",\"url\":\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/\",\"name\":\"Serial Communication with a Siemens S7-1200 PLC | DMC, Inc.\",\"isPartOf\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg\",\"datePublished\":\"2017-03-21T00:00:00+00:00\",\"dateModified\":\"2025-05-29T22:38:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#primaryimage\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg\",\"width\":1400,\"height\":500,\"caption\":\"Siemens PLC 1200\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Work\",\"item\":\"https:\/\/www.dmcinfo.com\/our-work\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Serial Communication with a Siemens S7-1200 PLC\"}]},{\"@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":"Serial Communication with a Siemens S7-1200 PLC | 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\/serial-communication-with-a-siemens-s7-1200-plc\/","og_locale":"en_US","og_type":"article","og_title":"Serial Communication with a Siemens S7-1200 PLC","og_description":"DMC worked with our client to develop a means of changing servo setpoints from a remote HMI. The system consisted of two servos controlled with Contrex CX-1010 servo controllers, which were located on the side of the machine opposite the operator. The servo setpoints must be changed with each product changeover, requiring the operators to [&hellip;]","og_url":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/","og_site_name":"DMC, Inc.","article_publisher":"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","article_modified_time":"2025-05-29T22:38:50+00:00","og_image":[{"width":1400,"height":500,"url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.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\/serial-communication-with-a-siemens-s7-1200-plc\/","url":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/","name":"Serial Communication with a Siemens S7-1200 PLC | DMC, Inc.","isPartOf":{"@id":"https:\/\/www.dmcinfo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#primaryimage"},"image":{"@id":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg","datePublished":"2017-03-21T00:00:00+00:00","dateModified":"2025-05-29T22:38:50+00:00","breadcrumb":{"@id":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#primaryimage","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27165932\/Siemens-PLC-1200-.jpg","width":1400,"height":500,"caption":"Siemens PLC 1200"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dmcinfo.com\/our-work\/serial-communication-with-a-siemens-s7-1200-plc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Work","item":"https:\/\/www.dmcinfo.com\/our-work\/"},{"@type":"ListItem","position":2,"name":"Serial Communication with a Siemens S7-1200 PLC"}]},{"@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\/14546","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\/14545"}],"wp:attachment":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media?parent=14546"}],"wp:term":[{"taxonomy":"work_category","embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/work_category?post=14546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}