Changes for page 1 Communication
Last modified by Hunter on 2024/07/01 10:54
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -777,26 +777,13 @@ 777 777 778 778 {{code language="LUA"}} 779 779 function init.main() 780 -addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address 781 -addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address 780 + addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address 781 + 782 + addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address 783 + 782 782 end 783 783 {{/code}} 784 784 785 -Note: The name of the test script is init, 8192 and 4096 are the data used for the test, there is no HSW address in the register option, but you can directly set the value of the corresponding address through the code. 786 - 787 -**✎Note:** 788 - 789 -* **Communication port configuration: ** 790 -** Continuous length needs to be set to 0. 791 -** Integration interval needs to be set to 1. (no change may result in data errors) 792 -** Set Port and Device Station NO. 793 -** Other set as defaulted. 794 -* **Notes on the use of registers:** 795 -** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc. 796 -** Register VW: Use only registers thay are multiples of 2, such as 0, 2, 4 etc. (Using an odd-length register may result in data errors, such as 2 3 4 ) 797 - 798 - 799 - 800 800 = Create communication with **Mitsubishi PLC** = 801 801 802 802 == **FX1S,1N,2N Serial Protocol** ==