Changes for page 10 Communication Instruction
Last modified by Iris on 2026/03/30 11:47
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 6 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1665,13 +1665,13 @@ 1665 1665 1666 1666 The extended function is mainly used to communicate with PLC Editor 2. 1667 1667 1668 -== **Communication function block** == 1668 +== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps2.png]][[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps3.png]]**10.7 Communication function block** == 1669 1669 1670 -=== **SERIAL_MODBUS_WR** === 1670 +=== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps4.png]]**1. SERIAL_MODBUS_WR** === 1671 1671 1672 1672 SERIAL_MODBUS_WR - Modbus master serial communication 1673 1673 1674 -[[image: 1761118509428-681.png||height="227" width="212"]]1674 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps5.jpg]] 1675 1675 1676 1676 This function block is the setting function block for sending protocol frames by the Modbus master station (whether RTU or ASCII). When the contact in front of Enable is turned ON, according to the communication port, station number, function code, slave station address, quantity and mapped data address set by the function block, the data frame is combined and sent. 1677 1677 ... ... @@ -1680,29 +1680,32 @@ 1680 1680 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|((( 1681 1681 **Offset** 1682 1682 1683 -** modification**1683 +**Modification** 1684 1684 )))|((( 1685 1685 **Pulse** 1686 1686 1687 -** expansion**1687 +**Expansion** 1688 1688 ))) 1689 1689 |**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 1690 -|(% rowspan="1 2" %)(((1691 -SERIAL _1690 +|(% rowspan="15" %)((( 1691 +SERIAL 1692 1692 1693 1693 MODBUS_WR 1694 -)))|Enable|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 1695 -|CommunicationPort| | | | | | | | | | | | | | |●|●|●|●|●| | | | | | | 1696 -|SlaveID| | | | | | | | | | | | | | |●|●|●|●|●| | | | | | | 1697 -|FunctionCode| | | | | | | | | | | | | | |●|●|●|●|●| | | | | | | 1698 -|SlaveAddress| | | | | | | | | | | | | | |●|●|●|●|●| | | | | | | 1699 -|Count| | | | | | | | | | | | | | |●|●|●|●|●| | | | | | | 1700 -|Data| | | | | | | | | | | | | | | | |●|●| | | | | | | | 1701 -|Done| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 1702 -|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 1703 -|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 1704 -|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 1705 -|ErrorID| | | | | | | | | | | | | | | | |●|●| | | | | | | | 1694 +)))|Enable|●|●|●|●|●| | | | | | | | | | | | |●|●| | | | | | | 1695 +|CommunicationPort| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1696 +|SlaveID| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1697 +|FunctionCode| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1698 +|SlaveAddress| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1699 +|Count| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1700 +|Data| | | | | | | | | | | | | | |●|●| | | | | | | | | | 1701 +|Done| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | | 1702 +|Busy| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | | 1703 +|InVelocity| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | | 1704 +|Busy| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | | 1705 +|Active| | | | | | | | | | | | | | |●|●| | | | | | | | | | 1706 +|CommandAborted|●|●|●|●|●| | | | | | | | | | | | |●|●| | | | | | | 1707 +|Error| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1708 +|ErrorID| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | | 1706 1706 1707 1707 **Variable Type Used** 1708 1708 ... ... @@ -1789,6 +1789,7 @@ 1789 1789 |31A0H|No available gateway for COM2 Slave station return information: Unavailable gateway (Please refer to Modbus exception 0A) 1790 1790 |31A1H|COM2 indicates that no response was obtained from the target device. Slave station return information: The device is not in the network. (Please refer to Modbus exception 0B) 1791 1791 1795 + 1792 1792 **Example** 1793 1793 1794 1794 **Application example** ... ... @@ -1795,20 +1795,18 @@ 1795 1795 1796 1796 Set the COM2 communication parameters through the SD device. 1797 1797 1798 -(% style="text-align:center" %) 1799 -[[image:1761119049914-901.png||height="377" width="533"]] 1802 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps6.jpg]] 1800 1800 1801 1801 Enable the function block and its Enable pin, send Modbus serial port master data and wait for the slave respond. Done indicates that the current instruction has been executed, Busy indicates that the serial port is busy, and Active indicates that the current instruction is running (waiting for data to be returned from the slave station). 1802 1802 1803 -(% style="text-align:center" %) 1804 -[[image:1761120009429-879.png||height="611" width="571"]] 1806 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps7.jpg]] 1805 1805 1806 1806 1807 - ===**SERIAL_WR**===1809 +1. **SERIAL_WR** 1808 1808 1809 -SERIAL_WR - Custom protocol serial communication 1811 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps8.png]]SERIAL_WR - Custom protocol serial communication 1810 1810 1811 -[[image: 1761120169708-257.png||height="307" width="271"]]1813 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps9.jpg]] 1812 1812 1813 1813 This function block is a setting function block for user defined protocol serial port to send protocol frames. When the contact in front of Enable is turned ON. According to the communication port, sending data mapping address, sending data length, receiving data mapping address, and receiving data length set by the function block, the data frame is sent and waits for the data of the specified length to be returned. 1814 1814 ... ... @@ -1893,15 +1893,13 @@ 1893 1893 ))) 1894 1894 |3190H|COM2 receives data beyond the cache limit. 1895 1895 1898 + 1896 1896 **Example** 1897 1897 1898 1898 **Application example** 1899 1899 1900 -* Set the COM2 communication parameters through the SD device.((( 1901 -(% style="text-align:center" %) 1902 -[[image:1761120267443-852.png||height="580" width="498"]] 1903 -))) 1903 +* Set the COM2 communication parameters through the SD device. 1904 1904 1905 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps10.jpg]] 1905 1905 1906 - 1907 1907 Enables the function block and the Enable pin of the function block, sends custom protocol data and waits for the slave to respond. Done indicates that the current instruction has been executed, Busy indicates that the serial port is busy, and Active indicates that the current instruction is running (waiting for data to be returned from the slave station).
- 1761118476244-253.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -47.4 KB - Content
- 1761118509428-681.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -47.4 KB - Content
- 1761119049914-901.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -41.9 KB - Content
- 1761120009429-879.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -67.4 KB - Content
- 1761120169708-257.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -41.9 KB - Content
- 1761120267443-852.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -44.6 KB - Content