Wiki source code of PLC Protocol

Version 27.1 by Theodore Xu on 2023/09/16 13:51

Show last authors
1 == **Haiwell** ==
2
3 Support Series: Haiwell S Series, A Series, C Series, T Series, H Series.
4
5 **V-Box Settings**
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
16 (% style="text-align:center" %)
17 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@海为 盒子串口配置.png]]
18
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:V-BOX.V-Net.Protocols.Haiwell.WebHome@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:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHnaming.png]]
47
48 Using the RS232-USB converter cable to online the PLC connection.
49
50 (% style="text-align:center" %)
51 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHPLConline.png]]
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" %)
56 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHfoundPLC.png]]
57
58 Set the project communication parameter if needed after online PLC.
59
60 (% style="text-align:center" %)
61 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHsetCOMM.png]]
62
63 Process the PLC download.
64
65 (% style="text-align:center" %)
66 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHDownloadPLC2.png]]
67
68 Wait for PLC download complete, then it would prompt like below.
69
70 (% style="text-align:center" %)
71 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@HHdownloadcomplete.png]]
72
73 **Cable Wiring**
74
75 (% style="text-align:center" %)
76 [[image:V-BOX.V-Net.Protocols.Haiwell.WebHome@Haiwell PLC Series.gif]]