{"id":11891,"date":"2021-06-08T13:42:43","date_gmt":"2021-06-08T13:42:43","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?page_id=11891"},"modified":"2025-10-14T13:44:11","modified_gmt":"2025-10-14T18:44:11","slug":"msgtcp_serv_comm","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/16-smart-instrument-interfaces\/msgtcp_serv_comm\/","title":{"rendered":"MsgTcp_serv_comm"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>Perform TCP server communications for CyFlex instruments, supporting asynchronous send\/receive and framing.<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>MsgTcp_serv_comm<\/strong> &lt;i=instrument_name&gt; &lt;h=host_name&gt; &lt;p=port&gt; [v=verbose_file] [sof=start_of_frame] [eof=end_of_frame] [isof=end_of_frame] [ieof=end_of_frame] [osof=end_of_frame] [oeof=end_of_frame] [f=frame_type] [t=disabledelay] [sync=ON|OFF]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 98.5387%; height: 816px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr style=\"height: 31px;\">\n<td style=\"width: 7.04008%; height: 31px;\">\n<p>i<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 31px;\">\n<p>Specify the MSG instrument name.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>h<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Specify the instrument hostname.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>p<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Specify the instrument host port to be used.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>v<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Optional. Specify whether to pipe the output to stdout or specify a report filename. The default is none.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>sof<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Optional. Specify a start of frame decimal value or ASCII value. The default is decimal 2.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>eof<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Optional. Specify an end of frame decimal value or ASCII value. The default is decimal 3.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>isof<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Optional. Specify a start of Input frame decimal value or ASCII value. The default is to use the sof value.\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>ieof<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Optional. Specify an end of Input frame decimal value or ASCII value. The default is to use the eof value.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 7.04008%; height: 39px;\">\n<p>osof<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 39px;\">\n<p>Optional. Specify a start of Output frame decimal value or ASCII value. The default is to use the sof value.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 40px;\">\n<td style=\"width: 7.04008%; height: 40px;\">\n<p>oeof<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 40px;\">\n<p>Optional. Specify an end of Output frame decimal value or ASCII value. The default is to use the eof value.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 104px;\">\n<td style=\"width: 7.04008%; height: 98px;\">\n<p>f<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 98px;\">\n<p>Optional. Specify a framing args format<br \/>\nc =&gt; one decimal char (default)<br \/>\na =&gt; ascii (including \\\\n, \\\\r)<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 7.04008%; height: 56px;\">\n<p>t<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 56px;\">\n<p>Optional. Specify whether to disable delay between transmit frames to improve performance. The default is OFF.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 160px;\">\n<td style=\"width: 7.04008%; height: 160px;\">\n<p>sync<\/p>\n<\/td>\n<td style=\"width: 117.453%; height: 160px;\">\n<p>Optional. Specify ON or OFF:<\/p>\n<ul>\n<li>Specify ON to enable synchronous command response mode.<\/li>\n<li>Specify OFF to enable asynchronous response mode.<\/li>\n<\/ul>\n<p>The default is OFF.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<pre><strong>MsgTcp_serv_comm<\/strong> i=CTC_MEXA h=10.0.0.1 p=7700 sof=\"0\" eof=\"\\r\\n\" f=a v=NONE\r\n\r\nMSG instrument name, i              = CTC_MEXA\r\nHost name or IP of instrument, h    = 10.0.0.1\r\nPort number of instrument host, p   = 7700\r\nStart of frame, sof                 = \"0\"\r\nEnd of frame, eof                   = \"\\r\\n\"\r\nStart of Input frame, isof          = \"0\" (default, uses sof)\r\nEnd of Input frame, ieof            = \"\\r\\n\"\r\nStart of Output frame, osof         = \"0\" (default, uses sof)\r\nEnd of Output frame, oeof           = \"\\r\\n\"\r\nFrame type, f                       = a (for ascii)\r\nLocation\/name of report file, v     = NONE (no report file) \r\nDisable delay, t                    = OFF\r\nSync, sync                          = OFF (default)<\/pre>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<p style=\"padding-left: 40px;\">Unless the message Input and Output are different, use the default of sof and eof. Decimal use byte location of the frame. Ascii can accept either numeric values or special characters line &#8220;\\r\\n&#8221; as in the example above.<\/p>\n<p><strong><span style=\"font-size: 14pt;\">See Also:<\/span><\/strong><\/p>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/16-smart-instrument-interfaces\/MsgTcp\/\">MsgTcp<\/a>, <a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/16-smart-instrument-interfaces\/MsgTCP_serv\">MsgTCP_serv<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Perform TCP server communications for CyFlex instruments, supporting asynchronous send\/receive and framing. Enter: MsgTcp_serv_comm &lt;i=instrument_name&gt; &lt;h=host_name&gt; &lt;p=port&gt; [v=verbose_file] [sof=start_of_frame] [eof=end_of_frame] [isof=end_of_frame] [ieof=end_of_frame] [osof=end_of_frame] [oeof=end_of_frame] [f=frame_type] [t=disabledelay] [sync=ON|OFF] Where: i Specify the MSG instrument name. h Specify the instrument hostname. p Specify the instrument host port to be used. v Optional. Specify whether to pipe [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"parent":1955,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-11891","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/11891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=11891"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/11891\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1955"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=11891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}