Last modified by Iris on 2026/03/30 11:47

From version 7.2
edited by Iris
on 2026/03/30 11:46
Change comment: There is no comment for this version
To version 4.1
edited by Iris
on 2025/10/22 15:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1667,12 +1667,13 @@
1667 1667  
1668 1668  == **Communication function block** ==
1669 1669  
1670 -=== **SERIAL_MODBUS_WR** ===
1670 +=== **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:1761118509428-681.png]]
1675 1675  
1676 +
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  
1678 1678  **Device used**
... ... @@ -1680,29 +1680,32 @@
1680 1680  |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|(((
1681 1681  **Offset**
1682 1682  
1683 -**modification**
1684 +**Modification**
1684 1684  )))|(((
1685 1685  **Pulse**
1686 1686  
1687 -**expansion**
1688 +**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="12" %)(((
1691 -SERIAL_
1691 +|(% rowspan="15" %)(((
1692 +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| | | | | | | | | | | | | | | | |●|●| | | | | | | |
1695 +)))|Enable|●|●|●|●|●| | | | | | | | | | | | |●|●| | | | | | |
1696 +|CommunicationPort| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1697 +|SlaveID| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1698 +|FunctionCode| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1699 +|SlaveAddress| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1700 +|Count| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1701 +|Data| | | | | | | | | | | | | | |●|●| | | | | | | | | |
1702 +|Done| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | |
1703 +|Busy| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | |
1704 +|InVelocity| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | |
1705 +|Busy| |●|●|●|●| | | | | | | | | | | | | |●| | | | | | |
1706 +|Active| | | | | | | | | | | | | | |●|●| | | | | | | | | |
1707 +|CommandAborted|●|●|●|●|●| | | | | | | | | | | | |●|●| | | | | | |
1708 +|Error| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1709 +|ErrorID| | | | | | | | | | | | |●|●|●|●|●| | | | | | | | |
1706 1706  
1707 1707  **Variable Type Used**
1708 1708  
... ... @@ -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  
... ... @@ -1897,11 +1897,8 @@
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 -)))
1902 +* Set the COM2 communication parameters through the SD device.
1904 1904  
1904 +[[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).
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