Wiki source code of Allen-Bradley(Rockwell)

Version 28.1 by Leo Wei on 2023/08/24 14:11

Show last authors
1 = {{id name="HAllen-Bradley28Rockwell29"/}}Allen-Bradley(**Rockwell**) =
2
3 == {{id name="HDF1AdvancedA0A0Serial"/}}**DF1 Advanced  Serial** ==
4
5 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5
6
7 **1) V-Box Settings**
8
9 |=Item|=Recommended |=Note
10 |=Protocol|Allen Bradley DF1 Advanced|
11 |=Connection|RS232|
12 |=Baud rate|19200|
13 |=Stop bits|1|
14 |=Data bits|8|
15 |=Parity|None|
16 |=PLC Station No.|1|
17 |=HMI Station No.|0|
18
19 **2) Address List**
20
21 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
22 |(% rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1
23 |O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0
24 |S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2
25 |B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3
26 |BN|BNddddd.dd|0.0~~99255.15|(((
27 Bit data file B0~~B99
28
29 First two digits is for file number
30
31 For example, BN13001.00 represents file number B13, address 001, the 0th bit.
32 )))
33 |N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7
34 |NN|NNddddd.dd|0.0~~99255.15|(((
35 Integer data file bit format N0~~N99
36
37 First two digits is for file number
38
39 For example, NN13001.00 represents file number N13, address 001, the 0th bit.
40 )))
41 |(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2
42 |T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value)
43 |T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value)
44 |TNS|TNSddddd|0~~99255|(((
45 Timer Preset Value
46
47 First two digits is for file number
48
49 For example, TNS99255 represents file number T99, address 255.
50 )))
51 |TNP|TNPddddd|0~~99255|(((
52 Timer Accumulator Value
53
54 First two digits is for file number
55
56 For example, TNP99255 represents file number T99, address 255.
57 )))
58 |C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value)
59 |C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value)
60 |CNS|CNSddddd|0~~99255|(((
61 Counter Preset Value
62
63 First two digits is for file number
64
65 For example, CNS99255 represents file number C99, address 255.
66 )))
67 |CNP|CNPddddd|0~~99255|(((
68 Counter Accumulator Value
69
70 First two digits is for file number
71
72 For example, CNP99255 represents file number C99, address 255.
73 )))
74 |N7|N7ddd|0~~255|Only able to communicate with file number N7
75 |NN|NNddd|0~~99255|(((
76 Integer data file
77
78 First two digits is for file number
79
80 For example, NN99255 represents file number N99, address 255.
81 )))
82 |(% rowspan="3" %)Double Word|F8|F8ddd|0~~255|Only able to communicate with file number N7
83 |FN|FNddddd|0~~99255|(((
84 Floating point data file
85
86 First two digits is for file number
87
88 For example, FN99255 represents file number F99, address 255.
89 )))
90 |LN|LNddddd|0~~99255|Long
91
92 **3) Cable Wiring**
93
94 {{id name="IABRS232.gif"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_25f468ac2575918b.gif||alt="ABRS232.gif" height="247" width="400"]]
95
96 {{id name="cke_bm_5621S"/}}{{id name="HMicroLogixA0Protocol"/}}** **
97
98 == {{id name="HMicroLogixA0Serial"/}}**MicroLogix Serial** ==
99
100 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
101
102 **1)V-BOX setting**
103
104 |**Item**|**Settings**|**Note**
105 |Protocol|Allen-Bradley DF1 Advanced|
106 |Connection|RS232|
107 |Baud rate|19200|
108 |Data bit|8|
109 |Parity|None|
110 |Stop bit|1|
111 |PLC station No.|1|
112
113 **2)Address List**
114
115 |**Type**|**Device registers**|**Format**|**Range**|**Note**
116 |(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15|
117 |O|O d.d|0.0~~255.15|
118 |B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex)
119 |S|S d.d|0.0~~255.15|
120 |N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex)
121 |(% rowspan="9" %)Word|S|S d|0~~255|
122 |TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex)
123 |TP|TP nnhh|0~~ffff
124 |CS|CS nnhh|0~~ffff
125 |CP|CP nnhh|0~~ffff
126 |N|N nnhh|0~~ffff
127 |C|C nnhh|0~~ffff
128 |T|T nnhh|0~~ffff
129 |R|R nnhh|0~~ffff
130
131 {{id name="Iimage-20220824152928-1.png"/}}**3)Configure the communication protocol**[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_3e790cb11779d822.png||alt="image-20220824152928-1.png" height="1010" width="1920"]]
132
133 **4)Configure the communication protocol**
134
135 {{id name="Iimage-20220824110724-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_faf98d75129f59e9.png||alt="image-20220824110724-1.png" height="326" width="548"]]
136
137 == {{id name="HMicro850_FreeTagEthernet"/}}**Micro850_FreeTag Ethernet** ==
138
139 This example introduces the establishment of Ethernet communication between Wecon V-box and CompactLogix L1769. It is introduced through three parts: PLC software configuration, V-box software configuration, and hardware wiring.
140
141 **Software configuration of PLC**
142
143 **1)PLC programming software**
144
145 {{id name="Iimage-20220714162600-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_dba9ec452ee41c5.png||alt="image-20220714162600-1.png" height="527" width="437"]]
146
147 **2)New PLC project**
148
149 Click New Project and select the PLC model.
150
151 {{id name="Iimage-20220714162617-2.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_54a31bd52186c53c.png||alt="image-20220714162617-2.png" height="434" width="803"]]
152
153
154
155 {{id name="Iimage-20220714162652-4.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_5d52824614585e13.png||alt="image-20220714162652-4.png" height="591" width="732"]]
156
157 **3)Set Ethernet parameters**
158
159 Follow the steps below to configure Ethernet parameters
160
161 PLC IP address:192.168.40.101
162
163 default gateway:192.168.40.1
164
165 subnet mask:255.255.255.0
166
167 {{id name="Iimage-20220714162713-5.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_cea23d115ccaaa63.png||alt="image-20220714162713-5.png" height="868" width="1919"]]
168
169
170
171 **V-box software configuration**
172
173 **1)V-box programming software**
174
175 {{id name="Iimage-20220714162725-6.png"/}} [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_65a3ecdb93694966.png||alt="image-20220714162725-6.png" height="441" width="731"]]
176
177 **2)Configure device network**
178
179 {{id name="Iimage-20220714115308-8.png"/}}Click the Configuration Download button[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ad012010777dc078.png||alt="image-20220714115308-8.png" height="22" width="15"]] , It is used to configure the device network, update the device time, obtain the device machine code, check the device network, etc.
180
181 In the example below, the IP address of V-Box is configured as 192.168.40.66, and the networking method is 4G connection
182
183 {{id name="Iimage-20220714162737-7.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_a2b83bb70af39146.png||alt="image-20220714162737-7.png" height="736" width="1370"]]
184
185
186
187 **3)V-net add device**
188
189 {{id name="Iimage-20220714162752-8.png"/}}Open VNET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the device machine code/product code, device password, and device alias to add the device.   [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_bff671605e8a8f53.png||alt="image-20220714162752-8.png" height="793" width="1470"]]
190
191
192
193 **4)Set communication port parameters**
194
195 In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol.
196
197 {{id name="Iimage-20220714162805-9.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_acc2b9d2e75a2791.png||alt="image-20220714162805-9.png" height="792" width="1471"]]
198
199 The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818.
200
201 {{id name="Iimage-20220824164346-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_68274e3dec90a425.png||alt="image-20220824164346-1.png" height="553" width="991"]]
202
203 {{id name="Iimage-20220714143838-2.png"/}}{{id name="Iimage-20220714162827-11.png"/}}After adding the protocol Allen-BradleyMicro850_FreeTag, click[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_bff5c072d145b8c.png||alt="image-20220714143838-2.png" height="27" width="30"]] icon add label.[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_c8c6550cf2a1e96b.png||alt="image-20220714162827-11.png" height="574" width="1054"]]
204
205 **5)Engineering production**
206
207 According to your own needs, use the V-NET client software to edit the required data monitoring points.
208
209 {{id name="Iimage-20220714162841-12.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ce5d38d21d89c3e3.png||alt="image-20220714162841-12.png" height="478" width="1614"]]
210
211 **hardware connection**
212
213 **1)Hardware wiring diagram**
214
215 This example introduces Wecon V-box with Allen-Bradley L1769 PLC to establish communication through Ethernet. The connection diagram is as follows:
216
217 {{id name="Iimage-20220714162856-13.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_43bb560ec0411230.png||alt="image-20220714162856-13.png" height="322" width="693"]]
218
219 The above are all the steps for establishing Ethernet communication between Wecon V-box with CompactLogix L1769 PLC.
220
221 == {{id name="HMicro850_FreeTagEthernetFF08newFF09"/}}**Micro850_FreeTag Ethernet(new)** ==
222
223 This example introduces the establishment of Ethernet communication between Wecon V-box and 2080-LC50-48QWB,Micro850. It is introduced through three parts: PLC software configuration, V-box software configuration.
224
225 **Software configuration of PLC**
226
227 **1)PLC programming software:Connected Components Workbench™**
228
229 {{id name="Isoftware.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_3711a5e1c2a7f00f.png||alt="software.png" height="485" width="378"]]
230
231 **2)New PLC project**
232
233 Click New Project and select the PLC model.
234
235 {{id name="Iprojectcreate.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_6c0da8fb6efff6c5.png||alt="project create.png" height="806" width="901"]]
236
237 **3)Set Ethernet parameters**
238
239 Follow the steps below to configure Ethernet parameters
240
241 PLC IP address:192.168.39.56
242
243 default gateway:192.168.39.1
244
245 subnet mask:255.255.255.0
246
247 {{id name="IEthernet.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_c79ec9884ea8fe28.png||alt="Ethernet.png" height="656" width="935"]]
248
249 **4)connect PLC**
250
251 **When downloading the setting, need to change the status of the PLC to PRG**
252
253 {{id name="Iconneabplc.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_85b0c5a416b2a77d.png||alt="conne ab plc.png" height="765" width="696"]]
254
255 **V-box software configuration**
256
257 **1)V-box programming software**
258
259 {{id name="Iv-netclientvers.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ac791772fd34e1a0.png||alt="v-net client vers.png" height="277" width="281"]]
260
261 **2)Set communication port parameters**
262
263 In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol.
264
265 {{id name="IV-NET_Client_t2Rg2wpSoY.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_6af9507fa57e3f6e.png||alt="V-NET_Client_t2Rg2wpSoY.png" height="791" width="1086"]]
266
267 The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818.
268
269 {{id name="IV-NET_Client_communication.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ecdfe646ccfb5f9f.png||alt="V-NET_Client_communication.png" height="601" width="894"]]
270
271 {{id name="cke_bm_1950S"/}}Export variables from PLC, select CSV file, comma delimited.
272
273 {{id name="Iexport1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_306bf46ce1a5a0d3.png||alt="export1.png" height="613" width="604"]]
274
275 {{id name="ICCW.Shell_E5Cwj4tUL3.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_c9e367a57c3e9201.png||alt="CCW.Shell_E5Cwj4tUL3.png" height="278" width="915"]]
276
277 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FV-BOX2FV-Net2FTraining2F12520Communication2FWebHome2Fimage-20220714143838-2.png3Frev3D1.1"/}}After adding the protocol Allen-BradleyMicro850_FreeTag, click[[image:https://docs.we-con.com.cn/bin/download/V-BOX/V-Net/Training/1%20Communication/WebHome/image-20220714143838-2.png?rev=1.1||alt="image-20220714143838-2.png" height="38" width="76"]] icon add label.
278
279 {{id name="IV-NET_Client_TNBuqy7T5r.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_820dbb012d8d584d.png||alt="V-NET_Client_TNBuqy7T5r.png" height="449" width="952"]]
280
281 **3)Engineering production**
282
283 According to your own needs, use the V-NET client software to edit the required data monitoring points.
284
285 {{id name="IV-NET_Client_KOR0AHEA4M.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_32fe301a04258d72.png||alt="V-NET_Client_KOR0AHEA4M.png" height="182" width="825"]]
286
287
288
289 == {{id name="HEthernetDF1"/}}**Ethernet DF1** ==
290
291 [[download link>>url:https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Allen-Bradley%20Ethernet%20DF1.zip]]