{"id":18268,"date":"2022-02-07T17:22:44","date_gmt":"2022-02-07T09:22:44","guid":{"rendered":"https:\/\/hongtronics.com\/?p=18268"},"modified":"2024-07-11T15:00:03","modified_gmt":"2024-07-11T07:00:03","slug":"revpi-logicad3-softplc-traffic-lights","status":"publish","type":"post","link":"https:\/\/hongtronics.com\/en\/revpi-logicad3-softplc-traffic-lights\/","title":{"rendered":"Industrial Raspberry Pi] Logi.CAD 3 for Soft PLC-Traffic Signal Lights"},"content":{"rendered":"<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"865\" height=\"453\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-10.png\" alt=\"\" class=\"wp-image-18269\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-10.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-10-300x157.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-10-600x314.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-10-768x402.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"has-normal-font-size\">Traffic signals are a regular feature in industrial or construction sites. In this article, we take RevPi Core3 as an example, and use an industrial-grade Raspberry Pi as a soft PLC, programmed with Logi.CAD 3, to create a stable and reliable application facility.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"865\" height=\"625\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-11.png\" alt=\"\" class=\"wp-image-18270\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-11.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-11-300x217.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-11-600x434.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-11-768x555.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"has-normal-font-size\">PLCs are specifically designed to control manufacturing processes and can be programmed more easily using a standard set of instructions. They were originally developed in the automotive manufacturing industry to replace a complex, hard-wired collection of relays, timers, and sequencers that previously controlled manufacturing processes and were difficult to update.<\/p>\n\n\n\n<p class=\"has-normal-font-size\">Today, the RevPi Industrial Raspberry Pi is a modular system with protected inputs and outputs in a ruggedized industrial package that leverages the Raspberry Pi's extensive ecosystem and software support, combined with a programmable PLC that complies with the IEC 61131 industry standard for DIN-rail mounting.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"616\" height=\"538\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-12.png\" alt=\"\" class=\"wp-image-18271\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-12.png 616w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-12-300x262.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-12-600x524.png 600w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-black-color has-text-color has-medium-font-size\"><strong>[Modules and tools used in this article<\/strong><\/p>\n\n\n\n<ol type=\"1\" class=\"has-normal-font-size wp-block-list\"><li>RevPi core 3 module<\/li><li>DIO Module<\/li><li>Some terminals on DIN rail<\/li><li>Three 24V LEDs<\/li><\/ol>\n\n\n\n<p class=\"has-normal-font-size\">Use the first output connection on the RevPi DIO module with a power supply of 24 V. Initial RevPi and DIO module configuration is accomplished through the Pictory Configuration Tool running in a web browser.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-medium-font-size\"><strong>\u3010<\/strong> <strong>Support Resources<\/strong> <strong>\u3011<\/strong> <\/p>\n\n\n\n<p class=\"has-normal-font-size\">Like most PLCs, the Revolution Pi is programmed on a PC and then downloaded to the module over the network. Programs can be downloaded to the module via the network by going to<a href=\"https:\/\/revolution.kunbus.com\/tutorials\/what-is-pictory\/use-logicad3-and-pictory\/\" title=\"Kunbus Quick Start Guide\">Kunbus Quick Start Guide<\/a>CAD 3 to see how to create a control application for Revolution Pi using logi.CAD 3 and get a link to download the software.<\/p>\n\n\n\n<p class=\"has-normal-font-size\">Also available at logi.cals (developers of logi.CAD 3).<a href=\"https:\/\/help.logicals.com\/lco3docu\/latest\/user-documentation\/en\/kurzanleitungen\/revolution-pi-in-betrieb-nehmen\/anwendung-auf-revolution-pi-laden\" title=\"Teaching\">Teaching<\/a>Plus<a href=\"https:\/\/www.youtube.com\/watch?v=z3vpFBvvGVo\" title=\"KUNBUS Official Instructional Movie\">KUNBUS Official Instructional Movie<\/a>The instructions are quick to follow.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<p class=\"responsive-video-wrap clr\"><iframe title=\"Revolution Pi : Tutorial EN 17 - logi.CAD3\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/z3vpFBvvGVo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<\/div><figcaption>KUNBUS Official Instructional Movie<\/figcaption><\/figure>\n\n\n\n<p class=\"has-black-color has-text-color has-medium-font-size\"><strong>\u3010<\/strong> <strong>Installing and using Logi.CAD 3<\/strong> <strong>\u3011<\/strong>  <\/p>\n\n\n\n<p class=\"has-normal-font-size\">First, enable the PLC programming environment by returning to the Revolution Pi setup page in your web browser, selecting the Services tab and enabling Logi.RTS.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"665\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-13.png\" alt=\"\" class=\"wp-image-18272\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-13.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-13-300x231.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-13-600x461.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-13-768x590.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size\">Install Logi.CAD 3 when done (can utilize tools other than Window's native decompressor, such as 7Zip, as it cannot handle the length of some file names)<\/p>\n\n\n\n<p class=\"has-normal-font-size\">Next, start the program by double-clicking on the logiCAD3.exe file, and at this stage, follow the tutorial videos for smooth operation.<\/p>\n\n\n\n<p class=\"has-normal-font-size\">To search for RevPi sample projects in the logi.CAD tutorial, open the File menu, go to New\/Project... and open \u201cLogi, CAD 3 Template\u201d.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"786\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-14.png\" alt=\"\" class=\"wp-image-18273\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-14.png 826w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-14-300x285.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-14-600x571.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-14-768x731.png 768w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size\">Find \u201clogi.CAD 3 Project for Revolution P\u201d, open it and name it \u201cExample\u201d when prompted for a \u201cProject Name\u201d. \"and save it in the default location.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"415\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-15.png\" alt=\"\" class=\"wp-image-18274\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-15.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-15-300x144.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-15-600x288.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-15-768x368.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"has-normal-font-size\">Once opened, follow the instructions in the guide to enter the IP address of the RevPi in the globals\/sample file.<\/p>\n\n\n\n<p class=\"has-normal-font-size\">Then go back to Pictory, check the configuration set and change the names of the 3 outputs that will be used, then save the configuration by going to File\/Save and activate it by clicking Reset Driver in the Tools menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"493\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-16.png\" alt=\"\" class=\"wp-image-18275\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-16.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-16-300x171.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-16-600x342.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-16-768x438.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"has-normal-font-size\">Then export the configuration details for use in logi.CAD 3. This is done in File\/Export by selecting the structured text IEC 61131-3 in the popup box and selecting \u201cDisplay only\u201d, which will create the global variables and open them in a window.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"518\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-17.png\" alt=\"\" class=\"wp-image-18276\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-17.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-17-300x180.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-17-600x359.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-17-768x460.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size\">Copy the contents of the window and return to logi.CAD3, open the sample.global file in the globals folder, delete its contents and paste the text from the clipboard.<\/p>\n\n\n\n<p class=\"has-normal-font-size\">Then replace the code in the RevolutionPiProgram.iesct file with the code in the guide:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"458\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-18.png\" alt=\"\" class=\"wp-image-18277\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-18.png 865w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-18-300x159.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-18-600x318.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/image-18-768x407.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size\">Switch to the example view by clicking on the tab at the top of the left side column and selecting RevolutionPi\/RevolutionPiResource. click on the green gear icon to connect to the Revolution Pi and then click on the \u201cBuild and Upload\u201d button. Then you will see the LED on the RevPi Core3 and the LED connected to Revolution Pi DIO pin 1 blinking.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Trivia<\/h2>\n\n\n\n<p class=\"has-normal-font-size\">In the next article, a step-by-step description of the sequential switching of the signals will be given, which will cover the basics of the PLC programming language\/environment.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u4ea4\u901a\u865f\u8a8c\u71c8\u662f\u5de5\u696d\u6216\u65bd\u5de5\u73fe\u5834\u4e2d\u7684\u5e38\u898f\u8a2d\u65bd\uff0c\u672c\u6587\u4ee5RevPi Core3\u70ba\u4f8b\uff0c\u63a1\u7528\u5de5\u696d\u7d1a\u6a39\u8393\u6d3e\u7528\u4f5c\u8edfPLC\u7684\u65b9\u6cd5\uff0c [&hellip;]<\/p>","protected":false},"author":29,"featured_media":18278,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"minimal","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","iawp_total_views":111,"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[1824],"tags":[1339],"table_tags":[],"class_list":["post-18268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iiot","tag-1339","entry","has-media","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/02\/\u5716\u72471-1.jpg","_links":{"self":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts\/18268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/comments?post=18268"}],"version-history":[{"count":3,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts\/18268\/revisions"}],"predecessor-version":[{"id":18300,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts\/18268\/revisions\/18300"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/media\/18278"}],"wp:attachment":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/media?parent=18268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/categories?post=18268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/tags?post=18268"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/table_tags?post=18268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}