Changes for page 1 Communication
Last modified by Hunter on 2024/07/01 10:54
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Bob1 +XWiki.Hunter - Content
-
... ... @@ -274,8 +274,13 @@ 274 274 (% style="text-align:center" %) 275 275 [[image:ABRS232.gif]] 276 276 277 -== (% id="cke_bm_5621S" style="display:none" %)** **(%%)**MicroLogix Protocol** == 277 +(% class="wikigeneratedid" id="HMicroLogixA0Protocol" %) 278 +(% id="cke_bm_5621S" style="display:none" %)** ** 278 278 280 +(% class="wikigeneratedid" %) 281 +== **MicroLogix Protocol** == 282 + 283 +(% class="wikigeneratedid" %) 279 279 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5 280 280 281 281 **1)V-BOX setting** ... ... @@ -777,13 +777,24 @@ 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 - 782 - addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address 783 - 785 +addr_setword("@W_0#HSW1200",8192) -- Set the source TSAP address 786 +addr_setword("@W_0#HSW1201",4096) -- Set the destination TSAP address 784 784 end 785 785 {{/code}} 786 786 790 +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. 791 + 792 +**✎Note:** 793 + 794 +* **Communication port configuration: ** 795 +** Continuous length needs to be set to 0. 796 +** Integration interval needs to be set to 1. (no change may result in data errors) 797 +** Set Port and Device Station NO. 798 +** Other set as defaulted. 799 +* **Notes on the use of registers:** 800 +** Register VD: Use only registers that are multiples of 4, such as 0, 4, 8, etc. 801 +** 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 ) 802 + 787 787 = Create communication with **Mitsubishi PLC** = 788 788 789 789 == **FX1S,1N,2N Serial Protocol** ==