{"id":3275,"date":"2026-11-17T18:40:07","date_gmt":"2026-11-17T10:40:07","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m08-en-01\/"},"modified":"2026-11-17T18:40:07","modified_gmt":"2026-11-17T10:40:07","slug":"mplc-m08-en-01","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m08-en-01\/","title":{"rendered":"Message"},"content":{"rendered":"<p>1. Message<\/p>\n<p>M series PLC is defined as slaves in the communication with peripheral devices that are always defined as masters when communicate with M series PLC. <\/p>\n<p>All the peripheral devices send the message when communicate with M series PLC and its respond when receive the message from masters.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m08-en-01\/mplc-m08-en-01-001.png\" \/><\/p>\n<p>M series PLC communication ports support Type C, COM1 and COM2, as well as TCP\/IP communication.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m08-en-01\/mplc-m08-en-01-002.png\" \/>The format of the command message sent by the master is as follows:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Command Message Segment<\/p>\n<\/td>\n<td>\n<p>Headler<\/p>\n<\/td>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<\/td>\n<td>\n<p>Payload<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CRC<\/p>\n<\/td>\n<td>\n<p>Terminator<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Content<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0x51<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0x10 <\/p>\n<p>Fixed for use with the Binary communication protocol<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>N(Based on the message length.)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M(Based on the issued commands and their content.) The next section will explain the message structure.<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CRC16-Modbus calculation of &quot;Message Length&quot; + &quot;Message Content&quot; producing High byte + Low byte<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0x55+ 0xAA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Hight byte<\/p>\n<\/td>\n<td>\n<p>Low byte<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Message length (unit: Byte)<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2780 <strong>Headler<\/strong>: The beginning of a message. The command and response messages have the same starting characters &quot;0x51&quot; (hexadecimal), which the M series PLC will use to identify the beginning of the transmitted data.<\/p>\n<p>\u2781 <strong>ID<\/strong>: The number for the binary communication protocol is fixed at 0x10.<\/p>\n<p>\u2782 <strong>Length<\/strong>: Total bytes of payload.<\/p>\n<p>\u2783 <strong>Payload<\/strong>: The data comprises a command message or a response message.<\/p>\n<p>\u2784 <strong>CRC<\/strong>: The M series PLC uses CRC16-Modbus for verification. After calculating the CRC16-Modbus checksum on the &quot;length&quot; and &quot;payload,&quot; a checksum is generated in the sequence of High byte + Low byte. The detailed algorithm is as follows:<\/p>\n<p>(1) Set the CRC calculation output variable to an initial value of 0xFFFF (2 bytes).<\/p>\n<p>(2) Perform an XOR operation between the 1-byte data to be calculated and the lower<\/p>\n<p>byte of the CRC output variable.<\/p>\n<p>(3) Create a FOR loop and check the LSB (Least Significant Bit) of the CRC output variable a<\/p>\n<p>total of 8 times:<\/p>\n<p>\u25ce If the rightmost LSB is 1, right-shift the CRC output variable by one bit and perform an<\/p>\n<p>XOR operation with 0xA001.<\/p>\n<p>\u25ce If the rightmost LSB is 0, simply right-shift the CRC output variable by one bit.<\/p>\n<p>(4) After completing the CRC calculation for this byte, return to step 2 and retrieve the<\/p>\n<p>next data byte to continue the CRC calculation until all data bytes are processed.<\/p>\n<p>(5) Swap the high and low bytes of the CRC output variable, which will then be the final<\/p>\n<p>checksum.<\/p>\n<p>\u2785 <strong>Terminator<\/strong>: The end of a message. The command and response messages have the same ending characters: &quot;0x55&quot; (hexadecimal) and &quot;0xAA&quot; (hexadecimal). The M PLC uses these characters to recognize the end of the transmitted data.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m08-en-01\/mplc-m08-en-01-003.png\" \/>The format of the response message from the slave after receiving the command is as follows:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Reply Message Segment<\/p>\n<\/td>\n<td>\n<p>Headler<\/p>\n<\/td>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<\/td>\n<td>\n<p>Payload<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CRC<\/p>\n<\/td>\n<td>\n<p>Terminator<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>Content<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0x52<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0x10 <\/p>\n<p>Fixed for use with the Binary communication protocol<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>N(Based on the message length.)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>M(Based on the issued commands and their content.) The next section will explain the message structure.<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>CRC16-Modbus calculation of &quot;Message Length&quot; + &quot;Message Content&quot; producing High byte + Low byte<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>0x55+ 0xAA<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Hight byte<\/p>\n<\/td>\n<td>\n<p>Low byte<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Message length (unit: Byte)<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>M<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>2<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u2780 <strong>Headler<\/strong>: The beginning of a message. The command and response messages have the same starting characters &quot;0x52&quot; (hexadecimal), which the M series PLC will use to identify the beginning of the transmitted data.<\/p>\n<p>\u2781 <strong>ID<\/strong>: The number for the binary communication protocol is fixed at 0x10.<\/p>\n<p>\u2782 <strong>Length<\/strong>: Total bytes of payload.<\/p>\n<p>\u2783 <strong>Payload<\/strong>: The data comprises a command message or a response message.<\/p>\n<p>\u2784 <strong>CRC<\/strong>: The M series PLC uses CRC16-Modbus for verification. After calculating the CRC16-Modbus checksum on the &quot;length&quot; and &quot;payload,&quot; a checksum is generated in the sequence of High byte + Low byte. The detailed algorithm is as follows:<\/p>\n<p>(1) Set the CRC calculation output variable to an initial value of 0xFFFF (2 bytes).<\/p>\n<p>(2) Perform an XOR operation between the 1-byte data to be calculated and the lower<\/p>\n<p>byte of the CRC output variable.<\/p>\n<p>(3) Create a FOR loop and check the LSB (Least Significant Bit) of the CRC output variable a<\/p>\n<p>total of 8 times:<\/p>\n<p>\u25ceIf the rightmost LSB is 1, right-shift the CRC output variable by one bit and perform an<\/p>\n<p>XOR operation with 0xA001.<\/p>\n<p>\u25ceIf the rightmost LSB is 0, simply right-shift the CRC output variable by one bit.<\/p>\n<p>(4) After completing the CRC calculation for this byte, return to step 2 and retrieve the<\/p>\n<p>next data byte to continue the CRC calculation until all data bytes are processed.<\/p>\n<p>(5) Swap the high and low bytes of the CRC output variable, which will then be the final<\/p>\n<p>checksum.<\/p>\n<p>\u2785 <strong>Terminator<\/strong>: The end of a message. The command and response messages have the same ending characters: &quot;0x55&quot; (hexadecimal) and &quot;0xAA&quot; (hexadecimal). The M PLC uses these characters to recognize the end of the transmitted data.<\/p>\n<ul>\n<li><strong>Query<\/strong><\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Header(1)<\/p>\n<p>51H<\/p>\n<\/td>\n<td>\n<p>ID(1)<\/p>\n<p>10H<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<p>(2)<\/p>\n<\/td>\n<td>\n<p>Payload<\/p>\n<p>(length)<\/p>\n<\/td>\n<td>\n<p>CRC<\/p>\n<p>(2)<\/p>\n<\/td>\n<td>\n<p>Terminator(2)<\/p>\n<p>55AAH<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li><strong>Response<\/strong><\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Header(1)<\/p>\n<p>52H<\/p>\n<\/td>\n<td>\n<p>ID(1)<\/p>\n<p>10H<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<p>(2)<\/p>\n<\/td>\n<td>\n<p>Payload<\/p>\n<p>(length)<\/p>\n<\/td>\n<td>\n<p>CRC<\/p>\n<p>(2)<\/p>\n<\/td>\n<td>\n<p>Terminator(2)<\/p>\n<p>55AAH<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li><strong>Parameter<\/strong><\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Header<\/p>\n<\/td>\n<td>\n<p>1 byte<\/p>\n<\/td>\n<td>\n<p>The beginning of a message.<\/p>\n<\/td>\n<td>\n<p>51H: Query<\/p>\n<p>52H: Respons<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>ID<\/p>\n<\/td>\n<td>\n<p>1 byte<\/p>\n<\/td>\n<td>\n<p>Specify the payload frame to be used<\/p>\n<\/td>\n<td>\n<p>10H: default value<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Length<\/p>\n<\/td>\n<td>\n<p>2 bytes<\/p>\n<\/td>\n<td>\n<p>Total bytes of payload<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Payload<\/p>\n<\/td>\n<td>\n<p>n bytes<\/p>\n<\/td>\n<td>\n<p>The data comprises a query message or a response message.<\/p>\n<\/td>\n<td>\n<p>Refer to 2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>CRC<\/p>\n<\/td>\n<td>\n<p>2 bytes<\/p>\n<\/td>\n<td>\n<p>Use CRC-16 Modbus, calculating range include length and payload<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Terminator<\/p>\n<\/td>\n<td>\n<p>2 bytes<\/p>\n<\/td>\n<td>\n<p>The end of a message.<\/p>\n<\/td>\n<td>\n<p>55AAH: default terminator<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Message M series PLC is defined as slaves in the com [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"class_list":["post-3275","post","type-post","status-publish","format-standard","hentry","category-en-mplc-m08"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/comments?post=3275"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3275\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}