{"id":3217,"date":"2026-11-17T18:38:33","date_gmt":"2026-11-17T10:38:33","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m03-en-10\/"},"modified":"2026-11-17T18:38:33","modified_gmt":"2026-11-17T10:38:33","slug":"mplc-m03-en-10","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m03-en-10\/","title":{"rendered":"Chapter 10 Serial communication"},"content":{"rendered":"<p>With the two built-in RS-485 communication ports and the serial expansion module of the M-series CPU Unit users can connect and integrate with smart peripherals that have the same serial hardware communication interface through communication.<\/p>\n<p>The FUN151 (CLINK) communication connection convenience command can specify the working mode of the communication port. There are 5 working modes, including Mode 0, 1, 2, 3, 4, and 5.<\/p>\n<p>The following table shows the description of the command mode.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>  Item<\/p>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>Transmission Rate<\/p>\n<\/td>\n<td>\n<p>Data Length<\/p>\n<\/td>\n<td>\n<p>Transmission Code<\/p>\n<\/td>\n<td>\n<p>Error Detection Method<\/p>\n<\/td>\n<td>\n<p>Command Processing Speed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>FUN151<\/p>\n<p>(CLINK)<\/p>\n<\/td>\n<td>\n<p>FATEK M1 Communication Protocol <\/p>\n<p>(MD0)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>4.8Kbps<\/p>\n<p>~<\/p>\n<p>921.6Kbps<\/p>\n<\/td>\n<td>\n<p>8 bits<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Binary Code<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Based on Protocols<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>Scanning Time<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>User-Defined Communication Protocol <\/p>\n<p>(MD1\u30012\u30014\u30015)<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>7\/8 bits<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FATEK High-Speed CPU Link<\/p>\n<p>(MD3)<\/p>\n<\/td>\n<td>\n<p>38.4kbps<\/p>\n<p>~<\/p>\n<p>921.6Kbps<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>FUN150\uff08Modbus\uff09 communication connection command can specify the communication port to communicate with the Modbus Communication Protocols. <\/p>\n<p>The following table is the description of the command mode:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>  Item<\/p>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>Transmission Rate<\/p>\n<\/td>\n<td>\n<p>Data Length<\/p>\n<\/td>\n<td>\n<p>Transmission Code<\/p>\n<\/td>\n<td>\n<p>Error Detection Method<\/p>\n<\/td>\n<td>\n<p>Command Processing Speed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>(MODBUS)<\/p>\n<\/td>\n<td>\n<p>Modbus RTU\/ASCII<\/p>\n<\/td>\n<td>\n<p>4.8Kbps<\/p>\n<p>~<\/p>\n<p>921.6Kbps<\/p>\n<\/td>\n<td>\n<p> 8 bits<\/p>\n<\/td>\n<td>\n<p>Binary Code<\/p>\n<\/td>\n<td>\n<p>Modbus CRC<\/p>\n<\/td>\n<td>\n<p>Scanning Time<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>10-1  Function of Serial Communication Port<\/h3>\n<p>M-Series CPU Unit comprises two RS485 software interfaces, Port 1 and Port 2. If it is not enough, you can install another communication module (CM) to expand the communication port interface to fourteen at most. (PORT1~PORT4 and HCM ports). Communication module (CM) has two interfaces of RS232 or RS485 to choose from. UperLogic software have communication drivers that conform to the &quot;FATEK M1 Communication Protocols&quot;. If the hardware interface and communication parameters are consistent, Communication port can be connected by connecting to the communication port of the &quot;standard interface&quot;. If there is no communication driver that conforms to this protocol, in addition to writing commands conforming to the &quot; FATEK M1 Communication Protocols&quot; format to communicate with the PLC, you can also use the most commonly used Modbus RTU\/ASCII Protocols in the industry to communicate with the PLC. Port 1 and Port 2 are also defaulted as FATEK standard communication interface in the factory setting or system initialization of PLC. In order to meet the wide application and demand of communication connection, Port 1 and Port 2 not only provide FATEK standard communication interface. It also provides support for powerful communication convenience commands, allowing users to write the required application communication programs through the Ladder program, which can easily achieve the purpose of system integration and decentralized monitoring.<\/p>\n<p>Additional Port3 and Port4 are only supported on the MQ series.<\/p>\n<p>For details, please refer to the descriptions in the following chapters.<\/p>\n<p>In M SERIES PLC, its software comprises two types of software interfaces. Listed below are the types of software interfaces that can be set through the respective port\uff1a<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>        Type Option<\/p>\n<p>Software <br \/>interface<\/p>\n<\/td>\n<td colspan=\"4\">\n<p>Communication port<\/p>\n<\/td>\n<td>\n<p>Remark<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port1<\/p>\n<\/td>\n<td>\n<p>Port2<\/p>\n<\/td>\n<td>\n<p>Port3<\/p>\n<\/td>\n<td>\n<p>Port3<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Standard Interface<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>Fatek M1 Slave<\/p>\n<p>Modbus RTU\/ASCII Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Plugged-in Interface<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>Fatek M1 Slave<\/p>\n<p>Modbus RTU\/ASCII Slave<\/p>\n<p>* MQ only<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Ladder Function Interface<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>The Port will be controlled by <\/p>\n<p>Ladder program.<\/p>\n<p>*Only Port 2 supports High-Speed CPU Link<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Standard Interface\uff1a<\/li>\n<\/ul>\n<p>Port1\u2013Port2 can be set as this type of interface. In such interface, the Port is controlled by the standard communication drive program (using FATEK\u2019s M SERIES PLC communication protocol or Modbus RTU\/ASCII communication protocol) installed in the M SERIES PLC and it is termed as the \u201cstandard interface\u201d. To communicate with the \u201cstandard interface\u201d, the online operation will be allowed after meeting FATEK\u2019s M-SERIES PLC communication protocol or Modbus RTU\/ASCII communication protocol.<\/p>\n<ul>\n<li>Plugged-in Interface\uff1a<\/li>\n<\/ul>\n<p>Only MQ-series PLC supports plugged-in interfaces, up to 2 ports, port 3 and port 4. The description of the function of this kind of interfaces is the same as standard interfaces.<\/p>\n<ul>\n<li>Ladder Function Interface:<\/li>\n<\/ul>\n<p>Such type of interface can be selected by Port1\u2013Port4. When operating on such type of interface, such Port will be controlled by Ladder commands (e.g., FUN94, FUN150 and FUN151). Through the Ladder program, the user will be allowed to control such Port.<\/p>\n<p>Provided below is the description of function and application when these two communication ports of M SERIES PLC are operating under the aforesaid two types of interfaces.<\/p>\n<h4>10-1-1  Communication Port1\uff5ePort4                       <\/h4>\n<p>Functional specification<\/p>\n<ul>\n<li>Port 1 and Port 2 : RS485 interfaces with functional specification complying with EIA-RS485.<\/li>\n<li>Port 3 and Port 4 : RS232\/485 interfaces with functional specification complying with RS-232 and EIA-RS485 respectively.<\/li>\n<\/ul>\n<p>Basic usage<\/p>\n<p>There are 2 types of software interface are selectable as follows:<\/p>\n<p>\u2780 Standard interface:<\/p>\n<p>Connectable to peripherals with RS485 interface, such as computer, UperLogic , HMI, SCADA, etc.<\/p>\n<p>\u2781 Ladder diagram Program controlled interface:<\/p>\n<p>User can control Port1~Port4 through the ladder diagram instructions; FUN151 (CLINK) command takes control of Port1~Port4 to establish connection with FATEK CPU Link or peripherals with RS485 interfaces; FUN150 (MBUS) command can turn Port1~Port4 into a master of Modbus RTU\/ASCII communication protocol for connecting Slaves with this communication protocol.<\/p>\n<p>Extended usage<\/p>\n<ul>\n<li>Under Standard interface, act as the Slave for multi-drop FATEK RS485.<\/li>\n<li>Under Ladder diagram program-controlled interface types, Port1~Port4 has the following functions:<\/li>\n<\/ul>\n<p>\u2780 Use MD0 mode of FUN151 (CLINK) instruction to act as the master for FATEK CPU Link network.<\/p>\n<p>\u2781 Use MD1 mode of FUN151 (CLINK) instruction to actively connect to intelligent peripherals equipped with this communication interface, such as other brands\u2019 PLC, servo driver, temperature controller, inverter, message display, etc.<\/p>\n<p>\u2782 Use FUN150 (MBUS) instruction to act as the Master for Modbus RTU\/ASCII communication protocol to connect to peripherals with this communication protocol.<\/p>\n<h4>10-1-2  Description of Communication Functions                    <\/h4>\n<p>For the computer equipment to be able to communicate, hardware interface and organization software interface (i.e., communication protocol) communication parameters must be consistent between the sender and receiver. The same is true for PLC. After meeting the above three basic elements, PLC can communicate with PLC or other peripherals. These three aspects are described here.<\/p>\n<h5>Matching between hardware interface and mechanism<\/h5>\n<p>In order to meet the different needs of various peripheral devices, M-Series PLC can expand S232, RS485 communication interfaces are available. When using, please confirm whether the interface is consistent? If different communication interfaces are connected together, it may cause permanent damage to the hardware. Please also confirm whether the connected signal is correct? For example: TxD must be connected to RxD, RTS will be connected to CTS, RS232, RS485 are explained as follows\uff1a<\/p>\n<p>Port 1 ~ Port 4 &amp; HCM Ports <\/p>\n<p>If you purchase a communication module (CM), you can expand one to twelve communication port interfaces, and the maximum number of communication port interfaces can be expanded to 14 (Port1 ~ Port2+ HCM ports), except for MQ-series PLC(Port1 ~ Port4).<\/p>\n<p>Port1 ~ Port4 are defaulted to the &quot;FATEK communication interface&quot; in the factory setting or when the PLC system is initialized. For HCM ports, users need to select the mode by themselves, and they must go to the device view to configure the settings. In order to meet the wide application of communication connections According to the requirements, Port1 ~ Port4 not only provide FATEK standard communication interface, but also provide convenient communication commands with powerful functions, so that users can write the required application communication programs through Ladder commands, which can easily achieve system integration and decentralization. Purpose of monitoring.<\/p>\n<p>Communication port interface of the communication module (CM) has two options: RS232+RS485 or RS485+RS485<\/p>\n<ul>\n<li>RS232 Communication interface<\/li>\n<\/ul>\n<p>Each communication module (CM) provides one or two sets of RS232 communication interface (9 Pin D-sub female connector). For application, users can purchase a standard 9 Pin RS232 cable from a computer store, or use the following Make 9 Pin RS232 cable by yourself.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>                   Signal<\/p>\n<p>Port<\/p>\n<p>Connector<\/p>\n<\/td>\n<td>\n<p>TXD<\/p>\n<\/td>\n<td>\n<p>RXD<\/p>\n<\/td>\n<td>\n<p>RTS<\/p>\n<\/td>\n<td>\n<p>CTS<\/p>\n<\/td>\n<td>\n<p>SG<\/p>\n<\/td>\n<td>\n<p>DTR<\/p>\n<\/td>\n<td>\n<p>DSR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>9Pin<br \/>D-sub<\/p>\n<\/td>\n<td>\n<p>MALE<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FEMALE<\/p>\n<p>(HCM25 Module)<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>M-Series PLC is not used.<\/p>\n<p>9P D-sub female \uff1e 9P D-sub male RS232 communication cable :<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-001.png\" \/><\/p>\n<p>If you make RS232 cables by yourself and the definition of each pin is not clear, use a multimeter for measurement to determine TXD and RXD.<\/p>\n<p>9 Pin connector:\tThe pin 5 is SG;<br \/>Measure the pin 2 (red probe) and the pin 5 (black probe) with a multimeter. If it is approximately -9V, it means that the pin 2 is the transmission pin; If it is approximately 0V, it means that the pin 2 is the receiving pin.<\/p>\n<p>Measure the pin 3 (red probe) and the pin 5 (black probe) by a multimeter. If it is approximately -9V, it means that the pin 3 is the transmission pin; If it is approximately 0V, it means that the pin 3 is the receiving pin.<\/p>\n<p>\u2022  RS485 Communication interface<\/p>\n<p>Each communication board (or module) provides one or two standard RS485 4-pin European plug-able terminal block. The pin assignment of connector(s) is show below.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-002.png\" \/><\/p>\n<p>Built-in RS485<\/p>\n<\/td>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-003.png\" \/><\/p>\n<p>CM module RS485<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h5>Selection and Setting of Communication Protocols<\/h5>\n<p>Setting Steps:<\/p>\n<ul>\n<li>Select Communication Configuration:<\/li>\n<\/ul>\n<p>Click &quot;Communication Configuration &quot; of &quot;System Configuration&quot; in &quot;Project Management&quot; on the left side of the software interface, as shown in the figure below, and then click &quot;Serial Port Settings&quot;.<\/p>\n<p>At this time, you can select the Modbus or FATEK communication protocol in the &quot;Communication Configuration &quot; in the &quot;Advanced Settings&quot; below, as shown in the figure below.<\/p>\n<p>After the setting is completed, download it to the PLC.<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-004.jpg\" \/><\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-005.jpg\" \/><\/p>\n<ul>\n<li>Set protocol via special register:<\/li>\n<\/ul>\n<p>R35355\uff1aHigh byte = 56H, the planned communication port is Modbus RTU \/ Modbus ASCII communication protocol interface.<\/p>\n<p>= other values, don\u2019t have the function above.<\/p>\n<p>(FATAK communication protocol as default)<\/p>\n<p>Low byte = Port1~4, FATEK \/ Modbus RTU \/ Modbus ASCII, the specified format of the communication protocol is as follows:<\/p>\n<p>High byte          Low byte<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>56H<\/p>\n<\/td>\n<td>\n<p>b7<\/p>\n<\/td>\n<td>\n<p>b6<\/p>\n<\/td>\n<td>\n<p>b5<\/p>\n<\/td>\n<td>\n<p>b4<\/p>\n<\/td>\n<td>\n<p>b3<\/p>\n<\/td>\n<td>\n<p>b2<\/p>\n<\/td>\n<td>\n<p>b1<\/p>\n<\/td>\n<td>\n<p>b0<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>  Bits<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>b1b0<\/p>\n<\/td>\n<td>\n<p>0 or 1<\/p>\n<\/td>\n<td>\n<p>Port1\/Port3 works FATEK communication protocol<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2(b1:1, b0:0)<\/p>\n<\/td>\n<td>\n<p>Port1\/Port3 works Modbus RTU communication protocol<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3(b1:1, b0:1)<\/p>\n<\/td>\n<td>\n<p>Port1\/Port3 works Modbus ASCII communication protocol<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"3\">\n<p>b3b2<\/p>\n<\/td>\n<td>\n<p>0 or 1<\/p>\n<\/td>\n<td>\n<p>Port2\/Port4 works FATEK communication protocol<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2(b3:1, b2:0)<\/p>\n<\/td>\n<td>\n<p>Port2\/Port4 works Modbus RTU communication protocol<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3(b3:1, b2:1)<\/p>\n<\/td>\n<td>\n<p>Port2\/Port4 works Modbus ASCII communication protocol<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u203b It is allowed to designate multiple ports as the Modbus RTU communication protocol interface, as long as the corresponding bit is set to 1.<\/p>\n<p>Setting example:<\/p>\n<p>R35355=5602H, specify Port1 as Modbus RTU communication protocol interface<\/p>\n<p>R35355=5608H, specify Port2 as Modbus RTU communication protocol interface<\/p>\n<p>R35801=5602H, specify Port3 as Modbus RTU communication protocol interface<\/p>\n<p>R35801=5608H, specify Port4 as Modbus RTU communication protocol interface<\/p>\n<p>R35355=560AH, designate Port1 and Port2 as Modbus RTU communication protocol interface<\/p>\n<p>R35801=560AH, designate Port3 and Port4 as Modbus RTU communication protocol interface<\/p>\n<p>\u203b If the communication port of the PLC is to be used as a Modbus RTU \/ Modbus ASCII slave station, it can be used by planning a Modbus RTU \/ Modbus ASCII communication protocol interface according to the above method, and the Modbus address configuration must meet the application requirements.<\/p>\n<p>\u203b Please refer to Chapter 10-4-2 for the conversion principles of Modbus and FATEK data addresses.<\/p>\n<p>Port 1\uff5ePort 4 work as the master station of Modbus RTU\/ASCII communication protocol<\/p>\n<p>\u203b If PLC communication port is a Master station of Modbus RTU\/Modbus ASCII, please follow FUN150 (M-BUS) instruction (refer to below diagram). Please refer to Chapter 10-4 for further details of FUN150 (M-BUS) instruction.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-006.png\" \/><\/p>\n<h5>Settings for Communication Parameters<\/h5>\n<p>The factory default or system initial values \u200b\u200bof the communication parameters of Port 1~Port 4 are as follows:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Baud Rate<\/p>\n<\/td>\n<td>\n<p>9600 bps<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Data length<\/p>\n<\/td>\n<td>\n<p>8 Bits<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Parity Check<\/p>\n<\/td>\n<td>\n<p>Even<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Stop Bit<\/p>\n<\/td>\n<td>\n<p>1 Bit<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-007.png\" \/><\/p>\n<p>Default communication parameters <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Port<\/p>\n<\/td>\n<td>\n<p>Register Setup<\/p>\n<\/td>\n<td>\n<p>Default Value<\/p>\n<\/td>\n<td>\n<p>Default <\/p>\n<p>Baud Rate<\/p>\n<\/td>\n<td>\n<p>Other Default Parameters<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port 1<\/p>\n<\/td>\n<td>\n<p>R35352<\/p>\n<\/td>\n<td>\n<p>5661H<\/p>\n<\/td>\n<td>\n<p>9600 bps<\/p>\n<\/td>\n<td>\n<p>8-bit Data\u3001 Even\u30011-bit Stop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port 2<\/p>\n<\/td>\n<td>\n<p>R35353<\/p>\n<\/td>\n<td>\n<p>5661H<\/p>\n<\/td>\n<td>\n<p>9600 bps<\/p>\n<\/td>\n<td>\n<p>8-bit Data\u3001 Even\u30011-bit Stop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port 3<\/p>\n<\/td>\n<td>\n<p>R35798<\/p>\n<\/td>\n<td>\n<p>5661H<\/p>\n<\/td>\n<td>\n<p>9600 bps<\/p>\n<\/td>\n<td>\n<p>8-bit Data\u3001 Even\u30011-bit Stop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port 4<\/p>\n<\/td>\n<td>\n<p>R35799<\/p>\n<\/td>\n<td>\n<p>5661H<\/p>\n<\/td>\n<td>\n<p>9600 bps<\/p>\n<\/td>\n<td>\n<p>8-bit Data\u3001 Even\u30011-bit Stop<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>\u203b When a port is set to Modbus RTU communication protocol, data bit is always 8-bit.<\/p>\n<p>\u203b Port 1~Port 4 also provide Baud Rate settings for user-defined (4800 bps~1152000 bps).<\/p>\n<p>Setup of Port 1~Port 4 communication parameters <\/p>\n<p>Port communication parameters can be found by Project-&gt;Communication Configuration-&gt;Serial Port.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-008.png\" \/> <\/p>\n<p>Without station number checking for HMI or SCADA connecting<\/p>\n<p>While PLC communicating with UperLogic, it recognizes the FATEK M1 communication protocol.<\/p>\n<p>While PLC communicating with Man Machine Interface (MMI) or Supervising software (SCADA), it recognizes the FATEK binary communication protocol.<\/p>\n<p>Low byte of R35354 = 1, Port 1 without station number checking while FATEK&#8217;s external communication protocol.<\/p>\n<p>High byte of R35354 = 1, Port 2 without station number checking while FATEK&#8217;s external communication protocol.<\/p>\n<p>Low byte of R35800 = 1, Port 3 without station number checking while FATEK&#8217;s external communication protocol.<\/p>\n<p>High byte of R35800 = 1, Port 4 without station number checking while FATEK&#8217;s external communication protocol.<\/p>\n<p>Transmission delay time setting<\/p>\n<p>While the communication port being used as the master of FATEK CPU LINK (FUN151) or Modbus RTU (FUN150) network, it allows the user to set the transmission delay time to slow down the expiration of message frame.<\/p>\n<p>High byte of R35357: Port 1 transmission delay time setting (Unit in 10mS)<\/p>\n<p>High byte of R35358: Port 2 transmission delay time setting (Unit in 10mS)<\/p>\n<p>High byte of R35803: Port 3 transmission delay time setting (Unit in 10mS)<\/p>\n<p>High byte of R35804: Port 4 transmission delay time setting (Unit in 10mS)<\/p>\n<p>Receive time-out span setting<\/p>\n<p>When the communication port of the PLC uses FUN150 (M-BUS) or FUN151 (CLINK) as the master of the Modbus or Fatek communication network. After sending a command, it must complete the transmission of all response messages within the set time. When the time is up, if the receiving party does not respond or the response is not completed, it is determined that the communication transaction command has failed.<\/p>\n<p>Low byte of R35357: Port 1 receive time-out span setting (Unit in 10mS).<\/p>\n<p>Low byte of R35358: Port 2 receive time-out span setting (Unit in 10mS).<\/p>\n<p>Low byte of R35803: Port 3 receive time-out span setting (Unit in 10mS).<\/p>\n<p>Low byte of R35804: Port 4 receive time-out span setting (Unit in 10mS).<\/p>\n<p>New message detection time interval setting<\/p>\n<p>While the communication port being used as the master or slave of Modbus RTU communication protocol, the system will give the default time interval to identify each packet of receiving message.<\/p>\n<p>Without station number checking for FATEK&#8217;s internal communication protocol<\/p>\n<p>While PLC communicating with UperLogic, it recognizes the FATEK&#8217;s internal communication protocol, the quick way to communicate with the PLC is to key in 255 as the station number for UperLogic to connect with the unsure station number of target.<\/p>\n<p>Related internal relay<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Communication<\/p>\n<p>Port<\/p>\n<\/td>\n<td>\n<p>Port ready <\/p>\n<p>Indication relay  <\/p>\n<\/td>\n<td>\n<p>Indication relay to complete the last command<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port1<\/p>\n<\/td>\n<td>\n<p>M9135<\/p>\n<\/td>\n<td>\n<p>M9136<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port2<\/p>\n<\/td>\n<td>\n<p>M9138<\/p>\n<\/td>\n<td>\n<p>M9139<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port3<\/p>\n<\/td>\n<td>\n<p>M9149<\/p>\n<\/td>\n<td>\n<p>M9150<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Port4<\/p>\n<\/td>\n<td>\n<p>M9152<\/p>\n<\/td>\n<td>\n<p>M9153<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>10-1-3  Description and Application of Software Interface Types                 <\/h4>\n<p>As described in Section 10.1, the built-in communication port has 3 types of software interfaces, Port1~Port2 are both Standard Interface and Ladder Function Interface. Port3~Port4 are both Plugged-in Interface and Ladder Function Interface. The interface type is based on PLC\u2019s CPU of user\u2019s program setting (when user used communication-controlled instruction FUN150 and FUN151, it will automatically set to \u201cLadder Diagram Program Controlled Interface\u201d).<\/p>\n<h5>Standard\/Plugged-in Interface<\/h5>\n<p>Standard and plugged-in interface differs in that plugged-in ones are not inherently built in, and only MQ-series PLC supports this kind of interface. The interface is controlled by PLC CPU, and the communication transaction of the ports is controlled by FATEK \u201cStandard Communication Driver\u201d or \u201cModbus Communication Driver\u201d. All accesses to the port must be executed in the format of \u201cFATEK-PLC Protocol\u201d or \u201cModbus Communication Driver\u201d. UperLogic software package, and many HMI and SCADA have communication drivers conforming to \u201cFATEK-PLC Protocol\u201d, so linkage is built immediate when the \u201cstandard interface\u201d port is connected and the hardware interface and communication parameters are consistent. When no such conforming communication driver is available, additional commands that conform to the format of \u201cFATEK-PLC Protocol\u201d or \u201cModbus Communication Driver\u201d must be written for PLC communication.<\/p>\n<h5>Ladder Function Interface<\/h5>\n<p>This type of interface can be set up for Port1~Port4. The ladder program that are used to control the ports are FUN150 (M-BUS) and FUN151 (CLINK).<\/p>\n<p>FUN150 (M-BUS) controls Port 1~Port 4 and uses them as masters on the Modbus network. The ports can connect to Modbus peripherals (slaves) easily. Refer to the \u201cConvenient instruction for Modbus RTU Master\u201d below for more information.<\/p>\n<p>FUN151 (CLINK) controls Port 1~Port 4and uses them for resource sharing among PLCs or connection to intelligent peripherals. FUN151 provides three operation modes. Refer to the \u201cFATEK Binary Master\/Slave Protocols\u201d below for more information.<\/p>\n<h3>10-2  FATEK Binary Communication Protocol<\/h3>\n<p>FUN151 (CLINK) Usage Step<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u5716\u72475.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-009.png\" \/><\/p>\n<ul>\n<li>Station number can be any one from 1 to 254, but cannot be repeated<\/li>\n<li>Please refer to the section Communication parameter setting instructions.<\/li>\n<li>MD3 is only for Port2.<\/li>\n<\/ul>\n<h4>10-2-1 Description and examples of instruction                                  <\/h4>\n<p>This chapter will explain the usage of the MD0 working modes of the FUN151 (CLINK) command with practical application examples.<\/p>\n<h5>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command<\/h5>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-010.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pt : Assign the port, 1\uff5e4<\/p>\n<p>MD: 0, master station of CPU LINK (Using FATEK communication protocol).<\/p>\n<p>SR: Starting register of communication table <\/p>\n<p>WR: Starting register for instruction operation. It controls 8 registers; the other programs can not repeat in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1-4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>FUN151 (CLINK): MD 0 mode provides data sharing between FATEK PLC and PLC <\/li>\n<li>The master PLC may connect with 254 slave stations through the RS485 interface.<\/li>\n<li>Only the master PLC needs to use FUN151 instruction, the slave doesn&#8217;t need.<\/li>\n<li>It employs the program coding method or table filling method to plan for the data flow controls; i.e. from which one of the slave station to get which type of data and save them to the master PLC, or from the master PLC to write which type of data to the assigned slave station. It needs only 7 registries to make definition; every 7 registers define one packet of data transaction.<\/li>\n<li>When execution control \u301dEN\u301e changes from 0\u21921 and both inputs \u201cPAU\u201d and  \u201cABT\u201d are 0, and if the port hasn\u2019t been controlled by other communication instructions, detecting that  M9135\/M9138\/M9149\/M9152=1, this instruction will control the port immediately and set the M9135\/M9138\/M9149\/M9152 to be 0 (which means it is being occupied), then going on a packet of data transaction immediately. If the port has been controlled (M9135\/M9138\/M9149\/M9152= 0), then this instruction will enter into the standby status until the controlling communication instruction completes its transaction or pause\/abort its operation to release the control right ( M9135\/M9138\/M9149\/M9152=1), and then this instruction will become enactive, set M9135\/M9138\/M9149\/M9152 to be 0, and going on the data transaction immediately.<\/li>\n<li>While in transaction processing, if operation control \u201cPAU\u201d becomes 1, this instruction will release the control right (M9135\/M9138\/M9149\/M9152 = 1) after this transaction. Next time, when this instruction takes over the transmission right again, it will restart from the next packet of data transaction.<\/li>\n<li>While in transaction processing, if operation control \u201cABT\u201d becomes 1, this instruction will abort this transaction immediately and release the control right (M9135\/M9138\/M9149\/M9152 = 1). Next time, when this instruction takes over the transmission right again, it will restart from the first packet of data transaction.<\/li>\n<li>While it is in the data transaction, the output indication \u201cACT\u201d will be ON.<\/li>\n<li>When a data transaction is completed, if there is an error, the output indication &quot;DN&quot; and &quot;ERR&quot; will be ON at the same time. <\/li>\n<li>If there is no error occurred when it finishes a packet of data transaction, the output indication \u201cDN\u201d will be ON.<\/li>\n<li>If &quot;EN&quot; is ON, the communication will continue.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Port Interface Signal<\/p>\n<p>List of relays and registers used by communication ports: <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>                   Communication Port<\/p>\n<p>Interface Signal<\/p>\n<\/td>\n<td>\n<p> Port 1 <\/p>\n<\/td>\n<td>\n<p> Port 2<\/p>\n<\/td>\n<td>\n<p> Port 3<\/p>\n<\/td>\n<td>\n<p> Port 4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1. Port occupation indication<\/p>\n<\/td>\n<td>\n<p>M91355<\/p>\n<\/td>\n<td>\n<p>M9138<\/p>\n<\/td>\n<td>\n<p>M9149<\/p>\n<\/td>\n<td>\n<p>M9152<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2. Port command complete indication<\/p>\n<\/td>\n<td>\n<p>M9136<\/p>\n<\/td>\n<td>\n<p>M9139<\/p>\n<\/td>\n<td>\n<p>M9150<\/p>\n<\/td>\n<td>\n<p>M9153<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3. Port communication parameter register<\/p>\n<p> etting register<\/p>\n<\/td>\n<td>\n<p>R35352<\/p>\n<\/td>\n<td>\n<p>R35353<\/p>\n<\/td>\n<td>\n<p>R35798<\/p>\n<\/td>\n<td>\n<p>R35799<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4. Transmit Delay and Receive Anomaly Detection Register<\/p>\n<\/td>\n<td>\n<p>R35357<\/p>\n<\/td>\n<td>\n<p>R35358<\/p>\n<\/td>\n<td>\n<p>R35803\u00a0<\/p>\n<\/td>\n<td>\n<p>R35804<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ol>\n<li>Port occupation indication: the signal is generated by CPU, ON signal means the Port can accept new orders to send data. OFF means the Port is being occupied and cannot accept new commands to transmit data. <\/li>\n<li>Port command completion indication: This signal is generated by the CPU. When the last transaction of the communication program is completed, it is ON for one scan time (continuous transmission). When the last transaction of the communication program is completed, ON (discontinuous transmission).<\/li>\n<li>Port communication parameter setting register: (10-1-2 Description of Communication Functions).<\/li>\n<li>Transmission delay and reception abnormality detection register:<br \/><strong>Low Byte<\/strong>: Define the error detection time-out time of CLINK command, the unit is 0.01 second. The CLINK command uses the Time-out time to judge whether the communication object is online correctly; when the master station sends a read or write command to the slave station, if the slave station does not respond within this time, it means that the communication Time-out is abnormal. When multiple devices are connected, adjust this value appropriately (more than one scan time of the slave station with the longest scan time), so that if more than one slave station is not powered on (time-out will occur), there will be a connection PLC communication does not significantly affect scan time.<br \/><strong>High Byte<\/strong>: Define the transmission delay time between one transaction and one transaction of CLINK instruction, the unit is 0.01 second. If there is only one-to-one connection, this value can be set to 0 to shorten communication transaction time and improve communication efficiency. When multiple devices are connected, if the master station needs to delay the sending of communication commands to improve the communication quality, this value can be set.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Use Port 2 to execute communication command program<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-011.png\" \/><\/p>\n<p>When M1 = ON, the master station will continue to read the slave station data through Port 2, or write data to the slave station <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Editing Communication Table with UperLogic<\/p>\n<p> Click the \u201cLink Table\u201d Item which in project windows<strong>:  <\/strong>Project name <\/p>\n<p>                                           Table Edit <\/p>\n<p>     Link Table   \ud83e\udc6a   <\/p>\n<p>Click right button and select \u201cNew Link Table\u201d.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\fun151_3.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-012.png\" \/><\/p>\n<p>Figure 57 Table of communication command<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\FUN151_4.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-013.png\" \/><\/p>\n<p>Figure 58 Table of Normal Link<\/p>\n<ul>\n<li>Table Type: MD0 must be selected \u201cNormal Link Table\u201d.<\/li>\n<li>Table Name: For modification or debug, you can give a convenient name.<\/li>\n<li>Table Starting Address: Enter the address which is the starting register of communication table to store the data exchange list.<\/li>\n<\/ul>\n<p>  \u203b   To make it easy to edit, read, and maintain the communication program, we have extended following related instructions under FUN150 and FUN151. The use method is taking focus on FUN150 or FUN151, and press the hotkey \u201cZ\u201d. When \u201cTable Edit\u201d windows appear, then you can edit the communication table.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\fun151_5.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-014.png\" \/><\/p>\n<p>Figure 59 Table of Normal Link_Communicatoin Command Setting<\/p>\n<ul>\n<li>Command: read is the master read data back from the slave, write is write data from the master to the slave.<\/li>\n<li>Slave Station: The station number of the slave station to be transmitted.<\/li>\n<li>Master data: read is the location where the data is read from the slave station and stored, and write is where the data is written from the master station to the slave station.<\/li>\n<li>Slave data: read is the position that the slave station wants to send back to the master station, and write is the position of writing data from the master station to the slave station.<\/li>\n<li>Data Length: The length to be sent, the range is 1 ~ 64.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Explanation for MD0 Operand SR<\/p>\n<p>SR\uff1aStarting register for communication program of CLINK instruction\u3002<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>SR+0<\/p>\n<\/td>\n<td>\n<p>Total transactions<\/p>\n<\/td>\n<td>\n<ul>\n<li>Low Byte is valid; one transaction takes 7 registers to describe, which means 7 registers define a packet of data transaction.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+1<\/p>\n<\/td>\n<td>\n<p>Slave station No. which is about<\/p>\n<p>to transact with<\/p>\n<\/td>\n<td>\n<ul>\n<li>Low Byte is valid, 0 to 254 (if it is 0: it means that the master PLC sends a broadcast to all slave PLCs, and the slave PLC does not respond).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+2<\/p>\n<\/td>\n<td>\n<p>Command code<\/p>\n<\/td>\n<td>\n<ul>\n<li>Low Byte is valid; =1, means reading data from slave PLC; =2, means writing data to slave PLC.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+3<\/p>\n<\/td>\n<td>\n<p>Data length of this transaction<\/p>\n<\/td>\n<td>\n<ul>\n<li>Low Byte is valid; the range is 1\uff5e64.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+4<\/p>\n<\/td>\n<td>\n<p>Data type of Master PLC<\/p>\n<\/td>\n<td>\n<ul>\n<li>Low Byte is valid, and its range is 0 to 13; it defines the data type of master PLC (see next page).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+5<\/p>\n<\/td>\n<td>\n<p>Starting reference of Master PLC<\/p>\n<\/td>\n<td>\n<ul>\n<li>Word is valid; it defines the starting address of data (master).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+6<\/p>\n<\/td>\n<td>\n<p>Data type of slave PLC<\/p>\n<\/td>\n<td>\n<ul>\n<li>Low Byte is valid, and its range is 0 to 13; it defines the datatype of slave PLC (see next page).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+7<\/p>\n<\/td>\n<td>\n<p>Starting reference of Slave PLC<\/p>\n<\/td>\n<td>\n<ul>\n<li>Word is valid; it defines the starting address of data (slave).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>  SR+8<\/p>\n<\/td>\n<td>\n<p>Slave station No. which is about<\/p>\n<p>to transact with<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  SR+9<\/p>\n<\/td>\n<td>\n<p>Command Code<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  SR+10<\/p>\n<\/td>\n<td>\n<p>Data length of this transaction<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  SR+11<\/p>\n<\/td>\n<td>\n<p>Data type of Master PLC<\/p>\n<\/td>\n<td>\n<p>         Description of the 2nd packet of transaction.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>  SR+12<\/p>\n<\/td>\n<td>\n<p>Starting reference of Master PLC<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  SR+13<\/p>\n<\/td>\n<td>\n<p>Data type of slave PLC<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  SR+14<\/p>\n<\/td>\n<td>\n<p>Starting reference of Slave PLC<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Master\/Slave data type, code and reference number<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Data code<\/p>\n<\/td>\n<td>\n<p>Data type<\/p>\n<\/td>\n<td>\n<p>Reference number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>X (discrete input)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Y (discrete output)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>M (internal relay M)<\/p>\n<\/td>\n<td>\n<p>0\uff5e9119<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>S (step relay S)<\/p>\n<\/td>\n<td>\n<p>0\uff5e3103<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>T (timer contact)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>C (counter contact)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>WX (word of discrete input ,16 bits)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1008, it must be the multiple of 16.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>WY (word of discrete output ,16 bits)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1008, it must be the multiple of 16.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>WM (word of internal relay,16 bits)<\/p>\n<\/td>\n<td>\n<p>0\uff5e9104, it must be the multiple of 16.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>9<\/p>\n<\/td>\n<td>\n<p>WS (word of step relay,16 bits)<\/p>\n<\/td>\n<td>\n<p>0\uff5e3088, it must be the multiple of 16.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>TR (timer register)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>11<\/p>\n<\/td>\n<td>\n<p>CR (counter register)<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>12<\/p>\n<\/td>\n<td>\n<p>R (data register)<\/p>\n<\/td>\n<td>\n<p>0\uff5e34767<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>13<\/p>\n<\/td>\n<td>\n<p>D (data register)<\/p>\n<\/td>\n<td>\n<p>0\uff5e7999<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Note: The data type for master and slave must be consistent. i.e., if the master station is any value between 0 to 5, the slave station must also be any value between 0 to 5; if the master station is any value between 6 to 13, the slave station must also be any value between 6 to 13.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>FUN151: Explanation for the Operand WR of MD0<\/p>\n<p>High Byte\tLow Byte<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>WR+0<\/p>\n<\/td>\n<td>\n<p>Result code<\/p>\n<\/td>\n<td>\n<p>Transaction<\/p>\n<p>No.<\/p>\n<\/td>\n<td>\n<ul>\n<li>Transaction No.: the operating transaction <\/li>\n<\/ul>\n<p>(starting from 0)<\/p>\n<ul>\n<li>Result code indicates the transaction result; 0= normal,<\/li>\n<\/ul>\n<p>other value = abnormal. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+1<\/p>\n<\/td>\n<td>\n<p>Station No.<\/p>\n<\/td>\n<td>\n<p>Command<\/p>\n<p>code<\/p>\n<\/td>\n<td rowspan=\"3\">\n<ul>\n<li>Command = 0H, reading system status from slave PLC.<\/li>\n<\/ul>\n<p>= 1H, writing system status from slave PLC.<\/p>\n<ul>\n<li>Station No.: the slave station number which is in transaction.\t<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal operation<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal operation<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal operation<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+5<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal operation<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+6<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal operation<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+7<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal operation<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Result code: 0, this transaction is successful.<\/p>\n<p>2, data length error (data length is 0 or greater than 64 in one transaction).<\/p>\n<p>3, command code error (command code is greater than 2).<\/p>\n<p>4, data type error (data type is greater than 13, please refer to data type code).<\/p>\n<p>5, reference number error (please refer to reference number).<\/p>\n<p>6, inconsistence in data type (e.g., master station is 0\uff5e5 while slave is 6\uff5e13).<\/p>\n<p>A, no response from slave station (Time-out error).<\/p>\n<p>B, communication error (received error data).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD0 Communication Connection Facilitation Command (which makes PLC act as the master station in FATEK communication protocol through PORT 1~4)<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>For easier programming and troubleshooting, the UperLogic provides the table editing environment to edit the communication table of FUN151 instruction; Key in the complete FUN151 instruction first and then move the cursor to the position of it, depressing the &quot;Z&quot; key, now comes the table editing environment. The user can create the new communication table or display the existed table under this friendly user interface operation.<\/li>\n<\/ul>\n<p>Communication Table for Normal Link (MD0)<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Command<\/p>\n<\/td>\n<td>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Master Data<\/p>\n<\/td>\n<td>\n<p>Slave Data<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Read (=1)<\/p>\n<p>Write (=2)<\/p>\n<\/td>\n<td>\n<p>Describing the station number of slave PLC which is about to transact with.<\/p>\n<p>Station number=0, The master PLC broadcasts the data to all slave PLCs and slave PLCs will not reply.<\/p>\n<p>Station number=N, it means the station number of the slave PLC which is about to transact with the master PLC<\/p>\n<p>N=1~ 254<\/p>\n<\/td>\n<td>\n<p>Describing the data type &amp; reference number of this packet of transaction for the master PLC.<\/p>\n<p>X0\uff5eX1023<\/p>\n<p>Y0\uff5eY1023<\/p>\n<p>M0\uff5eM9119<\/p>\n<p>S0\uff5eS3103<\/p>\n<p>T0\uff5eT1023<\/p>\n<p>C0\uff5eC1023<\/p>\n<p>WX0\uff5eWX1008<\/p>\n<p>WY0\uff5eWY1008<\/p>\n<p>WM0~WM9104<\/p>\n<p>WS0\uff5eWS3088<\/p>\n<p>TR0\uff5eTR1023<\/p>\n<p>CR0\uff5eCR1023<\/p>\n<p>R0\uff5eR34767<\/p>\n<p>D0\uff5eD7999<\/p>\n<\/td>\n<td>\n<p>Describing the data type &amp; reference number of this packet of transaction for the slave PLC.<\/p>\n<p>X0\uff5eX1023<\/p>\n<p>Y0\uff5eY1023<\/p>\n<p>M0\uff5eM9119<\/p>\n<p>S0\uff5eS3103<\/p>\n<p>T0\uff5eT1023<\/p>\n<p>C0\uff5eC1023<\/p>\n<p>WX0\uff5eWX1008<\/p>\n<p>WY0\uff5eWY1008<\/p>\n<p>WM0\uff5eWM9104<\/p>\n<p>WS0\uff5eWS3088<\/p>\n<p>TR0\uff5eTR1023<\/p>\n<p>CR0\uff5eCR1023<\/p>\n<p>R0\uff5eR34767<\/p>\n<p>D0\uff5eD7999<\/p>\n<\/td>\n<td>\n<p>Data length of this transaction.<\/p>\n<p>1\uff5e64<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>10-3  User-Defined Communication Protocols<\/h3>\n<p>The functions of MD1 and MD4 are both connected to intelligent peripheral devices with a counterpart communication interface, so that PLC can be used as data transmission (automatic transmission) through Port 1 and 4. The difference is that the transmission data of MD1 will only occupy one Low Byte in a Word, while the transmission data of MD4 will occupy the High Byte and Low Byte in a Word.<\/p>\n<p>The functions of MD2 and MD5 are ready to receive at any time. The message sent by the intelligent peripheral equipment of the RS485 communication interface makes the PLC receive data through these ports (passive reception). The difference is that the received data of MD2 will only occupy one Low Byte in a Word, and the received data of MD5 will occupy the High Byte and Low Byte in a Word.<\/p>\n<h4>10-3-1  Instruction description and examples                                   <\/h4>\n<p>This chapter will explain the usage of the working modes (MD1, MD4, MD2, MD5) of FUN151 (CLINK) command with examples of actual applications.<\/p>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p> <img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-015.jpg\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pt\uff1aAssign communication port, 1\uff5e4.<\/p>\n<p>MD\uff1a1 &amp; 4\uff1bConnect with intelligent peripheral devices with serial communication interfaces. <\/p>\n<p>SR\uff1aCommunication transmission table start register.<\/p>\n<p>(Look at the example description).<\/p>\n<p>WR\uff1aInstruction operation start register (see example description), a total of 8 registers are occupied, and other programs cannot be reused.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1\uff5e4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1\u30014<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p> \u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>MD1 and MD4 are used to connect with intelligent peripheral devices with RS-485 communication interface, so that PLC can be used as data transmission (automatic transmission) through Port 1~Port 4. The difference is that the transmission data of MD1 will only occupy one Low Byte in a Word, and the transmission data of MD4 will occupy the High Byte and Low Byte in a Word, please refer to the description of the follow-up SR for details.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Function Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>FUN151 (CLINK): MD1 and MD4 modes are mainly provided for FATEK PLC to actively connect with intelligent peripheral devices using serial communication interfaces.<\/li>\n<li>One master PLC can connect with multiple peripheral devices with the same protocol.<\/li>\n<li>The communication format is written by the UperLogic program and must be consistent with the communication peripheral to be connected in order to successfully connect.<\/li>\n<li>When the execution control &quot;EN&quot; changes from 0 to 1 and both the suspend operation &quot;PAU&quot; and the abort operation &quot;ABT&quot; are 0, if the specified communication port is not occupied by other communication commands, detecting M9135\/M9138\/M9149\/M9152=1, then this command will control the communication port immediately, and set M9135\/M9138\/M9149\/M9152 to 0 (indicating occupation), and then immediately carry out data transmission transactions. If the specified communication port is already occupied (M9135\/M9138\/M9149\/M9152 = 0), this command enters the waiting state until the occupied communication command is sent or the operation is suspended\/abandoned, and after the control is released (M9135\/M9138\/M9149\/M9152 = 1), This instruction immediately leaves the waiting state, sets M9135\/M9138\/M9149\/M9152 to 0, and immediately carries out the transmission transaction<\/li>\n<li>When the transmission transaction is in progress, if the suspension operation &quot;PAU&quot; becomes 1, this instruction will suspend the operation and release the control right after the transaction data transmission is completed at that time (M9135\/M9138\/M9149\/M9152 =1).<\/li>\n<li>During the transfer transaction, if abandon operation then &quot;ABT&quot; becomes 1, this instruction will immediately stop the transfer and release the control right (M9135\/M9138\/M9149\/M9152 =1).<\/li>\n<li>When the data transaction is being transmitted, the output indication &quot;ACT&quot; is ON.<\/li>\n<li>When a data transaction has been transmitted (completed or transmitted and then received), if an error occurs, the output indication &quot;DN&quot; and &quot;ERR&quot; will be ON at the same time.<\/li>\n<li>When a data transaction has been transmitted (completed or transmitted and then received), if no error occurs, the output indication &quot;DN&quot; will be ON.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Function Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Port Interface Signal<\/p>\n<p>List of relays and registers used by communication ports:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>                   Communication Port<\/p>\n<p>Interface Signal<\/p>\n<\/td>\n<td>\n<p> Port 1 <\/p>\n<\/td>\n<td>\n<p> Port 2<\/p>\n<\/td>\n<td>\n<p> Port 3<\/p>\n<\/td>\n<td>\n<p> Port 4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1. Port occupation indication<\/p>\n<\/td>\n<td>\n<p>M91355<\/p>\n<\/td>\n<td>\n<p>M9138<\/p>\n<\/td>\n<td>\n<p>M9149<\/p>\n<\/td>\n<td>\n<p>M9152<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2. Port command complete indication<\/p>\n<\/td>\n<td>\n<p>M9136<\/p>\n<\/td>\n<td>\n<p>M9139<\/p>\n<\/td>\n<td>\n<p>M9150<\/p>\n<\/td>\n<td>\n<p>M9153<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3. Port communication parameter register<\/p>\n<p> etting register<\/p>\n<\/td>\n<td>\n<p>R35352<\/p>\n<\/td>\n<td>\n<p>R35353<\/p>\n<\/td>\n<td>\n<p>R35798<\/p>\n<\/td>\n<td>\n<p>R35799<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4. Transmit Delay and Receive Anomaly Detection Register<\/p>\n<\/td>\n<td>\n<p>R35357<\/p>\n<\/td>\n<td>\n<p>R35358<\/p>\n<\/td>\n<td>\n<p>R35803\u00a0<\/p>\n<\/td>\n<td>\n<p>R35804<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ol>\n<li>Port Occupation Indication: This signal is generated by the CPU.<br \/>ON represents the Port accepts new commands to transmit data.<br \/>OFF means that the Port is being occupied and cannot accept new commands to transmit data.<\/li>\n<li>Port Command Completion Indication: This signal is generated by the CPU.<br \/>                                     ON, complete a data transaction.<\/li>\n<li>Port Communication Parameter Setting Register :\uff08<a href=\"#_\u901a\u8a0a\u5354\u5b9a\u9078\u64c7\u8207\u8a2d\u5b9a\">Refer to 10-1-2  Description of Communication Functions<\/a>\uff09<\/li>\n<li>Transmit Delay and Receive Anomaly Detection Register:<br \/><strong>Low Byte: <\/strong>Define the abnormal detection Time-out time when the CLINK command specifies the use of Port, and the unit is 0.01 second. The CLINK command uses the Time-out time to judge whether the communication object is online or not; when the CLINK is MD1 and is set to the &quot;transmit and then receive&quot; mode, if the PLC sends a communication transaction to the peripheral,<strong> <\/strong>but the communication object cannot respond within this time, then a Time-out error occurs. When CLINK is MD1 and set to &quot;transmit only&quot; mode, this value is meaningless.<\/li>\n<\/ol>\n<p><strong>High Byte: <\/strong>For MD1, it is recommended to set it to 0<strong>.<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Using Port 2 to actively connect with smart peripherals using non-standard communication protocols<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Example description: Actively and continuously send 02H (&#8216;STX&#8217;), 4FH (&#8216; O&#8217;), 4BH (&#8216;K&#8217;), 03H (&#8216;ETX&#8217;) through PLC Port 2 to intelligent peripheral devices with RS485 communication interface.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Example N000: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-016.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Description: <\/p>\n<ol>\n<li>Data Transfer Mode: Set only outgoing messages, no response message mode from the other party (R10=0).<\/li>\n<li>Set the start code (02H) and end code (03H).<br \/>\uff08The start code is High Byte and the end code is Low Byte\uff09<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Example N001: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-017.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Description: <\/p>\n<p>Package transmission data:<\/p>\n<ol>\n<li>Set the transmission data length\uff08R12=N\uff09<\/li>\n<\/ol>\n<p>Fill in the data to be sent:<\/p>\n<ol>\n<li>Fill in the data 1\uff08R13= 02H &#8216; STX &#8216;\uff09<\/li>\n<li>Fill in the data 2\uff08R14= 4FH &#8216; O &#8216;\uff09<\/li>\n<li>Fill in the data 3\uff08R15= 4BH &#8216; K &#8216;\uff09<\/li>\n<li>Fill in the data 4\uff08R16= 03H &#8216; ETX &#8216;\uff09<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Example N002: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-018.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Description: <\/p>\n<ol>\n<li>When M1=ON, PLC will send data through Port2 in MD1 mode.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>FUN 151: Explanation of MD1 operand SR  <\/p>\n<p>SR: The initial register for the data transfer form.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>SR+0<\/p>\n<\/td>\n<td>\n<p>Transfer only \/ transfer then receive <\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>Low Byte <\/strong>is valid,<\/li>\n<\/ul>\n<p>= <strong>00H,<\/strong> only send message, the other side has no response message.<\/p>\n<p>= <strong>01H<\/strong>, send a message, and then wait for the<\/p>\n<p>response message from the other side.<\/p>\n<p>(Do receive if no communication error)<\/p>\n<p>= <strong>81H,<\/strong> send messages, then wait for the<\/p>\n<p>response message from the other side.<\/p>\n<p>(Receive with or without communication error)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+1<\/p>\n<\/td>\n<td>\n<p>Receive start \/ end code<\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>High Byte: <\/strong>Describe the start code of the response message when receiving.<\/li>\n<li><strong>Low Byte: <\/strong>Describe the end code of the response message when receiving.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+2<\/p>\n<\/td>\n<td>\n<p>Transfer data length<\/p>\n<\/td>\n<td>\n<ul>\n<li>The length of the data to be transmitted; the maximum is 1024.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+3<\/p>\n<\/td>\n<td>\n<p><strong>MD1<\/strong>: Data <strong>1<\/strong><\/p>\n<p><strong>MD4<\/strong>: Data <strong>2<\/strong> and <strong>1<\/strong><\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>MD1<\/strong>: Low Byte is valid;<\/li>\n<li><strong>MD4: <\/strong>High Byte and Low Byte are valid.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+4<\/p>\n<\/td>\n<td>\n<p><strong>MD1<\/strong>: Data<strong>2<\/strong><\/p>\n<p><strong>MD4<\/strong>: Data <strong>4<\/strong> and <strong>3<\/strong><\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>MD1<\/strong>: Low Byte<strong> <\/strong>is valid;<\/li>\n<li><strong>MD4: <\/strong>High Byte and Low Byte are valid.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+5<\/p>\n<\/td>\n<td>\n<p><strong>MD1<\/strong>: Data <strong>3<\/strong><\/p>\n<p><strong>MD4<\/strong>: Data <strong>6<\/strong> and <strong>5<\/strong><\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>MD1<\/strong>: Low Byte<strong> <\/strong>is valid;<\/li>\n<li><strong>MD4: <\/strong>High Byte and Low Byte are valid.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\"><\/td>\n<td>\n<p>\u2026<\/p>\n<\/td>\n<td rowspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>MD1<\/strong>: Data <strong>N<\/strong><\/p>\n<p><strong>MD4<\/strong>: Data <strong>N<\/strong> and <strong>N-1<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Note:<\/p>\n<ol>\n<li>When the transmission-only mode is selected, the start\/end codes of reception are meaningless.<\/li>\n<li>When selecting the mode of sending and then receiving, before starting the transmission, you must first estimate the start code and end code of the response message from the other side and fill it in the receiving start\/end code register (for example, SR+1=0203H, 02H represents the start code, 03H represents the end code), so as to ensure correct reception. The communication protocol with start\/end code is easy to distinguish each message, and the communication program is simple and efficient.<\/li>\n<li>When the mode of sending and receiving is selected, if the response message has no start code, the high byte of the start\/end code register is filled with 0; if the response message has no end code, the start\/end code register fill the low byte with 0.<\/li>\n<li>When selecting the mode of sending and then receiving, and when the CPU completes the transmission and receives a response message, it will fill the received data into the receive register and set the receive length (the sum of WR+8 and the length of the subsequent register). <\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>FUN151: Description of MD1 operand WR<\/p>\n<p>\tHigh Byte\tLow Byte<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>WR+0<\/p>\n<\/td>\n<td>\n<p>Result Code<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<ul>\n<li>The <strong>result code<\/strong> stores the operation result; <\/li>\n<\/ul>\n<p>=0, normal; other values, abnormal.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td>\n<ul>\n<li>Internal operation use; execute the CLINK command, the register that the CPU needs to use.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+5<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+6<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+7<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+8<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>The total number of data received<\/p>\n<\/td>\n<td>\n<ul>\n<li>A total of several Byte data received (received data length register; the received start code and end code are included).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+9<\/p>\n<\/td>\n<td colspan=\"2\">\n<p><strong>MD1<\/strong>: Receive data <strong>1<\/strong><\/p>\n<p><strong>MD4<\/strong>: Receive data<strong> 2<\/strong> and <strong>1<\/strong><\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>MD1:<\/strong> The first Byte data received (start code if there is a <\/li>\n<\/ul>\n<p>start code), High Byte\uff1d0.<\/p>\n<ul>\n<li><strong>MD4:<\/strong> The 1st and 2nd Byte data received.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u02d9<\/p>\n<p>\u02d9<\/p>\n<p>\u02d9<\/p>\n<\/td>\n<td colspan=\"2\">\n<p><strong>MD1<\/strong>: Receive data <strong>2<\/strong><\/p>\n<p><strong>MD4<\/strong>: Receive data<strong> 4<\/strong> and <strong>3<\/strong><\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>MD1:<\/strong> For the second Byte data received, High Byte=0.<\/li>\n<li><strong>MD4:<\/strong> The 3rd and 4th Byte data received.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u02d9 <\/p>\n<p>\u02d9<\/p>\n<\/td>\n<td colspan=\"2\">\n<p><strong>MD1<\/strong>: Receive data<strong> 3<\/strong><\/p>\n<p><strong>MD4<\/strong>: Receive data<strong> 6<\/strong> and <strong>5<\/strong><\/p>\n<\/td>\n<td>\n<ul>\n<li><strong>MD1:<\/strong> For the second Byte data received, High Byte=0.<\/li>\n<li><strong>MD4:<\/strong> The received 5th and 6th Byte data.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"2\">\n<p>\u2026<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"2\">\n<p><strong>MD1<\/strong>: Receive data<strong> <\/strong>N<\/p>\n<p><strong>MD4<\/strong>: Receive data<strong> N<\/strong> and<\/p>\n<p>N-1<\/p>\n<\/td>\n<td colspan=\"3\">\n<ul>\n<li><strong>MD1:<\/strong> For the received Nth Byte data (end code if there is<\/li>\n<\/ul>\n<p>one), High Byte\uff1d0.<\/p>\n<ul>\n<li><strong>MD4:<\/strong> The received N and N-1 Byte data.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD1\u3001MD4 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Result Code: 0, The transfer (transaction) was successful.<\/p>\n<p>2, Data length error\uff08The value is 0, or a transaction volume is greater than 1024\uff09.<br \/>A, No response from the other side.<br \/>B, Communication abnormality (wrong data received).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h5>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/h5>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-019.jpg\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pt\uff1aAssign port, 1\uff5e4.<\/p>\n<p>MD\uff1a2, 5; always be ready to receive messages from intelligent peripheral devices with serial communication interfaces. <\/p>\n<p>SR\uff1aThe initial register of the communication transmission table (refer to example description).<\/p>\n<p>WR\uff1aInstruction operation start register (refer to example description), a total of 8 registers are occupied, and other programs cannot be reused.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1\uff5e2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>MD<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>2\u30015<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>The functions of MD2 and MD5 are ready to receive at any time. The message sent by the intelligent peripheral equipment of the serial communication interface makes the PLC receive data through Port 1~Port 4 (passive reception). The difference is that the received data of MD2 will only occupy the Low Byte part of a Word, and the received data of MD5 will occupy the High Byte and Low Byte of a Word, please refer to the description of the follow-up SR for details.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>FUN151 (CLINK): MD2 and MD5 modes, providing FATEK PLC to receive messages from peripherals with serial communication interfaces at any time.<\/li>\n<li>The communication format is written by the Ladder program, which must be consistent with the peripheral to be connected in order to successfully connect.<\/li>\n<li>When the execution control &quot;EN&quot; changes from 0 to 1 and both the suspend operation &quot;PAU&quot; and the abort operation &quot;ABT&quot; are 0, if the specified communication port is not occupied by other communication commands, detecting M9135\/M9138\/M9149\/M9152=1 , then this command will control the communication port immediately, and set M9135\/M9138\/M9149\/M9152 to 0 (means occupied). If the specified communication port is already occupied (M9135\/M9138\/M9149\/M9152 = 0), this command enters the waiting state until the occupied communication command is transmitted or the operation is suspended\/abandoned, and after the control is released (M9135\/M9138\/M9149\/M9152 = 1), This instruction immediately leaves the waiting state, sets M9135\/M9138\/M9149\/M9152 to 0, and enters the receiving state.<\/li>\n<li>When suspending operation &quot;PAU&quot; or abandoning operation &quot;ABT&quot; is 1, immediately abandon receiving (M9135\/M9138\/M9149\/M9152 =1).<\/li>\n<li>When entering the receiving state, the output indicator &quot;ACT&quot; is ON.<\/li>\n<li>When a transaction is completed (received or received and then transmitted), if an error occurs, the output indication &quot;DN&quot; and &quot;ERR&quot; will be ON for one scan time at the same time.<\/li>\n<li>When a transaction is completed (received or received and then transmitted), if no error occurs, the output indication &quot;DN&quot; will be ON.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Port Interface Signal<\/p>\n<p>List of relays and registers used by communication ports:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>                Communication Port <\/p>\n<p>Interface Signal<\/p>\n<\/td>\n<td>\n<p> Port 1 <\/p>\n<\/td>\n<td>\n<p> Port 2<\/p>\n<\/td>\n<td>\n<p> Port 3<\/p>\n<\/td>\n<td>\n<p> Port 4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1. Port occupation indication<\/p>\n<\/td>\n<td>\n<p>M91355<\/p>\n<\/td>\n<td>\n<p>M9138<\/p>\n<\/td>\n<td>\n<p>M9149<\/p>\n<\/td>\n<td>\n<p>M9152<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2. Port command complete indication<\/p>\n<\/td>\n<td>\n<p>M9136<\/p>\n<\/td>\n<td>\n<p>M9139<\/p>\n<\/td>\n<td>\n<p>M9150<\/p>\n<\/td>\n<td>\n<p>M9153<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3. Port communication parameter register<\/p>\n<\/td>\n<td>\n<p>R35352<\/p>\n<\/td>\n<td>\n<p>R35353<\/p>\n<\/td>\n<td>\n<p>R35798<\/p>\n<\/td>\n<td>\n<p>R35799<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4. Transmit Delay and Receive Anomaly Detection Register<\/p>\n<\/td>\n<td>\n<p>R35357<\/p>\n<\/td>\n<td>\n<p>R35358<\/p>\n<\/td>\n<td>\n<p>R35803<\/p>\n<\/td>\n<td>\n<p>R35804<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>Port Occupation Indication: This signal is generated by the CPU.<br \/>ON represents the Port accepts new commands to transmit data.<br \/>OFF means that the Port is being occupied and cannot accept new commands to transmit data.<\/li>\n<li>Port Command Completion Indication: This signal is generated by the CPU.<br \/>                                  ON, complete a data transaction.<\/li>\n<li>Port Communication Parameter Setting Register :\uff08<a href=\"#_\u901a\u8a0a\u5354\u5b9a\u9078\u64c7\u8207\u8a2d\u5b9a\">Refer to 10-1-2  Description of Communication Functions<\/a>\uff09<\/li>\n<li>Transmission error detection register:<br \/><strong>Low Byte<\/strong>: Define the abnormal detection Time-out time when the CLINK command specifies the use of Port, and the unit is 0.01 second. When the PLC receives a message and must respond (receive and then transmit mode), but the Ladder program cannot process and send the response message within this period of time, the CPU abandons the response and automatically returns to the receiving state. When FUN151: MD2 is set to receive only (following examples) mode, this value is meaningless.<br \/><strong>High Byte: <\/strong>Not used for MD2.<\/li>\n<\/ol>\n<p>Note:<\/p>\n<p>1<strong>\uff1a<\/strong>FUN151: MD2 and MD5 stay in the receiving state as long as they start receiving, unless the input signal of abandon receiving (ABT) is ON, they will leave the receiving state to stop receiving and wait for the next start of receiving control.<\/p>\n<p>2<strong>\uff1a<\/strong> When the start\/end code of reception is changed, it is necessary to control the ABT input signal ON, and then start the reception control &quot;EN\u2191&quot; from 0\u21921 to start receiving messages.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Use Port2 to return the data received by this PLC to the CPU Unit that sent the data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Example N000: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-020.png\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Description: <\/p>\n<ol>\n<li>Clear the received data length to 0.<\/li>\n<li>Clear the data transmission length to 0.<\/li>\n<li>\uff08If you only receive but not transmit, you don&#8217;t need this program\uff09<\/li>\n<li>Set the receiving method: set the receive and transmit mode.<\/li>\n<li>Set the start code (02H) and end code (03H) of the received message (R11=0, if there is no start code and end code, it can also be received normally).<\/li>\n<\/ol>\n<p>(The start code is High Byte and the end code is Low Byte)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Use Port2 to return the data received by this PLC to the CPU Unit that sent the data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Example N001 ~ N002: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-021.jpg\" \/><\/p>\n<p>Program Description:<\/p>\n<ol>\n<li>When M1=ON, the PLC will receive the data sent by the other through Port2.<\/li>\n<li>When the transmission is complete, clear the data transmission length to 0.<\/li>\n<li>\uff08If you only receive but not transmit, you don&#8217;t need this program\uff09<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Use Port2 to return the data received by this PLC to the CPU Unit that sent the data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Example N003 ~ N004: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-022.jpg\" \/><\/p>\n<p>Ladder Program Description:<\/p>\n<ol>\n<li>When the mode of receiving and sending is selected, use the comparison command to judge whether a new message has been received; if so, then M100=OFF, and process the received data.<\/li>\n<li>If the number received is 0, jump to Lable1 to execute the relevant program.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Use Port2 to return the data received by this PLC to the CPU Unit that sent the data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Ladder Program Example N005 ~ N007: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-023.jpg\" \/><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Program Description: <\/p>\n<ol>\n<li>When a new message has been received, copy all received data to the response register.<\/li>\n<\/ol>\n<ul>\n<li>R108 is the length of received data.<\/li>\n<li>After R109 is data received. <\/li>\n<li>After R13 are response registers.<\/li>\n<\/ul>\n<ol>\n<li>After processing the received data, fill in the length of the received data as the length of the returned data to start the response transmission.<\/li>\n<li>Clear the received data length to 0.<\/li>\n<li>\uff08Ready to receive new data\uff09<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>FUN151: Description of MD2 operand SR<\/p>\n<p>SR: The initial register of the data transmission form.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>SR+0<\/p>\n<\/td>\n<td>\n<p>Receive only \/ receive then transfer <\/p>\n<\/td>\n<td>\n<p>\u2022  <strong>Low Byte<\/strong> is valid.<\/p>\n<p>= <strong>00H<\/strong>, only receive messages (receive only if there<\/p>\n<p>is no communication error), and do not respond.<\/p>\n<p>= <strong>01H<\/strong>, receive the message (received only if there<\/p>\n<p>is no communication error), and then send out<\/p>\n<p>Respond to the message.<\/p>\n<p>= <strong>80H<\/strong>, only receive messages (whether there is a<\/p>\n<p>communication error or not), and do not respond.<\/p>\n<p>= <strong>81H<\/strong>, receive messages (receive with or without<\/p>\n<p>communication errors), and then send out<\/p>\n<p>Respond to the message.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+1<\/p>\n<\/td>\n<td>\n<p>Receive start \/ end code<\/p>\n<\/td>\n<td>\n<p>\u2022  <strong>High Byte<\/strong>\t: Describe the start code of reception.<\/p>\n<p><strong>Low Byte<\/strong>\t: Describe the end code of receiving.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+2<\/p>\n<\/td>\n<td>\n<p>Response data length<\/p>\n<\/td>\n<td>\n<p>\u2022  The length of the data received and transmitted, the maximum is 1024; when the data length is not equal to zero, start to transmit.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+3<\/p>\n<\/td>\n<td>\n<p><strong>MD2<\/strong>: Data <strong>1<\/strong><\/p>\n<p><strong>MD5<\/strong>: Data <strong>2<\/strong> and <strong>1<\/strong><\/p>\n<\/td>\n<td>\n<p>\u2022 <strong> MD2<\/strong>: Low Byte is valid;<\/p>\n<p><strong>MD5<\/strong>: High Byte and Low Byte are valid.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"5\">\n<p>SR+4<\/p>\n<\/td>\n<td>\n<p><strong>MD2<\/strong>: Data<strong>2<\/strong><\/p>\n<p><strong>MD5<\/strong>: Data <strong>4<\/strong> and <strong>3<\/strong><\/p>\n<\/td>\n<td>\n<p>\u2022  <strong>MD2<\/strong>: Low Byte is valid;<\/p>\n<p><strong>MD5<\/strong>: High Byte and Low Byte are valid.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td rowspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2026<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p><strong>MD2<\/strong>: Data <strong>N<\/strong><\/p>\n<p><strong>MD5<\/strong>: Data <strong>N<\/strong> and <strong>N-1<\/strong><\/p>\n<\/td>\n<td>\n<p>\u2022  <strong>MD2<\/strong>: Low Byte is valid;<\/p>\n<p><strong>MD5<\/strong>: High Byte and Low Byte are valid.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Note:<\/p>\n<ol>\n<li>When the receive-only mode is selected, after the CPU receives a complete message, it will fill the received data into the receiving register and set the receiving length (the sum of WR+8 and the length of the subsequent register), and immediately start receiving the next message.<\/li>\n<li>When the receive-then-transmit mode is selected, after the CPU receives a complete message, it fills the received data into the receiving register and sets the receiving length (the sum of WR+8 and the length of the subsequent register), and then begins to wait for the response. The transmission starts when the data length (SR+2) is not equal to zero (so choose this mode, when the response data has not yet filled the response register, the response data length must be controlled to be zero; wait for the response data to fill the response register, then the response data length can be set).<\/li>\n<li>Before starting to receive, the start code and end code of the received message must be filled into the receive start\/end code register (for example, SR+1=0A0DH, 0AH represents the start code, 0DH represents the end code), only in this way can we ensure correct reception. The communication protocol with the start\/end code can be easily used to distinguish each message, and the communication program is simple and efficient.<\/li>\n<li>If the received message has no start code, fill the high byte of the start\/end code register with 0. If the received message has no end code, fill the low byte of the start\/end code register with 0.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>FUN151: Description of MD2 operator WR<\/p>\n<p>\t  High Byte \tLow Byte<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"3\">\n<p>WR+0<\/p>\n<\/td>\n<td>\n<p>Result Code<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>\u2022  The <strong>result code<\/strong> stores the operation result; =0, normal; other values, abnormal.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>WR+1<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td>\n<p>\u2022  Internal operation use; Execute the CLINK command, the register that the CPU needs to use.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>WR+2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>WR+3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>WR+4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>WR+5<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>WR+6<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>WR+7<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Internal operation use<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>WR+8<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>The total number of data received<\/p>\n<\/td>\n<td>\n<p>\u2022  A total of several Byte data received (received data length register; the received start code and end code are included).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>WR+9<\/p>\n<\/td>\n<td colspan=\"2\">\n<p><strong>MD2<\/strong>: Receive data <strong>1<\/strong><\/p>\n<p><strong>MD5<\/strong>: Receive data<strong> 2<\/strong> and <strong>1<\/strong><\/p>\n<\/td>\n<td>\n<p>\u2022 <strong> MD2<\/strong>: The first Byte data received (start code if there is a start code), High Byte\uff1d0.<\/p>\n<p><strong>MD5<\/strong>: The 1st and 2nd Byte data received.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u2027<\/p>\n<p>\u2027<\/p>\n<\/td>\n<td colspan=\"2\">\n<p><strong>MD2<\/strong>: Receive data <strong>2<\/strong><\/p>\n<p><strong>MD5<\/strong>: Receive data<strong> 4<\/strong> and <strong>3<\/strong><\/p>\n<\/td>\n<td>\n<p>\u2022 <strong> MD2<\/strong>: For the second Byte data received, High Byte=0.<\/p>\n<p><strong>MD5<\/strong>: The 3rd and 4th Byte data received.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2027<\/p>\n<p>\u2027<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td colspan=\"2\">\n<p><strong>MD2<\/strong>: Receive data<strong> <\/strong>N<\/p>\n<p><strong>MD5<\/strong>: Receive data<strong> N<\/strong> and <strong>N-1<\/strong><\/p>\n<\/td>\n<td colspan=\"3\">\n<p>\u2022 <strong> MD1<\/strong>: For the received Nth Byte data (end code if there<\/p>\n<p>is one), High Byte\uff1d0.<\/p>\n<p><strong>MD4<\/strong>: The received <strong>N<\/strong> and <strong>N-1<\/strong> Byte data.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<td>\n<p>FUN151\uff08CLINK\uff09\uff1aMD2\u3001MD5 Communication Connection Convenience Command<\/p>\n<p>\uff08 Use PLC as a data transmission unit via Port 1~Port 4 \uff09<\/p>\n<\/td>\n<td>\n<p>FUN151<\/p>\n<p>CLINK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Note: When the CPU receives a complete message, it will fill the received data into the receiving register and set the receiving length, so before the Ladder program starts receiving, the receiving data length register (WR+8) can be cleared to Zero, as long as the received data length register is not zero, it means that a new message has been received; after the Ladder program reads the received data, it clears the received data length register to zero. As long as the received data length register is not zero, it means that a new message has been received, so that the receiving action can be easily processed.<\/p>\n<p><strong>Result Code:<\/strong><\/p>\n<p>0, the data transaction is successful.<\/p>\n<p>2, The data length is wrong (the value is 0, or the transaction volume is greater than 1024).<\/p>\n<p>A, Unable to respond to messages within the Time-out time (receive and transmit mode).<\/p>\n<p>B, Abnormal communication (wrong data received).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h3>10-4  Modbus RTU\/ASCII Communication Protocols<\/h3>\n<p><strong>Procedures for Usage<\/strong><\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u5716\u72476.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-024.png\" \/><\/p>\n<ul>\n<li>Station number can be set to any one between 1 to 254 without replication.<\/li>\n<li>For communication parameters, please refer to the description of &quot;Communication Related Setting&quot;.<\/li>\n<\/ul>\n<h4><strong>10-4-1 <\/strong><strong>Instruction description and examples                                  <\/strong><\/h4>\n<p>This section will instruction to explain FUN150 (Modbus) usages, with respective practical application program examples.<\/p>\n<h5>Convenient Instruction for Modbus RTU\/ASCII Master (makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/h5>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Convenient Instruction for Modbus RTU\/ASCII Master <\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\150.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-025.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Pt\uff1a1\uff5e4, specify the communication port to work as the Modbus RTU master<\/p>\n<p>SR\uff1aStarting register of communication program<\/p>\n<p>WR\uff1aStarting register for instruction operation. It controls 8 registers; the other programs can not repeat in using.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>\u2223<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pt<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>1-2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>FUN150 (M-BUS) instruction makes PLC act as Modbus RTU\/ASCII master through Port 1~Port 4, thus it is very easy to communicate with the intelligent peripheral with Modbus RTU\/ASCII protocol.<\/li>\n<li>Only the master PLC needs to use M-BUS instruction.<\/li>\n<li>It employs the program coding method or table filling method to plan for the data flow controls; i.e., from which one of the slave stations to get which type of data and save them to the master PLC, or from the master PLC to write which type of data to the assigned slave station. It needs only seven registries to make definition; every seven registers define one packet of data transaction.<\/li>\n<li>When execution control\u301dEN\u301echanges from 0\u21921 and the input \u201cABT\u201d is 0, and if Port 1~Port 4 hasn\u2019t been controlled by other communication instructions, detecting M9135\/M9138\/M9149\/M9152 = 1, this instruction will control the ports immediately and set the  M9135\/M9138\/M9149\/M9152 to be 0 (which means it is being occupied), then going on a packet of data transaction immediately. If the port has been controlled (M9135\/M9138\/M9149\/M9152 = 0), then this instruction will enter into the standby status until the controlling communication instruction completes its transaction or pause\/abort its operation to release the control right (M9135\/M9138\/M9149\/M9152 =1), and then this instruction will become enactive, set  M9135\/M9138\/M9149\/M9152 to be 0, and going on the data transaction immediately.<\/li>\n<li>While in transaction processing, if operation control \u201cABT\u201d becomes 1, this instruction will abort this transaction immediately and release the control right (M9135\/M9138\/M9149\/M9152 = 1). Next time, when this instruction takes over the transmission right again, it will restart from the first packet of data transaction.<\/li>\n<li>While\u301dA\/R\u301e=0\uff0cModbus RTU protocol\uff1b\u301dA\/R\u301e=1\uff0cModbus ASCII protocol.<\/li>\n<li>While it is in the data transaction, the output indication \u201cACT\u201d will be ON.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>If there is no error occurred when it finishes a packet of data transaction, the output indication \u201cDN\u201d will be ON.<\/li>\n<li>If &quot;EN&quot; is ON, it will continue to communicate. <\/li>\n<\/ol>\n<p>Interface Signals<\/p>\n<p> Dedicated Relays and Registers for corresponding port: <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>                   Communication Port  <\/p>\n<p>Interface Signal<\/p>\n<\/td>\n<td>\n<p> Port 1 <\/p>\n<\/td>\n<td>\n<p> Port 2<\/p>\n<\/td>\n<td>\n<p> Port 3<\/p>\n<\/td>\n<td>\n<p> Port 4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1. Port occupation indication<\/p>\n<\/td>\n<td>\n<p>M91355<\/p>\n<\/td>\n<td>\n<p>M9138<\/p>\n<\/td>\n<td>\n<p>M9149<\/p>\n<\/td>\n<td>\n<p>M9152<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2. Port command complete indication<\/p>\n<\/td>\n<td>\n<p>M9136<\/p>\n<\/td>\n<td>\n<p>M9139<\/p>\n<\/td>\n<td>\n<p>M9150<\/p>\n<\/td>\n<td>\n<p>M9153<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3. Port communication parameter register<\/p>\n<\/td>\n<td>\n<p>R35352<\/p>\n<\/td>\n<td>\n<p>R35353<\/p>\n<\/td>\n<td>\n<p>R35798<\/p>\n<\/td>\n<td>\n<p>R35799<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4. Transmit Delay and Receive Anomaly Detection Register<\/p>\n<\/td>\n<td>\n<p>R35357<\/p>\n<\/td>\n<td>\n<p>R35358<\/p>\n<\/td>\n<td>\n<p>R35803<\/p>\n<\/td>\n<td>\n<p>R35804<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Port Ready Indicator\uff1aThis signal is generated from CPU. <\/li>\n<\/ul>\n<p>ON, it represents that port is free and ready. <\/p>\n<p>OFF, it represents that port is busy, data transaction is going.<\/p>\n<ul>\n<li>Port Communication Parameters: The register is for communication parameters setting of corresponding port. (Please refer to the chapter of communication parameters setting). <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ol>\n<li>TX Delay &amp; RX Time-out Span: <\/li>\n<\/ol>\n<p>The content of <strong>Low Byte<\/strong> defines the receive time-out span of M-BUS instruction. The M-BUS instruction employs receive time-out span to judge whether the slave station on line or not. When the master PLC sent out the read\/write command to the slave station, the slave station didn\u2019t reply within this period means that there is abnormal event in communication called Time-out. When there are multi-drop linking, properly adjust this value (greater than 1 scan time of the slave station with the longest scan time) to shorten the communication response time among the active linking stations if there are many slave stations power off (The time-out cases will happen).<br \/>The content of <strong>High Byte<\/strong> defines the transmission delay time between two packets of data transaction for M-BUS instruction. For point-to-point link, this value can be set as 0 to shorten the communication transaction time and promote the communication efficiency. In the case of linking multi-drop and if the scan time of master PLC is far longer than any slave station, this value can also be set to 0 to shorten the communication transaction time and promote the communication efficiency.<\/p>\n<ol>\n<li>Setting of RX Time-out Span: Please refer FUN151 MD0 for details.<\/li>\n<li>Edge Trigger Execution: Please refer FUN151 MD0 for details.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Communicate with Modbus devices via Port 2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-026.png\" \/><\/p>\n<p>Description<\/p>\n<ol>\n<li>When execution control \u301dEN\u301echanges from 0\u21921, and Port 2 is not occupied by other communication instruction (M9138 ON), M-BUS instruction will start the data transaction. according to the settings in the Modbus table, what kind of data should be read from which slave station and stored to the master station (PLC), or what kind of data should be written from the master station (PLC) to the slave station, and the data will be continuously transaction.<\/li>\n<\/ol>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Editing Communication Table with UperLogic<\/p>\n<p> Click the \u201cModbus Master\u201d Item which in project windows: Modbus Master<strong> <\/strong>Table<strong>:<\/strong><\/p>\n<p><strong> <\/strong>Project name<\/p>\n<p>                     Table Edit<\/p>\n<p> Modbus Master  <\/p>\n<p>\ud83e\udc6aClick right button and select \u201cAdd Modbus Master Table\u201d<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\60.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-027.png\" \/><\/p>\n<p>Figure 60 Adding Modbus Master Table<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-028.png\" \/><\/p>\n<p>Figure 61 Editing Modbus Master Table<\/p>\n<ul>\n<li>Table Type: It will be fixed to \u201cModbus Master Table\u201d.<\/li>\n<li>Table Name: For modify or debug, you can give a convenient name.<\/li>\n<li>Table Starting Address: Enter the address which Starting register of communication Table<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\62.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-029.png\" \/><\/p>\n<ul>\n<li>Command: Read means that the master station reads the data from the Modbus slave station, and write means that the master station writes data to the Modbus slave station.<\/li>\n<li>Slave station: The station number of the slave station to be transmitted.<\/li>\n<li>Master data: read is the location where the data is read from the slave station and stored, and write is where the data is written from the master station to the slave station.<\/li>\n<li>Slave data: read is the position that the slave station wants to send back to the master station, and write is the position of writing data from the master station to the slave station.<\/li>\n<li>Length: The length to be sent.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> Description of FUN150 operand SR<\/p>\n<p>SR\uff1aStarting register for communication program of M-BUS instruction.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>SR+0<\/p>\n<p>SR+1<\/p>\n<\/td>\n<td>\n<p>reserve<\/p>\n<\/td>\n<td>\n<p>50h<\/p>\n<\/td>\n<td rowspan=\"2\">\n<p>\u2022 Low Byte valid; = 50H, it means valid M-BUS program<\/p>\n<p>\u2022 Low Byte\uff1aTotal number of transactions\uff0cone transaction needs 7 registers to describe.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>reserve<\/p>\n<\/td>\n<td>\n<p>Total<\/p>\n<p>transactions<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Slave station No. Which is about to transact with<\/p>\n<\/td>\n<td>\n<p>\u2022 Low Byte is valid, 0\uff5e247 (0 means that master PLC broadcasts the data to all slaves, the slaves do not reply).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Command code<\/p>\n<\/td>\n<td>\n<p>\u2022 Low Byte is valid; <\/p>\n<p>=1, means &quot;Read data from slave station&quot;<\/p>\n<p>=2, means &quot;Write multiple data to slave station&quot;<\/p>\n<p>=3, means &quot;Write single data to slavestation&quot;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Data length of this transaction<\/p>\n<\/td>\n<td>\n<p>\u2022 Low Byte is valid; the range is 1\uff5e125 (Reg.)<\/p>\n<p>or 1\uff5e255 (Discrete).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+5<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Data type of Master PLC<\/p>\n<\/td>\n<td>\n<p>\u2022 Low Byte is valid, and its range is 1\uff5e3 or 12\uff5e13; it defines the data type of master PLC (see next page).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+6<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Starting reference of Master PLC<\/p>\n<\/td>\n<td>\n<p>\u2022 Word is valid; it defines the starting address of data (master).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+7<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Data type of slave station<\/p>\n<\/td>\n<td>\n<p>\u2022 Low Byte is valid, and its range is 0 or 4; it defines the data type of slave station (see next page). <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+8<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Starting reference of Slave station<\/p>\n<\/td>\n<td>\n<p>\u2022 Word is valid; it defines the starting address of data (slave).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p> Description of FUN150 operand SR<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>SR+9<\/p>\n<\/td>\n<td>\n<p>Slave station No. which is about to transact with<\/p>\n<\/td>\n<td rowspan=\"7\">\n<p>Description of the 2_nd packet of transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+10<\/p>\n<\/td>\n<td>\n<p>Command code<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+11<\/p>\n<\/td>\n<td>\n<p>Data length of this transaction<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+12<\/p>\n<\/td>\n<td>\n<p>Data type of Master PLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+13<\/p>\n<\/td>\n<td>\n<p>Starting reference of Master PLC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+14<\/p>\n<\/td>\n<td>\n<p>Data type of slave station<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+15<\/p>\n<\/td>\n<td>\n<p>Starting reference of Slave station<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2022<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u2022<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>  \u2022<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>SR+2+n\u00d77<\/p>\n<\/td>\n<td>\n<p>Reserved<\/p>\n<\/td>\n<td>\n<p>\u2022  N is the total number of transactions.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>Data code, type and reference number of Master station (FATEK PLC)<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Data code<\/p>\n<\/td>\n<td>\n<p>Data type<\/p>\n<\/td>\n<td>\n<p>Reference number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Y\uff08Output Relay\uff09<\/p>\n<\/td>\n<td>\n<p>0\uff5e1023<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>M\uff08Internal M Relay\uff09<\/p>\n<\/td>\n<td>\n<p>0\uff5e29599<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>S\uff08Step Relay\uff09<\/p>\n<\/td>\n<td>\n<p>0\uff5e3103<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>12<\/p>\n<\/td>\n<td>\n<p>R\uff08Data Register\uff09<\/p>\n<\/td>\n<td>\n<p>0\uff5e34767<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>13<\/p>\n<\/td>\n<td>\n<p>D\uff08Data register\uff09<\/p>\n<\/td>\n<td>\n<p>0\uff5e7999<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<ul>\n<li>Data code, type and reference number of Slave station (Modbus slave)<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Data code<\/p>\n<\/td>\n<td>\n<p>Data type<\/p>\n<\/td>\n<td>\n<p>Reference number<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>Discrete Output<\/p>\n<\/td>\n<td>\n<p>1\uff5e65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>Holding register<\/p>\n<\/td>\n<td>\n<p>1\uff5e65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>Discrete Input<\/p>\n<\/td>\n<td>\n<p>1\uff5e65535<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>Input Register<\/p>\n<\/td>\n<td>\n<p>1\uff5e65535<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Note: The master and slave data types must be the same, if the master station is Y\/M\/S, the slave station must be 0\/1; If the master station is R\/D, the slave station must be 3\/4; and vice versa.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>Description of FUN150 operand WR<\/p>\n<p>High Byte\t Low Byte<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>WR+0<\/p>\n<\/td>\n<td>\n<p>Result code<\/p>\n<\/td>\n<td>\n<p>Transaction<\/p>\n<p>No.<\/p>\n<\/td>\n<td>\n<p>\u2022 Result code indicates the transaction result; 0 means &quot;Normal&quot;, other value means &quot;Abnormal&quot;<\/p>\n<p>\u2022 Transaction No. indicates which one is in processing (begins from 0).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+1<\/p>\n<\/td>\n<td>\n<p>Station<\/p>\n<p>number<\/p>\n<\/td>\n<td>\n<p>Command<\/p>\n<p>code<\/p>\n<\/td>\n<td rowspan=\"3\">\n<p>\u2022 Station number: the slave station No. which is in transaction. <\/p>\n<p>Command code: Low Byte valid<\/p>\n<p>=1 (read)<\/p>\n<p>=2 (write)<\/p>\n<p>=3 (write once)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+2<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal working use<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+3<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal working use<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+4<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal working use<\/p>\n<\/td>\n<td rowspan=\"4\">\n<p>\u2022  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+5<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal working use<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+6<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal working use<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR+7<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>For internal working use<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Result code: <\/p>\n<p>0, Transaction is successful.<\/p>\n<p>2, Data length error (for length is 0 or over limit).<\/p>\n<p>3, Command code error (Command code is 0 or greater than 3).<\/p>\n<p>4, Data type error.<\/p>\n<p>5, Reference number error.<\/p>\n<p>6, Inconsistence in data type (e.g., master station is Y\/M\/S while slave is 4).<\/p>\n<p>7, Port error (Not Port 1\uff5e4).<\/p>\n<p>8, Invalid communication table. <\/p>\n<p>A, No response from slave station (Time-out error).<\/p>\n<p>B, Communication error (received error data or exception reply).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>For easier programming and troubleshooting, the UperLogic provides the table editing environment to edit the communication table of FUN150 instruction; Key in the complete FUN150 instruction first and then move the cursor to the position of it, depressing the &quot;Z&quot; key, now comes the table editing environment. The user can create the new communication table or display the existed table under this friendly user interface operation.<\/p>\n<p>M-BUS Communication Table<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Command<\/p>\n<\/td>\n<td>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Data of Master<\/p>\n<\/td>\n<td>\n<p>Data of Slave<\/p>\n<\/td>\n<td>\n<p>Length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Read (=1)<\/p>\n<p>Write (=2)<\/p>\n<p>Write single (=3)\t<\/p>\n<\/td>\n<td>\n<p>The station number of slave which is about to transact with Station No.=0,<\/p>\n<p>It means broadcasting, there will not any response from the slave<\/p>\n<p>Station No.=N, means the station number of slave which is about to transact with;<\/p>\n<p>N=1\uff5e247<\/p>\n<\/td>\n<td>\n<p>The data type<\/p>\n<p>of Master for<\/p>\n<p>this transaction<\/p>\n<p>Y0\uff5eY1023<\/p>\n<p>M0\uff5eM9119<\/p>\n<p>S0\uff5eS3103<\/p>\n<p>R0\uff5eR34767<\/p>\n<p>D0\uff5eD7999<\/p>\n<\/td>\n<td>\n<p>The data type of Slave for this transaction<\/p>\n<p>000001\uff5e065535(read\/write)<\/p>\n<p>400001\uff5e465535(read\/write)<\/p>\n<p>100001\uff5e165535(read)<\/p>\n<p>300001\uff5e365535(read)<\/p>\n<\/td>\n<td>\n<p>Quantity of this<\/p>\n<p>While Register,1\uff5e125<\/p>\n<p>While Discrete,1\uff5e255<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<td>\n<p>Convenient Instruction for Modbus RTU\/ASCII Master<\/p>\n<p>(makes PLC as the Modbus RTU\/ASCII master through Port 1~Port 4)<\/p>\n<\/td>\n<td>\n<p>FUN150<\/p>\n<p>M-BUS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u203bUperLogic provides the user friendly table edit for M-BUS Master\uff1a<\/p>\n<p>Command   Slave       Data of Master                   Data of Slave          Data length<\/p>\n<p>Read     1\uff5e247   Y0\uff5eY1023       \u2190  000001\uff5e065535    1\uff5e255<\/p>\n<p>M0\uff5eM9119      \u2190  000001\uff5e065535    1\uff5e255<\/p>\n<p>S0\uff5eS3103       \u2190  000001\uff5e065535    1\uff5e255<\/p>\n<p>Y0\uff5eY1023       \u2190  100001\uff5e165535    1\uff5e255<\/p>\n<p>M0\uff5eM9119     \u2190  100001\uff5e165535    1\uff5e255<\/p>\n<p>S0\uff5eS3103       \u2190  100001\uff5e165535    1\uff5e255<\/p>\n<p>R0\uff5eR34767      \u2190  400001\uff5e465535    1\uff5e125<\/p>\n<p>D0\uff5eD7999     \u2190  400001\uff5e465535    1\uff5e125<\/p>\n<p>R0\uff5eR34767     \u2190  300001\uff5e365535    1\uff5e125<\/p>\n<p>D0\uff5eD7999     \u2190  300001\uff5e365535    1\uff5e125<\/p>\n<p>Write    0\uff5e247\t  Y0\uff5eY1023      \u2192  000001\uff5e065535    1\uff5e255<\/p>\n<p>M0\uff5eM9119\t   \u2192  000001\uff5e065535    1\uff5e255<\/p>\n<p>S0\uff5eS3103       \u2192  000001\uff5e065535    1\uff5e255<\/p>\n<p>R0\uff5eR34767      \u2192  400001\uff5e465535    1\uff5e125<\/p>\n<p>D0\uff5eD7999     \u2192  400001\uff5e465535    1\uff5e125<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4><strong>10-4-2 <\/strong><strong>Address mapping between Modbus and FATEK                        <\/strong><\/h4>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Address mapping between Modbus and FATEK<\/p>\n<p>(PLC works as the slave station of Modbus Communication Protocols<\/p>\n<p>through Port 1~Port 4, and HCM ports)<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>M-Series PLC can use FUN150 to be Modbus protocol Master, besides it also can be Modbus communication Slave by configuration ( Port 1~Port 4, and HCM ports , but Port0 fixed to FATEK communication protocol) then it can connect with the intelligent peripheral.\n<ul>\n<li>\n<ul>\n<li>Set up the connection with the M PLC<\/li>\n<li>Method 1: In the &quot;PLC Setting&quot; of the &quot;PLC&quot; tab of the UperLogic software, select the Port to be modified, such as &quot;Port2 Parameter&quot;, as shown in the figure below.<br \/> <img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d61.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-030.png\" \/><\/li>\n<li>Click &quot;Serial Configuration \u2013 Port2&quot; <br \/> <img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d62.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-031.png\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Address mapping between Modbus and FATEK<\/p>\n<p>(PLC works as the slave station of Modbus Communication Protocols<\/p>\n<p>through Port 1~Port 4, and HCM ports )<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>Change the &quot;Protocol&quot; to &quot;Modbus RTU (Slave)&quot; or &quot;Modbus ASCII (Slave)&quot; and press OK.<br \/> <img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-032.png\" \/><\/li>\n<li>setting is successful.<br \/> <img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d61.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-033.png\" \/><\/li>\n<li>Method 2: In the &quot;PLC Setting&quot; of the &quot;PLC&quot; tab of the UperLogic software, select &quot;Communication Protocol&quot;, as shown in the figure below.<br \/><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d61.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-034.png\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Address mapping between Modbus and FATEK<\/p>\n<p>(PLC works as the slave station of Modbus Communication Protocols<\/p>\n<p>through Port 1~Port 4, and HCM ports )<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>Click &quot;Protocol&quot; <br \/><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d6.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-035.png\" \/><\/li>\n<li>Change the &quot;Protocol&quot; to &quot;Modbus RTU (Slave)&quot; or &quot;Modbus ASCII (Slave)&quot; and press OK.<\/li>\n<li>setting is successful.<br \/><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u64f7\u53d61.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-036.png\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>See below for Modbus and FATEK data address mapping rules: <\/p>\n<p> Mapping Rule<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>Modbus<\/p>\n<\/td>\n<td>\n<p>FATEK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>5<\/p>\n<p>Code<\/p>\n<\/td>\n<td>\n<p>0XXXX<\/p>\n<\/td>\n<td>\n<p>Discrete elements of Ynnnn\u3001Xnnnn\u3001Mnnnnn\u3001Snnnn\u3001Tnnnn\u3001Cnnnn<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4XXXX<\/p>\n<\/td>\n<td>\n<p>Data Registers of Rnnnnn\u3001Dnnnn\u3001Tnnnn\u3001Cnnnn<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>6<\/p>\n<p>Code<\/p>\n<\/td>\n<td>\n<p>00XXXX<\/p>\n<\/td>\n<td>\n<p>Discrete elements of Ynnnn\u3001Xnnnn\u3001Mnnnnn\u3001Snnnn\u3001Tnnnn\u3001Cnnnn<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>40XXXX<\/p>\n<\/td>\n<td>\n<p>Data Registers of Rnnnn\u3001Dnnnn\u3001Tnnn\u3001Cnnn<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Address mapping between Modbus and FATEK<\/p>\n<p>(PLC works as the slave station of Modbus Communication Protocols<\/p>\n<p>through Port 1~Port 4, and HCM ports )<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The range of Modbus slave address conversion can be planned by the designer through the software in &quot;Communication Configuration&quot;.<\/li>\n<li>In the UperLogic software &quot;Project&quot; tab, click &quot;Communication Configuration&quot; <\/li>\n<li>&quot;Modbus Device Allocation&quot; as shown below.<\/li>\n<\/ul>\n<p> <img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\\u5716\u72471.png\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-10\/mplc-m03-en-10-037.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Address mapping between Modbus and FATEK<\/p>\n<p>(PLC works as the slave station of Modbus Communication Protocols<\/p>\n<p>through Port 1~Port 4, and HCM ports )<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>Designer can adjust the range of PLC and Modbus to be converted, or the starting address, etc.<\/li>\n<li>Table options are explained below.<\/li>\n<li>Items: Including contact settings, such as I\/O contacts (X \/ Y), internal relays (M), etc., and register settings, such as registers (R \/ D), etc.<\/li>\n<li>Address: It refers to the address of the PLC. For example, input 0 in the internal relay [M], it means that M0 corresponds to the address specified by Modbus. As shown in the figure above, M0 corresponds to the address of Modbus 20001.<\/li>\n<li>Modbus address: refers to the address of the corresponding Modbus.<\/li>\n<li>Totals: It is the length of the total conversion starting from the starting address.<\/li>\n<li>Usage: When the starting address and total number are set, the software will display the total converted addresses, so that the designer can know the usage status more clearly.<\/li>\n<li>Default: After clicking, the setting value will return to the default state.<\/li>\n<li>When the PLC communication port works in the Modbus slave communication mode, in addition to adjusting the range to be converted between PLC and Modbus, or the initial address, etc. through the table; you can also adjust the corresponding access method through the PLC register; it is not in the setting range for data access, PLC will respond with a communication error.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register No.<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35484<\/p>\n<\/td>\n<td rowspan=\"3\"><\/td>\n<td rowspan=\"3\">\n<p>CPU module\u2019s MAC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35485<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R354886<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>M9162<\/p>\n<\/td>\n<td>\n<p>= ON<\/p>\n<\/td>\n<td>\n<p>New address mapping for Modbus slave communication protocol (Detailed as below)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>= OFF<\/p>\n<\/td>\n<td>\n<p>Existed address mapping for Modbus slave comm protocol <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35402<\/p>\n<\/td>\n<td>\n<p>0 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Y output relay of FATEK<\/li>\n<li>0 ~ 1023: Means Y output relay Y0 ~ Y1023<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35403<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of discrete output of Modbus  <\/li>\n<li>0 ~ 65535: Means discrete output 000001 ~ 065536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35404<\/p>\n<\/td>\n<td>\n<p>1 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and Y output of FATEK.  <\/li>\n<li>1 ~ 1023: Means access range between 1 ~ 1023 point<\/li>\n<li>R35402 and R35403 are used to specify the access range of Modbus contact output corresponding to FATEK&#8217;s Y output relay. (M9162 must be ON for a pulse)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Modbus Communication Protocols<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register No.<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35405<\/p>\n<\/td>\n<td>\n<p>0 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of X input relay of FATEK.  <\/li>\n<li>0 ~ 1023: Means X input relay X0 ~ X1023<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35406<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus contact output (Coil)<\/li>\n<li>0 ~ 65535: Means contact output number 000001 ~ 065536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35407<\/p>\n<\/td>\n<td>\n<p>1 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and X input of FATEK.<\/li>\n<li>1 ~ 1023: Means access range between 1 ~ 1023 point<\/li>\n<li>R35405 and R35406 are used to specify the access range of Modbus contact output corresponding to X input relay of FATEK. (M9162 must be ON for a pulse)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35408<\/p>\n<\/td>\n<td>\n<p>0 ~ 9119<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of M internal relay of FATEK<\/li>\n<li>0 ~ 9119: Means M internal relay M0 ~ M9119<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35409<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus contact output (Coil)<\/li>\n<li>0 ~ 65535: Means contact output number 000001 ~ 065536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35410<\/p>\n<\/td>\n<td>\n<p>1 ~ 9119<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and M internal relay of FATEK.<\/li>\n<li>1 ~ 9119: Means access range between 1 ~ 9119 point<\/li>\n<li>R35408 and R35409 are used to specify the access range of Modbus contact output corresponding to M internal relay of FATEK. (M9162 must be ON for a pulse). <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35411<\/p>\n<\/td>\n<td>\n<p>0 ~ 3103<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of stepper relay of FATEK.<\/li>\n<li>0 ~ 3103: Means stepper relay S0 ~ S3103<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35412<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus contact output (Coil)<\/li>\n<li>0 ~ 65535: Means contact output number 000001 ~ 065536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35413<\/p>\n<\/td>\n<td>\n<p>1 ~ 9119<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and Stepper relay of FATEK.<\/li>\n<li>1 ~ 3103: Means access range between 1 ~ 3103 point<\/li>\n<li>R35411 and R35412 are used to specify the access range of Modbus contact output corresponding to M internal relay of FATEK. (M9162 must be ON for a pulse). <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35414<\/p>\n<\/td>\n<td>\n<p>0 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Timer relay of FATEK.<\/li>\n<li>0 ~ 1023: Means Timer relay T0 ~ T1023<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Modbus Communication Protocols<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register No.<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35415<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus contact output (Coil)<\/li>\n<li>0 ~ 65535: Means contact output number 000001 ~ 065536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35416<\/p>\n<\/td>\n<td>\n<p>1 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and T Timer relay of FATEK.<\/li>\n<li>1 ~ 1023: Means access range between 1 ~ 1023 point<\/li>\n<li>R35414 and R35415 are used to specify the access range of Modbus contact output corresponding to T Timer relay of FATEK. (M9162 must be ON for a pulse).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35417<\/p>\n<\/td>\n<td>\n<p>0 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of C Counter relay of FATEK.<\/li>\n<li>0 ~ 1023: Means C Counter relay C0 ~ C1023<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35418<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus contact output (Coil)<\/li>\n<li>0 ~ 65535: Means contact output number 000001 ~ 065536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35419<\/p>\n<\/td>\n<td>\n<p>1 ~ 1023<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and C Counter relay of FATEK.<\/li>\n<li>1 ~ 1023: Means access range between 1 ~ 1023 point<\/li>\n<li>R35417 and R35418 are used to specify the access range of Modbus contact output corresponding to C Counter relay of FATEK. (M9162 must be ON for a pulse).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35420<\/p>\n<\/td>\n<td>\n<p>0 ~ 34767<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of R registers of FATEK.<\/li>\n<li>0 ~ 34767: Means R registers R0 ~ R34767<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35421<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus registers<\/li>\n<li>0 ~ 65535: Means Modbus registers number 400001~465536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35422<\/p>\n<\/td>\n<td>\n<p>1 ~ 34767<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and R registers of FATEK.<\/li>\n<li>1 ~ 34767: Means access range between 1 ~ 34767 point<\/li>\n<li>R35420 and R35421 are used to specify the access range of Modbus contact output corresponding to D registers of FATEK. (M9162 must be ON for a pulse).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35423<\/p>\n<\/td>\n<td>\n<p>0 ~ 7999<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of D registers of FATEK.<\/li>\n<li>0 ~ 7999: Means D registers D0 ~ D7999<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35424<\/p>\n<\/td>\n<td>\n<p>0 ~ 65535<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the starting address of Modbus registers<\/li>\n<li>0 ~ 65535: Means Modbus registers number 400001~465536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Modbus Communication Protocols<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Modbus Communication Protocols<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td colspan=\"2\">\n<p>Register No.<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Value<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R35425<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1 ~ 7999<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the range of access both for Modbus contact output and D registers of FATEK.<\/li>\n<li>1 ~ 7999: Means access range between 1 ~ 7999 point<\/li>\n<li>R35423 and R35424 are used to specify the access range of Modbus contact output corresponding to D registers of FATEK. (M9162 must be ON for a pulse).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R35426<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 ~ 1023<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the starting address of T Timer registers of FATEK.<\/li>\n<li>0 ~ 1023: Means T Timer registers T0 ~ T1023<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R35427<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 ~ 65535<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the starting address of Modbus registers<\/li>\n<li>0 ~ 65535: Means Modbus registers number 400001~465536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p>R35428<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1 ~ 1023<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the range of access both for Modbus contact output and T Timer registers of FATEK.<\/li>\n<li>1 ~ 1023: Means access range between 1 ~ 1023 point<\/li>\n<li>R35426 and R35427 are used to specify the access range of Modbus contact output corresponding to T Timer registers of FATEK. (M9162 must be ON for a pulse).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35429<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 ~ 1023<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the starting address of C Counter relay of FATEK.<\/li>\n<li>0 ~ 1023: Means C Counter relay C0 ~ C1023<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35430<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 ~ 65535<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the starting address of Modbus registers<\/li>\n<li>0 ~ 65535: Means Modbus registers number 400001~465536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35431<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>1 ~ 1023<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the range of access both for Modbus contact output and C Counter registers of FATEK.<\/li>\n<li>1 ~ 1023: Means access range between 1 ~ 1023 registers<\/li>\n<li>R35429 and R35430 are used to specify the access range of Modbus registers corresponding to C Counter registers of FATEK. (M9162 must be ON for a pulse). <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35432<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 ~ 1023<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the starting address of C Counter relay (32 bit) of FATEK.<\/li>\n<li>1024 ~ 1279: Means C Counter relay (32 bit) C1024 ~ C1279<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35433<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>0 ~ 65535<\/p>\n<\/td>\n<td colspan=\"2\">\n<ul>\n<li>Assign the starting address of Modbus registers<\/li>\n<li>0 ~ 65535: Means Modbus registers number 400001~465536<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<td>\n<p>Modbus Communication Protocols<\/p>\n<\/td>\n<td>\n<p>Modbus<\/p>\n<p>Slave<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register No.<\/p>\n<\/td>\n<td>\n<p>Value<\/p>\n<\/td>\n<td>\n<p>Description<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35434<\/p>\n<\/td>\n<td>\n<p>1024 ~ 1279<\/p>\n<\/td>\n<td>\n<ul>\n<li>Assign the range of access both for Modbus contact output and C Counter registers (32 bit) of FATEK.<\/li>\n<li>1~256: Means access range between 1 ~ 256 registers<\/li>\n<li>R35432 and R35432 are used to specify the access range of Modbus registers correspond to C Counter registers (32-bit) of FATEK. (M9162 must be ON for a pulse). <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>For example, after the settings of R35402 ~ R35434 are completed, M9162 is turned ON for a pulse, which means that the corresponding access mode is adjusted through the PLC register method. <\/p>\n<ul>\n<li>R35409=0, R35408=1000, R3971=100\uff1a<br \/>Mapping 000001 ~ 000100(Modbus) \uff1e M1000~M1099(FATEK) <\/li>\n<li>R35421=0\uff0cR35420=2000\uff0cR3980=200\uff1a<br \/>Mapping 400001 ~ 400200(Modbus) \uff1e R2000~R2219(FATEK)\u3002<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>M-Series PLC is designed with an Ethernet communication port. Such port provides a number of Ethernet functions for the user to combine with network-related equipment or applications, such as combining with IoT application.<\/p>\n<p>Functional specifications <\/p>\n<p>Meet the IEEE802.3 standard and provide 10\/100 Base T interface.<\/p>\n<p> Basic purpose <\/p>\n<p>Provide the UperLogic for using FATEK on PC in order to realize communication with the Ethernet communication port of M-Series PLC through the Ethernet, including the project online uploading and downloading as well as PLC data online monitoring, etc.<\/p>\n<p>It can also be connected with the Ethernet interface mounted FATEK communication drive program device or with the Modbus drive program related UperLogic, HMI and graphical control devices, etc.<\/p>\n<p> Derivative purpose <\/p>\n<p>In addition to the aforesaid functions, this product also provides the following functions and they will be described in the subsequent paragraphs.<\/p>\n<ul>\n<li>NTP (Network Time Protocol) time synchronization. Through the appointed NTP server address, it allows the designed to run the time synchronization through the network.<\/li>\n<li>MQTT publishing\/subscription functions, allowing more efficient remote monitoring and data swapping through the IoT.<\/li>\n<li>Modbus TCP master\/slave communication protocol function. Through the Ethernet, the user may communicate with the device provided for supporting the Modbus protocol.<\/li>\n<\/ul>\n<h3>10-5  FATEK Binary communication Protocol<\/h3>\n<p>FATEK Binary Communication Protocol is an open protocol, with which any device is able to connect to M PLC accordingly. Both serial and Ethernet communication support this protocol.<\/p>\n<p>Please refer to the <a href=\"https:\/\/file.fatek.com\/en\/PLC\/MPLC\/Document\/Manual\/08_M_PLC_Binary_Communication_Protocol_User_Manual.pdf\">Fatek Binary communication manual<\/a> for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the two built-in RS-485 communication ports and th [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-3217","post","type-post","status-publish","format-standard","hentry","category-en-mplc-m03"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3217","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=3217"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3217\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}