{"id":276,"date":"2020-04-29T01:09:26","date_gmt":"2020-04-29T01:09:26","guid":{"rendered":"https:\/\/dxhelpdev.wpengine.com\/?post_type=epkb_post_type_1&#038;p=276"},"modified":"2023-01-27T23:04:50","modified_gmt":"2023-01-27T23:04:50","slug":"mtconnect-communication-as-a-source","status":"publish","type":"epkb_post_type_1","link":"https:\/\/dxhelp.scytec.com\/?epkb_post_type_1=mtconnect-communication-as-a-source","title":{"rendered":"MTConnect Communication as a Source"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>DataXchange supports the MTConnect standard allowing the retrieval of equipment information from supported controls.&nbsp;A MTConnect enabled control can be setup as a Source for data with DataXchange.<\/p>\n\n\n\n<p>Setting up MTConnect as a Source is done by connecting to the DataXchange Service from the DataXchange tab, selecting the associated equipment in the tree list, then pressing the <strong>Communication<\/strong> button in the ribbon bar. After selecting <strong>Add<\/strong> in the <strong>Communication Information<\/strong> window, leave the <strong>Communication Role<\/strong> set as <strong>Source<\/strong> and select <strong>MTConnect Host<\/strong> from the <strong>Communication Type<\/strong> drop down.<\/p>\n\n\n\n<p>After closing the dialog, the IP Address or&nbsp;<strong>Host<\/strong>&nbsp;name needs to be specified along with the TCP <strong>Port<\/strong>.&nbsp;The host will be the machine where the MTConnect Agent is installed.&nbsp;The port must match the port setting within the MTConnect Agent configuration. The default port used by MTConnect Agents is typically 5000.&nbsp;The&nbsp;<strong>Device Name<\/strong>&nbsp;is used to narrow down to the specific equipment. The <strong>Poll Rate<\/strong> of 5 seconds can be modified if needed. This is the rate at which DataXchange will request information from the Agent.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"172\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/07\/mtconnect_source.png\" alt=\"\" class=\"wp-image-1278\" srcset=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/07\/mtconnect_source.png 450w, https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/07\/mtconnect_source-300x115.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<p>If the DataXchange client is able to successfully <strong>Browse<\/strong> to the MTConnect Agent host and port entered, the connection will switch to Online mode and the built in DataXchange variables will be assigned default mappings to the MTConnect device. If the machine cannot be reached, the mappings can still be added or modified but their status cannot be verified. When items are being mapped out, they will return a corresponding icon indicating the status of the mapping. Below is a list of icons as well as their results. If items are mapped incorrectly, use the\u00a0<strong>Custom<\/strong>\u00a0button and remap the variable.<\/p>\n\n\n\n<table id=\"tablepress-76\" class=\"tablepress tablepress-id-76\">\n<tbody class=\"row-striping\">\n<tr class=\"row-1\">\n\t<td class=\"column-1\"><img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-594\" style=\"width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image871589853.jpg\" alt=\"\"\/><\/td><td class=\"column-2\">Validated successfully<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\"><img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-595\" style=\"width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image809188691.jpg\" alt=\"\"\/><\/td><td class=\"column-2\">Connected and received results, but the data returns UNAVAILABLE<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\"><img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-596\" style=\"width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image124224164.jpg\" alt=\"\"\/><\/td><td class=\"column-2\">Connected and received results, but did not map successfully\u00a0 (no match)<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\"><img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-597\" style=\"width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image1032216374.jpg\" alt=\"\"\/><\/td><td class=\"column-2\">Unable to connect<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\"><img loading=\"lazy\" decoding=\"async\" width=\"22\" height=\"25\" class=\"wp-image-598\" style=\"width: 22px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image2022968528.jpg\" alt=\"\"\/><\/td><td class=\"column-2\">Custom mapping being used<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-76 from cache -->\n\n\n\n<p>In certain cases two data items may be returned.&nbsp; If there are multiple data items found&nbsp; on the default mapping being used, then DataXchange will mark that variable with the&nbsp;<img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-596\" style=\"display: inline;width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image124224164.jpg\" alt=\"\">&nbsp;icon so it is clear that it did not map successfully and needs to be mapped manually.<\/p>\n\n\n\n<p>In the scenario that a default mapping is not successful, it will be represented with the&nbsp;<img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-596\" style=\"display: inline;width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image124224164.jpg\" alt=\"\">&nbsp;icon. These mappings will NOT be saved.&nbsp; However, if a variable is mapped manually, and is not successful, it will once again be represented by the&nbsp;<img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-596\" style=\"display: inline;width: 24px;\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/04\/image124224164.jpg\" alt=\"\">&nbsp;icon. The only difference is that it WILL be saved.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MTConnect Mapping Options<\/h2>\n\n\n\n<p>Below the MTConnect mapping list are options that can be used to edit, clear, or change the default existing mapping.&nbsp;When navigating through the MTConnect mappings list, the following rules will apply to the buttons once a mapping is highlighted.&nbsp;Below is an image of the three configuration buttons.<\/p>\n\n\n\n<p>A brief description of the MTConnect mapping option buttons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Custom &#8211; This option will allow users to create a custom mapping.<\/li>\n\n\n\n<li>Default &#8211; This option will populate the mapping with the default defined within DataXchange if one exists.<\/li>\n\n\n\n<li>Clear &#8211; This option will clear out a saved mapping.<\/li>\n<\/ul>\n\n\n\n<p>Additional information with the functionality of these buttons.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the highlighted row is blank then the&nbsp;<strong>Clear<\/strong>&nbsp;button will be disabled.<\/li>\n\n\n\n<li>If the highlighted row has a&nbsp;<strong>Custom<\/strong>&nbsp;mapping, then the Custom button will be disabled.<\/li>\n\n\n\n<li>If the highlighted row has a&nbsp;<strong>Default<\/strong>&nbsp;mapping, then the Default button will be disabled.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"46\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image810128009.jpg\" alt=\"\" class=\"wp-image-600\" srcset=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image810128009.jpg 412w, https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image810128009-300x33.jpg 300w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/figure>\n\n\n\n<p>Once the&nbsp;<strong>Custom<\/strong>&nbsp;button has been pressed a second screen will pop up allowing access to all of the possible data values for that piece of equipment and map to them.&nbsp;Below is a screen shot of that functionality.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image199549382.jpg\" alt=\"\" class=\"wp-image-601\" srcset=\"https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image199549382.jpg 600w, https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image199549382-300x300.jpg 300w, https:\/\/dxhelp.scytec.com\/wp-content\/uploads\/2020\/05\/image199549382-150x150.jpg 150w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>Using the screen shot above, the details for each section of the screen are detailed below.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Section #1:&nbsp;This is the returned data items from the MTConnect Agent.<\/li>\n\n\n\n<li>Section #2:&nbsp;This allows the user to select the type of data that will be mapped.&nbsp;MTConnect Events and Samples have only one option, while MTConnect Conditions have multiple options.<\/li>\n\n\n\n<li>Section #3:&nbsp;This is the path that DataXchange will use for the mapping.<\/li>\n\n\n\n<li>Section #4:&nbsp;This is the value that is returned from that data value. The refresh button can be used to update the current data.<\/li>\n\n\n\n<li>Section #5:&nbsp;Buttons to accept or cancel the mappings that have been selected.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Built In Expressions<\/h2>\n\n\n\n<p>Here is a sample list of MTConnect expressions that come predefined along with a description and the logic statement used to evaluate the expression.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cycle Start<\/h3>\n\n\n\n<p>The defined cycle start signal will be sent from DataXchange when the equipment in the database is not in cycle and the MT Connect execution status is Active.<\/p>\n\n\n\n<p><code>([PCSDB.general_equipment_status]!=[PCSDB.CYCLING]) AND ([MTC.cycle_status]=[MTC.CYCLING])<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cycle End<\/h3>\n\n\n\n<p>The defined cycle end signal will be sent from DataXchange when the equipment in the database is in cycle and the MT Connect execution status is not Active.<\/p>\n\n\n\n<p><code>([PCSDB.general_equipment_status]=[PCSDB.CYCLING]) AND ([MTC.cycle_status]!=[MTC.CYCLING])<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Custom Expressions<\/h3>\n\n\n\n<p>Custom Expression can be created using the Expression Builder using predefined variables or custom defined variables. Click&nbsp;<a href=\"https:\/\/dxhelp.scytec.com\/?epkb_post_type_1=creating-expressions\">here<\/a>&nbsp;for more detail.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview DataXchange supports the MTConnect standard allowing the retrieval of equipment information from supported controls.&nbsp;A MTConnect enabled control can be setup as a Source for data with DataXchange. Setting up MTConnect as a Source is done by connecting to the DataXchange Service from the DataXchange tab, selecting the associated equipment in the tree list, then [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"epkb_post_type_1_category":[49,46,35],"epkb_post_type_1_tag":[],"class_list":["post-276","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-dx-admin","epkb_post_type_1_category-engineers","epkb_post_type_1_category-general"],"_links":{"self":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/epkb_post_type_1\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276"}],"version-history":[{"count":0,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=\/wp\/v2\/epkb_post_type_1\/276\/revisions"}],"wp:attachment":[{"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fepkb_post_type_1_category&post=276"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/dxhelp.scytec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fepkb_post_type_1_tag&post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}