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, 6 added, 0 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 -== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps2.png]][[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps3.png]]**10.7Communication function block** ==1668 +== **Communication function block** == 1669 1669 1670 -=== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps4.png]]**1.SERIAL_MODBUS_WR** ===1670 +=== **SERIAL_MODBUS_WR** === 1671 1671 1672 1672 SERIAL_MODBUS_WR - Modbus master serial communication 1673 1673 1674 -[[image: file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps5.jpg]]1674 +[[image:1761118509428-681.png||height="227" width="212"]] 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 ... ... @@ -1792,7 +1792,6 @@ 1792 1792 |31A0H|No available gateway for COM2 Slave station return information: Unavailable gateway (Please refer to Modbus exception 0A) 1793 1793 |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) 1794 1794 1795 - 1796 1796 **Example** 1797 1797 1798 1798 **Application example** ... ... @@ -1799,18 +1799,20 @@ 1799 1799 1800 1800 Set the COM2 communication parameters through the SD device. 1801 1801 1802 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps6.jpg]] 1801 +(% style="text-align:center" %) 1802 +[[image:1761119049914-901.png||height="377" width="533"]] 1803 1803 1804 1804 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). 1805 1805 1806 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps7.jpg]] 1806 +(% style="text-align:center" %) 1807 +[[image:1761120009429-879.png||height="611" width="571"]] 1807 1807 1808 1808 1809 - 1.**SERIAL_WR**1810 +=== **SERIAL_WR** === 1810 1810 1811 - [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps8.png]]SERIAL_WR - Custom protocol serial communication1812 +SERIAL_WR - Custom protocol serial communication 1812 1812 1813 -[[image: file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps9.jpg]]1814 +[[image:1761120169708-257.png||height="307" width="271"]] 1814 1814 1815 1815 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. 1816 1816 ... ... @@ -1895,13 +1895,15 @@ 1895 1895 ))) 1896 1896 |3190H|COM2 receives data beyond the cache limit. 1897 1897 1898 - 1899 1899 **Example** 1900 1900 1901 1901 **Application example** 1902 1902 1903 -* Set the COM2 communication parameters through the SD device. 1903 +* Set the COM2 communication parameters through the SD device.((( 1904 +(% style="text-align:center" %) 1905 +[[image:1761120267443-852.png||height="580" width="498"]] 1906 +))) 1904 1904 1905 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml2512\wps10.jpg]] 1906 1906 1909 + 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,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +47.4 KB - Content
- 1761118509428-681.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +47.4 KB - Content
- 1761119049914-901.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +41.9 KB - Content
- 1761120009429-879.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +67.4 KB - Content
- 1761120169708-257.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +41.9 KB - Content
- 1761120267443-852.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +44.6 KB - Content