www.plcworld.cn http://www.plcworld.cn RSLinx ..............................................................1 1.1 RSLinx ..................................................................................................................... 2 1.2 RSLinx ............................................................................................ 2 1.2.1 DF1 .................................................................................. 2 1.2.2 EtherNet/IP ...................................................................... 7 1.2.3 ControlNet .................................................................... 12 1.2.4 DeviceNet .............................................................................. 16 RSLogix5000 ...........................................................22 2.1 RSLogix5000 ............................................................................................ 23 2.1.1 ..................................................................................... 23 2.1.2 ................................................................................. 32 2.1.3 ................................................................................................. 36 2.1.4 I/O ................................................................................................................ 53 2.2 RSLogix5000 .......................................................................................... 62 2.2.1 ControlLogix ...................................................................... 62 2.2.2 ControlLogix .......................................................................... 85 2.2.3 ...................................................................... 93 RSView 3.1 3.2 ...........................................................125 RSView32 ............................................................................................ 125 PanelView Plus .................................................................................... 152 3.2.1 RSView Studio for ME ................................................................ 152 3.2.2 ............................................................................................... 154 3.2.3 ............................................................................................... 156 3.2.4 ........................................................................................................ 171 3.2.5 ........................................................................................................... 175 3.2.6 Startup ................................................... 180 .........................................................................183 4.1 EtherNet/IP .................................................................................................. 184 4.1.1 EtherNet/IP ..................................................................................... 184 4.1.2 CompactLogix EtherNet/IP Point I/O ........................................... 185 4.1.3 CompactLogix EtherNet/IP PowerFlex ............................ 191 1 www.plcworld.cn http://www.plcworld.cn 4.2 ControlNet ................................................................................................... 194 4.2.1 ControlNet I/O .......................................................................... 194 4.2.2 ControlLogix FlexLogix ............................................... 201 4.2.3 Keeper ...................................................................................................... 228 4.3 DeviceNet .................................................................................................. 230 4.3.1 DeviceNet ....................................................................................... 230 4.3.2 1769-SDN 1734-POINT I/O ................................................... 231 4.3.3 CompactLogix DeviceNet PowerFlex40....................................... 247 .................................................................254 5.1 5.2 5.3 5.4 5.5 ................................................................................... 258 5.1.1 ........................................................................................... 258 5.1.2 SERCOS .................................................................................. 260 5.1.3 ................................................................................................ 262 5.1.4 ....................................................................................... 265 5.1.5 ........................................................................................... 266 5.1.6 RSLogix5000 ................................................................................... 269 5.1.7 ....................................................................................... 269 ...................................................................................... 272 5.2.1 ................................................................................................... 272 5.2.2 ............................................................................................... 275 5.2.3 ............................................................... 277 .................................................................................................. 279 5.3.1 ........................................................................................ 279 5.3.2 ................................................................................................... 281 .............................................................................................................. 284 5.4.1 1:1 ................................................................................. 284 5.4.2 2:1 ................................................................................ 286 ........................................................................... 288 5.5.1 ............................................................................................... 288 5.5.2 ............................................................................................... 291 : .................................................................................... 293 1 MAJ ......................................................................................... 293 2 MAS .......................................................................................... 294 3 MAG .......................................................................................... 294 4 MATC ................................................................................ 295 5 MAPC .............................................................................. 296 2 www.plcworld.cn http://www.plcworld.cn RSLinx RSLinx ― RSLinx EtherNet/IP ― ControlNet ― ― DF1 RSLinx DeviceNet 1 www.plcworld.cn http://www.plcworld.cn 1.1 RSLinx RSLinx RSLinx AB RSLinx C/C++ OPC DDE DDE/OPC RSLinx RSLinx Gateway OPC AB RSLogix TCP/IP 1-1 RSView RSLinx ControlNet PLC-5 SLC DeviceNet ControlLogix FlexLogix EtherNet/IP CompactLogix 图 1-1 系统结构图 1.2 RSLinx 1.2.1 上位机通过 DF1 网络接入 1. RSLinx Start->Program->Rockwell Software->RSLinx->RSLinx 1-2 2 Custom www.plcworld.cn http://www.plcworld.cn OPC DDE RSWho DDE/OPC 图 1-2 RSLinx 启动界面 2. Drivers Communications->Configure Drivers… 1-3 图 1-3 选择驱动组态 3. Configure Driver Types Drivers 3 Available Driver Types Allen-Bradley Configure www.plcworld.cn http://www.plcworld.cn RS232 DF1 RS-232 DF1 devices 1-4 图 1-4 选择所需驱动程序 4. Add New 1-5 图 1-5 添加新驱动 5. OK 1-6 Auto Configuration Successful ” Auto-Configure 4 www.plcworld.cn http://www.plcworld.cn 图 1-6 自动组态成功 6. RUNNING OK Configure Driver DF1 AB_DF1-1 DF1 Sta:0 COM1: 1-7 图 1-7 驱动已运行 7. Close RSLinx AB_ DF1-1 Communications->RSWho Autobrowse 1-8 5 Refresh www.plcworld.cn http://www.plcworld.cn 图 1-8 扫描 DF1 网络 8. RSWho 1-9 Logix5555 图 1-9 查看控制器信息 9. 1-10 ControlLogix 6 www.plcworld.cn http://www.plcworld.cn ControlNet 图 1-10 浏览 ControlNet 网络 DF1 1.2.2 上位机通过 EtherNet/IP 网络接入 EtherNet/IP 1-11 图 1-11 工业以太网结构图 7 www.plcworld.cn http://www.plcworld.cn 1. Start->Program->Rockwell Software->RSLinx->RSLinx RSLinx 1-12 OPC DDE RSWho DDE/OPC 图 1-12 RSLinx 启动界面 2. Drivers Communications->Configure Drivers… 1-13 图 1-13 组态驱动 8 Configure www.plcworld.cn http://www.plcworld.cn 3. Configure Driver Types Ethernet devices 1-14 Available Driver Types Allen-Bradley 图 1-14 选择驱动组态类型 4. Add New 1-15 图 1-15 命名驱动 5. OK 1-16 IP CompactLogix L35E IP Address 192.168.1.x0 ControlLogix 1756-ENBT IP Address 192.168.1.x1 PC IP Address 192.168.1.x2 PVP IP Address 192.168.1.x3 1794 AENT IP Address 192.168.1.x4 FlexLogix 1788-ENBT IP Address 192.168.1.x5 RESERVED IP Address 192.168.1.x6 192.168.1.x9 9 Station Host Name www.plcworld.cn http://www.plcworld.cn x 图 1-16 添加 IP 地址 6. IP IP address:192.168.1.XXX Subnet mask:255,255,255,0 Default gateway:192.168.1.1 1-17 图 1-17 检查 IP 设置 7. RUNNING OK Configure Driver AB_ETH-1 A-B Ethernet 1-18 Ethernet 图 1-18 驱动程序已运行 10 www.plcworld.cn http://www.plcworld.cn 8. Close RSLinx AB_ ETH-1 Communications->RSWho Autobrowse Refresh 1-19 图 1-19 9. 新组建的 Ethernet 网络 RSWho L55 1-20 图 1-20 10. 1-21 L55 控制器信息 ControlLogix 11 www.plcworld.cn http://www.plcworld.cn ControlNet 图 1-21 查看 ControlNet 网络 EtherNet/IP 1.2.3 上位机通过 ControlNet 网络接入 ControlNet ControlLogix [1] FlexLogix [2] 1-22 ACNR15 [3] PanelView Plus [4] PC [5] 图 1-22 ControlNet 网络结构图 12 FlexEX [6] www.plcworld.cn http://www.plcworld.cn 1. Start->Program->Rockwell Software->RSLinx->RSLinx RSLinx 1-23 OPC DDE RSWho DDE/OPC 图 1-23 RSLinx 启动界面 2. Drivers Communications->Configure Drivers… 1-24 Configure 图 1-24 选择驱动组态 3. Configure Driver Types 1784-PCIC(S) for ControlNet devices Allen-Bradley 13 Available Driver Types 1-25 Driver www.plcworld.cn http://www.plcworld.cn 1784-PCIC(S) 图 1-25 选择驱动类型 4. Add New 1-26 图 1-26 添加新驱动对话框 5. ControlNet OK MAC ID 1-27 1784-PCIC 14 S www.plcworld.cn http://www.plcworld.cn Node Address 1--9 ControlLogix 1756-CNB Node Address 1 FlexLogix 1788-CNCR Node Address 2 1794-ACNR15 Node Address 3 PVP Node Address 4 PC 1784-PCICS Node Address 5 Reserved Node Address 6---9 2 10—19 3 ……………… 5 图 1-27 节点设置对话框 6. OK Configure Driver OSN:00238cb4 Slot:3 RUNNING AB_PCIC-1 CNet Node:7 1-28 图 1-28 驱动程序已经运行 7. Close RSLinx Communications->RSWho 15 www.plcworld.cn http://www.plcworld.cn AB_ PCIC-1 Autobrowse 1-29 图 1-29 配置好的设备 8. ControlLogix RSWho L55 1-30 图 1-30 ControlLogix 控制器 L55 的信息 ControlNet 1.2.4 上位机接入 DeviceNet 网络 DeviceNet 1-31 16 Refresh www.plcworld.cn http://www.plcworld.cn 图 1-31 DeviceNet 网络结构图 1. RSLinx Start->Program->Rockwell Software->RSLinx->RSLinx 1-32 OPC DDE RSWho DDE/OPC 图 1-32 RSLinx 启动界面 17 www.plcworld.cn http://www.plcworld.cn 2. Configure Drivers Communications->Configure Drivers… 1-33 图 1-33 选择驱动组态 3. 1-34 Configure Driver Types Available Driver Types DeviceNet Drivers(1784-PCD/PCIDS,1770-KFD,SDNPT drivers) Driver Allen-Bradley 1784-PCIDS 图 1-34 选择驱动类型 4. DeviceNet Drivers 1784-PCIDS 1-35 DeviceNet Driver Selection 18 Allen-Bradley www.plcworld.cn http://www.plcworld.cn 1784-PCIDS 图 1-35 驱动选择对话框 5. Select 1-36 图 1-36 6. 1784-PCIDS 设备网卡驱动组态 DeviceNet Port Setup PC Node Address 4 Network Baud Rate 125 PC 19 www.plcworld.cn http://www.plcworld.cn OK DeviceNet1 1-36 图 1-36 命名对话框 7. OK Configure Drivers ID:4,Baud Rate:125K-RUNNING DeviceNet(1784-PCIDS),MAC 1-37 图 1-37 驱动程序已经运行 8. Close RSLinx Communications->RSWho DeviceNet1 Refresh 1-38 20 Autobrowse www.plcworld.cn http://www.plcworld.cn 图 1-38 配置好的设备网中所有设备 DeviceNet 21 www.plcworld.cn http://www.plcworld.cn RSLogix5000 ― ― ― ― I/O ― RSLogix5000 22 www.plcworld.cn http://www.plcworld.cn 2.1 RSLogix5000 2.1.1 创建任务、程序和例程 2-1 PartSensor 图 2-1 工艺流程图 1 2 P2 P1 2-2 / PartSensor P1 23 0 1 1 2-3 2 3 www.plcworld.cn http://www.plcworld.cn Press StationActive Stake StationActive Weld StationActive PartSensor StationActive PartPASSED Part_Sensor_Fault_ Indicator StationActive PartFAULT ConveyorOutput(P1) ConveyorOutput(P2) 图 2-2 各个按钮和指示灯的含义 P1 P1 ControlLogix 24 www.plcworld.cn http://www.plcworld.cn PartSensor Press StationActive Stake StationActive Weld StationActive ConveyorOutput(P1) 图 2-3 时序图 1. RSLogix5000 New 图 2-4 RSLogix5000 启动界面 2. File->New New Controller 25 2-4 www.plcworld.cn http://www.plcworld.cn 0 RSLinx ControlLogix Demo RSWho Logix5555 Logix5555 2-5 图 2-5 新建控制器对话框 OK 2-6 26 www.plcworld.cn http://www.plcworld.cn 图 2-6 新建项目资源管理器 ControlLogix I/O Logix5555 3. P1 P1 2-1 表 2-1 控制器 P1 项目组织 … … Assembly … Program_1_Press … Routine_Dispatch Station_1_Press Program_2_Stake Routine_Dispatch Station_2_Stake Routine_Dispatch Program_3_Weld Station_3_Weld Conveyor Conveyor Conveyor Periodic_Dispatcher Station_Dispatcher Station_Dispatcher P1 1,2,3 500ms -- ---- 500ms 50ms ---- 50ms 4. Logix Event 2-2 400ms Continuous P1 Periodic P1 27 www.plcworld.cn http://www.plcworld.cn 表 2-2 控制器 P1 中各任务的属性 Task Type Watchdog ( ) Assembly Continuous Periodic Conveyor Continuous Periodic Periodic_Dispatcher Continuous Periodic 5. Logix RSLogix5000 MainTask 2-6 MainTask MainTask Assembly 6. File->New component->Task Tasks New Task… Conveyor 50ms Periodic Periodic_Dispatcher 28 Properties 2-7 www.plcworld.cn http://www.plcworld.cn 图 2-7 创建新任务 Conveyor 7. 2-8 Assembly New Program Assembly Program_1_Press Program_3_Weld Program_2_Stake 图 2-8 创建新程序 8. Assembly Properties 2-9 Assembly Program Schedule 29 www.plcworld.cn http://www.plcworld.cn 图 2-9 规划程序 9. Assembly Program_1_Press Routine_Dispatch 2-10 Program_1_Press New Ladder Diagram Program_1_Press 图 2-10 创建例程 Station_1_Press Program_1_Press 10. Assembly Program_1_Press Configuration 2-11 Ladder Diagram Program_1_Press Properties Assigned Main 30 Routine_Dispatch www.plcworld.cn http://www.plcworld.cn 图 2-11 指定主例程 11. 12. --- Program_2_Stake Program_3_Weld Conveyor Periodic_Dispatcher 2-12 图 2-12 新建任务、程序和例程 31 www.plcworld.cn http://www.plcworld.cn 13. File->Save 2.1.2 创建标签、结构体和数组 Logix I/O / 1. 2. 1. 2. 3. RSLogix5000 File->Open Controller Tags Tag Name P1 New Tag… P&ID Tag Name PLC Tag Name Call_Program_Value P1 Controller Decimal 32 INT Base 2-13 www.plcworld.cn http://www.plcworld.cn 图 2-13 新建标签 4. 2-14 图 2-14 控制器域标签 5. Conveyor 2-15 33 www.plcworld.cn http://www.plcworld.cn 图 2-15 Conveyor 程序域内标签 6. Station_Dispatcher 2-16 图 2-16 Station_Dispatcher 程序域内标签 7. Program_1_Press 2-17 图 2-17Program_1_Press 程序域内标签 8. Program_1_Press Program_2_Stake Program_3_Weld Logix 9. Product ID Catalog_No 2-18 New Data Type… Ctrl+C P1 Part_ID Data Type User-Defined 34 Ctrl+V Serial_No www.plcworld.cn http://www.plcworld.cn 图 2-18 新建用户自定义数据类型 10. Name Members 2-19 图 2-19 自定义数据类型中名称和成员 11. 2-20 Controller Scope Product_ID 35 Station_Data www.plcworld.cn http://www.plcworld.cn 图 2-20 创建数据类型为 Product_ID 的标签 12. 2.1.3 编写梯形图程序 RSLogix5000 1. 2. 3. 4. 5. 6. 1. 2. RSLogix5000 File->Open P1 36 www.plcworld.cn http://www.plcworld.cn 3. Open Assembly->Program_1_Press->Routine_Dispatch 2-21 图 2-21 打开 Routine_Dispatch 例程 4. 2-22 图 2-22 Routine_Dispatch 编程窗口 Edit 37 e www.plcworld.cn http://www.plcworld.cn 5. Routine_Dispatch Station_1_Press StationTimer Station_Dispatcher EQU 2-23 1 Compare Call_Program_Value Station_1_Press EQU 图 2-23 EQU 指令位置 e Insert EQU 图 2-24 输入 EQU 指令 6. EQU EQU EQU SourceA 2-25 38 SourceB 2-24 www.plcworld.cn http://www.plcworld.cn Controller Tags Scoped 图 2-25 设置 EQU 指令参数 Controller Scoped Tags Call_Program_Value Program Scoped Tags Controller Scoped Tags Program Scoped Tags Program 7. Routine SourceB Source B / 1 2-26 New Tag 图 2-26 设置 Source B 参数 8. 2-27 1 39 www.plcworld.cn http://www.plcworld.cn 图 2-27 新建标签对话框 9. Assembly->Program_1_Press->Routine_Dispatch ONS RES Insert 2-28 Help->Instruction Help 图 2-28 创建梯形图逻辑 10. Routine_Dispatch Station_1_Press EQU Branch 40 Station_1_Press 2-29 www.plcworld.cn http://www.plcworld.cn 图 2-29 选择分支 Branch 2-30 Branch 图 2-30 创建分支 JSR Help->Instruction Help Insert 2-31 图 2-31 查阅指令帮助 11. Assembly->Program_1_Press->Routine_Dispatch 41 2-32 www.plcworld.cn http://www.plcworld.cn 图 2-32 创建完的 Routine_Dispatch 例程 12. Assembly->Program_1_Press->Routine_Dispatch Assembly->Program_2_Stake->Routine_Dispatch 13. Assembly->Program_2_Stake->Routine_Dispatch 2-33 EQU SourceB 2 JSR Routine Name Station_2_Stake 2 Station_ 2_Stake 图 2-33 参数修改 14. Assembly->Program_1_Press->Routine_Dispatch Assembly->Program_3_Weld->Routine_Dispatch EQU SourceB 3 JSR Routine Name Station_3_Weld 图 2-34 参数修改 Copy+Paste 42 2-34 www.plcworld.cn http://www.plcworld.cn Copy+Paste 15. 16. Assembly->Program_1_Press->Station_1_Press 2-35 图 2-35 Station_1_Press 梯形图 17. Assembly->Program_1_Press->Station_1_Press Assembly->Program_2_Stake->Station_2_Stake StationTimer Preset 2000 Shift 2-36 图 2-36 参数修改 18. Assembly->Program_1_Press->Station_1_Press Assembly->Program_3_Weld-> Station_3_Weld StationTimer Preset 3000 43 www.plcworld.cn http://www.plcworld.cn StationTimer Conveyor Complete 2-37 图 2-37 参数修改 19. 20. 21. Program_1_Press Copy+Paste Program_1_Press 22. Conveyor Conveyor->Conveyor->Conveyor 2-38 图 2-38 Conveyor 例程中梯形图 0 23. 1 2 Periodic_Dispatcher->Station_Dispatcher->Station 44 www.plcworld.cn http://www.plcworld.cn _Dispatcher 2-39 45 www.plcworld.cn http://www.plcworld.cn 图 2-39 Station _Dispatcher 例程的梯形图 0 1 3 4 24. I/O 25. File-> Save 2-40 File Save 图 2-40 保存文件 26. New Trend Trends 2-41 图 2-41 新建趋势图 27. Compressor 46 OK 2-42 www.plcworld.cn http://www.plcworld.cn 图 2-42 趋势图命名 28. Add/Configure Tags / Controller Available Tags Add Tags to Trend Tags to Trend Remove 47 Scope 2-43 www.plcworld.cn http://www.plcworld.cn 图 2-43 添加/组态标签对话框 29. 2-44 Chart Properties Background color Display 图 2-44 设置图表属性 30. X-Axis X 2-45 48 www.plcworld.cn http://www.plcworld.cn 图 2-45 设置时间轴参数 31. Y-Axis Y 2-46 OK 图 2-46 设置 Y 轴参数 32. Trends 2-47 49 www.plcworld.cn http://www.plcworld.cn 图 2-47 创建的趋势图 33. Logix5555 Communications->Who Active 50 Remote 2-48 www.plcworld.cn http://www.plcworld.cn , 图 2-48 浏览控制器 34. Remote Run Download 2-49 图 2-49 警告对话框 35. Download 2-50 51 www.plcworld.cn http://www.plcworld.cn 图 2-50 下载进程 36. Online Run Mode 2-51 图 2-51 运行模式 37. Compressor Run 38. Station_Dispatcher PartSensor 2 52 PartSensor 2-52 www.plcworld.cn http://www.plcworld.cn 图 2-52 程序窗口 39. Trends->Compress 2-53 图 2-53 时序图 2.1.4 I/O 组态 I/O 53 www.plcworld.cn http://www.plcworld.cn I/O I/O I/O I/O I/O 1. I/O Press StationActive Stake StationActive PartSensor PartSensor_Fault_ Indicator Weld StationActive StationActive PartPASSED StationActive PartFAULT ConveyorOutput ConveyorOutput (P1) (P2) 图 2-54 按钮和指示灯 P1 I/O PartSenor 54 2-63 www.plcworld.cn http://www.plcworld.cn 2. ControlLogix Demo RSLinx->RSWho ControlLogix Demo 2-55 图 2-55 在 RSLinx 中查看模块 0 1756-OB16D 2 1756-IB16D 3. I/O 2-3 P1 I/O 表 2-3 I/O 地址规划 范围 标签名称 I/O 地址 ConveyorOutput Local:0:O.Data.5 PartSensor Local:2:I.Data.1 Program_1_Press StationActive Local:0:O.Data.0 Program_2_Stake StationActive Local:0:O.Data.1 Program_3_Weld StationActive Local:0:O.Data.2 Conveyor Part_Sensor_Fault_Indicator Local:0:O.Data.4 P1 4. Controller RSLogix5000 55 2-56 www.plcworld.cn http://www.plcworld.cn 图 2-56 RSLogix5000 启动界面 5. 6. File->Open I/O 1756-OB16D New Module P1.ACD I/O Configuration I/O 2-57 图 2-57 添加新模块 7. 1756-OB16D OK 图 2-58 选择模块类型 8. 0 2-59 56 www.plcworld.cn http://www.plcworld.cn Compatible Module 图 2-60 设置模块属性 Electronic Keying Online Module Types Compatible Module(Major Revision) RSLogix5000 Disable Keying-RSLogix5000 Exact Match- (Catalog Number) (Minor Revision) RSLogix 5000 Vendor,Product Type,Catalog Number,Major Revision,Minor Revision 9. Next 2-61 Next 图 2-61 模块属性缺省值 10. 2-62 0 57 1756-OB16D www.plcworld.cn http://www.plcworld.cn 0 图 2-62 I/O 组态文件夹 11. Configuration 12. 13. I/O New Module 1756-IB16D OK 2-63 图 2-63 添加模块参数设置 14. Next I/O Configuration I/O 58 2-64 www.plcworld.cn http://www.plcworld.cn 图 2-64 完成 I/O 组态 15. I/O Monitor Tags Controller Tags 2-65 图 2-65 模块自动生成的预定义标签 16. 2-65 I/O / 59 www.plcworld.cn http://www.plcworld.cn Location:SlotNumber:Type.MemberName.SubMemberName.Bit ( ): : Local:2:I.Data.0-- 17. . . :2: . . . 0 I/O 3 Alias tag 18. Tags( I/O I/O ) I/O Controller Edit Tags 2-66 图 2-66 选择编辑标签 2-67 I/O 图 2-67 编辑标签 For I/O ConveyorOutput PartSensor I/O I/O ConveyorOut 2-68 I/O Alias For 60 Alias www.plcworld.cn http://www.plcworld.cn 图 2-68 5 5 I/O 地址映射 Alias For Local:0:O.Data.5 2-69 图 2-69 建立地址映射关系 3 I/O 2-70 图 2-70 建立所有的地址映射 19. 61 I/O www.plcworld.cn http://www.plcworld.cn 20. 2-71 File Save 图 2-71 保存文件 21. Communications->Who Active 2-72 图 2-72 选择 Who Active 22. 23. I/O PartSensor 1756-IB16D RSLogix5000 I/O 2.2 RSLogix5000 2.2.1 创建 ControlLogix 功能块图程序 RSLogix5000 62 www.plcworld.cn http://www.plcworld.cn DCS 120% —— RSLogix5000 6 (P&ID) Local:6:I.Ch0Data Local:6:I.Ch1Data ControlLogix DCS Local:6:I.Ch0Data DeviceNet Local:6:I.Ch1Data —— 6.75 3.29 120% Local:7:O.Ch1Data ([(Local:6:I.Ch0Data) + (Local:6:I.Ch1Data)] * 0.5) * 1.2 0.5 * 1.2 = 0.6 0.6 63 www.plcworld.cn http://www.plcworld.cn ControlLogix IREF OREF ADD MUL JSR 1. 2. RSLogix5000 File->New Controller Type New Controller Revision 2-73 OK 图 2-73 新建控制器对话框 3. MainProgram New Routine 图 2-74 新建例程 64 2-74 www.plcworld.cn http://www.plcworld.cn 2-75 Name Description Function Block Diagram Type In Program 2-75 Main Program 图 2-75 新建例程对话框 RSLogix5000 Sequential Fuction Chart 4. Block Diagram 5. Ladder Diagrams Function Block Diagrams Structured Text Function Block Diagram OK MainProgram Stage3_Speed Routine Function 2-84 立身集高―美out集高釐― 齿out集高釐― ― ― 图 2-84 新建完成的功能块例程 I/O (connector) I/O reference IREF input reference OREF ControlLogix ICON input connection OCON output connection 65 output www.plcworld.cn http://www.plcworld.cn IREF I/O 2-76 图 2-76 功能块编程界面 6. 2-77 图 2-77 浏览不同的功能块 7. 2-87 IREF Input Referece 图 2-87 输入参考功能块 I/O RSLogix5000 IREF Input Reference OREF (Output Reference) ICON (Input Connector) OCON (Output Connector) ICON OCON 66 www.plcworld.cn http://www.plcworld.cn IREF OREF ICON OCON VI1( Local:6:I.Ch0Data) VI2( Local:6:I.Ch1Data) IREF 0.6 (0.5*120%=0.6) ADD MUL OREF VO( Local:7:O.Ch1Data) VI1 VI2 VO MaiProgram Program Tags, New Tag 2-88 8. Scope 图 2-88 选择新建标签 2-89 REAL( ) 图 2-89 新建标签 OK Scope VI1 VI2 VO 2-90 67 MainProgram www.plcworld.cn http://www.plcworld.cn 图 2-90 MainProgram Scope 作用域中的标签 9. IREF IREF IREF IREF 2-91 益美状环 益美状环 益美状环 益美状环 ― ― 图 2-91 新建 IREF 块 IREF Program Scoped Tags VI1 68 IREF 2-92 www.plcworld.cn http://www.plcworld.cn 图 2-92 为两个 IREF 功能块输入标签 I/O 2-93 图 2-93 输入 I/O 地址后的 IREF 功能块 10. IREF VI2 2-94 图 2-94 两个输入 I/O 地址后的 IREF 功能块 11. 12. 0.6 ADD Compute/Math 图 2-95 选择 ADD 69 2-95 www.plcworld.cn http://www.plcworld.cn 13. MUL 2-96 ADD MUL ― 背t身钮釐惊象背p釐釐量 ― 图 2-96 新建 ADD 和 MUL 功能块 IREF ADD MUL —— 14. 15. 2-96 2-97 Windows NT 图 2-97 完成的表格 70 www.plcworld.cn http://www.plcworld.cn ControlLogix Demo Alias for 16. AO1 VO Local:7:O.Ch1Data Program Scope VO Local:7:O.Ch1Data OREF(Output Reference) 2-98 图 2-98 新建 OREF 功能块 17. OREF MUL Program Scope VO 图 2-99 给 OREF 输入标签 18. IREF ADD File->Save 71 Source A 2-100 2-99 www.plcworld.cn http://www.plcworld.cn 图 2-100 连接端口 VI1 ADD Source A 2-101 图 2-101 连接功能块 19. MUL SourceB 120% 0.6 0.6 IREF 0.6 MUL 72 MUL Source B www.plcworld.cn http://www.plcworld.cn 20. MUL ( ), MUL 2-102 0.6 图 2-102 MUL 属性框 21. Apply Tag Vis ADD 0.6 Source B Vis Source B 0.6 Apply Tag 22. Description 0.6 73 OK 2-103 www.plcworld.cn http://www.plcworld.cn 图 2-103 输入描述内容 Program Scoped Tags 0.6 Scoped Tags MUL_01.SourceB MUL 2-104 74 Program www.plcworld.cn http://www.plcworld.cn 图 2-104 完成后的 MUL 功能块 23 2-105 图 2-105 错误提示 3 Error: Rung 0:Empty rung. F4 Main Program->MainRoutine MainTask-> 2-106 75 www.plcworld.cn http://www.plcworld.cn 图 2-106 跳转到错误梯级 Stage3_Speed 24 MainProgram Properties 图 2-107 选择 Properties 选项 2-108 76 2-107 www.plcworld.cn http://www.plcworld.cn Configuration 图 2-108 属性界面 Configuration MainRoutine Assigned Routines->Main Apply OK Stage3_Speed 2-109 图 2-109 指定例程 2-110 Stage3_Speed Tags 77 MainRoutine Program www.plcworld.cn http://www.plcworld.cn 图 2-110 指定 Stage3_Speed 为主例程后的显示界面 25 Stage3_Speed MainRoutine 2-111 MainRoutine MainRoutine Delete 图 2-111 删除原有的梯形图例程 MainRoutine 26 27 6 I/O MainProgram Stage3_Speed MainRoutine I/O I/O ControlLogix Demo 1756-IF6I 1756-OF6VI 7 I/O Configuration I/O New Module 2-112 图 2-112 选择添加新模块 Select Module Type 2-113 78 www.plcworld.cn http://www.plcworld.cn 图 2-113 选择模块类型对话框 1756-IF6I 1756-IF6I 2-113 OK 2-114 6 图 2-114 1756-IF6I 模块对话框 28 Next Next 79 2-115 www.plcworld.cn http://www.plcworld.cn 图 2-115 接受缺省设置 29 Finish 7 2-116 RSLogix5000 I/O 图 2-116 添加好的 1756-IF6I 模块 80 www.plcworld.cn http://www.plcworld.cn 30 2-117 1756-OF6VI 7 图 2-117 1756-OF6VI 的属性设置 31 I/O 2-118 图 2-118 完成的 I/O 组态 32 2-119 图 2-119 自动生成的结构体 81 www.plcworld.cn http://www.plcworld.cn 33. / I/O 1756-IF6I 1 ControlLogix Demo AI1 1756-IF6I 34 0 1756-OF6VI I/O AI0 0 1756-IF6I AO0 2-4 表 2-4 标签与 I/O 地址映射关系 范围 MainProgram 35 Local:6:I.Ch0Data Edit Tags I/O 地址 标签名称 VI1 Local:6:I.Ch0Data VI2 Local:6:I.Ch1Data VO Local:7:O.Ch0Data Alias for I/O Program Tags( 2-120 VI1 ) 图 2-120 选择编辑标签 2-121 I/O 图 2-121 标签编辑窗口 36 VI1 I/O Alias For 82 I/O www.plcworld.cn http://www.plcworld.cn I/O Alias For Local:6:I.Ch0Data VI1 VI1 1756-IF6I 0( 2-122 Local:6:I.Ch0Data) Controller Scoped Tags 图 2-122 选择 I/O 地址标签 37 VI2 VO Local:6:I.Ch1Data Local:7:O.Ch0Data 2-123 图 2-123 建立完成的映射关系 38. L55 39 REMote Communications->Who Active 2-124 83 www.plcworld.cn http://www.plcworld.cn IP 1756-ENBT , 图 2-124 激活设备列表 EtherNet/IP 40 Remote Run 1756-ENBT IP Download IP IP 2-125 图 2-125 警告对话框 41. Download 2-126 84 IP www.plcworld.cn http://www.plcworld.cn 图 2-126 下载进程 42. 43. Yes 2.2.2 修改 ControlLogix 功能块程序 DCS Joe Block Joe 4% Local:0:O.Data.3 ControlLogix 1. ControlLogix I/O SUB ABS GRT SEL RSLogix5000 图 2-127 启动 RSLogix5000 界面 85 2-127 www.plcworld.cn http://www.plcworld.cn 2. 3. Joe Block 0~10V( File->Open Motor_Speed.ACD 4% ) 0.4 4% 0.4 -0.4 0.4 0.4 2-128 4% 图 2-128 完成后的功能图 4. Insert INS SUB INS ABS INS GRT 86 www.plcworld.cn http://www.plcworld.cn INS OREF 5. 6. DO_ALM 7. MUL IREF OREF BOOL GRT ABS 0.4 GRT MUL IREF 8. 9. IREF, File->Save as 0.4 IREF IREF GRT Motor_Speed2.ACD SourceB Remote Run 10. DO_ALM 11. 0.4 DO_ALM BOOL DO_ALM 0 0.4 1 3 RSLinx 0 1 2 3 4 5 6 7 8 9 12. Module( 13. DO — 1756-OB16D ( 16 L55 Processor DI — 1756-IB16D ( 16 0-15 1756-CNB CNET DO — 1756-OB16D ( 16 L55 Processor AI — 1756-IF6I/A ( / 6 AO — 1756-OF6VI/A ( 6 1756-M08SE( ) 1756-ENBT 0 I/O Configuration ) 1756-OB16D OK 2-129 87 ) ) ) 0-5 0-5 ) ) New 0 www.plcworld.cn http://www.plcworld.cn 1. 图 2-129 1756-OB16D 模块属性对话框 14. Next Finish 15. 2 1756-IB16D 16. I/O Configuration 1756-IB16D OK 17. 2-130 New Module 2 88 www.plcworld.cn http://www.plcworld.cn 图 2-130 1756-IB16D 模块属性对话框 18. 19. Next Finish I/O 2-131 图 2-131 配置好的所有 I/O 模块 20. I/O 2-5 表 2-5 标签与 I/O 模块间的地址映射关系 范围 MainProgram 21. I/O 地址 标签名称 DO_ALM Local:0:O.Data.0 MainTask->MainProgram->Program Tags 89 2-132 www.plcworld.cn http://www.plcworld.cn Edit Tags 图 2-132 MainProgram 程序标签 2-132 Local:0:O Tags 2-133 Local:0:O.Data.0 Controller Scoped Controller Scoped Tags ( ) 图 2-133 选择 I/O 地址 22. 0.4 Remote Run DO0 0.4 LED HandInput tag 23. Program Tags REAL Edit Tags 2-134 DO0 DO0 / Joe Block Local:0:I.Data.12 Edit Tags Tag Name Select1 BOOL Edit Tags 90 HandInput www.plcworld.cn http://www.plcworld.cn 图 2-134 创建完的 Edit Tags 窗口 24. Monitor Tags HandInput 2.5 2-135 2.5 图 2-135 设置 HandInput 值 SEL In1 In2 Select1 HandInput SelectorIn 图 2-136 Selector 功能块 91 2-136 www.plcworld.cn http://www.plcworld.cn 25. 26. SEL 2.5 File->Save 2-137 Remote Run 图 2-137 修改后的功能图 27. (SEL) MainProgram Program Scope Local:2:I.Data. 12 2-138 92 Select1 2.1.4 www.plcworld.cn http://www.plcworld.cn 图 2-138 建立地址映射关系 28. / 12 120% HandInput Remote Run DI12=1 File->Save HandInput 29. 2.2.3 使用驱动系统功能块及闭环控制 ControlLogix PI 2-139 图 2-139 闭环控制系统 ControlLogix demo 0-10V 0-10V 93 AO0 RPM 0-10V www.plcworld.cn http://www.plcworld.cn 0V = 0 RPM 10V = 1000 RPM 0V = 0 RPM 10V = 1000 RPM 0 RPM = 0V 1000 RPM =10V PI PI 10ms PI Output = Kp*Error + Ki*(delta T) +IA, PI PID PI delta T delta T 10ms 1. RSLogix5000 2-140 图 2-140 新建项目 Motor_Speed3 94 Motor_Speed3 www.plcworld.cn http://www.plcworld.cn 2. Tasks 2-141 图 2-141 选择新建任务 3. 2-142 New Task… OK Outfeed 10ms 图 2-142 新任务属性设置 10ms 4. 5. Drive_system Outfeed 2-143 95 New Program www.plcworld.cn http://www.plcworld.cn 图 2-143 命名程序 6. 7. OK 2-144 图 2-144 完成后的项目树 routine 8. 9. drive_system Routine New Routine… Function Block Diagram 2-145 FBD 96 www.plcworld.cn http://www.plcworld.cn 图 2-145 新建例程 10. OK 2-146 图 2-146 新建例程后的项目树 11. 12. routine drive_system Configuration Properties function_blk 2-147 图 2-147 指定主例程 13. 14. Apply OK 2-148 PI 97 www.plcworld.cn http://www.plcworld.cn PI 图 2-148 系统结构图 15. PI Scale Alarm 16. Command_Speed Output_Speed Program Tags, tag Actual_Speed New Tag Drive_system Scope 2-149 REAL Drive_system 图 2-149 创建新标签 17. Drive_system Output_Speed Actual_Speed Drive_system->Program Tags Drive_system 2-150 98 www.plcworld.cn http://www.plcworld.cn 图 2-150 作用域中的标签 18. Command_Speed Actual_Speed fuction_blk IREF Input Reference 2-151 IREF IREF 图 2-151 添加功能块 IREF 19. Command_Speed Favorite 20. Actual_Speed SUB SUB 2-152 图 2-152 SUB 属性框 SourceA Command_Speed SourceA 21. OK 22. IREF Command_Speed 23. SourceA IREF 99 www.plcworld.cn http://www.plcworld.cn Actual_Speed SourceB 2-153 图 2-153 连接功能块 Dest 24. PI Drive PI 2-154 PI Drives 图 2-154 选择 PI 指令 25. Dest PI 2-156 SUB_01 0.0 SUB Command_Speed PI_01 PI ... Subtract ... Proportional+Integral 0.0 SourceA SourceB Dest 0.0 In Kp Wld HighLimit LowLimit 100 Out www.plcworld.cn http://www.plcworld.cn 图 2-156 连接功能块 26. PI 2-157 图 2-157 PI 指令参数表 PI PID PI PI PI 27. 28. 29. 0 RPM (Kp) 1 HighLimit 1000 LowLimit 0 PI 1000 PI 101 www.plcworld.cn http://www.plcworld.cn 30. OK PI 31. PI Output_Speed OREF OREF 2-158 图 2-158 编辑 OREF 功能块 32. PI SUB SourceB 2-159 图 2-159 编辑闭环回路 图 2-160 无法解析回路 Assume Data Available 1 SUB 102 2 PI www.plcworld.cn http://www.plcworld.cn Assume Data Available Assume Data Available 图 2-161 33. 标记反馈线 I/O 0-10V ControlLogix 0-1000 RPM / 34. I/O Configuration 2-162 New Module 图 2-162 选择添加新模块 1756-IF6I OK 103 2-163 www.plcworld.cn http://www.plcworld.cn 图 2-163 1756-IF6I 模块属性对话框 Next 2-164 图 2-164 1756-IF6I 默认属性 Next 2-165 104 www.plcworld.cn http://www.plcworld.cn 图 2-165 1756-IF6I 可在线监视的属性 Next 2-166 0-10V 1000 0 图 2-166 工程量整定对话框 0-10V 0-1000RPM 2-167 105 Next www.plcworld.cn http://www.plcworld.cn 图 2-167 报警设置对话框 Next 2-168 图 2-168 校准对话框 Next 106 2-169 www.plcworld.cn http://www.plcworld.cn 图 2-169 模块属性对话框 Next Finish 35. I/O Configuration 2-170 New Module 图 2-170 选择添加新模块 2-171 107 www.plcworld.cn http://www.plcworld.cn 图 2-171 模块属性对话框 2-172 1000 0 图 2-172 工程量整定对话框 2-173 108 10V 0V www.plcworld.cn http://www.plcworld.cn 图 2-173 报警设置对话框 36. Alias for 0 Command_Speed Program Tags( 2-174 I/O Actual_Speed Local:7:O.Ch0Data Local:6:I.Ch0Data ) 图 2-174 选择编辑标签 2-175 109 Drive_system Edit Tags www.plcworld.cn http://www.plcworld.cn I/O 图 2-175 标签编辑窗口 Command_Speed I/O I/O Command_Speed Alias For Local:6:I.Ch0Data Local:6:I.Ch0Data) I/O Command_Speed Alias For 1756-IF6I 2-176 Controller Scoped Tags 图 2-176 标签与地址的映射关系 37. Actual_Speed Output_Speed Local:7:O.Ch0Data 2-177 110 0( www.plcworld.cn http://www.plcworld.cn 图 2-177 映射完成后的标签编辑窗口 L55 REMote 38. Active( REMote ) Logix5555 Communications( )->Who 2-178 IP 1756-ENBT , 图 2-178 激活设备显示 EtherNet/IP 39. REMote Run 1756-ENBT IP Download 2-179 111 IP IP IP www.plcworld.cn http://www.plcworld.cn 图 2-179 警告对话框 40. Download 2-180 图 2-180 下载进程 41. Yes 2-181 112 RSLogix5000 www.plcworld.cn http://www.plcworld.cn PI 图 2-181 显示 RSLogix5000 界面 42. PI Kp 0.5 Command_Speed 2-182 113 AI0 www.plcworld.cn http://www.plcworld.cn 图 2-182 观察输出值 43. Wld 1.0 114 OK 2-183 www.plcworld.cn http://www.plcworld.cn 图 2-183 将积分控制算法中参数“Wld”设为 1.0 2-184 图 2-184 监视实际转速值 1000RPM 10V Bulletin160 ! Alarm 44. 115 RPM ControlLogix demo Local:0:I.Data.0 www.plcworld.cn http://www.plcworld.cn 45. New Sheet 2-185 图 2-185 新建页面 46. Process ALM 2-186 图 2-186 选择“ALM”指令 47. ALM HHAlarm H Alarm L Alarm LL Alarm H Alarm L Alarm LL Alarm 2-187 6 HHAlarm 图 2-187 ALM 功能块指令 48. 2-188 116 www.plcworld.cn http://www.plcworld.cn 图 2-188 报警参数设置 49. 50. Previous Sheet Output Connector Output Connector tag 51. alarm 2-189 117 www.plcworld.cn http://www.plcworld.cn 图 2-189 命名输出连接 52. 53. Input Connector Input Connector 54. alarm 55. 2-190 图 2-190 把输入连接到报警功能块的输入 56. 57. RSLogix5000 RSLogix5000 7 Active X Faceplates RSView32 118 Active X www.plcworld.cn http://www.plcworld.cn Faceplates Alarm, Enhanced Select, Totalizer, Ramp/Soak, Discrete 2 State Device, Discrete 3 State Device Enhanced PID Excel 58. Start>Programs>Microsoft Excel Faceplates Active X 59. 2-189 Active X Exel View >Toolbars Control Toolbox >Control Toolbox 图 2-189 选择控件工具箱 60. 2-190 119 www.plcworld.cn http://www.plcworld.cn 图 2-190 显示控件工具箱 61. More Control 2-191 图 2-191 显示其它控件 120 www.plcworld.cn http://www.plcworld.cn 62. Logix 5000 ALM Faceplate Control 63. 2-192 图 2-192 报警框 RSLinx Topic RSView32 64. RSLinx 2-193 DDE/OPC Cofigure New DDE/OPC Topic 图 2-193 选择“Cofigure New DDE/OPC Topic” 65. ALM_Topic DDE/OPC Topic Configration 121 Topic( ) 2-194 www.plcworld.cn http://www.plcworld.cn yes 图 2-194 数据更新对话框 66. Apply 67. Excel 68. Alarm Properties 2-195 Done Logix 5000 ALM Faceplate Control Object 122 www.plcworld.cn http://www.plcworld.cn 图 2-195 选择对象属性 69. Topic 70. 2-196 drive_system 2-196 RSLinx Alarm Topic tag ALM_01 RSLinx ControlNet 123 1 www.plcworld.cn http://www.plcworld.cn 图 2-196 属性对话框 71. OK Active X 72. 73. 124 www.plcworld.cn http://www.plcworld.cn RSView 3.1 RSView32 HMI RSView32 OPC Topic RSView32 Project 1. 1 2 RSLinx OPC Topic Logix5555 RSLinx DDE/OPC->Topic Configuration OPC Topic convey 3-1 125 www.plcworld.cn http://www.plcworld.cn 图 3-1 创建 OPC 主题 4 Ethernet 5 3-2 Done ControlLogix Logix5555 DDE/OPC Topic Configuration 126 Apply www.plcworld.cn http://www.plcworld.cn 图 3-2 更新 convey 主题 RSView32 Convey RSLinx 2. 1 2 RSView32 Works File -> New CONVEY 3-3 图 3-3 新建项目 System Node 127 3-4 www.plcworld.cn http://www.plcworld.cn 图 3-4 选择节点 3 Server Name 3-5 OPC Server ControlLogix RSLinx OPC Server RSView32 Accept 图 3-5 节点组态 3. tag procedure (component) conveyor 128 www.plcworld.cn http://www.plcworld.cn 1) tag tag Tag Database tag tag 3-6 图 3-6 创建新文件夹 OK procedure 129 www.plcworld.cn http://www.plcworld.cn procedure press procedure 3-8 图 3-8 新建文件夹 New Folder 3-9 procedure\press 130 OK press www.plcworld.cn http://www.plcworld.cn 图 3.9 创建 press 文件夹 press tag Digital Device tag procedure\press\start tag ControLogix Convey-Node 3-10 Tag tag 图 3-10 创建控制冲压机工作的 tag OPC Address Browser tag Program: Program_1_Press.StationTimer.TT 3-11 131 procedure\press\start tag OK procedure\press\start www.plcworld.cn http://www.plcworld.cn 图 3-11 procedure\press\start 与控制器间的数据连接 Accept tag 3-12 Accept 图 3-12 创建完成的 tag procedure stake Digital tag procedure\stake\start Device Program: Program_2_Stake.StationTimer.TT Accept tag 132 Convey-Node OK www.plcworld.cn http://www.plcworld.cn 图 3-14 创建控制冲压机工作的 tag procedure procedure\stake\start tag Program_3_Weld.StationTimer.TT 3-16 图 3-16 创建 procedure\stake\start tag 133 tag Program: www.plcworld.cn http://www.plcworld.cn 2) tag tag tag Database tag component\press component\press\start Address component\press\start tag Program: Program_1_Press.StationTimer.TT OK 3-21 图 3-21 建立数据连接 Accept tag 3-22 134 tag www.plcworld.cn http://www.plcworld.cn 图 3-22 创建完毕的 component\press\start 标记 component\press\start tag Program: Program_2_Stake.StationTimer.TT tag Program_3_Weld.StationTimer.TT 135 tag tag Program: www.plcworld.cn http://www.plcworld.cn 图 3-23 创建反映部件在卷边、焊接两道工序中工作状况的 tag 3) 4) tag tag tag Database tag conveyor\start Digital Device Complete Convey-Node Accept OK 136 3-26 www.plcworld.cn http://www.plcworld.cn 图 3-26 创建 conveyor\start 标记 Next Analog Device Conveyor_Timer.ACC tag conveyor\conveyingtime Convey-Node OK Accept 3-27 Conveyor_Timer.ACC 137 www.plcworld.cn http://www.plcworld.cn 图 3-27 创建 conveyor\conveyingtime 标记 tag conveyor\number Device Convey-Node Program:Conveyor.complete_number.ACC tag 3-28 tag OK 图 3-28 创建 conveyor\number 标记 tag 4 a) Graphics Display 3-29 New 138 Analog Accept www.plcworld.cn http://www.plcworld.cn 图 3-29 新建显示界 Ctrl 139 www.plcworld.cn http://www.plcworld.cn Ctrl Ctrl Ctrl Ctrl Ctrl Ctrl / / OLE ActiveX OLE ActiveX 140 www.plcworld.cn http://www.plcworld.cn 图 3.30 添加文字 3-31 图 3-31 编辑文字 3-32 141 www.plcworld.cn http://www.plcworld.cn 3-32 Save As b) I. Display Project… Copy Existing Component into 3-34 RSView 32 图 3-34 选择导入画面 .gfx 3-35 142 www.plcworld.cn http://www.plcworld.cn 图 3-35 查找导入文件 3-36 图 3-36 显示画面 1 tag tag i. Animation Visibility 143 www.plcworld.cn http://www.plcworld.cn 3-37 图 3-37 动画制作 tag Tags 3-38 图 3-38 建立连接 Tags procedure\press 3-39 144 procedure\press\start tag OK www.plcworld.cn http://www.plcworld.cn 图 3-39 选择连接的标记 Expression Close tag tag Apply 3-40 图 3-40 完成的连接 tag procedure\stake\start procedure\weld\start ii. 145 tag www.plcworld.cn http://www.plcworld.cn 1 2 tag 1 1 3-41 3-42 1 图 3-41 部件 1 连接的标记 2 146 2 www.plcworld.cn http://www.plcworld.cn 图 3-42 部件 2 连接的表达式 2 3 3-43 2 component\weld\start==0 147 www.plcworld.cn http://www.plcworld.cn 图 3-43 卷边阶段的动画制作 3 3-44 148 www.plcworld.cn http://www.plcworld.cn 图 3-44 焊接阶段的动画制作 4 iii. tag conveyor\conveyingtime 2000 3-45 149 www.plcworld.cn http://www.plcworld.cn 图 3-45 详细动画制作 3-46 . 图 3-46 从卷边机到焊接机传送阶段的动画制作 3-47 150 www.plcworld.cn http://www.plcworld.cn 图 3-47 从焊接机到传送带末端传送阶段的动画制作 3-48 图 3-48 系统整体显示画面 151 www.plcworld.cn http://www.plcworld.cn 3.2 PanelView Plus PanelView Plus VersaView CE PanelView Plus VersaView CE RSView Machine Edition RSView Studio Windows 3.2.1 创建 RSView Studio for ME 的项目 1. RSView Studio 2. RSView Studio PanelView Plus New RSViewSE RSView Studio ACME PAINT MFG 152 Create www.plcworld.cn http://www.plcworld.cn 图 3-45 创建新的应用项目 3. ControlLogix Communication Setup 4. RSLinx Enterprise Create a New configuration Finish 图 3-46 创建新的通讯配置 5. Local Local Target RSView Studio 153 www.plcworld.cn http://www.plcworld.cn Ethernet Local Add Driver Selection ControlLogix RSLinx Enterprise Add Driver Ethernet Ethernet Add Device 1756-ENBT EtherNet/IP 1756-ENBT Major Revision 1 IP 6. Logix Add Copy PanelView Plus 1000 Device Shortcut Apply Logix Logix Target 1. RSView Studio ACME_PAINT_MFG 2. 3. 图 3-47 定义 PVP 与控制器的通讯 7. Target Target Target Local Local OK OK 3.2.2 初始化系统设置 1. Project Settings 154 www.plcworld.cn http://www.plcworld.cn 图 3-48 选择项目设置 2. General 3-1 640x480 PanelView Plus 1000 表 3-1 终端类型与窗口尺寸关系 PanelView Plus 400 320x240 PanelView Plus 600 320x240 PanelView Plus 700 VersaView CE 700 640x480 PanelView Plus 1000 VersaView CE 1000 640x480 PanelView Plus 1250 VersaView CE 1250 800x600 PanelView Plus 1500 VersaView CE 1500 1024x768 3. Runtime 4. Control Box 10 Runtime ACME PAINT MFG 155 www.plcworld.cn http://www.plcworld.cn 图 3-49 组态 Runtime 选项卡 5. OK 3.2.3 创建操作员画面 RSView Studio 3-50 156 www.plcworld.cn http://www.plcworld.cn 图 3-50 系统主画面 1. Application Explorer Display 2. 3. Graphics New .jpg Add Files of type Bins.jpg JPEG *.jpg, *.jpeg, *.jpe, *.jif, *.jfif 图 3-51 选择 jpg 图像 4. Convert to Wallpaper Edit->Wallpaper->Unlock All 157 www.plcworld.cn http://www.plcworld.cn Wallpaper 5. Goto Config Mode Configure Mode 6. 7. Label Objects->Advanced->Goto Exit 图 3-52 设置 label 选项卡 OK 8. Main Screen 9. 10. ACME Product Line 11. OK Arial 3-53 158 www.plcworld.cn http://www.plcworld.cn 图 3-53 添加文本 12. 13. Bar Graph General 2 0 14. 100 Connections PLC PLC 图 3-54 设置棒状图属性 15. ACME PAINT MFG Refresh All Folders 159 Tag www.plcworld.cn http://www.plcworld.cn 图 3-55 刷新全部文件夹 16. PLC ControlLogix Logix->Online->Program:MainProgram->Red_Tank-> Fill_Level->ACC 图 3-56 选择标签 17. OK 1 160 www.plcworld.cn http://www.plcworld.cn 18. 19. Property Panel 图 3-57 添加蓝色棒状图 20. Tag Substitution {::[LOGIX]Program:MainProgram.Red_Tank.Fill_Level.ACC} {::[LOGIX]Program:MainProgram.Blue_Tank.Fill_Level.ACC}. 161 www.plcworld.cn http://www.plcworld.cn 图 3-58 标签替换 21. 22. PLC 23. 0 24. States State 0 Stop Arial 14 State 1 Select Color 162 Arial 12 www.plcworld.cn http://www.plcworld.cn 图 3-59 设置互锁按钮属性 25. Connections PLC Logix->Online->Program:MainProgram->Paint_Color 26. OK 27. Purple Blue Purple Blue 1 3 State 0 163 OK www.plcworld.cn http://www.plcworld.cn Make Purple Make Blue Arial Arial 20 20 Purple Active Blue Active Arial Arial 20 20 State 1 28. 3-60 164 www.plcworld.cn http://www.plcworld.cn 图 3-60 系统主画面 29. Animation Color None PLC 165 OK www.plcworld.cn http://www.plcworld.cn 图 3-61 创建对象动画 30. Logix->Online->Progra m:MainProgram- >Paint_Color 图 3-62 查找标签 3-2 3-2 0 1 3 31. Visiblity Paint_color PLC 1 MainProgram-> Paint_Color Apply 3 Close 166 Logix->Online->Program: www.plcworld.cn http://www.plcworld.cn 32. 33. Objects ->Drawing -> Panel Orange 图 3-63 绘制面板 34. 167 Dark Orange www.plcworld.cn http://www.plcworld.cn 图 3-64 设置数字显示属性 35. Connections MainProgram.Red_Tank. Fill_Level.ACC :[LOGIX]:Program: 168 www.plcworld.cn http://www.plcworld.cn 图 3-65 查找标签 36. OK 37. Connections :[LOGIX]:Program:MainProgram.Blue_Tank.Fill_Level.ACC. 38. 39. Macro PLC New RSView Studio Logic Macro Control 图 3-66 新建宏对象 169 HMI Macros www.plcworld.cn http://www.plcworld.cn 40. 100 Logix→Online→Program:MainProgram→Red_Tank→Fill_Level→ACC Logix→Online→Program:MainProgram→Blue_Tank→Fill_Level→ACC Close Save Macro Reset Tank Levels 图 3-67 设置宏表达式 41. macro button object Reset Tank Level OK 3-68 Label 170 Reset Tanks OK www.plcworld.cn http://www.plcworld.cn 图 3-68 主显示画面 3.2.4 创建趋势图 RSViewME 1. Edition 300,000 RSView Machine Data Log 5 2. New Data Log Tank Levels 171 Data Log Models 5 www.plcworld.cn http://www.plcworld.cn 图 3-69 设置数据记录模型 3. Logix->Online->Program:MainProgram->Red_Tank->Fill_Level->ACC Logix->Online->Program:MainProgram->Blue_Tank->Fill_Level->ACC 图 3-70 添加标签 Close Data Log 4. Tank_Levels RSView Machine Edition 2/3 5. Display Pens Visible 172 www.plcworld.cn http://www.plcworld.cn 图 3-71 创建趋势图 Tank_Levels 图 3-72 设置画笔属性 6. Y-Axis y Preset 173 www.plcworld.cn http://www.plcworld.cn 图 3-73 设置趋势图属性 7. Logix->Online->Program:MainProgram->Red_Tank->Fill_Level->ACC Logix->Online->Program:MainProgram->Blue_Tank->Fill_Level->ACC 图 3-74 指定画笔标签 8. 9. Goto Display Navigation->Goto Display settings Trend Tank Levels Object->Display Display Main 174 Main Screen www.plcworld.cn http://www.plcworld.cn 图 3-75 创建跳转画面按钮 3.2.5 组态报警 RSView Machine Edition 10 1. 15 RSView Machine Edition 2. Alarms Triggers Alarm Setup 图 3-76 选择报警设置 3. Triggers Add Expression Editor Expm… 175 www.plcworld.cn http://www.plcworld.cn 图 3-77 选择表达式编辑器 4. 1 Tags… 2 PLC Fill_Level->ACC Logix-> Online->Program:MainProgram->Blue_Tank-> OK 3 Relational 4 OK 5. <= 15 Check Syntax 10 1 Tags… 2 PLC Fill_Level->ACC 6. <= LE Logix-> Online->Program:MainProgram->Blue_Tank-> OK 3 Relational 4 OK <= LE <= Messages 176 10 Check Syntax www.plcworld.cn http://www.plcworld.cn 图 3-78 触发条件对应信息 7. Dark Red Replaced Alarm History 634*451 On Top ‘On Top’ Cannot be ‘Cannot be Replaced’ 图 3-79 创建报警历史显示 8. Alarm->Alarm List 2/3 -> -> -> 177 Objects->Advanced-> www.plcworld.cn http://www.plcworld.cn 图 3-80 设置报警列表属性 9. Close 10. 11. Objects -> Advanced -> Alarm -> Acknowledge ACK 178 -> -> -> www.plcworld.cn http://www.plcworld.cn 12. -> 13. 14. 15. 16. Objects -> Advanced -> Alarm -> Acknowledge All ACK ALL Clear History Button Clear Up Property Panel Alarm History 图 3-81 历史报警画面 17. Alarm History 3-82 179 -> -> www.plcworld.cn http://www.plcworld.cn 图 3-82 项目主画面 3.2.6 组态 Startup(启动选项)并测试显示画面 1. System Startup 图 3-83 选择启动设置 2. graphic Alarms Information messages Data logging Main Screen 3-84 180 Data logging Tank Levels intial intial graphic www.plcworld.cn http://www.plcworld.cn 图 3-84 设置启动属性 3. Test Application 图 3-85 选择测试应用项目 4. 5. 6. X Application->Create Runtime Application ACME PAINT MFD.mer Program->RockwellSoftware->RSView Enterprise->Tool->ME Transfer Utility PanelView Plus 181 www.plcworld.cn http://www.plcworld.cn 图 3-86 选择 PVP 终端 8. 9. 10. 11. Download PanelView Plus ACME PAINT MFD Advanced Run Application 182 PanelView Plus Load Application Load www.plcworld.cn http://www.plcworld.cn EtherNet/IP ControlNet DeviceNet 183 www.plcworld.cn http://www.plcworld.cn 4.1 EtherNet/IP 4.1.1 EtherNet/IP 网络简介 TCP/IP 1. 1 2 TCP/IP “ ” 2. 1 TCP/IP 2 3 100Mbps 3. 1 / ASIC+ TCP/IP Proxy 2 EtherNet/IP EtherNet/IP TCP/IP TCP/IP 1 2 I/O TCP/IP EtherNet/IP EtherNet/IP 100Mbps EtherNet/IP Frames/s 184 www.plcworld.cn http://www.plcworld.cn 4.1.2 CompactLogix 通过 EtherNet/IP 添加 Point I/O CompactLogix EtherNet/IP Point I/O 1. 2. RSLogix5000 File->New 4-1 图 4-1 新建控制器参数设置 Type Controller Revision Description 4. OK Logix 13 1769-L35E CompactLogix5335E Logix 4-2 185 www.plcworld.cn http://www.plcworld.cn 图 4-2 资源管理器 5. 4-3 1769-L35E Ethernet Port LocalENB New Module 图 4-3 添加新模块 1734-AENT Point I/O 186 4-4 www.plcworld.cn http://www.plcworld.cn 图 4-4 选择以太网适配器 6. OK Chassis Size IP 7 192.168.1.200 4-5 图 4-5 模块属性对话框 8. 1734-AENT Point I/O 1734-IB2/C 187 New module 4-6 www.plcworld.cn http://www.plcworld.cn 图 4-6 选择模块类型对话框 9. OK 4-7 图 4-7 模块属性对话框 10. 1734-OB4E New module 188 1734-AENT Point I/O 1734-OB4E 4-8 www.plcworld.cn http://www.plcworld.cn 图 4-8 选择模块类型 11. OK Slot 图 4-9 模块属性对话框 189 2 4-9 www.plcworld.cn http://www.plcworld.cn 12. 1734-AENT Point I/O 1734-OB4E 4-10 New module 图 4-10 选择模块类型 13. OK Slot 图 4-11 模块属性对话框 14. Next Finish 190 2 4-9 www.plcworld.cn http://www.plcworld.cn 4.1.3 CompactLogix 通过 EtherNet/IP 控制 PowerFlex 变频器 CompactLogix EtherNet/IP PowerFlex RSLogix5000 PowerFlex 1. 2. RSLogix5000 File->New 4-13 图 4-13 新建控制器项目 3. LocalENB I/O Configuration New Module…. 191 1769-L35E Ethernet Port www.plcworld.cn http://www.plcworld.cn 图 4-14 4. 20-COMM-E 4-15 EtherNet/IP 添加新模块 PowerFlex 70-E PowerFlex 70 图 4-15 选择模块类型 5. 4-16 IP 192 www.plcworld.cn http://www.plcworld.cn 图 4-16 模块属性对话框 6. Controller Tags Monitor Tags 图 4-17 监视标签 7. 4-18 193 www.plcworld.cn http://www.plcworld.cn 图 4-18 自动生成的 PowerFlex 结构体 8. ControlLogix Pump:O.CommandedFreq CompactLogix PowerFlex EtherNet/IP Pump:O.Start PowerFlex 4.2 ControlNet ControlNet Peer-to-Peer Messsaging ControlNet I/O ControlNet 4.2.1 ControlNet 用于 I/O 实时控制 Logix5555 ControlNet 1794-ACNR15 I/O 1. ControlNet RSLinx Ethernet ControlLogix 1784-PCICS ControlNet 4-20 194 www.plcworld.cn http://www.plcworld.cn 图 4-20 访问 ControlNet 网络 2. RSLogix5000 4-21 图 4-21 创建新的项目 3. Module…. I/O Configuration 4-22 New 195 www.plcworld.cn http://www.plcworld.cn 图 4-22 I/O Configuration 文件夹 4. ControlNet 1756-CNB/D 4-23 图 4-23 添加 1756-CNB 模块 5. 1756-CNB/D ControlNet 4-24 196 www.plcworld.cn http://www.plcworld.cn 图 4-24 设置 1756-CNB 参数 6. 1756-CNB New Module… 4-25 图 4-25 添加新模块 7. 4-26 Flex I/O 1794-ACNR15/C 图 4-26 添加 1794-ACNR15/C 8. 1794-ACNR15/C Next ControlNet ACNR15 RPI=2n×NUT 197 RPI 4-26 www.plcworld.cn http://www.plcworld.cn 图 4-26 设置 1794-ACNR15 参数 9. I/O Configuration 4-27 图 4-27 配置 I/O Configuration 文件夹 10. Download Logix5555 4-28 198 Logix5555 www.plcworld.cn http://www.plcworld.cn 图 4-28 下载程序 11. Configuration I/O 1794-ACNR15 图 4-29 I/O 4-29 I/O 模块故障 12. Connection not scheduled Connection Request Error: 199 www.plcworld.cn http://www.plcworld.cn 图 4-30 模块故障 13. RSNetWorx for ControlNet 4-31 图 4-31 选择 ControlNet 通讯路径 14. OK RSNetWorx Network->Enable Edits 4-32 图 4-32 扫描 ControlNet 网络 200 www.plcworld.cn http://www.plcworld.cn 15. File->Save ControlNet Keeper 4-33 图 4-33 保存 ControlNet 网络配置 16. Optimize and re-write schdule for all connections 4-34 OK 图 4-34 优化连接 17. I/O 1794-ACNR15 4-35 I/O Configuration I/O 图 4-35 I/O 状态正常 4.2.2 ControlLogix 和 FlexLogix 进行控制系统对时 CPU ControlNet RSLogix5000 ControlLogix FlexLogix ——ControlLogix CPU —— ——FlexLogix CPU —— ControlLogix FlexLogix 201 www.plcworld.cn http://www.plcworld.cn ControlLogix FlexLogix CPU GSV Producer Consumer SSV RSNetWorx ControlNet CPU 7ms, 1. RSLogix5000 ControlNet 4-11 图 4-11 RSLogix5000 启动画面 2. File->New 10 05 New Controller ( 0 Logix5555 4-12 202 ) OK www.plcworld.cn http://www.plcworld.cn 5 Logix5555 5 图 4-12 新建主控制器 ControlLogix I/O Logix5555 3. Controller 4-13 Controller Tags 图 4-13 新建控制器域标签 203 New Tag… www.plcworld.cn http://www.plcworld.cn 4. Edit Date DINT[7] 3 Producer 4-14 Produced Consumer 3 4-17 5. Tasks New Task 4-18 New Task 图 4-18 新建任务 6. Periodic 2ms 204 5 4-19 www.plcworld.cn http://www.plcworld.cn 2ms 5 图 4-19 设置任务的属性 7. Master Program Main OK 4-20 图 4-20 新建程序 8. Main 4-21 Routine GSV 205 ControlLogix www.plcworld.cn http://www.plcworld.cn 图 4-21 新建例程 9. Main Properties 4-22 图 4-22 选择属性栏 10. Main Routine GSV 206 OK 4-23 www.plcworld.cn http://www.plcworld.cn 图 4-23 指定主例程 11. GSV Open 4-24 图 4-24 打开例程 edit 12. GSV DateTime Dest Class Name Date[0] 4-25 207 e WALLCLOCKTIME Attribute Name www.plcworld.cn http://www.plcworld.cn WALLCLOCKTIME DateTime Date[0] 图 4-25 输入 GSV 指令和参数 13. 4-26 5 Logix5555 图 4-26 编写完毕的例程 14. 05 Communications L55 Who Active Download 208 4-27 www.plcworld.cn http://www.plcworld.cn L55 Download 图 4-27 下载程序 15. Controller 4-28 图 4-28 选择属性栏 16. CPU OK 209 4-29 Properties www.plcworld.cn http://www.plcworld.cn 图 4-29 设置 CPU 时间 17. 18. Date[7] FlexLogix RSLogix5000 4-30 图 4-30 19. File->New Chassis RSLogix5000 启动画面 New Controller ( Slot 210 ) ControlLogix www.plcworld.cn http://www.plcworld.cn 图 4-31 新建从控制器项目 FlexLogix I/O 1794-L34 20. 1788-CNCR New Module I/O Configuration I/O 4-32 图 4-32 选择添加模块 21. 4-33 1788-CNCR/A 211 OK www.plcworld.cn http://www.plcworld.cn 图 4-33 选择模块类型 22. 1788-CNCR ControlNet Demo CNCR ControlNet 2 4-34 2 ControlNet 1 Compatible Module 图 4-34 设置模块属性 Finish( 23. CPU New Module 212 ) 1788-CNCR/A CNCR CNCR 4-35 www.plcworld.cn http://www.plcworld.cn 图 4-35 选择添加新模块 24. OK CNB 4-36 图 4-36 选择模块类型 25. CNB 4-37 CPU 213 1756-CNB/D www.plcworld.cn http://www.plcworld.cn CNB ControlNet 10 CNB 图 4-37 设置模块属性 Finish 26. Module CNB 4-38 CPU New 图 4-38 选择添加新模块 27. CPU 1756-L55 13 214 4-39 OK www.plcworld.cn http://www.plcworld.cn CPU 图 4-39 选择模块类型及其版本号 28. CPU 5 Finish 4-40 CPU 图 4-40 设置模块属性 29. 4-41 CPU 215 www.plcworld.cn http://www.plcworld.cn CPU 图 4-41 项目资源管理器 30. Controller Controller Tags 4-42 图 4-42 双击打开 Controller Tags 31. DINT[7] Edit 4-43 216 Date_Consumer www.plcworld.cn http://www.plcworld.cn 图 4-43 新建标签 32. Date_Consumer Date_Consumer 4-44 Edit Tag Properties 图 4-44 编辑标签属性 33. Date_Consumer Connection 4-45 Consumed 217 www.plcworld.cn http://www.plcworld.cn Connection Consumed 图 4-45 新建 Consumed 标签 34. CPU RPI OK 4-46 CPU CPU Date RPI 5ms. OK 图 4-46 设置标签属性 218 www.plcworld.cn http://www.plcworld.cn 35. Tasks New Task 4-47 New Task 图 4-47 选择新建任务 36. 2ms 5 4-48 2ms 5 图 4-48 设置任务属性 37. Slave Program Main 219 OK 4-49 www.plcworld.cn http://www.plcworld.cn 图 4-49 选择新建程序 38. Main Routine SSV 220 OK 4-50 www.plcworld.cn http://www.plcworld.cn 图 4-50 新建例程 39. Main Properties 4-51 图 4-51 选择任务属性 40. Main SSV 221 OK 4-52 www.plcworld.cn http://www.plcworld.cn 图 4-52 设置主例程 41. SSV Open 4-53 图 4-53 打开例程 Edit 42. SSV DateTime Source Class Name Date_Consumer[0] 222 WALLCLOCKTIME 4-54 e Attribute Name www.plcworld.cn http://www.plcworld.cn WALLCLOCKTIME DateTime Date_Consumer[0] 图 4-54 输入“SSV”指令及其参数 43. FlexLogix 4-55 图 4-55 完成的例程 44. Communications Set Project Path 4-56 Who Active 00 Download 223 Local_1794 www.plcworld.cn http://www.plcworld.cn 1794-L34 Download 图 4-56 下载程序 45. 49. Remote Run I/O 4-57 CPU CPU ControlNet 图 4-58 未规划前的显示 50. 51. RSNetWorx for ControlNet 4-59 224 ControlNet www.plcworld.cn http://www.plcworld.cn ControlNet 图 4-59 52. RSNetWorx for ControlNet 软件界面 Online ControlLogix 图 4-60 访问 ControlNet 网络 225 ControlNet www.plcworld.cn http://www.plcworld.cn 53. OK 4-61 Edits Enable 图 4-61 54. 4-62 “OK” Network->Properties Max Scheduled Address 复选编辑使能 5 Max Unscheduled Address 图 4-62 ControlNet 网络参数设置 55. 4-63 226 10 www.plcworld.cn http://www.plcworld.cn 图 4-63 保存文件 56. Optimize and re-write schedule for all connections 4-64 OK 图 4-64 优化连接 ControlNet 57. RSLogix5000 L55 4-65 I/O OK 图 4-65 I/O 模块状态正常 58. 59. Controller OK CPU ControlLogix FlexLogix 227 Properties www.plcworld.cn http://www.plcworld.cn 4.2.3 清除 Keeper 1. -> DOS cmd MS-DOS 图 4-66 输入 cmd 命令 2. MS-DOS cd\WINNT\SYSTEM32 4-67 System32 3. clearkeeper log.txt RSLinx 228 WINNT\SYSTEM32 www.plcworld.cn http://www.plcworld.cn 图 4-68 执行 ClearKeeper 命令 4. 5. ControlLogix CNB RSLinx A#01 1 CNB OK CNB CNB Keeper 6. ClearKeeper Rockwell Automation 229 RSLogix5000 www.plcworld.cn http://www.plcworld.cn 4.3 DeviceNet 4.3.1 DeviceNet 网络简介 DeviceNet Rockwell CAN / 2.2 DeviceNet DeviceNet DeviceNet / I/O 图 2.2 DeviceNet 通信连接 DeviceNet DeviceNet ODVA Open DeviceNet Vendor Association 一、DeviceNet 的基本特性 DeviceNet 1. 2. 3. 4. 5. 6. 操. 族. DeviceNet CAN CAN 64 I/O — 度忌拍颜过ps Bit-Strobe State COS ― 暗. Non-destruction Bitwise Arbitration 度0. 度度. 属 12. 16A 忌拍0颜过ps 拍00颜过ps ― ― Polled 烁背立源属箱激源 230 Circle Change Of Carrier Sense Multiple Access with ― ― 属 ― www.plcworld.cn http://www.plcworld.cn 二、DeviceNet 网络结构 DeviceNet OSI CAN DeviceNet ISO 7 CAN ISO 2 ISO 1 DeviceNet DeviceNet DeviceNet 2.3 3 ISO 3 6 DeviceNet 三、DeviceNet 通讯模式 / / ( ) 2.4 / 2.4 a (b)生产者/消费者报文 (a)源/目的模式报文结 图 2.4 报文 DeviceNet / / 2.4(b) 2.5 / 4.3.2 通过 1769-SDN 模块连接 1734-POINT I/O ControlLogix DeviceNet DeviceNet I/O DeviceNet CompactLogix 231 1769-SDN 4-66 www.plcworld.cn http://www.plcworld.cn PC EtherNet/IP I/O HSC I/O SDN L35E CompactLogix DeviceNet 1734-OB4E RightSight 图 4-66 系统结构图 1. RSLinx RSNetworx for DeviceNet Point I/O RSNetworx for DeviceNet 1769-SDN ControlLogix CompactLogix I/O Start->Program->Rockwell Software->RSLinx->RSLinx Configure Drivers 图 4-67 2. Add New… CompactLogix 192.168.1.x Ethernet devices 组态 EtherNet/IP 驱动 CompactLogix IP 4-68 255.255.255.0 232 192.168.1.10 IP www.plcworld.cn http://www.plcworld.cn 图 4-68 3. RSWho DeviceNet AB_ETH-1 图 4-69 4. Point I/O 添加控制器 IP 地址 EtherNet/IP + 查看 DeviceNet 网络 1769-SDN Software->RSNetworx-> RSNetworx for DeviceNet DeviceNet 233 Start->Program->Rockwell RSNetworx for www.plcworld.cn http://www.plcworld.cn DeviceNet 图 4-70 RSNetWorx for DeviceNet 软件界面 5. DeviceNet OK DeviceNet 图 4-71 6. 扫描到 DeviceNet 网络 DeviceNet 1734-PDN Point I/O DeviceNet 24V Point I/O CAN DeviceNet Point I/O 1734-PDN Point I/O 5V Point I/O Point I/O DeviceNet 1734-ADN DeviceNet Point I/O Point I/O Point I/O DeviceNet 63 63 234 DeviceNet www.plcworld.cn http://www.plcworld.cn LED Point I/O Sequential AutoAddressing SAA DeviceNet SAA SAA Point I/O SAA 10 SAA 15 1734-OB4E 03 2 SAA 11 Point I/O Point I/O Node Address 16 图 4-72 DeviceNet 网络上的设备 7. Tools->Node Commissioning… 图 4-73 8. 4-73 选择节点委任 Browse 235 12 13 1734-IB4/C 1 02 www.plcworld.cn http://www.plcworld.cn 图 4-74 02 1734-IB4/C 扫描 DeviceNet 网络上的节点 OK 图 4-75 9. 02 选择节点 1734-IB4/C 4-76 236 www.plcworld.cn http://www.plcworld.cn 图 4-76 设置新的节点地址 Apply 图 4-77 RSNetworx for DeviceNet 15 节点委任成功 02 1734-IB4/C Point I/O 237 1734-IB4/C SAA www.plcworld.cn http://www.plcworld.cn 图 4-78 10. 15 修改节点地址后 DeviceNet 网络 1734-IB4/C 图 4-78 11. Paremeters 1734-IB4/C 参数对话框 EDS Editor 238 Upload www.plcworld.cn http://www.plcworld.cn 图 4-79 图 4-80 14 Sequential AutoAddress 选择参数选项卡 1734-IB4/C 参数选项卡 Sequential Address 239 www.plcworld.cn http://www.plcworld.cn 图 4-81 Download CompactLogix 图 4-82 12. Browse Network 修改 1734-IB4/C 参数 1734-IB4/C 参数下载 03 16 240 www.plcworld.cn http://www.plcworld.cn 图 4-83 13. 修改节点地址后 DeviceNet 网络 Point I/O 1769-SDN CompactLogix DeviceNet 1769-SDN CompactLogix 1769-SDN Platform Scanlist 241 www.plcworld.cn http://www.plcworld.cn 图 4-84 14. 选择扫描列表选项卡 01 16 图 4-85 15. 01 I/O 242 添加节点 1734-OB4E www.plcworld.cn http://www.plcworld.cn 图 4-86 编辑 I/O 参数 16 I/O 图 4-87 16. 编辑 I/O 参数 / 1769-SDN 243 / 4-88 www.plcworld.cn http://www.plcworld.cn 图 4-88 17. DeviceNet 18. Properties 输入/输出映像区 RSNetworx for DeviceNet DeviceNet ControlLogix CompactLogix ControlLogix 244 I/O Controller P1 www.plcworld.cn http://www.plcworld.cn 19 Type 图 4-89 修改控制器属性 图 4-90 控制器通用属性 1769-L35E CompactLogix5335E Revision 13 图 4-91 修改控制器类型 OK Slot Chassis Type 245 www.plcworld.cn http://www.plcworld.cn 图 4-92 20. 控制器类型修改后的界面 I/O CompactBus Local 图 4-93 I/O Configuration I/O New Module 添加新模块 1769-SDN 21. 1769-SDN 246 www.plcworld.cn http://www.plcworld.cn 2 图 4-94 22. 23. Next I/O 2.5 SDN 参数设置 Finish I/O P1_DNet 表 4.1 P1_DNet 项目 I/O 地址规划 I/O ConveyorOutput Local:2:O.Data[0].3 PartSensor Local:2:I.Data[0].0 Program_1_Press StationActive Local:2:O.Data[0].0 Program_2_Stake StationActive Local:2:O.Data[0].1 Program_3_Weld StationActive Local:2:O.Data[0].2 P1 24. 25. Controller SDN 1 图 4-94 26. 4.3.3 2.2.4 I/O Local:2:O.CommandRegister.Run 1 置位 SDN 启动位 CompactLogix 2-3 CompactLogix 通过 DeviceNet 控制 PowerFlex40 CompactLogix 247 DeviceNet Point I/O www.plcworld.cn http://www.plcworld.cn PowerFlex40 RSNetworx for DeviceNet RSNetworx for DeviceNet PowerFlex40 PowerFlex40 1769-SDN 4-95 PC EtherNet/IP I/O I/O SDN HSC L35E CompactLogix DeviceNet PowerFlex40 1734-IB4 图 4-95 1. 22-COMM-D P38[Speed Reference] 2. RSLinx 系统结构图 PowerFlex40 P36[Start Source] 5 5 Comm Port DeviceNet Comm Port 4-96 248 www.plcworld.cn http://www.plcworld.cn 图 4-96 DeviceNet 网络结构图 3. RSNetWorx for DeviceNet DeviceNet 1769-SDN Platform CompactLogix Slot 图 4-97 4. Scanlist 4-98 Online 2 配置 SDN 模块 PowerFlex 40 249 Scanlist Module 4-97 www.plcworld.cn http://www.plcworld.cn 图 4-98 5. 配置扫描列表选项卡 Input Advanced 4-99 图 4-99 6. 输入字映像 Output 250 www.plcworld.cn http://www.plcworld.cn Advanced 4-100 图 4-100 7. RSLogix5000 OK 输出字映像 CompactLogix 1769-SDN I/O 图 4-101 添加新模块 8. 1769-SDN/B 4-102 251 Finish www.plcworld.cn http://www.plcworld.cn 图 4-102 配置 1769-SDN 模块属性 9. Controller Controller Scope Tag CommandRegister.Run 1769-SDN 1 SDN 图 4-103 将 SDN 运行位置 1 10. SDN Local:2:O.Data[1] Local:2:O.Data[0] 50Hz 4-104 500 2 图 4-104 启动变频器 11. SDN Local:2:I.Data[0] Local:2:I.Data Local:2:I.Data[1] 252 4-105 www.plcworld.cn http://www.plcworld.cn 图 4-105 变频器反馈字 253 www.plcworld.cn http://www.plcworld.cn : ― ― ― ― 254 www.plcworld.cn http://www.plcworld.cn 集成运动控制动手实验 ControlLogix 在这个实验中您将完成 RSLogix5000 Ultra3000 Kinetix6000 这些实验可以实现: 这些实验可以实现: 谁应该完成这个实验 RSLogix5000 认识您眼前的实验设备 ControlLogix SERCOS Ultra3000 SERCOS Ultra3000 ControlLogix EtherNet/IP Y 1756-L55 1756-M08SE SERCOS 1756-ENBT 1756-OB16D 2098-DSD-005-SE Ultra3000 Y-1002-2-H RSLinx RSLogix5000 255 www.plcworld.cn http://www.plcworld.cn 典型应用实例 50 包装机运动控制系统 PLC 256 www.plcworld.cn http://www.plcworld.cn PID Logix Ultra3000 Logix 257 www.plcworld.cn http://www.plcworld.cn 5.1 Logix I/O RSLogix 5000 RSLogix 5000 RSLogix 5000 5.1.1 创建一个新的工程 1. 2. File->New 5-1 ControlLogix New Controller OK 图 5-1 新建工程对话框 RSLogix5000 Lab1 I/O 5-2 258 www.plcworld.cn http://www.plcworld.cn 图 5-2 创建完成的工程显示界面 I/O 3. Properties Controller Lab1 图 5-3 选择控制器属性选项 259 5-3 www.plcworld.cn http://www.plcworld.cn 4. Date/Time controller the Coordinated System Time master 5-4 / Make this 图 5-4 选择 CST 对话框 CST Coordinated System Time Logix5000 CST 64 CST Logix5000 5. CST Apply CST OK 5.1.2 组态 SERCOS 接口模块 SERCOS I/O Configuration I/O 1. New Module 5-5 图 5-5 选择新建模块对话框 2. Select Module Type 5-6 Clear All 260 www.plcworld.cn http://www.plcworld.cn 图 5-6 选择模块类型对话框 3. Motion 1756-M08SE OK 图 5-7 运动控制模块列表 SERCOS 4. 5-8 Next 261 5-7 www.plcworld.cn http://www.plcworld.cn 图 5-8 1756-M08SE 模块属性对话框 5. SERCOS Interface Power SERCOS Cycle Time High 1 ms Transmit 5-9 Finish 图 5-9 选择周期时间对话框 Ultra3000 1 0 1756-OB16D Kinetix6000 8 I/O Configuration I/O Controller Tag 8 Axis1 Enable Logix SERCOS Logix I/O SERCOS 5.1.3 组态伺服驱动器 1. 2. 1756-M08SE 5-10 New Module 2098-DSD-005-SE 262 OK www.plcworld.cn http://www.plcworld.cn 图 5-10 添加 2098-DSD-005-SE 伺服驱动器 Kinetix6000 2094 5-11 图 5-11 添加 Kinetix6000 伺服驱动器 3. Module Properties 5-12 Name 图 5-12 组态 Ultra3000 伺服驱动器 263 Node www.plcworld.cn http://www.plcworld.cn Ultra3000 4. Next 5-13 图 5-13 节点设置对话框 5. New Axis OK 5-14 图 5-14 新建轴对话框 6. Node1 5-15 1 Axis0 0 图 5-15 设置轴 0 完成的对话框 7. 1 3 6 DSD_005_SE_2 264 Finish www.plcworld.cn http://www.plcworld.cn 4 6 2 Axis1 1 5.1.4 组态一个新的运动组 1. New Motion Group Motion Groups 5-16 图 5-16 选择新运动组选项 2. 5-17 OK 图 5-17 新建运动组组态参数 3. 4. 5. Motion Group Motion Group Properties Properties Add→ Apply 5-18 265 www.plcworld.cn http://www.plcworld.cn 图 5-18 轴分配对话框 6. 7. OK Attribute Auto Tag Update Enabled 5-19 图 5-19 确认自动更新标签栏中是使能 5.1.5 组态运动轴的属性 1. 5-20 Axis0 266 0 Properties www.plcworld.cn http://www.plcworld.cn 图 5-20 选择轴属性选项 2. Drive/Motor 3. Amplifier Catalog Number 2098-DSD-005-SE 5-21 / 图 5-21 选择驱动器类型 4. 5. Y Change Catalog Change Catalog Number 5-22 Family 267 www.plcworld.cn http://www.plcworld.cn 图 5-22 电动机类型列表 6. Catalog Number Y-1002-2-H OK 5-23 图 5-23 选择电动机类型 Logix 7. 5-24 Axis1 Drive/Motor 1 268 / OK www.plcworld.cn http://www.plcworld.cn 图 5-24 设置完成的驱动器/电动机选项卡 5.1.6 下载 RSLogix5000 工程 1. 2. 3. File>Save Communication>Who Active Communication>Who Active AB_ETHIP-1 ControlLogix 1 5-25 图 5-25 选择控制器 4. Download RSLogix5000 Logix 5.1.7 执行简单的运动命令 1. 2. Tools>Motion Direct command MSO Axis0 269 0 5-26 www.plcworld.cn http://www.plcworld.cn 图 5-26 选择轴 0 直接执行命令 3. 4. Execute MAM 50 LED Position Speed 5-27 图 5-27 组态 MAM 指令要执行的运动 5. 6. 7. Execute MSF Execute File>Save 270 www.plcworld.cn http://www.plcworld.cn Logix Kinetix RSLogix5000 271 PLC www.plcworld.cn http://www.plcworld.cn 5.2 2 1 RSLogix5000 Hookup Tune 5.2.1 轴的连接测试 Marker 1. 2. 3. Feedback Axis0 0 Properties Hookup Test Increment 1 5-28 图 5-28 测试增量对话框 4. Hookup Ultra3000 4 Network Status Kinetix6000 4 5. Bus Comm Axis1 Enable Test Marker 5-29 272 Yes www.plcworld.cn http://www.plcworld.cn 图 5-29 连接测试确认保存对话框 6. 5-30 图 5-30 测试标记位操作说明对话框 7. Command Status Command Complete 图 5-31 测试完成状态 8. 9. OK Test Feedback . 273 5-32 5-31 www.plcworld.cn http://www.plcworld.cn 图 5-32 测试反馈操作说明对话框 10. Command Complete 5-33 图 5-33 测试完成状态 11. OK 12. Test Command & Feedback 13. RSLogix5000 14. Online Command Yes Execting 图 5-34 执行状态信息框 15. 16. 17. 18. Online Command OK 5-35 OK Yes Online Command RSLogix5000 OK 274 5-34 www.plcworld.cn http://www.plcworld.cn 图 5-35 确认正方向对话框 19. Axis1 1 1 18 5.2.2 轴的调节试运转 1. 2. Dynamic Acceleration Axis 0 0 Properties Maximum Speed Maximum Deceleration Maximum 5-36 图 5-36 动态选项卡属性设置 3. Tune Speed Travel Limit 5-37 275 www.plcworld.cn http://www.plcworld.cn 图 5-37 轴调节选项卡属性设置 80 40 Logix Dynamics 80 51 63.75×0.80 51 Ultra3000 4 63.75 4. Maximum Speed Network Status Kinetix6000 4 Bus Comm Axis1 Enable 5. 6. Start Tuning 5-38 Yes Yes 图 5-38 确认在线执行命令 7. Tune Results 5-39 图 5-39 调节结果对话框 Position Loop Bandwid Load Inertia Ratio 8. Apply Tune OK 276 5-40 www.plcworld.cn http://www.plcworld.cn 图 5-40 应用调节对话框 9. OK 5-41 图 5-41 调节参数应用成功对话框 10. 11. Axis1 1 1 8 File>Save 5.2.3 回顾在调节过程中遇到的普遍故障 1. Tune Speed Speed 2. 5-42 80 80 Dynamics Maximum 40 40 图 5-42 调节速度太低导致命令无法完成 1. 2. Tune 80 Tune Travel Limit 40 277 5-43 www.plcworld.cn http://www.plcworld.cn 图 5-43 伺服行程限值故障导致命令无法完成 278 www.plcworld.cn http://www.plcworld.cn 5.3 5.3.1 轴的使能和轴回原点 1. 2. MainRoutine 5-44 图 5-44 打开主例程 3. Motion State 5-45 0 MSO 图 5-45 在例程中 MSO 输入程序 Axis Motion Control Logix — RSLogix5000 4. MSO 5. Homing Axis0 5-46 Marker Speed Return Speed 279 0 Offset www.plcworld.cn http://www.plcworld.cn 图 5-46 6. 7. OK 0 1 2 回原点参数设置 MSF MAH 0-2 / Axis0 MSO MAH 0 MSO 5-47 图 5-47 运动控制指令梯级程序 280 Motion Move www.plcworld.cn http://www.plcworld.cn MSO Motion Servo On MSF Motion Servo Off MAH Motion Axis Home Active 8. 9. 10. 11. Axis0 Axis0 1 0 0 MSO_Enable MSF_Enable 5-48 MAH_Enable 图 5-48 MAH 程序 5.3.2 点动和停止轴 Axis0 0 MAJ MAS 1. MAJ Motion Move 5-49 281 MAH www.plcworld.cn http://www.plcworld.cn 图 5-49 MAJ 程序 2. 3 MAS 5-50 图 5-50 MAS 程序 3. 4. 5. 1 MAJ MAJ_Enable MAJ 2 20 Rev/s 6. MAJ 5Rev/s MAS_Enable 5Rev/s2 MAS MAS 282 www.plcworld.cn http://www.plcworld.cn RSLogix5000 RSLogix5000 283 www.plcworld.cn http://www.plcworld.cn 5.4 MAG Axis0 Axis1 0 1 1:1 Axis1 0 1 Axis0 RSLogix5000 5.4.1 传动比为 1:1 的电子齿轮 1. MAG Motion Move 5-51 图 5-51 MAG 程序 Ratio Ratio 2. Axis0 0 Axis1 3. 4. 1 MSO MSF 1 MAG 5. Axis0 0 Axis1 MAG_Enable MAJ MAJ_Enable 20Rev/s 1 20Rev/s Gearing—Trend 6. 284 5-52 www.plcworld.cn http://www.plcworld.cn 图 5-52 创建电子齿轮趋势图 7. Next 5-53 ActualVelocity 图 5-53 在趋势图中添加轴实际速度标签 8. 5-54 285 Run www.plcworld.cn http://www.plcworld.cn 图 5-54 传动比为 1 的电子齿轮跟随趋势图 9. 10. Stop MAS_Enable 5.4.2 传动比为 2:1 的电子齿轮 1. MAG Ratio MAG 2 2 图 5-55 在 MAG 中更改传动比为 2 2. 3. MAJ_Enable Axis0 0 Gearing_Trend 5-56 图 5-56 传动比为 2 的电子齿轮跟随趋势图 Axis0 0 Axis1 1 2 4. 5. Stop MAS_Enable 286 5-55 www.plcworld.cn http://www.plcworld.cn MAG RSLogix5000 287 www.plcworld.cn http://www.plcworld.cn 5.5 RSLogix5000 RSLogix5000 5.5.1 时间凸轮的使用 1. MATC Motion Move 5 5-57 Cam Profile 图 5-57 MATC 程序 288 Cam Profile Cam[4] 5-58 www.plcworld.cn http://www.plcworld.cn 图 5-58 建立凸轮轮廓数组标签 2. Cam[0] 5-59 图 5-59 凸轮编辑器 3. Insert Cam Segment 5-60 图 5-60 绘制时间凸轮轨迹 289 www.plcworld.cn http://www.plcworld.cn 4. 5. 6. 7. 8. OK 1 MSO_Enable MATC_Enable Axis0 0 Time_Cam 5-61 图 5-61 新建 MATC_Trend 趋势图 9. Next X-Axis ActualPosition Time Span 图 5-62 在趋势图中添加轴实际位置标签 10. Run 5-63 290 5-62 www.plcworld.cn http://www.plcworld.cn 图 5-63 时间凸轮趋势图 5.5.2 位置凸轮的使用 1. MAPC 5-64 Motion Move Cam Profile 图 5-64 MAPC 程序 291 www.plcworld.cn http://www.plcworld.cn 2. 3. 4. 5. 1 MSO_Enable MAJ_Enable MAPC_Enable Axis0 Axis0 0 0 Axis1 20Rev/s MATC MAPC RSLogix5000 292 1 www.plcworld.cn http://www.plcworld.cn : 1.MAJ (运动轴点动) Axis AXIS Motion MOTION_ Control INSTRUCTION Direction SINT INT DINT 0= 1= Speed SINT INT DINT REAL Speed units DINT 0= Units per sec 1= % of Accel rate Maximum SINT INT DINT REAL Accel units DINT 0= Units per sec2 1=% of Decel rate ^2 Maximum SINT INT DINT REAL Decel units DINT 0= Units per sec2 1= % of Profile Maximum DINT 0= Trapezoidal 1= S-curve Merge S DINT 0=Disabled 1=Enabled Merge speed DINT 0=Programmed 1=Current 293 ^2 www.plcworld.cn http://www.plcworld.cn 2.MAS(运动轴停止) Axis AXIS Motion MOTION_ Control INSTRUCTION Stop type DINT 0=All 1=Jog 2=Move 3=Gear 4=Home 5=Tune 6=Test 7=Time Cam 8=Position Cam 9=Master Offset Move Change decel DINT 0=No 1=Yes Decel rate SINT INT DINT REAL Decel units DINT 0= Units per sec2 1= % of 3.MAG(运动轴齿轮) Slave Axis AXIS Master Axis AXIS Motion MOTION_ control INSTRUCTION Direction SINT INT DINT 0 294 Maximum www.plcworld.cn http://www.plcworld.cn 1 2 3 Ratio SINT INT DINT REAL Slave Counts SINT INT DINT Master Counts SINT INT DINT Master DINT Reference 0=Actual 1=Command Ratio Format DINT 0= 1= Clutch DINT 0=Enabled 1=Disabled Accel Rate SINT INT DINT REAL Accel Units DINT 0= Units per sec 1= % of 4.MATC(运动轴时间凸轮) Axis AXIS Motion MOTION_ control INSTRUCTION Direction DINT Same 295 Maximum www.plcworld.cn http://www.plcworld.cn Opposite Reverse Same Opposite Reverse Opposite Unchanged Unchanged Cam Profile CAM_PROFILE Distance REAL Same 0 [0] Scaling Time Scaling REAL Execution DINT 0=Once Mode MATC 1=Continuous Execution DINT Schedule 0=Immediate 1=Pending 5.MAPC (运动轴位置凸轮) Slave Axis AXIS Master Axis AXIS Execution Schedule Pending Motion MOTION_ control INSTRUCTION Direction DINT Same 296 www.plcworld.cn http://www.plcworld.cn Opposite Reverse Same Opposite Reverse Opposite Unchanged Unchanged Cam Profile Same CAM_PROFILE 0 [0] Slave REAL Scaling Master REAL Scaling Execution DINT Mode 0=Once Process Complete 1=Continous 2=Persistent PositionCamLockStatus PositionCamLockStatus Execution Schedule DINT 0=Immediate 1=Pending Pending Master Axis Master Lock Position 2=Forward only 3=Reverse only 297 Master Reference www.plcworld.cn http://www.plcworld.cn 4=Bi-directional Master Lock REAL Position Cam Lock Execution Schedule Pending Master Lock Position Schedule Pending, Master Reference REAL Position Master DINT Reference Execution 0=Actual 1=Command Master Direction DINT 0=Bi-directional 1=Forward only 2=Reverse only ― 298