Wiki source code of 6 Modbus and PNP/NPN conversion
Version 19.1 by Theodore Xu on 2023/11/28 11:26
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == **1.Modbus** == | ||
2 | |||
3 | **Communication specifications** | ||
4 | |||
5 | |(% colspan="2" %)Item|Content | ||
6 | |(% colspan="2" %)Communication protocol|Modbus protocol | ||
7 | |(% colspan="2" %)Standard specifications|Modbus-RTU slave station communication protocol | ||
8 | |(% colspan="2" %)Maximum connections|247 | ||
9 | |(% colspan="2" %)Topological structure|Bus type | ||
10 | |Slave station function|Number of messages that can be received and requested at the same time|1 | ||
11 | |||
12 | **Hardware configuration** | ||
13 | |||
14 | |Terminal identification|Terminal name|Function description|Jumper/dialing position | ||
15 | |J5|485 communication terminal resistance setting jumper|Match terminal resistance|((( | ||
16 | (% style="text-align:center" %) | ||
17 | [[image:modbus 跳线帽.png]] | ||
18 | ))) | ||
19 | |||
20 | Modbus communication port of this product is located on the control panel, as shown in the following figure: | ||
21 | |||
22 | |||
23 | (% style="text-align:center" %) | ||
24 | [[image:modbus 电路.png]] | ||
25 | |||
26 | **RS485 Connection Topology** | ||
27 | |||
28 | RS485 bus connection topology is shown in the following figure. 485 bus is recommended to use shielded twisted pair (STP), 485+, 485-: Adopt twisted pair to connect; Only 120 Ω terminal matching resistors are connected at both ends of the bus to prevent signal reflection; All node 485 signal grounds are connected together; Connect 128 nodes at most, and the distance between branches of each node should be less than 3m. | ||
29 | |||
30 | **Multi-node connection mode** | ||
31 | |||
32 | When the number of nodes is large, 485 bus must be daisy chain connection. If branch connection is needed, the branch length from bus to node had better be short. It is recommended that it should not exceed 3m. **Star connection should be forbidden**. The diagram of common bus structure is as follows: | ||
33 | |||
34 | Figure1 Daisy chain connection | ||
35 | |||
36 | (% style="text-align:center" %) | ||
37 | [[image:菊花链接.png||alt="Daisy chain connection"]] | ||
38 | |||
39 | Figure2 Branch connection | ||
40 | |||
41 | (% style="text-align:center" %) | ||
42 | [[image:分支链接.png]] | ||
43 | |||
44 | Figure3 Star connection **(Forbidden) ** | ||
45 | |||
46 | (% style="text-align:center" %) | ||
47 | [[image:星型链接.png]] | ||
48 | |||
49 | |||
50 | **Transmission distance** | ||
51 | |||
52 | The maximum number of nodes and transmission distance supported by our standard RS485 circuit at different rates are shown in the following table. | ||
53 | |||
54 | |Transmission distance (m)|Rate (kbps)|Number of nodes|Wire diameter | ||
55 | |100|115.2|128|AWG26 | ||
56 | |1000|19.2|128|AWG26 | ||
57 | |||
58 | == **2.PNP/NPN** == | ||
59 | |||
60 | === **VM series** === | ||
61 | |||
62 | (% class="box infomessage" %) | ||
63 | ((( | ||
64 | **✎Note:VM series manufactured after April 2023 can support this feature!!** | ||
65 | ))) | ||
66 | |||
67 | NPN/PNP switching has been added to the VM series machines, enabling fast switching between the two modes. | ||
68 | |||
69 | |||
70 | (% style="text-align:center" %) | ||
71 | [[image:原理图.png]] | ||
72 | |||
73 | The NPN/PNP mode can be switched manually at the illustration to realize the compatibility of external signals. Where the upper two pins are shorted for NPN, the lower two pins are shorted for PNP mode. | ||
74 | |||
75 | **Product model** | ||
76 | |||
77 | 0.75~~2.2(KW) | ||
78 | |||
79 | (% style="text-align:center" %) | ||
80 | [[image:VM小功率.png]] | ||
81 | |||
82 | (% class="wikigeneratedid" id="H47E7.528KW29" %) | ||
83 | 4~~7.5(KW) | ||
84 | |||
85 | (% style="text-align:center" %) | ||
86 | [[image:VM大功率.png]] | ||
87 | |||
88 | (% class="wikigeneratedid" id="HVMPNPmode" %) | ||
89 | **VM PNP mode** | ||
90 | |||
91 | (% style="text-align:center" %) | ||
92 | [[image:VM pnp 改.png||height="406" width="1099"]] | ||
93 | |||
94 | (% class="wikigeneratedid" id="HVMNPNmode" %) | ||
95 | **VM NPN mode** | ||
96 | |||
97 | (% class="box infomessage" %) | ||
98 | ((( | ||
99 | **✎Note:VM NPN external DC does not suppot.** | ||
100 | ))) | ||
101 | |||
102 | (% style="text-align:center" %) | ||
103 | [[image:VM PNP 内部改.png]] | ||
104 | |||
105 | === **VB series** === | ||
106 | |||
107 | The control signals of VB series products are compatible with both NPN and PNP signal types. | ||
108 | |||
109 | (% class="wikigeneratedid" id="HScheme" %) | ||
110 | **Scheme** | ||
111 | |||
112 | |=**Function**|=**Address definition**|=**Data meaning** | ||
113 | |Adapted power|((( | ||
114 | 220V:0.75-2.2kW | ||
115 | |||
116 | 380V:0.75-7.5kW | ||
117 | )))|380V:11-400kW | ||
118 | |NPN signal|Default Compatible|Default Compatible | ||
119 | |PNP signal|Add expansion board|((( | ||
120 | Changing OP terminal | ||
121 | ))) | ||
122 | |||
123 | Add an expansion card for PNP signal compatibility for small control board. | ||
124 | |||
125 | (% class="wikigeneratedid" id="HIntroduceofexpansionmodule" %) | ||
126 | **Introduce of expansion module** | ||
127 | |||
128 | (1)Name:PNP signal compatible expansion board | ||
129 | |||
130 | (2)Picture: | ||
131 | |||
132 | (% style="text-align:center" %) | ||
133 | [[image:PNP 模块.png]] | ||
134 | |||
135 | (3)Application Principle:**VB 0.75kW-7.5kW PNP mode** | ||
136 | |||
137 | (% style="text-align:center" %) | ||
138 | [[image:VB 小功率 PNP.png]] | ||
139 | |||
140 | **VB 0.75kW-7.5kW NPN mode** | ||
141 | |||
142 | (% class="box infomessage" %) | ||
143 | ((( | ||
144 | **✎Note:VB 0.75kW-11kW NPN external DC does not suppot.** | ||
145 | ))) | ||
146 | |||
147 | (% style="text-align:center" %) | ||
148 | [[image:VB 小功率NPN 改.png]] | ||
149 | |||
150 | **VB 11kW-400kW PNP mode** | ||
151 | |||
152 | (% style="text-align:center" %) | ||
153 | [[image:VB 大功率 PNP 改1.1.png||height="395" width="1113"]] | ||
154 | |||
155 | **VB 11kW-400kW NPN mode** | ||
156 | |||
157 | (% style="text-align:center" %) | ||
158 | [[image:VB 大功率 NPN 改.png||height="399" width="1082"]] |