Wiki source code of PLC Protocol
Version 18.1 by Theodore Xu on 2023/09/16 13:47
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
5.1 | 1 | == **Haiwell** == |
![]() |
4.1 | 2 | |
3 | Support Series: Haiwell S Series, A Series, C Series, T Series, H Series. | ||
4 | |||
![]() |
7.1 | 5 | **V-Box Settings** |
![]() |
4.1 | 6 | |
7 | |=**Item**|=**Settings**|=**Note** | ||
8 | |Protocol|Haiwell PLC Series| | ||
9 | |Connection|RS232| | ||
10 | |Baud rate|19200| | ||
11 | |Data bit|8| | ||
12 | |Parity|None| | ||
13 | |Stop bit|2| | ||
14 | |PLC station No.|0| | ||
15 | |||
![]() |
6.1 | 16 | (% style="text-align:center" %) |
![]() |
11.1 | 17 | [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@海为 盒子串口配置.png]] |
![]() |
6.1 | 18 | |
![]() |
4.1 | 19 | **Address List** |
20 | |||
21 | |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note** | ||
22 | |(% colspan="1" rowspan="6" %)Bit|X|XDDDDD|0~~99999|Input | ||
23 | |Y|YDDDDD|0~~99999|Output | ||
24 | |M|MDDDDD|0~~99999|Internal Relay | ||
25 | |T|TDDDDD|0~~99999|Timer | ||
26 | |C|CDDDDD|0~~99999|Counter | ||
27 | |SM|SMDDDDD|0~~99999|System Status Bit | ||
28 | |(% colspan="1" rowspan="7" %)Word|AI|AIDDDDD|0~~99999|Analog Input | ||
29 | |AQ|AQDDDDD|0~~99999|Analog Output | ||
30 | |V|VDDDDD|0~~99999|Data Register | ||
31 | |TCV|TCVDDDDD|0~~99999|Timer Current Value | ||
32 | |CCV|CCVDDDDD|0~~99999|Counter Currnet Value | ||
33 | |SV|SVDDDDD|0~~99999|System Register | ||
34 | |CCVH|CCVHDD|48~~79|Special Module Parameter | ||
35 | |||
36 | **PLC Settings** | ||
37 | |||
38 | Create new project, and select the specific model according to the actual PLC. | ||
39 | |||
40 | (% style="text-align:center" %) | ||
41 | [[image:HHcreatenew.png]] | ||
42 | |||
43 | Naming the program block, and set program password if project required, otherwise put Password as empty, then click OK to finish. | ||
44 | |||
45 | (% style="text-align:center" %) | ||
46 | [[image:HHnaming.png]] | ||
47 | |||
48 | Using the RS232-USB converter cable to online the PLC connection. | ||
49 | |||
50 | (% style="text-align:center" %) | ||
![]() |
15.1 | 51 | [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHPLConline.png]] |
![]() |
4.1 | 52 | |
53 | If HaiwellHappy found the PLC successfully, it would add the device into the list, and click Online. | ||
54 | |||
55 | (% style="text-align:center" %) | ||
![]() |
17.1 | 56 | [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHfoundPLC.png]] |
![]() |
4.1 | 57 | |
58 | Set the project communication parameter if needed after online PLC. | ||
59 | |||
60 | (% style="text-align:center" %) | ||
61 | [[image:HHsetCOMM.png]] | ||
62 | |||
63 | Process the PLC download. | ||
64 | |||
65 | (% style="text-align:center" %) | ||
66 | [[image:HHDownloadPLC2.png]] | ||
67 | |||
68 | Wait for PLC download complete, then it would prompt like below. | ||
69 | |||
70 | (% style="text-align:center" %) | ||
![]() |
13.1 | 71 | [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHdownloadcomplete.png]] |
![]() |
4.1 | 72 | |
73 | **Cable Wiring** | ||
74 | |||
75 | (% style="text-align:center" %) | ||
76 | [[image:Haiwell PLC Series.gif]] |