Wiki source code of Rockwell

Version 19.1 by Molly on 2024/09/21 17:12

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="HEtherNet2FIP28CompactLogixSeries29"/}}**EtherNet/IP(CompactLogix Series)** ==
177
178 Allen-Brandly Compact Logix Free Tag
179
180 **HMI Settings**
181
182 |**Items**|**Settings**|**Note**
183 |Protocol|EtherNet/IP(CompactLogix Series)|
184 |Connection|Ethernet|
185 |Port No.|44818|
186
187 **PLC Setting**
188
189 Create new tags
190
191 {{id name="I12.PLCProtocol_html_a748a27dcf7f1124.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_75d3f4097ac67d8e.png||alt="12.PLC Protocol_html_a748a27dcf7f1124.png" height="411" width="700"]]
192
193 Export tags to CSV file. ([Tools] » [Export] » [Tags and Logic Comments])
194
195 {{id name="I12.PLCProtocol_html_151379170bb8ff3e.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_39bb299de26a0af0.png||alt="12.PLC Protocol_html_151379170bb8ff3e.png" height="352" width="700"]]
196
197 Import labels, please open [Communication] window and click [Import label];
198
199 Select csv file, all tags will be displayed as belows;
200
201 {{id name="I12.PLCProtocol_html_af192e54dee96f38.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_4216defdc24cba39.png||alt="12.PLC Protocol_html_af192e54dee96f38.png" height="586" width="700"]]
202
203 **✎Note:**
204
205 Because in different region, the separation symbol is different, we suggest you check this before you want to import your tags. To open csv file as text format.
206
207 {{id name="I12.PLCProtocol_html_33df1d63ebe53726.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_24f4d658173f88a9.png||alt="12.PLC Protocol_html_33df1d63ebe53726.png" height="206" width="700"]]
208
209 The directory of changing system settings: [Control Panel] -> [Date, Time, Language,and Regional Options] -> [Change the format of numbers, dates, and times]->[Customize]-> [List separator]. Please select [,] and export CSV file after setting.
210
211 **Communication settings in HMI**
212
213 Enable HMI Ethernet in [Project Settings];
214
215 {{id name="I12.PLCProtocol_html_43b671f18153910d.png-5"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_a98ee09dac36eba3.png||alt="12.PLC Protocol_html_43b671f18153910d.png" height="106" width="400"]]
216
217 Set PLC IP in [Device IP] settings;
218
219 {{id name="I12.PLCProtocol_html_27870d373581892e.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_10385ddd81c8baff.png||alt="12.PLC Protocol_html_27870d373581892e.png" height="206" width="600"]]
220
221 **Cable Wiring**
222
223 {{id name="I12.PLCProtocol_html_2297240b57346b2a.png-3"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ac8ece9a26719fda.png||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="400"]]
224
225 == {{id name="HMicroLogix1200"/}}**MicroLogix 1200** ==
226
227 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.
228
229 * **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).
230 * **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).
231 * **Word address S:** The word address ranges from 0 to 255 (decimal).
232 * **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).
233
234 **✎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.
235
236 |**PLC bit address type**|**Address format**|**Address range**
237 |I|dd.dd|I 0.0 ~~ 255.15
238 |O|dd.dd|O 0.0 ~~ 255.15
239 |B|fff.dd|B 000.0 ~~ fff.15
240 |S|dd.dd|S 0.0 ~~ 255.15
241 |N|ffff.dd|N 000.0 ~~ fff.15
242 |**PLC word address type**|**Address format**|**Address range**
243 |S|ddd|S0 ~~ 255
244 |TS|ffff|TS0 ~~ FFFF
245 |TP|ffff|TP0 ~~ FFFF
246 |CS|ffff|CS0 ~~ FFFF
247 |CP|ffff|CP0 ~~ FFFF
248 |N|ffff|N0 ~~ FFFF
249 |F|ffff|F0 ~~ FFFF
250
251 == **Ethernet/IP DF1** ==
252
253 Supported Series: Rockwell MicroLogix 1100, 1400, SLC5/05 Ethernet port. MicroLogix1000,1200,1500,SLC 5/03, 5/04 with 1761-NET-ENI
254
255 |**Items**|**Settings**|**Note**
256 |Protocol|Rockwell Ethernet/IP DF1|
257 |Connection|Ethernet|
258 |Port No.|44818|
259 |PLC station No.|1|
260
261 **Address List**
262
263 |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note
264 |(% rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1
265 |O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0
266 |S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2
267 |B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3
268 |BN|BNddddd.dd|0.0~~99255.15|(((
269 Bit data file B0~~B99
270
271 First two digits is for file number
272
273 For example, BN13001.00 represents file number B13, address 001, the 0th bit.
274 )))
275 |N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7
276 |NN|NNddddd.dd|0.0~~99255.15|(((
277 Integer data file bit format N0~~N99
278
279 First two digits is for file number
280
281 For example, NN13001.00 represents file number N13, address 001, the 0th bit.
282 )))
283 |(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2
284 |T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value)
285 |T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value)
286 |TNS|TNSddddd|0~~99255|(((
287 Timer Preset Value
288
289 First two digits is for file number
290
291 For example, TNS99255 represents file number T99, address 255.
292 )))
293 |TNP|TNPddddd|0~~99255|(((
294 Timer Accumulator Value
295
296 First two digits is for file number
297
298 For example, TNP99255 represents file number T99, address 255.
299 )))
300 |C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value)
301 |C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value)
302 |CNS|CNSddddd|0~~99255|(((
303 Counter Preset Value
304
305 First two digits is for file number
306
307 For example, CNS99255 represents file number C99, address 255.
308 )))
309 |CNP|CNPddddd|0~~99255|(((
310 Counter Accumulator Value
311
312 First two digits is for file number
313
314 For example, CNP99255 represents file number C99, address 255.
315 )))
316 |N7|N7ddd|0~~255|Only able to communicate with file number N7
317 |NN|NNddd|0~~99255|(((
318 Integer data file
319
320 First two digits is for file number
321
322 For example, NN99255 represents file number N99, address 255.
323 )))
324 |(% rowspan="3" %)Double Word|F8|F8ddd|0~~255|Only able to communicate with file number F8
325 |FN|FNddddd|0~~99255|(((
326 Floating point data file
327
328 First two digits is for file number
329
330 For example, FN99255 represents file number F99, address 255.
331 )))
332 |LN|LNddddd|0~~99255|Long
333
334 **PLC Setting:**
335
336 1.Open the RSLinx Classic Lite software and click [Configure Drivers...] in [Communications].[[image:1.png]]
337
338 2.Click the drop-down menu and select EtherNet/IP driver[[image:2.png]]
339
340 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]]
341
342 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
343
344 [[image:4.png]]
345
346 5.Click the [Close] button.[[image:5.png]]
347
348 6.Click the [RSWho] button.[[image:6.png]]
349
350 7.Pop up the RS Who window, indicating that the driver has been added successfully.[[image:7.png]]
351
352 8.Open the RSLogix 500Pro software and select [System Comms...] in the [Comms] option.[[image:8.jpg]]
353
354 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].
355
356 [[image:9.png]]
357
358 10.Click Comms [Go Online].[[image:10.png]]
359
360 11.Click [YES] in the pop-up window.[[image:11.png]]
361
362 12.Enter online mode.[[image:14.jpg]]
363
364 **Cable Wiring**
365
366 (% style="text-align:center" %)
367 [[image:Ethernet.png]]
368
369
370 = Rockwell EtherNet/IP(CompactLogix Series) =
371
372 Supported Series: Rockwell CompactLogix Series Ethernet
373
374 |**Items**|**Settings**|**Note**
375 |Protocol|Rockwell EtherNet/IP (CompactLogix Series)|
376 |Connection|Ethernet|
377 |Port No.|44818|
378 |PLC station No.|1|
379
380 **Support Variable Type**
381
382 |PLC data type|Bit/Word|PIStudio data format|Memo
383 |BOOL|Boolean|Bit object|
384 |BitArray| | |
385 |SINT| | |-128-127
386 |USINT| | |0~~255
387 |INT|Integer|16-bit signed, ASCll|-32768~~32767
388 |UINT| | |0~~65535
389 |DINT|Double integer|32-bit signed|-2^31~~(2^31-1)
390 |UDINT| | |0~~4294967295
391 |REAL|Single Precision Float|32-bit floating|
392 |LINT|Long integer|64-bit signed|
393 |ULINT|Long integer|64-bit unsigned|
394 |LREAL|Double Precision Float|64-bit double|
395 |STRING| | |Enable Read DWord
396
397 **PLC Setting:**
398
399 1.Open the RSLinx Classic Lite software and click [Configure Drivers...] in [Communications].
400
401 [[image:1726907484077-900.png]]
402
403 2.Click the drop-down menu and select EtherNet/IP driver
404
405 [[image:1726907484081-522.png]]
406
407 3.Click Add New and a pop-up window will pop up. Name the driver and click [OK] in the pop-up window.
408
409 [[image:1726907484084-295.png]]
410
411 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].
412
413 [[image:1726907484085-985.png]]
414
415 5.Click the [Close] button
416
417 [[image:1726907484087-419.png]]
418
419 6.Open Stuido5000 and create a new project or open an existing project.
420
421 To create a new project: click [New Project].
422
423 (% style="text-align:center" %)
424 [[image:1726907578613-886.png]]
425
426 7.Click the [1769-L16ER-BB1B]→ Edit Project Name → Select the file storage location → [Next]
427
428 (% style="text-align:center" %)
429 [[image:1726907578645-890.png]]
430
431 8. Select the software version →Select [Expansion I/O] number→ Security Authority → Click [Finish].
432
433 The software version must be the same as the PLC firmware version, and the Security Authority protection should be selected according to personal needs.
434
435 (% style="text-align:center" %)
436 [[image:1726907578647-323.png]]
437
438 **~ Create a new tag**
439
440 1.Click the drop-down menu on the left of [Controller ABcs]→ Right-click [Controller Tags] → Click [New tag].
441
442 [[image:1726907578648-590.png]]
443
444 2.Input tag name → Select tag type → Create
445
446 (% style="text-align:center" %)
447 [[image:1726907578652-543.png]]
448
449 Establishing communication
450
451 1.Click [Communications]→Click[Who Active].
452
453 (% style="text-align:center" %)
454 [[image:6.jpg]]
455
456 2.Select the drive → Select the corresponding PLC →Click [Go Online].
457
458 The driver is a new created driver from step 1.2
459
460 (% style="text-align:center" %)
461 [[image:1726908219964-183.png]]
462
463 3.Click [Download]
464
465 (% style="text-align:center" %)
466 [[image:1726908219966-477.png]]
467
468 4.Click [Download]→ [YES].
469
470 (% style="text-align:center" %)
471 [[image:1726908219968-250.png]]
472
473
474 (% style="text-align:center" %)
475 [[image:1726908219970-794.png]]
476
477
478 **Export Tags**
479
480 1.Click the drop-down menu on the left of [Controller ABcs]→Right-click [Controller Tags]→ Click [Export Tags].
481
482 (% style="text-align:center" %)
483 [[image:11.jpg]]
484
485 2.Edit the tag file name → Select the file storage location → [Export].
486
487 (% style="text-align:center" %)
488 [[image:1726908448582-442.png]]
489
490 **HMI Setting:**
491
492 ① [Project]→[Communication]→[Setting]
493
494 [[image:1726909065716-860.png]]
495
496 ② Choose protocol:
497
498 Device type [Rockwell]→[Rockwell EtherNet/IP(CompactLogix Series)]→[OK]
499
500 (% style="text-align:center" %)
501 [[image:1726909065723-657.png]]
502
503 ③[Setting]→[PLC IP Address]→[OK]→[Labels manage].
504
505 (% style="text-align:center" %)
506 [[image:1726909065724-657.png]]
507
508 ④Tags import:
509
510 [Import Tags From File]→Choose the .CSV file→[Open]→[Save]→[OK]
511
512 (% style="text-align:center" %)
513 [[image:1726909065726-124.png]]
514
515 **Project making**
516
517 ①Using PIStudio to program a HMI project depending on the requirements.
518
519 (% style="text-align:center" %)
520 [[image:1726909065727-501.png]]
521
522 ②After programming[Compile], you can download the project into HMI when compilation complete.
523
524 [[image:1726909065727-109.png]]