Wiki source code of Rockwell

Version 25.1 by Molly on 2024/11/04 18:10

Show last authors
1 = {{id name="HRockwell"/}}**Rockwell** =
2
3 == {{id name="HDF1"/}}**DF1** ==
4
5 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5
6
7 **HMI Settings**
8
9 |=Item|=Recommended |=Note
10 |=Protocol|Rockwell DF1|
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 **PLC Settings**
20
21 DF1 Full Duplex protocol and CRC error check
22
23 **Address List**
24
25 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
26 |(% rowspan="5" %)Bit|I|I ddd.dd|0.0~~255.15|Only able to communicate with file number I1
27 |O|O ddd.dd|0.0~~255.15|Only able to communicate with file number O0
28 |B|B nnhh.dd|0.0~~ffff.15|Only able to communicate with file number B3
29 |S|S ddd.dd|0.0~~255.15|Only able to communicate with file number S2
30 |N|N nnhh.dd|0.0~~ffff.15|Only able to communicate with file number N7
31 |(% rowspan="6" %)Word|S|S ddd|0~~255|Only able to communicate with file number S2
32 |TS|TS nnhh|0~~ffff|Only able to communicate with file number T4 (Timer Preset Value)
33 |TP|TP nnhh|0~~ffff|Only able to communicate with file number T4 (Timer Accumulator Value)
34 |CS|CS nnhh|0~~ffff|Only able to communicate with file number C5 (Counter Preset Value)
35 |CP|CP nnhh|0~~ffff|Only able to communicate with file number C5 (Counter Accumulator Value)
36 |N|N nnhh|0~~ffff|Only able to communicate with file number N7
37
38 **Cable Wiring**
39
40 {{id name="IAB.gif"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c884ca361be80135.gif||alt="AB.gif" height="247" width="400"]]
41
42 == {{id name="HDF1Advanced"/}}**DF1 Advanced** ==
43
44 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5
45
46 **HMI Settings**
47
48 |=Item|=Recommended |=Note
49 |=Protocol|Rockwell DF1 Advanced|
50 |=Connection|RS232|
51 |=Baud rate|19200|
52 |=Stop bits|1|
53 |=Data bits|8|
54 |=Parity|None|
55 |=PLC Station No.|1|
56 |=HMI Station No.|0|
57
58 **PLC Settings**
59
60 DF1 Full Duplex protocol and CRC error check
61
62 **Address List**
63
64 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
65 |(% rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1
66 |O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0
67 |S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2
68 |B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3
69 |BN|BNddddd.dd|0.0~~99255.15|(((
70 Bit data file B0~~B99
71
72 First two digits is for file number
73
74 For example, BN13001.00 represents file number B13, address 001, the 0th bit.
75 )))
76 |N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7
77 |NN|NNddddd.dd|0.0~~99255.15|(((
78 Integer data file bit format N0~~N99
79
80 First two digits is for file number
81
82 For example, NN13001.00 represents file number N13, address 001, the 0th bit.
83 )))
84 |(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2
85 |T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value)
86 |T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value)
87 |TNS|TNSddddd|0~~99255|(((
88 Timer Preset Value
89
90 First two digits is for file number
91
92 For example, TNS99255 represents file number T99, address 255.
93 )))
94 |TNP|TNPddddd|0~~99255|(((
95 Timer Accumulator Value
96
97 First two digits is for file number
98
99 For example, TNP99255 represents file number T99, address 255.
100 )))
101 |C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value)
102 |C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value)
103 |CNS|CNSddddd|0~~99255|(((
104 Counter Preset Value
105
106 First two digits is for file number
107
108 For example, CNS99255 represents file number C99, address 255.
109 )))
110 |CNP|CNPddddd|0~~99255|(((
111 Counter Accumulator Value
112
113 First two digits is for file number
114
115 For example, CNP99255 represents file number C99, address 255.
116 )))
117 |N7|N7ddd|0~~255|Only able to communicate with file number N7
118 |NN|NNddd|0~~99255|(((
119 Integer data file
120
121 First two digits is for file number
122
123 For example, NN99255 represents file number N99, address 255.
124 )))
125 |(% rowspan="3" %)Double Word|F8|F8ddd|0~~255|Only able to communicate with file number F8
126 |FN|FNddddd|0~~99255|(((
127 Floating point data file
128
129 First two digits is for file number
130
131 For example, FN99255 represents file number F99, address 255.
132 )))
133 |LN|LNddddd|0~~99255|Long
134
135 **Cable Wiring**
136
137 {{id name="IAB.gif-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c884ca361be80135.gif||alt="AB.gif" height="247" width="400"]]
138
139 == {{id name="HMicroLogix"/}}**MicroLogix** ==
140
141 MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5
142
143 **HMI Settings**
144
145 |**Item**|**Settings**|**Note**
146 |Protocol|Allen-Bradlley MicroLogix|
147 |Connection|RS232|
148 |Baud rate|19200|
149 |Data bit|8|
150 |Parity|None|
151 |Stop bit|1|
152 |PLC station No.|1|
153
154 **Address List**
155
156 |**Type**|**Device registers**|**Format**|**Range**|**Note**
157 |(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15|
158 |O|O d.d|0.0~~255.15|
159 |B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex)
160 |S|S d.d|0.0~~255.15|
161 |N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex)
162 |(% rowspan="9" %)Word|S|S d|0~~255|
163 |TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex)
164 |TP|TP nnhh|0~~ffff
165 |CS|CS nnhh|0~~ffff
166 |CP|CP nnhh|0~~ffff
167 |N|N nnhh|0~~ffff
168 |C|C nnhh|0~~ffff
169 |T|T nnhh|0~~ffff
170 |R|R nnhh|0~~ffff
171
172 **Cable Wiring**
173
174 {{id name="I12.PLCProtocol_html_58205bdf82c06d4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_32d8ab10ec374ea6.png||alt="12.PLC Protocol_html_58205bdf82c06d4.png" height="307" width="500"]]
175
176 == {{id name="HMicroLogix1200"/}}**MicroLogix 1200** ==
177
178 The operational address is determined by the connection of Allen-Bradley PLC to HMI. For extension modules or other special conditions, refer to allen-Bradley PLC instruction manual. The following is an example of allen-bradley MicroLogix1200.
179
180 * **Bit address I:** The address ranges from 0.0 to 255.15. The value of the data before the decimal point ranges from 0 to 255 (decimal). The value from 0 to 15 after the decimal point is the sub address (decimal).
181 * **Bit address B:** The address ranges from 000.0 to fff.15. The first f from left to right represents the block number (hexadecimal); The second and third f from left to right represent the word address (hexadecimal). The value 0 to 15 after the decimal point reprensents the sub address (decimal).
182 * **Word address S:** The word address ranges from 0 to 255 (decimal).
183 * **Word address TS:** The address ranges from 000.0 to ffff. The first and second f from left to right represents the block number (hexadecimal); The third and fourth f from left to right represent the word address (hexadecimal).
184
185 **✎Note: **Register address TP, CS, CP, N, F and TS address edit are same. D indicates decimal, and F indicates hexadecimal. Different PLC models may support different registers. See the following table.
186
187 |**PLC bit address type**|**Address format**|**Address range**
188 |I|dd.dd|I 0.0 ~~ 255.15
189 |O|dd.dd|O 0.0 ~~ 255.15
190 |B|fff.dd|B 000.0 ~~ fff.15
191 |S|dd.dd|S 0.0 ~~ 255.15
192 |N|ffff.dd|N 000.0 ~~ fff.15
193 |**PLC word address type**|**Address format**|**Address range**
194 |S|ddd|S0 ~~ 255
195 |TS|ffff|TS0 ~~ FFFF
196 |TP|ffff|TP0 ~~ FFFF
197 |CS|ffff|CS0 ~~ FFFF
198 |CP|ffff|CP0 ~~ FFFF
199 |N|ffff|N0 ~~ FFFF
200 |F|ffff|F0 ~~ FFFF
201
202 == **Ethernet/IP DF1** ==
203
204 Supported Series: Rockwell MicroLogix 1100, 1400, SLC5/05 Ethernet port. MicroLogix1000,1200,1500,SLC 5/03, 5/04 with 1761-NET-ENI
205
206 |**Items**|**Settings**|**Note**
207 |Protocol|Rockwell Ethernet/IP DF1|
208 |Connection|Ethernet|
209 |Port No.|44818|
210 |PLC station No.|1|
211
212 **Address List**
213
214 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
215 |(% rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1
216 |O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0
217 |S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2
218 |B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3
219 |BN|BNddddd.dd|0.0~~99255.15|(((
220 Bit data file B0~~B99
221
222 First two digits is for file number
223
224 For example, BN13001.00 represents file number B13, address 001, the 0th bit.
225 )))
226 |N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7
227 |NN|NNddddd.dd|0.0~~99255.15|(((
228 Integer data file bit format N0~~N99
229
230 First two digits is for file number
231
232 For example, NN13001.00 represents file number N13, address 001, the 0th bit.
233 )))
234 |(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2
235 |T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value)
236 |T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value)
237 |TNS|TNSddddd|0~~99255|(((
238 Timer Preset Value
239
240 First two digits is for file number
241
242 For example, TNS99255 represents file number T99, address 255.
243 )))
244 |TNP|TNPddddd|0~~99255|(((
245 Timer Accumulator Value
246
247 First two digits is for file number
248
249 For example, TNP99255 represents file number T99, address 255.
250 )))
251 |C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value)
252 |C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value)
253 |CNS|CNSddddd|0~~99255|(((
254 Counter Preset Value
255
256 First two digits is for file number
257
258 For example, CNS99255 represents file number C99, address 255.
259 )))
260 |CNP|CNPddddd|0~~99255|(((
261 Counter Accumulator Value
262
263 First two digits is for file number
264
265 For example, CNP99255 represents file number C99, address 255.
266 )))
267 |N7|N7ddd|0~~255|Only able to communicate with file number N7
268 |NN|NNddd|0~~99255|(((
269 Integer data file
270
271 First two digits is for file number
272
273 For example, NN99255 represents file number N99, address 255.
274 )))
275 |(% rowspan="3" %)Double Word|F8|F8ddd|0~~255|Only able to communicate with file number F8
276 |FN|FNddddd|0~~99255|(((
277 Floating point data file
278
279 First two digits is for file number
280
281 For example, FN99255 represents file number F99, address 255.
282 )))
283 |LN|LNddddd|0~~99255|Long
284
285 **PLC Setting:**
286
287 1.Open the RSLinx Classic Lite software and click [Configure Drivers...] in [Communications].[[image:1.png]]
288
289 2.Click the drop-down menu and select EtherNet/IP driver[[image:2.png]]
290
291 3.Click Add New and a pop-up window will pop up. Name the driver and click [OK] in the pop-up window.[[image:3.png]]
292
293 4.The configuration driver window pops up., click on the correct network adapter option (such as the ASIX USB to Fast Ethernet Family Adapter option in this picture), and click OK
294
295 [[image:4.png]]
296
297 5.Click the [Close] button.[[image:5.png]]
298
299 6.Click the [RSWho] button.[[image:6.png]]
300
301 7.Pop up the RS Who window, indicating that the driver has been added successfully.[[image:7.png]]
302
303 8.Open the RSLogix 500Pro software and select [System Comms...] in the [Comms] option.[[image:8.jpg]]
304
305 9.Select the driver you have created. All device nodes in the same LAN as the computer will be scanned. Select the PLC to be connected and click [OK].
306
307 [[image:9.png]]
308
309 10.Click Comms [Go Online].[[image:10.png]]
310
311 11.Click [YES] in the pop-up window.[[image:11.png]]
312
313 12.Enter online mode.[[image:14.jpg]]
314
315 **Cable Wiring**
316
317 (% style="text-align:center" %)
318 [[image:Ethernet.png]]
319
320
321 == **EtherNet/IP(CompactLogix Series)** ==
322
323 Supported Series: Rockwell CompactLogix Series Ethernet
324
325 |**Items**|**Settings**|**Note**
326 |Protocol|Rockwell EtherNet/IP (CompactLogix Series)|
327 |Connection|Ethernet|
328 |Port No.|44818|
329 |PLC station No.|1|
330
331 **Support Variable Type**
332
333 |PLC data type|Bit/Word|PIStudio data format|Memo
334 |BOOL|Boolean|Bit object|
335 |BitArray| | |
336 |SINT| | |-128-127
337 |USINT| | |0~~255
338 |INT|Integer|16-bit signed, ASCll|-32768~~32767
339 |UINT| | |0~~65535
340 |DINT|Double integer|32-bit signed|-2^31~~(2^31-1)
341 |UDINT| | |0~~4294967295
342 |REAL|Single Precision Float|32-bit floating|
343 |LINT|Long integer|64-bit signed|
344 |ULINT|Long integer|64-bit unsigned|
345 |LREAL|Double Precision Float|64-bit double|
346 |STRING| | |Enable Read DWord
347
348 **PLC Setting:**
349
350 1.Open the RSLinx Classic Lite software and click [Configure Drivers...] in [Communications].
351
352 [[image:1726907484077-900.png]]
353
354 2.Click the drop-down menu and select EtherNet/IP driver
355
356 [[image:1726907484081-522.png]]
357
358 3.Click Add New and a pop-up window will pop up. Name the driver and click [OK] in the pop-up window.
359
360 [[image:1726907484084-295.png]]
361
362 4.The configuration driver window pops up., click on the correct network adapter option (such as the ASIX USB to Fast Ethernet Family Adapter option in this picture), and click [OK].
363
364 [[image:1726907484085-985.png]]
365
366 5.Click the [Close] button
367
368 [[image:1726907484087-419.png]]
369
370 6.Open Stuido5000 and create a new project or open an existing project.
371
372 To create a new project: click [New Project].
373
374 (% style="text-align:center" %)
375 [[image:1726907578613-886.png]]
376
377 7.Click the [1769-L16ER-BB1B]→ Edit Project Name → Select the file storage location → [Next]
378
379 (% style="text-align:center" %)
380 [[image:1726907578645-890.png]]
381
382 8. Select the software version →Select [Expansion I/O] number→ Security Authority → Click [Finish].
383
384 The software version must be the same as the PLC firmware version, and the Security Authority protection should be selected according to personal needs.
385
386 (% style="text-align:center" %)
387 [[image:1726907578647-323.png]]
388
389 **~ Create a new tag**
390
391 1.Click the drop-down menu on the left of [Controller ABcs]→ Right-click [Controller Tags] → Click [New tag].
392
393 [[image:1726907578648-590.png]]
394
395 2.Input tag name → Select tag type → Create
396
397 (% style="text-align:center" %)
398 [[image:1726907578652-543.png]]
399
400 Establishing communication
401
402 1.Click [Communications]→Click[Who Active].
403
404 (% style="text-align:center" %)
405 [[image:6.jpg]]
406
407 2.Select the drive → Select the corresponding PLC →Click [Go Online].
408
409 The driver is a new created driver from step 1.2
410
411 (% style="text-align:center" %)
412 [[image:1726908219964-183.png]]
413
414 3.Click [Download]
415
416 (% style="text-align:center" %)
417 [[image:1726908219966-477.png]]
418
419 4.Click [Download]→ [YES].
420
421 (% style="text-align:center" %)
422 [[image:1726908219968-250.png]]
423
424
425 (% style="text-align:center" %)
426 [[image:1726908219970-794.png]]
427
428
429 **Export Tags**
430
431 1.Click the drop-down menu on the left of [Controller ABcs]→Right-click [Controller Tags]→ Click [Export Tags].
432
433 (% style="text-align:center" %)
434 [[image:11.jpg]]
435
436 2.Edit the tag file name → Select the file storage location → [Export].
437
438 (% style="text-align:center" %)
439 [[image:1726908448582-442.png]]
440
441 **HMI Setting:**
442
443
444 **~ New project**
445
446 1.[Home]→[New]→[New project]→Set the name,series and model of HMI→[Next]→[Screen style] →[OK].
447
448 [[image:1727161664493-505.png]]
449
450 **Communication configuration**
451
452 1.[Project]→[Communication]→[Setting]
453
454 [[image:1726909065716-860.png]]
455
456 2.Choose protocol:
457
458 Device type [Rockwell]→[Rockwell EtherNet/IP(CompactLogix Series)]→[OK]
459
460 (% style="text-align:center" %)
461 [[image:1726909065723-657.png]]
462
463 3.[Setting]→[PLC IP Address]→[OK]→[Labels manage].
464
465 (% style="text-align:center" %)
466 [[image:1726909065724-657.png]]
467
468 4.Tags import:
469
470 [Import Tags From File]→Choose the .CSV file→[Open]→[Save]→[OK]
471
472 (% style="text-align:center" %)
473 [[image:1726909065726-124.png]]
474
475 = Rockwell Micro850 Series =
476
477 1.Open Connected Components Workbench and create a new project or open an existing project.
478
479 To create a new project: click [New Project]→Edit project name→Click [Browse]select project storage location→Click [Create].
480
481 [[image:1730714903819-264.png]]
482
483
484 2.Click the [Controllers]→ [Micro850] → Select device model → [Add To Project].
485
486 [[image:1730714903824-934.png]]
487
488
489 3. Double click [Global Variables]→Right click on a blank space in the table→ Click [Add Variable].
490
491 [[image:1730714903826-298.png]]
492
493
494 4.Right click[Micro850]→ Click [Properties].
495
496 [[image:1730714903828-952.png]]
497
498 5.Select Controller → Ethernet →Configure the IP address of the PLC.
499
500 [[image:1730714903830-866.png]]
501
502
503 6.Click [Download]→Choose your device→Click[OK].
504
505 [[image:1730714903835-960.png]]
506
507
508 7.Click[Download].
509
510 [[image:1730714903837-636.png]]
511
512 8. Right click [Micro850]→Click [Export]→Click [Variables].
513
514 [[image:1730714903838-538.png]]
515
516 9.Edit the tag file name → Select the file storage location → [Export].
517
518 [[image:1730714903840-999.png]]