Quick Start Computer Numerical Control (CNC) Machining Accelerator Toolkit For FANUC Series 30i-B, 31i-B, 32i-B, and 35i-B CNC Systems
Important User Information Solid-state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office or online at http://www.rockwellautomation.com/literature/) describes some important differences between solid-state equipment and hard-wired electromechanical devices.
Follow this path to complete your CNC machining application.
Where to Start Notes: 4 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Table of Contents Preface Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Required Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents USB External Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EtherNet/IP Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Logic Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Editing Application Logic Modules and Adding Code . . . . . . . . . . . Device Logic Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents Design from a Preconfigured HMI Application File. . . . . . . . . . . . . . . . Restore and Open a Preconfigured HMI Application. . . . . . . . . . . Delete Unused Displays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Delete Unused Parameter Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configure Parameter Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Delete Unused Alarm Triggers and Tags . . . . . . . . .
Table of Contents Chapter 7 System Application Guide Before You Begin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . What You Need. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Follow These Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Startup Faceplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Status . .
Table of Contents Appendix D Logix Communication and Controller Configure Personal Computer Communication Properties . . . . . . . . . 261 Configure the EtherNet/IP Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 Configuration Configure the Logix Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents Notes: 10 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Preface Introduction This quick start provides step by step instructions for using the CNC Machining Accelerator Toolkit to help you design, install, operate, and maintain a CNC work cell incorporating a GuardLogix Supervisory Controller and FANUC Series 30i-B, 31i-B, 32i-B, or 35i-B CNC System. Included are selection tools, layout and wiring drawings, and pre-configured logic and HMI files to assist you in creating an Integrated Architecture™ solution for your application requirements.
Preface Conventions This manual uses the following conventions. Convention Meaning Example CNC Used as an abbreviation for Computer Numeric Control. In this Toolkit, The GuardLogix PLC communicates to the FANUC CNC by using the EtherNet/IP communication protocol. GuardLogix PLC to FANUC CNC EtherNet/IP configuration. Click Click the left mouse button once (assumes cursor is positioned on object or selection). Click button to initiate action. Click Browse.
Preface Additional Resources These documents contain additional information concerning related products from Rockwell Automation.
Preface Table 1 - Additional Resources (Continued) Resource Description CIP Motion and sercos SERCOS and Analog Motion Configuration and Startup User Manual, publication MOTION-UM001 Information on configuring and troubleshooting your ControlLogix and CompactLogix sercos interface modules CIP Motion Reference Manual, publication MOTION-RM003 Provides descriptions of the AXIS_CIP_DRIVE attributes and RSLogix 5000 software Control Modes and Methods CIP Motion Configuration and Startup User Manual, publ
Chapter 1 Architecture and Hardware Selection In this chapter you are introduced to the FANUC CNC Express software to create an EtherNet/IP bill of materials for your CNC system. The CNC Express software provides the means to select hardware and software from FANUC that are stocked locally in the United States. This is for reference only, and is not to be used for final product selection. Please contact your local FANUC representative prior to purchase.
Chapter 1 Architecture and Hardware Selection Figure 1 - CNC Work Cell Application Example 16 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Architecture and Hardware Selection Chapter 1 Before You Begin Collect specific application data, for example: • System input voltage • System CNC model and display options • CNC required options • System I/O requirements • Motor and drive sizing • Other system sizing info What You Need • The CNC Machining Accelerator Toolkit DVD, publication IASIMP-SP018. For a copy of the DVD, contact your local Rockwell Automation distributor or sales representative. • FANUC CNC Express selection software.
Chapter 1 Architecture and Hardware Selection Follow These Steps Complete the following steps to create a bill of materials for your CNC system.
Architecture and Hardware Selection Chapter 1 Review System Selection and Configuration Tools This section provides and overview of the FANUC and Rockwell Automation system selection and configuration tools that you may need for your FANUC configuration. FANUC CNC Express Software The Excel workbook CNC Express Order Forms.xls contains the product information and the actual order forms.
Chapter 1 Architecture and Hardware Selection Rockwell Automation Safety Selection Tools The Safety Accelerator Toolkit provides a number of software selection tools to assist in hardware selection and performance estimation for your safety systems. You may access these software tools within the Safety Accelerator Toolkit DVD, publication SAFETY-CL002.
Architecture and Hardware Selection Chapter 1 Rockwell Automation Product Selection Toolbox Product Selection & System Design Tools The Rockwell Automation Product Selection Toolbox (PST) offers a complete suite of user tools for product selection and configuration across product lines from project conception through final design.
Chapter 1 Architecture and Hardware Selection Open FANUC CNC Express Software 1. Navigate to and choose the CNC Express application, CNC_Work_Cell_BOM.xlsx, on the CNC Machining Accelerator Toolkit DVD. The initial CNC Express dialog box opens.
Architecture and Hardware Selection Chapter 1 2. Click continue to leave the links as they are. The multiplier pop up window will then be displayed. 3. Add the multiplier that has been approved by FANUC, and then click OK. You are now ready to begin creating the bill of materials (BOM). Create CNC System Bill of Materials 1. Select the CNC model, and display options. a.
Chapter 1 Architecture and Hardware Selection b. Use the cells in the spreadsheet to navigate to and select the appropriate CNC package, based on your specific application requirements. The 35i-B selections are displayed. c. Use the cells in the spreadsheet to navigate to and select the appropriate EtherNet/IP options. d. Use the cells in the spreadsheet to navigate to and select the appropriate displays and options.
Architecture and Hardware Selection Chapter 1 2. Select the System I/O. a. Use the tabs near the bottom of the spreadsheet to navigate to and select the IOetc tab, for I/O selection. The IOetc tab is displayed. b. Use the cells in the spreadsheet to navigate to and select the appropriate I/O modules, based on your specific application requirements. The 35i-B selections are displayed. c. Use the cells in the spreadsheet to navigate to and select the appropriate I/O and options.
Chapter 1 Architecture and Hardware Selection 3. Select the drives and motors for the application a. Use the tabs near the bottom of the spreadsheet to navigate to and select the appropriate voltage for the drives, based on your system power voltage. For the CNC Work Cell example, 460V drives is selected. The 460V drives tab is displayed. b. Use the cells in the spreadsheet to navigate to and select the appropriate motors and drives, based on your specific application requirements.
Architecture and Hardware Selection Chapter 1 4. Review the complete CNC configuration. a. Use the tabs near the bottom of the spreadsheet to navigate to and click the Summary tab. The Summary tab is now displayed. b. Use the cells in the spreadsheet to navigate to and select the appropriate CNC control, and drive system selection. When the system is configured properly, the pricing is shown. If the configured solution is not correct, fix conflicts are displayed in the value fields.
Chapter 1 Architecture and Hardware Selection b. Type a new BOM project file name. By creating a new BOM project file specifically for your application, you preserve the initial toolkit file for future reference. In this example, the file was named CNC_Work_Cell_BOM. 6. Repeat step 1…step 5 for each CNC in your system. The BOMs can now be submitted to FANUC for purchase. We recommend that your local FANUC representative review and approve the configuration prior to purchase.
Chapter 2 System Layout and Wiring In this chapter you select CNC layout and wiring drawings from a library of drawings in AutoCAD .dwg, .dxf, or .pdf formats to start your system drawing set. If you are using AutoCAD or AutoCAD Electrical software, you can also take advantage of the drawing editing steps included in this chapter. The library’s device wiring references and attributes move with the devices as you edit your power drawing set.
Chapter 2 System Layout and Wiring This section uses the CNC Work Cell application example to help you understand how to use the drawing libraries. The CNC Work Cell includes the following main devices: • Two FANUC 35i-B CNC systems • Two Kinetix 6500 servo drives and motors • One GuardLogix safety controller and EtherNet/IP network module Before You Begin Complete your system architecture and hardware selection (see Chapter 1).
System Layout and Wiring Chapter 2 Follow These Steps Complete the following steps to create your system layout and wiring drawings. Start Select FANUC CNC Drawings from Drawing Library page 31 Edit FANUC CNC Drawing Set page 34 Assemble and Edit Your GuardLogix System Drawing Set page 44 Select FANUC CNC Drawings from Drawing Library The CNC drawing library is organized by these drawing file types: • AutoCAD Electrical .dwg • AutoCAD .
Chapter 2 System Layout and Wiring 1. Create a project folder. For the CNC Work Cell example, the CNC_Work_Cell folder was created. 2. Browse to the CNC CAD Drawing Library on the CNC toolkit DVD and select the DWG Format Drawings, DXF Format Drawings, or PDF Format Drawings directory. Each drawings directory include these files in their respective files formats.
System Layout and Wiring Chapter 2 3. Copy the entire set of drawings in this folder. 4. Paste the drawing you copied into the Project Drawings folder.
Chapter 2 System Layout and Wiring Edit FANUC CNC Drawing Set These steps provide general instructions for how to maximize the use of the toolkit’s drawing library in creating a complete CNC system layout and wiring drawing set. We recommend AutoCAD or AutoCAD Electrical software to take full advantage of the drawing editing steps and the library’s device wiring references and attributes that move with the devices as you edit your project drawing set.
System Layout and Wiring Chapter 2 Edit CNC Power Drawings 1. Open your initial CNC power drawing that includes the main power distribution components, 01_CNC_Drives_w_Dual Check IO.dwg. See Figure 3 on page 36. 2. Modify this drawing for your project. The 01_CNC_Drives_w_Dual Check IO includes the main power distribution components as well as the CNC power supply, one spindle module and motor, and one servo module and motor. Typically you would have at least these components in each of your CNC systems.
Chapter 2 System Layout and Wiring Figure 3 - 01_CNC_Drives_w_Dual Check IO Drawing 36 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
System Layout and Wiring Chapter 2 Figure 4 - 02_CNC_Drives_w_Dual Check IO Drawing Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 37
Chapter 2 System Layout and Wiring Edit CNC Safety and Standard I/O Drawings 1. If FANUC Dual Check Safety is incorporated into your project, open the following drawings for your project: • 07_CNC_AID16D_Dual_Check_IO_Module • 08_CNC_AID16D_Dual_Check_IO_Module • 09_CNC_AOR8G_Dual_Check_IO_Module 2. Modify your Dual Check safety input module drawings.
System Layout and Wiring Chapter 2 Figure 5 - 07_CNC_AID16D_Dual_Check_IO_Module Drawing Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 39
Chapter 2 System Layout and Wiring Figure 6 - 09_CNC_AOR8G_Dual_Check_IO_Module Drawing 40 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
System Layout and Wiring Chapter 2 Edit System Communication Drawings 1. Open the following communication drawings to access your project's EtherNet/IP configuration drawings: • 15_CNC_Ethernet_Communication • 16_CNC_Ethernet_Switch • 18_CNC_Cable_Connections 2. Delete and or copy network devices to match your system requirements. The 15_CNC_Ethernet_Communication drawing is shown in Figure 7 on page 42.
Chapter 2 System Layout and Wiring Figure 7 - 15_CNC_Ethernet_Communication Drawing.
System Layout and Wiring Chapter 2 Edit CNC System Layout Drawing 1. Open the panel layout drawing for your application. CNC Subpanel Layout Drawing For the CNC Work Cell application example, the 19_CNC_Panel_Layout.dwg file is opened. The panel layout drawing includes sub-panel and enclosure drawings. The panel is designed to accommodate best-practice techniques used to minimize electrical noise. Refer to the System Design for Control of Electrical Noise Reference Manual, publication GMC-RM001. 2.
Chapter 2 System Layout and Wiring Assemble and Edit Your GuardLogix System Drawing Set If Rockwell Automation Kinetix and PowerFlex drives are to be used in your system, use the Drives and Motion Accelerator Toolkit DVD, publication IASIMP-SP017, to assemble and edit your GuardLogix system drawing set. For a copy of the DVD, contact your local Rockwell Automation distributor or sales representative.
System Layout and Wiring Chapter 2 If Rockwell Automation GuardLogix safety controller and safety components are used in the system, use the Safety Accelerator Toolkit DVD, publication SAFETY-CL002, to assemble your safety wiring and layout drawing set. For a copy of the DVD, contact your local Rockwell Automation distributor or sales representative.
Chapter 2 System Layout and Wiring Notes: 46 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Chapter 3 FANUC CNC Configuration In this chapter you initially configure your FANUC 30i-B, 31i-B, 32i-B, or 35i-B CNC, set up the CNC communication, and create a new project file for your CNC application. The intent is to provide a quick setup for an EtherNet/IP connection between a Rockwell Automation ControlLogix/GuardLogix PLC and a FANUC 30i-B, 31i-B, 32i-B, or 35i-B CNC.
Chapter 3 FANUC CNC Configuration Follow These Steps Complete these steps to configure your FANUC 30i-B, 31i-B, 32i-B, or 35i-B CNC for your application. Start Initial FANUC CNC Configuration page 48 Logic Configuration page 68 Initial FANUC CNC Configuration In this example, you set up your FANUC 30i-B, 31i-B, 32i-B, or 35i-B CNC to allow configuration parameters to be modified, to receive configuration parameters from external sources, and to select the high speed Ethernet option.
FANUC CNC Configuration Chapter 3 Parameter Write Enable Set the parameter write enable (PWE, 8900#0) bit to allow the configuration parameter changes described in the following sections. 1. Press the OFS/SET button on the QWERTY MDI Panel to open the SETTING (HANDY) screen. Either the OFFSET screen or the SETTING screen is displayed. On first powerup, the OFFSET screen is displayed. 2. Press the SETTING button to call the SETTING screen.
Chapter 3 FANUC CNC Configuration 3. Use the arrow keys on the MDI panel to move to the desired selections. 4. Prior to setting the parameter, be sure that MDI modes has been selected by pressing the button on the CNC main panel. 5. Enter 1 from the numeric entry, then press INPUT to set the parameter write enable bit (PWE, 8900#0). This lets you set the parameters, and configure the CNC for use. 6. Setting this may cause an alarm to be triggered and displayed.
FANUC CNC Configuration Chapter 3 High Speed Ethernet Option Select the high speed Ethernet option to be used. This enables the fast Ethernet board to be used, and is required for the CNC EtherNet/IP option. 1. Press the SYSTEM function key from the MDI panel. The system PARAMETER screen is displayed. 2. Press either the + softkey or the right arrow function key to advance to the chapter selection for PMC configuration.
Chapter 3 FANUC CNC Configuration The chapter selection screen to display the PMC configuration options is displayed. 3. Press the PMC CONFIG softkey. 4. Press either the + softkey or the right arrow function key to advance to the chapter selection for PMC online configuration, then press ONLINE. The chapter selection screen to display the PMC online configuration options is displayed. 5. Use the arrow keys on the MDI panel to move to the HIGH SPEED field, then select USE.
FANUC CNC Configuration Chapter 3 Configure Ethernet Module In this example, you configure the fast Ethernet board for communicating to the Supervisory PLC, and an offline development personal computer. See CNC to Controller Communication on page 208 for location of the fast Ethernet board. IP Address, Subnet Mask, and Port Number Configure the IP Address of the fast Ethernet board to allow network connectivity. 1. Press the SYSTEM function key from the MDI panel.
Chapter 3 FANUC CNC Configuration The chapter selection screen to display the fast Ethernet options is displayed. 3. Press the ETHERNET softkey to view the settings and selections of the fast Ethernet board. 4. Press the COMMON softkey to view the common settings of the fast Ethernet board. It may be necessary to press either the + softkey or the right arrow function key to advance to the chapter selection for Ethernet common. 5.
FANUC CNC Configuration Chapter 3 7. Press the FOCAS2 softkey to view the FOCAS2/ETHERNET settings of the fast Ethernet board. 8. Verify that PORT NUMBER (TCP) is 8193. This is the default port number, and also the default configuration for the offline development software packages. The Ethernet board is now configured for the connection to the offline development personal computer.
Chapter 3 FANUC CNC Configuration Create a New Project File Throughout the rest of this chapter, the controller and network configuration procedures are written specifically for an S35i-B CNC. Steps for other FANUC CNC models are similar. It is assumed that FANUC LADDER III has been installed and is operational on the development personal computer being used for this task. The process of creating a new project is based on using an example file that has been pre-written.
FANUC CNC Configuration Chapter 3 The sample program opens, and is ready for editing. Change the CNC model for your specific application. 4. From the File menu, choose PMC Type changed and save.
Chapter 3 FANUC CNC Configuration 5. Select the model. 6. Select the control configuration for the specific application.
FANUC CNC Configuration Chapter 3 7. From the File menu, choose Save As. 8. Save as a different file name, in a different location. 9. Click OK and save with the default options. 10. Click OK. You are now ready to begin editing the file for your specific application.
Chapter 3 FANUC CNC Configuration Download FANUC LADDER III Software Project to the FANUC S35i-B CNC 1. Open your FANUC LADDER III project file. 2. From the Tool menu, choose Communication. The Communication dialog box opens. 3. Click the Network Address tab and click Add Host. 4. Type in the IP address of the CNC that you are working on, then click OK. The host has now been entered into the address list.
FANUC CNC Configuration Chapter 3 5. Click Connect to establish communication with the CNC. 6. After the successful connection has been established, click Close to close the dialog box. 7. From the Tool menu, choose Store to PMC.
Chapter 3 FANUC CNC Configuration The Program transfer wizard dialog box opens. 8. Click Next, then Finish. 9. After the download is complete, the Program transfer wizard dialog box closes, and the Program RUN/STOP dialog box appears. Click Yes to run the program. The FANUC LADDER III PMC program is now downloaded and running within the s35i-B CNC.
FANUC CNC Configuration Chapter 3 USB External Device Define the USB port as the punch/reader port. This lets you receive and save configuration files to an external portable USB device. 1. Use the arrow keys as previously described to move to the I/O CHANNEL setting and enter the value 17. You will see the value displayed on the entry line beneath the settings. 2. Press INPUT as previously described, to change the parameter. You will now see the value 17 displayed in the parameter.
Chapter 3 FANUC CNC Configuration EtherNet/IP Settings Configure the EtherNet/IP settings of the fast Ethernet board to allow the communication to the supervisory PLC, and the connection to the Rockwell Automation AOP as detailed in Chapter 4.
FANUC CNC Configuration Chapter 3 2. Take the USB device and plug it into the CNC port next to the panel display. 3. Press the SYSTEM function key from the MDI panel. The System PARAMETER screen is displayed.
Chapter 3 FANUC CNC Configuration 4. Press either the + softkey or the right arrow function key to advance to the chapter selection for Ethernet network. The chapter selection screen to display the fast Ethernet options is displayed. 5. Press the ETHERNET softkey to view the settings and selections of the fast Ethernet board.
FANUC CNC Configuration Chapter 3 6. Press either the + softkey or the right arrow function key to advance to the chapter selection for EtherNet/IP scanner settings, EIP S SET. 7. Press the (OPRT) softkey to display available operations for the EtherNet/IP scanner settings. 8. Press either the + softkey or the right arrow function key to advance to the operation selection for restore. 9. Press the RESTORE softkey to display available operations for the EtherNet/IP scanner restore operations. 10.
Chapter 3 FANUC CNC Configuration Logic Configuration In this chapter you use the preconfigured PMC logic files and edit them specifically for your application. The toolkit provides a preconfigured PMC file with application and device modules that significantly speed-up your application logic development. An initial I/O configuration is provided as well, as an example only.
FANUC CNC Configuration Chapter 3 The CNC architecture consists of two central processing units (CPUs), one specifically for the coordinated machine motion (CNC), and one for the machine I/O and peripheral functions (PMC). The CNC is the machine module in this example. It consists of proprietary software from FANUC, and is a layer that is not accessible for modifications. FANUC provides a means to interface with a CNC by using pre-defined system data table address registers.
Chapter 3 FANUC CNC Configuration Editing Application Logic Modules and Adding Code 1. Open the FANUC LADDER III file that was saved previously. 2. Review the logic modules in the folder tree. 3.
FANUC CNC Configuration Chapter 3 P0001 (OP Panel Path 1) This application program manages the operator panel and MDI panel I/O interface. The Machine mode push buttons, indicator lights, and feed rate override signals are controlled from this program routine. P0005 (Machine Sequence) This application program manages the sequencing involved in a machine tool application.
Chapter 3 FANUC CNC Configuration P0010 (Window Functions) This application program manages the window functions provided by the CNC. The window functions allow the PMC program to access features of the CNC that are not part of the standard data table interface between the PMC and CNC (refer to the FANUC documentation for further details). This module is used to provide status and command to the EtherNet/IP device modules.
FANUC CNC Configuration Chapter 3 Device Logic Modules IMPORTANT These modules are mandatory for the EtherNet/IP communication between the CNC and the PLC. These pre-defined modules require no modifications to interact with the supervisory PLC and ControlLogix AOP as described in the following chapters. If additional functionality is desired, FANUC and Rockwell Automation have provided an open architecture that can be used.
Chapter 3 FANUC CNC Configuration P00015 (PLC EIP Input Routine) This device program moves the 256 bytes from the data table area previously specified (R1000…R1255) for the EtherNet/IP option into a buffered data table that is used throughout the program by the application modules. A detailed description of these addresses, and the specific mapping between the PLC and CNC, can be found in the CMAT-IDS.xlsx file.
FANUC CNC Configuration Chapter 3 Verify and Save the Project File When you have finished programming your FANUC CNC application with the FANUC LADDER III software, verify and save your file. 1. From the Tool menu, choose Compile to check for errors. 2. Click Exec when the Compile dialog box opens.
Chapter 3 FANUC CNC Configuration 3. Click Close after the compile is complete. TIP If the compile has completed with no errors, than it is OK to download to the CNC; otherwise, review the compile report and return and correct the errors. 4. Click to save your FANUC LADDER III application file.
FANUC CNC Configuration Chapter 3 Download FANUC LADDER III Software Project to the FANUC S35i-B CNC 1. Open your FANUC LADDER III project file. 2. From the Tool menu, choose Communication. The Communication dialog box opens. 3. Click the Network Address tab and click Add Host. 4. Type in the IP address of the CNC that you are working on, then click OK. The host has now been entered into the address list.
Chapter 3 FANUC CNC Configuration 5. Click Connect to establish communication with the CNC. 6. After the successful connection has been established, click Close to close the dialog box. 7. From the Tool menu, choose Store to PMC.
FANUC CNC Configuration Chapter 3 The Program transfer wizard dialog box opens. 8. Click Next, then Finish. 9. After the download is complete, the Program transfer wizard dialog box closes, and the Program RUN/STOP dialog box appears. Click Yes to run the program. The FANUC LADDER III PMC program is now downloaded and running within the s35i-B CNC.
Chapter 3 FANUC CNC Configuration Notes: 80 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Chapter 4 GuardLogix Configuration In this chapter you will use RSLogix5000 to configure your GuardLogix controller, add and configure the FANUC CNC AOP, import preconfigured logic modules, and edit them specifically for your application. In addition, the logic modules include control, status, and diagnostic code that provide information to preconfigured operator interface faceplates that you can run on personal computers or PanelView Plus terminals.
Chapter 4 GuardLogix Configuration The device modules translate the uniform machine and application commands and provide uniform status and diagnostics from the very specific device tags and parameters. This reduces much of the non-inventive code required to control and monitor the many unique devices. For more information on the machine, application, and device logic modules, refer to Appendix A.
GuardLogix Configuration Chapter 4 Follow These Steps Complete these steps to import and configure logic modules for your FANUC CNC application.
Chapter 4 GuardLogix Configuration Create an Initial GuardLogix Project Using the DMAT Wizard If Rockwell Automation Kinetix or PowerFlex drives are used in the system, the DMAT Wizard can be used to significantly streamline GuardLogix configuration and standard logic. Order and Run the DMAT Wizard 1. Order a copy of the Drives and Motion Accelerator Toolkit DVD, publication IASIMP-SP017, from your local Rockwell Automation distributor or sales representative. 2.
GuardLogix Configuration Chapter 4 2. Click the Open icon on the toolbar. 3. From the Files of type pull-down menu choose All RSLogix 5000 files. 4. Navigate to the RSLogix 5000 XML file that was created by the DMAT Wizard and Click Open. If the Drives and Motion Accelerator Toolkit was installed in the default directory, you will find the RSLogix 5000 XML file in: C:\Documents and Settings\PC Name\My Documents\DMAT\ProjectName\MachineName.
Chapter 4 GuardLogix Configuration For the CNC Work Cell example, the path is: C:\Documents and Settings\PCName\My Documents\DMAT\CNC_Work_Cell\CNC_Work_Cell. 5. From the Revision pull-down menu, choose the version of RSLogix 5000 software to import into. IMPORTANT Your RSLogix 5000 software must be version 20.0 or later to use the FANUC CNC AOP. 6. Click Import to save and open the project as an ACD file.
GuardLogix Configuration Chapter 4 GuardLogix Controller and Network Configuration In this section you will create a new GuardLogix project file and configure the EtherNet/IP communications. Create a New Project File Throughout this section the controller and network configuration procedures are written specifically for a 1756-L6x or 1756-L6xS ControlLogix controller. If you are integrating Kinetix motion into your project, we recommend that you select a 1756-L7xS for your system.
Chapter 4 GuardLogix Configuration 3. Configure the new controller. a. From the Type pull-down menu, choose the controller type. b. From the Revision pull-down menu, choose the revision. c. Type the file name in the Name field. d. From the Chassis Type pull-down menu, choose the chassis. e. Enter the Logix processor slot (leftmost slot = 0). 4. Click OK. 5. From the Edit menu, choose Controller Properties. The Controller Properties dialog box opens. 6. Click the Date/Time tab. 7.
GuardLogix Configuration Chapter 4 Configure Ethernet Module for your HMI Terminal and CNC Modules 1. Expand I/O Configuration in the Controller Organizer. 2. Right-click I/O Configuration and choose New Module. The Select Module Type dialog box opens. 3. Expand the Communications category and select your 1756-series Ethernet module. TIP For systems communicating to a FANUC CNC over an EtherNet/IP network, a 1756-EN2x or 1756-EN3x module is required. In this example, the 1756-EN2TR module is selected.
Chapter 4 GuardLogix Configuration 7. From the Time Sync Connection pull-down menu, choose Time Sync and Motion. IMPORTANT Time Sync functionality is what enables motion control on an Ethernet network. While not specifically required for the CNC communication, without this setting, you won’t be able to run motion applications. 8. Click OK to close the Module Definition dialog box. 9. Click Yes when prompted to confirm your module definition changes. 10. Click OK to close the New Module dialog box.
GuardLogix Configuration Chapter 4 Import and Configure the Machine Logic Module In this example, you add the preconfigured machine logic program file to your RSLogix5000 project and configure it to your specific application. 1. Open your RSLogix 5000 software project that you created in the previous section. For the CNC Work Cell application example, the CNC_Work_Cell project was opened. 2.
Chapter 4 GuardLogix Configuration 5. Select the Machine_Module.L5x file and click Import. The Import Configuration dialog box opens.
GuardLogix Configuration Chapter 4 6. Type the desired name for your machine in the Final Name field. For the CNC Work Cell application example, P01_CNC_Work_Cell is the Final Name. 7. Click Tags in the Import Content organizer. The Configure Tag References dialog box opens. 8. Replace _MachineName with the desired tag name of your machine.
Chapter 4 GuardLogix Configuration For the CNC Work Cell application example, CNC_Work_Cell is the tag name. 9. Click OK. The new machine program appears in the Controller Organizer within the Main Task folder.
GuardLogix Configuration Chapter 4 FANUC CNC AOP Configuration To configure the FANUC AOP you update the CNC add-on profiles (AOP), and add and configure the FANUC CNC. Update FANUC CNC Add-On Profile (AOP) IMPORTANT The FANUC CNC add-on profiles are independent of RSLogix 5000 software releases. Update your CNC add-on profiles to make sure your application runs correctly. Add-on profiles (AOP) are available for download at the RSLogix 5000 Add-On Profiles website: http://support.rockwellautomation.
Chapter 4 GuardLogix Configuration Add and Configure FANUC CNC For this CNC Work Cell application example, you will add the FANUC CNC to the EtherNet I/P network. 1. Open your RSLogix 5000 software project file. 2. Expand the I/O Configuration folder in the Controller Organizer and browse to the controller backplane. 3. Right-click the network communication module for your CNC and choose New Module. For the CNC Work Cell example, the 1756-EN2TR module is selected. The Select Module Type dialog box opens.
GuardLogix Configuration Chapter 4 6. Configure the new module. a. Type the module Name. b. Select an Ethernet Address option. In this example, the Private Network address is selected. 7. In the Module Definition field click Change. The Module Definition dialog box opens. 8. Configure module definitions. The Module Definition dialog box lets you configure and access CNC data beyond standard I/O. a. Enter the series letter appropriate for your CNC hardware. b.
Chapter 4 GuardLogix Configuration d. Set the IO Size for your CNC communication. For the CNC Work Cell application example, the IO Size (bytes) is set to 256 bytes. e. Click OK to close the Module Definition dialog box. f. Click Yes to accept the changes.
GuardLogix Configuration Chapter 4 9. Click OK to close the New Module dialog box. 10. Repeat the previous process for all other CNC modules needed for your application. For the CNC Work Cell application example, two CNC modules are needed, one for drilling, and one for machining. The added modules appear in the I/O configuration tree, as shown here. IMPORTANT The CNC Work Cell application example includes two CNC modules and two gantry drives, as shown here.
Chapter 4 GuardLogix Configuration Import and Configure CNC Application Logic Module In this example, you add preconfigured application logic to your RSLogix 5000 project and configure it for each of your CNC applications within your machine. 1. Expand the Tasks folder in your Controller Organizer, and right-click the Main Task folder. 2. Choose Import Program. 3. Navigate to the 01_GuardLogix_Logic folder within the toolkit’s files folder and open the 02_Application Logic folder.
GuardLogix Configuration Chapter 4 4. Select the Application_Module.L5x file and click Import. The Import Configuration dialog box opens.
Chapter 4 GuardLogix Configuration 5. Enter the name for your initial CNC application in the Final Name field. For the CNC Work Cell application example, the Final Name is P03_Machining. 6. Click Tags within the Import Content organizer. The Configure Tag References dialog box opens. 7. Replace the _ApplicationName and _MachineName with the desired tag names of your application and machine.
GuardLogix Configuration Chapter 4 9. Repeat step 1…step 8 for each application within your machine.
Chapter 4 GuardLogix Configuration Import and Configure FANUC CNC Device Logic Modules In this example, you add preconfigured FANUC CNC device logic to your RSLogix5000 project and configure it for each of your FANUC CNC systems within your machine. 1. Expand the Tasks folder in your Controller Organizer and right-click the Main Task folder. 2. Choose Import Program. 3. Navigate to the 01_GuardLogix_Logic folder within the toolkit’s files folder and open the 03_Device Modules folder.
GuardLogix Configuration Chapter 4 4. Select the Fanuc_CNC_Module and click Import. The Import Configuration dialog box opens.
Chapter 4 GuardLogix Configuration 5. Enter the name for your initial device in Final Name field. For the CNC Work Cell application example, P04_Drill_CNC is the Final Name. 6. Click Tags within the Import Content organizer. The Configure Tag References dialog box opens. 7. Replace Final Tag Names with associated CNC and machine names that you have already configured in Chapter 4. a. Replace _CNCName of _CNCName:I, _CNCName:O, and _CNCName_FP tags with the name your FANUC CNC. b.
GuardLogix Configuration Chapter 4 For the CNC Work Cell application example, the following tag names were entered. 8. Click OK. The new device module program appears in the Controller Organizer within the Main Task folder. For the CNC Work Cell application example the new program named P04_Drill_CNC appears in Controller Organizer. 9. Repeat step 1…step 8 for each FANUC CNC system in your machine.
Chapter 4 GuardLogix Configuration For the CNC Work Cell application example, two additional programs (CIPMotion_Drive_Module) were added by the DMAT Wizard for gantry X and Y drives. Refer to the Drives and Motion Accelerator Toolkit DVD, publication IASIMP-SP017, for information about importing and configuring additional drives and motion modules.
GuardLogix Configuration 3. Click Chapter 4 . The String Browser dialog box opens. 4. Enter the name of the associated application or device module. This string name is used within the alarm history messages providing the fault origin. 5. Click OK. The string tag value field updates with the name you typed in. For the CNC Work Cell application example, the value is Gantry. 6.
Chapter 4 GuardLogix Configuration Machine CNC Example Gantry X Axis Drive Example Gantry Y Axis Drive Example 110 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
GuardLogix Configuration Chapter 4 Set Visible Rows for Equipment Status Faceplate If you plan to use the equipment status faceplate with your HMI application, follow these steps to set the Inp_NumRowsVis tag value within the faceplate Add-On Instruction of the device you intend to place in the first row. 1. Determine how many of the nine available rows you will use in the Equipment Status faceplate.
Chapter 4 GuardLogix Configuration 4. Navigate to the Inp_NumRowsVis tag and select the value. 5. Enter the number of devices you determined in step 1. For the CNC Work Cell application example, 4 was entered. 6. Click OK to close Add-On Instruction properties and complete the update.
GuardLogix Configuration Chapter 4 Import and Configure Device and Application Status Logic In this example, you add the device and application status information rungs to the R02_Monitor routine of your machine program. 1. Expand the Tasks folder in the Controller Organizer. 2. Navigate to and open the R02_Monitor routine of your machine program. For the CNC Work Cell application example, the R02_Monitor routine within the P01_CNC_Work_Cell program was opened. 3.
Chapter 4 GuardLogix Configuration 4. Navigate to the 01_GuardLogix_Logic folder within the toolkit’s files folder and open the 01_Machine Logic folder. The file path is C:\Program Files\RA_Simplification\CMAT\A-Files\ 4-Controller Logic\01_GuardLogix_Logic. 5. Select the Device&Application_Status.L5X file. 6. Check Overwrite Selected Rungs. 7. Click Import. The Import Configuration dialog box opens. 8. Click Tags within the Import Content organizer.
GuardLogix Configuration Chapter 4 The Configure Tag References dialog box opens. 9. Replace Final Tag Names with the associated UDT_AppStatus tag names or UDT_ModuleStatus tag names for your specific application. For the CNC Work Cell application example, both _ApplicationName UDT_AppStatus tags were assigned to Gantry and Machining UDT_AppStatus tags, and _ModuleName01…04 UDT_ModuleStatus tags were assigned to Drill_CNC, Machine_CNC, Gantry_X_Drive, and Gantry_Y_Drive UDT_ModuleStatus tags.
Chapter 4 GuardLogix Configuration 10. From the Operation pull-down menu, choose Discard for each unused _ApplicationNameXX and _ModuleNameXX tag. For the CNC Work Cell application example, Discard was chosen for unused tags _ModuleName05…10. 11. Click OK to complete rung import.
GuardLogix Configuration Chapter 4 The imported module status rungs appear starting in rung 13 and the application status rungs appear starting in rung 19 of the R02_Monitor routine of your machine program.
Chapter 4 GuardLogix Configuration 12. Delete all unused instructions within all of the module status and application status rungs. a. Right-click instruction to delete. b. From the pull-down menu, choose Delete Instruction. c. Repeat process for all unused instructions in rungs 13…24.
GuardLogix Configuration Chapter 4 Rungs 13…24 appear without edit rung indication and verify OK when all unused instructions have been deleted. 13. Add Instructions to Rungs 13…24 if more than two applications and/or more than ten modules (devices) are required for your machine. a. Copy existing status input instruction. b. Paste existing status input instruction. c. Rename pasted input instruction with additional module (device) status tag name. d.
Chapter 4 GuardLogix Configuration Create Specific Application Logic Now that you have imported and configured all the machine, application, and device modules, you can begin creating the specific application logic for your machine. You create your application logic within the R10_ApplicationCode routine of the application module. There are two methods for creating specific application logic for your machine.
GuardLogix Configuration Chapter 4 Figure 9 - Run Sequence Template ============================================ BY DEFAULT THE FOLLOWING RUNGS WILL BE ERRORED AND THEREFORE MUST BE ADDRESSED...
Chapter 4 GuardLogix Configuration The run sequence is initiated by a machine START command via the start logic in the R03_Control routine of the application module. By default, the run sequence is initiated by placing a value of 1 in the RunSEQ[0] tag. When the RunSEQ[0] tag is set to 1, the first step in the run sequence is executed, starting the run sequence. Each of the rungs in the run sequence provides a placeholder where you can insert application-specific step logic.
GuardLogix Configuration Chapter 4 Figure 11 - Final Run Sequential Step Example Much like the first run-step example rung, this CNC Work Cell final run step example also includes unlatch (U) instruction, as well as a MOV instruction for assigning a simulation number, used for this example. The RunSeq MOV instruction indexes to the next sequence step, a value of 1 this time, which will repeat the RunSeq steps.
Chapter 4 GuardLogix Configuration Figure 12 - Stop Sequence Template ============================================ STOP SEQUENCE ============================================ NOP 5 6 7 8 e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e SEQUENCE INITIATE This rung is a placeholder where Application specific logic can be inserted. By default, StopSEQ[0] is initially set to 1 following a Machine STOP command (that is, "MachineName".Cmd.STOP).
GuardLogix Configuration Chapter 4 The move (MOV) instruction is a placeholder to advance the stop sequence to the next step by incrementing the StopSEQ[0] tag. Each step in the stop sequence requires a unique value be assigned in ascending order. The steps typically increase by multiples of five or ten. By default, the stop sequence-template steps 1…10…20…30 …999. Before moving to the next step, a predetermined condition must normally be met to make sure the current step is complete.
Chapter 4 GuardLogix Configuration Figure 14 - Final Stop Sequential Step and Sequence Complete Example This CNC Work Cell final stop step and complete logic example includes logic to unlatch (U) the Stopped status, one the gantry has been confirmed to be stopped. Identical to the stop sequence template, the stop sequence complete rung sets the StopSEQ[0] tag value to 999, which indicates the stop sequence is complete.
GuardLogix Configuration Chapter 4 CNC Work Cell Logic Example Overview To assist you in understanding how to best use the logic examples, the CNC Work Cell application is used as an example. We recommend you study the CNC Work Cell gantry and machining applications to see the interaction of the machine, application, and device modules within the application logic. The CNC Work Cell examples are created by using basic CNC application examples included in the toolkit.
Chapter 4 GuardLogix Configuration The CNC Work Cell example has two applications (gantry and machining) and has the following run sequences.
GuardLogix Configuration Chapter 4 Import Application Logic Examples In this example, you add logic examples to your R10_ApplicationCode routine within your application modules. 1. Expand the Tasks folder in the Controller Organizer. 2. Navigate to and open the R10_ApplicationCode routine within your first application program file. For the CNC Work Cell application example, the R10_ApplicationCode routine within the P02_Gantry program was opened. 3. Select all rungs of the R10_ApplicationCode routine. 4.
Chapter 4 GuardLogix Configuration 5. Navigate to the 02_Application Logic folder within the toolkit’s files folder. The file path is C:\Program Files\ RA_Simplification\CMAT\A-Files\ 4-ControllerLogic\ 01_GuardLogix_Logic\ 02_Application_Logic. 6. Double-click the CNC_Work_Cell_Logic_Examples folder. 7. Select the logic example file to start your application logic. For the CNC Work Cell application example, the App1_Gantry_Simulation.L5X file is selected. 8. Check Overwrite Selected Rungs. 9.
GuardLogix Configuration Chapter 4 The Configure Tag References dialog box opens. 11. Replace tag names in the Final Name column with the associated axis or drive names for your application. For the CNC Work Cell application example, _CNC_1 was replaced with Drill_CNC, and _CNC_2 was replaced with Machine_CNC. 12. Click OK to complete rung import. 13. Repeat step 2…step 12 for each logic example you wish to import.
Chapter 4 GuardLogix Configuration For the CNC Work Cell gantry application example, the following rungs are imported. The rungs include a series of five incremental moves.
GuardLogix Configuration Chapter 4 For the CNC Work Cell application example, the R10_ApplicationCode routine within the P03_Machining program was also opened and the CWC_Machine_App2.L5X file was imported.
Chapter 4 GuardLogix Configuration For the CNC Work Cell App2_CNC_Machining.
GuardLogix Configuration Chapter 4 For the CNC Work Cell Machining example, the following rungs are imported. The rungs include a series of commands for the FANUC CNCs, Drill_CNC and Machine_CNC.
Chapter 4 GuardLogix Configuration Application Logic Creation Steps That Use a Template If you are familiar with Rockwell Automation’s general Logix commands, FANUC CNC parameters and commands, and have a good idea of your specific run/stop sequences, use these steps to guide you through your specific application logic creation. 1. Formulate and list your run sequence steps. 2. Add your initial run sequence step (RunSEQ[0] = 1) to the R10_ApplicationCode routine of your imported application module. 3.
GuardLogix Configuration Chapter 4 Safety Logic Integration There are different ways to provide a safety system for a CNC machining work cell. This toolkit provides an example of a supervisory GuardLogix safety controller that provides safety control for the two gantry drives, an EStop, a light curtain, and provides safety interlocking with the Dual Check Safety systems of the two CNC systems.
Chapter 4 GuardLogix Configuration GuardLogix Safety Logic The toolkit also provides example GuardLogix safety logic and associated FactoryTalk View ME safety faceplates. The example GuardLogix safety configuration and logic is in the CNC_Work_Cell_Logic_w_Safety.ACD file. The file path is C:\Program Files\RA_Simplification\CMAT\A-Files\6-Project Examples\CNC-Work-Cell\. For this example, one SafetyPoint input module and one SafetyPoint output module is configured.
GuardLogix Configuration Chapter 4 Figure 19 - Zone 1 Emergency Stop Example Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 139
Chapter 4 GuardLogix Configuration Figure 20 - Zone 1 Light Curtain Example 140 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
GuardLogix Configuration Chapter 4 Figure 21 - Zone 1 Dual Check Safety Drill CNC Example Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 141
Chapter 4 GuardLogix Configuration Figure 22 - Zone 1 Dual Check Safety Machine CNC Example 142 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
GuardLogix Configuration Chapter 4 The safety inputs are then interlocked with the safety outputs connected to Gantry_X and Gantry_Y drive safe-torque off inputs, and Drill_CNC and Machine_CNC Dual Check Safety inputs. The safety interlock, reset, output, and safety reset logic is also included. See Figure 23 on page 143 and Figure 24 on page 144 for an example of the safety outputs.
Chapter 4 GuardLogix Configuration Figure 24 - Safety Outputs Example (continued) Safety Faceplate Logic In addition to the safety logic, the Safety Accelerator Toolkit DVD, publication SAFETY-CL002, includes safety I/O faceplates that allow you to view the status of the safety circuits and logic, and provides diagnostics for safety demands and faults. To communicate with these faceplates, preconfigured faceplate logic needs to be added to your project’s standard task.
GuardLogix Configuration Chapter 4 Figure 25 - P08_GuardIO_FP Example Refer to Configure Safety Faceplate Displays on page 193 to add Guard I/O faceplates to your project’s HMI.
Chapter 4 GuardLogix Configuration Verify and Save the Project File 1. On the RSLogix 5000 toolbar, click to verify your controller. This software function verifies your RSLogix 5000 controller programs and displays errors/warnings, if any. 2. Make corrections to programs as needed. 3. Click to save your RSLogix 5000 project file. After saving your application, you’ll want to download and test it. See Chapter 6 for downloading your application and system commissioning procedures.
Chapter 5 FactoryTalk View ME Configuration In this chapter, you create the operator interface application file for your system by using FactoryTalk View Studio software. The toolkit includes preconfigured machine and device faceplate displays that provide status, control, and diagnostics for your supervisory PLC and CNC systems.
Chapter 5 FactoryTalk View ME Configuration Figure 26 - Device Faceplate Display Example • The device faceplates are complex displays that provide status, control, and fault diagnostic views for a specific device. • The toolkit includes device faceplates for FANUC CNC devices. • This example shows specific views for the FANUC CNC faceplate.
FactoryTalk View ME Configuration Chapter 5 Figure 27 - Device Faceplate Display Example (continued) Alarm History Faceplate Display The Alarm History display provides time and date stamped machine and device faults and alarms. This display is sized for use in PanelView Plus 700 or larger terminals. Equipment Status Faceplate Display This Equipment Status display provides a summary status of the devices in your system and a launch site for your individual device faceplate displays.
Chapter 5 FactoryTalk View ME Configuration • If Rockwell Automation GuardLogix safety controller and safety components are used in the system, the Safety Accelerator Toolkit DVD, publication SAFETY-CL002, can be used to significantly streamline FactoryTalk View ME configuration. For a copy of the DVD, contact your local Rockwell Automation distributor or sales representative. • The user manual for FactoryTalk View Studio, Volume 1.
FactoryTalk View ME Configuration Chapter 5 Design from a Preconfigured HMI Application File If you are creating a new HMI application file for your system, use this section to configure your application file. Using the preconfigured HMI application file is the most efficient way to create your application file. It includes all of the displays, parameter files, and Alarm Setup File tags and messages required for all faceplates and devices.
Chapter 5 FactoryTalk View ME Configuration Application Folder PanelView Plus Terminals Supported Faceplates Displays PVP600 PanelView Plus 400, PanelView Plus 600 Machine Startup Display, All Device Displays PVP1000 PanelView Plus 700, PanelView Plus 1000, PanelView Plus 1250, (1) PanelView Plus 1500 (1) Machine Startup Display, Machine State Diagram Display, All Device Displays, Alarm History Display Equipment Status Display (1) The PanelView Plus 1000 Machine, Alarm History, and Equipment Stat
FactoryTalk View ME Configuration Chapter 5 8. From the Existing tab, select the application file that you just restored. For the CNC Work Cell application example, CNC_Work_Cell is selected. 9. Click Open. The application opens in FactoryTalk View Studio software.
Chapter 5 FactoryTalk View ME Configuration Delete Unused Displays 1. Determine the required faceplates for your application based on the table below. TIP Only one faceplate display is required for devices/modules of the same type.
FactoryTalk View ME Configuration Chapter 5 2. Expand the Displays component under the Graphics folder. 3. Right-click displays not needed in your application and choose Delete. Confirm deleting each un-needed display by clicking Yes. Delete Unused Parameter Files 1. Determine required parameter files for your application based on the table on page 154. 2. Expand the Parameters component under the Graphics folder. 3. Right-click Parameter files not needed in your application and choose Delete.
Chapter 5 FactoryTalk View ME Configuration Configure Parameter Files 1. Right-click a parameter file for a device in your application and choose Rename. 2. Rename the parameter file with the name of the corresponding device in your RSLogix 5000 application. If more than one device uses the same faceplate then another parameter of the same type must be duplicated and renamed. Refer to step 4 and step 5 on page 157. For the CNC Work Cell example, these are the parameter files.
FactoryTalk View ME Configuration Chapter 5 4. To create another parameter file based on an existing one, right-click the parameter file and choose Duplicate. For the CNC Work Cell application example, Drill_CNC and Machine_CNC use the same Fanuc_CNC_Faceplate, but require individual parameter files. For example, Drill_CNC is duplicated and renamed to Machine_CNC in step 5. 5. Rename the parameter file as needed for your application. 6. Click OK. 7.
Chapter 5 FactoryTalk View ME Configuration For example, in the CNC Work Cell Drill_CNC parameter file, parameter #1 contains the shortcut name [CLX]. This shortcut name matches the name created in your RSLinx Enterprise communication setup. Parameter #2 represents the tag name for the specific faceplate Add-On Instruction, within your RSLogix 5000 project, from which the faceplate requests data.
FactoryTalk View ME Configuration Chapter 5 For the CNC Work Cell example, the parameters are edited as follows.
Chapter 5 FactoryTalk View ME Configuration Delete Unused Alarm Triggers and Tags TIP IMPORTANT Deleting the alarm triggers for hardware devices not used in your application may improve performance of your PanelView Plus terminal communication. These steps must be completed if a machine module is not used in your RSLogix 5000 project. 1. Expand the Alarms folder. 2. Double-click Alarm Setup. The Alarm Setup dialog box opens. 3. Click the Triggers tab. 4.
FactoryTalk View ME Configuration Chapter 5 8. Expand the HMI Tags folder and double-click Tags. The HMI Tags editor appears in the workspace. 9. Select each of the xxxAlarmHandshake, xxxAlarmName, and xxxAlarmTrigger tags associated with each of the alarm triggers that were deleted in the previous steps. For example, the circled tags are the three tags you would delete if the E3AlarmTrigger had been deleted previously. 10. Click to delete the tags. 11.
Chapter 5 FactoryTalk View ME Configuration Design from an Existing HMI Application File If your existing HMI application file is not too extensive, it may still be more efficient to start from the preconfigured HMI application file and copy your existing application displays, parameter files, and alarm messages. Refer to Design from a Preconfigured HMI Application File on page 151.
FactoryTalk View ME Configuration Chapter 5 2. Launch your FactoryTalk View Studio software and open your existing application file. For this example, the InstantFizz_ME application file is opened. 3. Right-click Displays within Graphics folder and choose Add Component Into Application. 4. Navigate to the HMI Modules folder within the toolkit’s files folder. The file path is C:\Program Files\ RA_Simplification\CMAT\A-Files\ 5-HMI\ME\HMI Modules\ 01_Machine. 5.
Chapter 5 FactoryTalk View ME Configuration 6. Select the faceplate display file you want to add. For this example, the PVP1000_Startup_Faceplate.gfx was selected 7. Click Open. The selected display is added to the Displays folder. 8. Repeat step 3…step 7 for each faceplate required for your application. TIP IMPORTANT 164 Only one faceplate is required for multiple device/modules of the same type. For example, if your application has two FANUC CNCs requiring a faceplate, only one Fanuc_CNC_Faceplate.
FactoryTalk View ME Configuration Chapter 5 Add Parameter Files 1. Determine required parameter files for your application. Refer to the faceplate displays table on page 162 for the parameter file required for each faceplate. 2. Right-click Parameters within the Graphics folder and choose Add Component Into Application. 3. Navigate to the HMI Modules folder within the toolkit’s files folder. The file path is C:\Program Files\ RA_Simplification\CMAT\A-Files\ 5-HMI\ME\HMI Modules\01_Machine. 4.
Chapter 5 FactoryTalk View ME Configuration The selected parameter is added to the Parameters folder. 7. Repeat step 2…step 6 for each parameter file required for your application. IMPORTANT 166 The CNC Machining Accelerator Toolkit does not include the specific CIP_Motion, SERCOS, Kinetix, or PowerFlex faceplate parameters. Refer to the Drives and Motion Accelerator Toolkit DVD, publication IASIMP-SP017, for access to these faceplate parameters.
FactoryTalk View ME Configuration Chapter 5 Configure Parameter Files In this example, you configure a parameter file for each device or logic module in your application supported by a faceplate. 1. Right-click a parameter file for a device in your application and choose Rename. 2. Rename the parameter file with the name of the corresponding device in your RSLogix 5000 application. If more than one device uses the same faceplate then another parameter of the same type must be duplicated and renamed.
Chapter 5 FactoryTalk View ME Configuration 4. To create another parameter file based on an existing one, right-click the parameter file and choose Duplicate. For the CNC Work Cell application example, Drill_CNC and Machine_CNC use the same Fanuc_CNC_Faceplate, but require individual parameter files. For example, Drill_CNC is duplicated and renamed to Machine_CNC in step 5. 5. Rename the parameter file as needed for your application. 6. Click OK. 7.
FactoryTalk View ME Configuration Chapter 5 The CNC Work Cell Drill_CNC parameter #2 is assigned to the faceplate Add-On Instruction tag named Drill_CNC_FP found in the R02_Monitor routine of the P04_Drill_CNC program. a. Double-click the parameter file to open it. b. Enter your application controller’s shortcut name in all parameters. TIP Less editing is required when assigning HMI alarm tags if you name your controller shortcut [CLX].
Chapter 5 FactoryTalk View ME Configuration For the CNC Work Cell example, the parameters are edited as follows.
FactoryTalk View ME Configuration Chapter 5 Import Alarm Setup File Importing the Alarm Setup File is optional and required only if you are using the alarm history faceplate in your application. IMPORTANT When importing the Alarm Setup File, your existing alarm configuration is lost. When prompted to back up your existing alarm configuration, you can choose to save it as an XML file. 1. Right-click Alarm Setup within Alarms folder and choose Import and Export. The Alarm Import Export Wizard opens. 2.
Chapter 5 FactoryTalk View ME Configuration 9. Navigate to the 03_Alarm_History folder within the toolkit’s files folder. The file path is C:\Program Files\ RA_Simplification\CMAT\A-Files\5-HMI\ ME\HMI Modules\03_Alarm_History. 10. Select the Alarms.xml file. 11. Click Open. The Alarm Import Export Wizard opens. 12. Click Finish. 13. Expand the Alarms folder and double-click Alarm Setup to verify import. The triggers listed within the Triggers tab appear as shown. 14.
FactoryTalk View ME Configuration Chapter 5 Delete Unused Alarm Triggers IMPORTANT TIP IMPORTANT Deleting unused alarm triggers is optional and applies only if you have imported the Alarm Setup File in the last section. Deleting the alarm triggers for hardware devices not used in your application may improve performance of your PanelView Plus terminal communication. These steps must be completed if a machine module is not used in your RSLogix 5000 project. 1. Expand the Alarms folder. 2.
Chapter 5 FactoryTalk View ME Configuration Import and Edit Alarm Tags Importing and editing alarm tags is optional and required only if you intend to use the alarm history faceplate in your application. 1. From the Tools menu, choose Tag Import and Export Wizard. The Tag Import and Export Wizard dialog box opens. 2. From the Operation pull-down menu, choose Import FactoryTalk View tag CSV files. 3. Click Next. 4. Click to browse for your existing FactoryTalk View.med project file. 5. Click Next. 6.
FactoryTalk View ME Configuration Chapter 5 7. Select AlarmHistory_Tags. 8. Click Open. 9. Verify selected file and click Next. 10. Select Skip existing (fastest) and click Next. 11. Click Finish to execute import. 12. Close database confirmation dialog box.
Chapter 5 FactoryTalk View ME Configuration 13. Expand the HMI tags folder in the project Explorer™ tool and double-click Tags. The HMI Tags editor appears in the workspace. 14. Verify a number of alarm tags have been added to the HMI tags listing. 15. Select each of the xxxAlarmHandshake, xxxAlarmName, and xxxAlarmTrigger tags associated with each of the alarm triggers that were deleted in the previous section.
FactoryTalk View ME Configuration Chapter 5 Configure Goto Display Buttons on Startup Display The Goto buttons on the main startup screen that are used for launching the FANUC CNC faceplates use a special Goto button that is different than standard device Goto buttons that are included in the startup screen. The CNC Goto buttons includes a CNC status multi-state indicator directly on the button. For the CNCs in your application you must replace the default device Goto buttons with the CNC Goto buttons.
Chapter 5 FactoryTalk View ME Configuration 4. Open your existing system display. 5. Delete existing Device Goto buttons for each CNC in your system. For the CNC Work Cell application example, Device 1 and Device 2 Goto buttons were deleted. 6. Open the Goto_FanucCNC display and copy the CNC Module GotoDisplay button. 7. Open your system display.
FactoryTalk View ME Configuration Chapter 5 8. Right-click Display and choose Paste. 9. Repeat step 1…step 8 for each CNC module in your application. Associate Each Button to a Faceplate and Parameter File 1. Click the copied Goto display button and from the View menu, choose Object Explorer. 2. In the Object Explorer tool, double-click the Goto display button to open the Goto Display Button Properties dialog box.
Chapter 5 FactoryTalk View ME Configuration 3. On the General tab, click the browse button next to the Display field. 4. Select the desired faceplate display and click OK. 5. Click the browse button next to the Parameter file field. 6. Select the associated parameter file and click OK.
FactoryTalk View ME Configuration Chapter 5 7. Click the Label tab to configure the desired button caption text. 8. Type the new name in the Caption field. For the first label within the CNC Work Cell application example, Drill CNC was entered.
Chapter 5 FactoryTalk View ME Configuration 9. Use the Object Explorer tool to open the multistate indicator for the Goto button. 10. Assign the expression for multistate indicator object caption by clicking the Connections tab on the Multistate Indicator Properties dialog box. 11. Click Exprn.
FactoryTalk View ME Configuration Chapter 5 12. Create the expression as shown. Replace CNCName_FP with the actual name of the CNC as defined in your PLC program for the CNC that this Goto display button represents. For the CNC Work Cell application example, the first CNC is the Drilling CNC, so the CNCName_FP was replaced with Drill_CNC_FP.
Chapter 5 FactoryTalk View ME Configuration After you have copied all the objects you need for your display, you can delete the Goto display file from your application. 15. Right-click the file and choose Delete. 16. Select all unused Goto display buttons and delete. For the CNC Work Cell application example, Device 5 through Device 10 Goto Display buttons were selected and deleted. 17.
FactoryTalk View ME Configuration Chapter 5 Configure Equipment Status Faceplate Display The equipment status faceplate display provides a summary status of the devices in your system and another launch site for your individual device faceplates. IMPORTANT This section is optional and necessary only if you intend to use the equipment status faceplate.
Chapter 5 FactoryTalk View ME Configuration Add the Equipment Status Faceplate Display 1. Right-click Displays within the Graphics folder and choose Add Component Into Application. 2. Navigate to the 04_Equipment_Status folder within the toolkit’s files folder. The file path is C:\Program Files\ RA_Simplification\CMAT\A-Files\ 5-HMI\ME\HMI Modules\ 04_Equipment_Status. 3. Select the PVP1000_EquipmentStatus_Faceplate.gfx file. 4. Click Open.
FactoryTalk View ME Configuration Chapter 5 Add the ME_Equipment_Parameter File 1. Right-click Parameters within the Graphics folder and choose Add Component Into Application. 2. Navigate to the 04_Equipment_Status folder within the toolkit’s files folder. The file path is C:\Program Files\ RA_Simplification\CMAT\A-Files\ 5-HMI\ME\HMI Modules\ 04_Equipment_Status. 3. Select the EquipmentStatus_Parameter.par file. 4. Click Open. 5. Verify the MachiningStatus_Parameter file appears under Parameters. 6.
Chapter 5 FactoryTalk View ME Configuration 7. Assign device faceplate Add-On Instruction tags to all nine parameters. Each parameter #1…#9 corresponds to the device Add-On Instruction tag name of each machining status faceplate Row #1…#9. You must assign the #1 parameter to a device faceplate Add-On Instruction that includes the Inp_NumRowsVis assignment that was configured in Chapter 4.
FactoryTalk View ME Configuration Chapter 5 Configure Goto Buttons on the Equipment Status Faceplate 1. Expand Displays within the Graphics folder and double-click PVP1000_EquipmentStatus_Faceplate. Goto Display Buttons 2. Right-click the display and choose Object Explorer. The Object Explorer dialog box opens. 3. Expand Row_Group_1 and double-click GotoDisplayButton_1. The Goto Display Button Properties dialog box opens.
Chapter 5 4. Click FactoryTalk View ME Configuration to browse the display faceplates. The Component Browser opens. 5. Select the faceplate display to launch from the first row Goto display button. For the CNC Work Cell application example, the Fanuc_CNC_Faceplate is selected. 6. Click OK to close the Component Browser dialog box. 7. Click files. to browse the parameter The Component Browser opens. 8.
FactoryTalk View ME Configuration Chapter 5 Configure Additional Device Value Columns Not all device faceplates used with the equipment status faceplate are configured to display four value fields. If unused value fields are needed, then additional logic will need to be added to the existing device Add-On Instruction to move the additional Add-On Instruction tag values to the corresponding Sts_Valuexx tags.
Chapter 5 FactoryTalk View ME Configuration The same is true for the units displayed for each additional value field desired. You can write logic to move a string value to the SetValueXUnits tag in the Add-On Instruction, or you can set the default string for this tag by locating it in the local tags section of the Add-On Instruction as shown below.
FactoryTalk View ME Configuration Chapter 5 Configure Safety Faceplate Displays Use the instructions in this section if your project includes a Rockwell Automation GuardLogix safety controller and safety components, and you want to use the safety I/O faceplates that allow you to view the status of the safety circuits and logic, and provide you with diagnostics for safety demands and faults.
Chapter 5 FactoryTalk View ME Configuration Notes: 194 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Chapter 6 System Commissioning In this chapter you download your Logix and PanelView Plus applications, prepare and tune your drive hardware, verify network communication, and verify general operator/program control. Before You Begin • Complete your system architecture and hardware selection (refer to Chapter 1). • Complete your system layout and wiring (refer to Chapter 2). • Complete your FANUC CNC Configuration (refer to Chapter 3). • Complete your logic configuration (refer to Chapter 4).
Chapter 6 System Commissioning Follow These Steps Complete these steps to complete the commissioning process for your Supervisory and CNC application.
System Commissioning Chapter 6 Download Applications This section provides general steps for downloading the RSLogix 5000 project to the controller, and downloading the FactoryTalk View project to the PanelView Plus terminal. Download RSLogix 5000 Software Project File to the Logix Controller IMPORTANT The download steps assume controller power and communication wiring is connected, controller power is applied and RSLinx communication driver is configured.
Chapter 6 System Commissioning 6. Click Download. 7. From the Communications menu, choose Run mode to switch the controller to Run mode. Configure and Download FactoryTalk Project to PanelView Plus Terminal IMPORTANT These download steps assume PanelView Plus power and communication wiring is connected, PanelView Plus terminal power is applied.
System Commissioning Chapter 6 2. Expand RSLinx Enterprise and double-click Communication Setup. The Communication Setup window opens. Configure Design (Local) Communication The local tab in Communication Setup window reflects the view of the topology from the RSLinx Enterprise server on the development computer. In this example, the development computer is configured to communicate with a L62S GuardLogix controller via the Ethernet network. 1. Expand your system’s Ethernet network. 2.
Chapter 6 System Commissioning A new device shortcut appears. 6. Name the shortcut. For this example, the shortcut is named CLX. 7. Select the new device shortcut and the controller. For this example, CLX shortcut and 1756-L62S controller is selected. 8. Click Apply. A verification dialog box appears showing that the shortcut was assigned to the design path. 9. Close the verification dialog box. The Apply button dims indicating the shortcut is attached to the path.
System Commissioning Chapter 6 1. Click Copy from Design to Runtime. This RSLinx Enterprise dialog box opens. 2. Click Yes. 3. Click Verify to make sure communication is setup correctly. The Shortcut Verifier dialog box opens. 4. Verify that the path to the Design device and the Runtime device are assigned. 5. Click Close. 6. Click OK to save the configuration. Create Your FactoryTalk View Runtime Application File In this example you create a runtime file for downloading to a PanelView Plus terminal.
Chapter 6 System Commissioning 2. From the Save as type pull-down menu, choose Runtime 6.0 Application (*.mer). 3. Enter a file name for the application. For the CNC Work Cell application example, the file name is CNC_Work_Cell.mer. 4. Click Save. The Runtime application (*.mer) file is created. This may take a few minutes. Download Runtime File to PanelView Plus Terminal 1. Open FactoryTalk View Studio Machine Edition software. 2. From the Tools menu, choose Transfer Utility.
System Commissioning Chapter 6 3. Click and browse to the runtime file. The Select File to Download dialog box opens. 4. Select the runtime file you created earlier. For the CNC Work Cell application example, CNC_Work_Cell is selected. 5. Click Open.
Chapter 6 System Commissioning 6. Select the PanelView Plus terminal. 7. Click Download. The file transfers to the PanelView Plus terminal. 8. Click OK when transfer is complete and prompted to do so. 9. Click Exit, to close the Transfer Utility window. 10. From the File menu, choose Exit to close FactoryTalk View software.
System Commissioning Chapter 6 Commissioning Devices This section provides general procedures for preparing and verifying the function of the CIP Motion, sercos, PowerFlex drives, and FANUC CNCs. IMPORTANT These commissioning procedures assume that CNC or drive power and communication wiring is connected and a personal computer with RSLogix 5000 software and internet browser is available. Commissioning CIP Motion Drives Refer to Drive and Motion Accelerator Toolkit, publication IASIMP-QS019.
Chapter 6 System Commissioning Commissioning Supervisory and CNC System This section provides general procedures for verifying the function of a completed CNC Machining Accelerator Toolkit system. IMPORTANT These commissioning procedures assume all applications are downloaded, all system devices are commissioned, a personal computer with RSLogix 5000 software is available, and a PanelView Plus terminal is powered and connected to the system’s EtherNet/IP network.
System Commissioning Chapter 6 Controller to Device Communication Verify controller to device communication by observing the indicators on the controller’s communication module and the devices in the controller’s I/O tree. 1. Observe the controller’s communication module. Refer to the user manual for the specific module you are using.
Chapter 6 System Commissioning CNC to Controller Communication Verify CNC to controller communication by observing the indicators on the CNC’s EtherNet/IP communication module, and status from the CNC front panel display. Observe the CNC’s communication module. Refer to the user manual for the specific model, and module location for your application. Typically the fast Ethernet board (that supports EtherNet/IP) resides in slot 2.
System Commissioning Chapter 6 The locations and meanings of the status indicators are indicated below.
Chapter 6 System Commissioning The system PARAMETER screen is displayed. 2. Press either the + softkey or the right arrow function key to advance to the Chapter selection for the Ethernet network. The Chapter Selection screen to display the fast Ethernet options is displayed.
System Commissioning Chapter 6 3. Press the ETHERNET softkey to monitor the communication state of the fast Ethernet board. • If there is an active connection to the board, the current Baudrate is displayed, as well as the packet status. • If there is no connection, the Baudrate is displayed as - - - - - - , and the packet information is zero.
Chapter 6 System Commissioning Clearing Faults After all the devices are connected and functioning on the network, clear faults to put the machine in a Stopped state. HMI Clear Faults When the controller powers-up and the program goes into Run mode, the machine is faulted and in the Aborted state. See Appendix A for more information on the logic program modules. You can attempt to clear the machine faults by pressing the Clear Faults push button on the HMI terminal.
System Commissioning Chapter 6 Open one of the device faceplates. While in Operator mode, you are able to manually command the CNC. IMPORTANT Triggering and entering Operator mode from a CNC faceplate will also command the machine to enter Operator mode. See Chapter 7 for more information on how device control buttons function. Program (automatic) Control With the faults cleared and the machine state in Stopped mode, you can put the machine in Program mode.
Chapter 6 System Commissioning Notes: 214 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Chapter 7 System Application Guide This chapter guides you through the pre-configured FactoryTalk View Machine Edition application faceplates providing you with an understanding of the status, control, and diagnostic operation of the faceplate displays. Before You Begin • Complete your system architecture and hardware selection (refer to Chapter 1). • Complete your system layout and wiring (refer to Chapter 2). • Complete your FANUC CNC Configuration (refer to Chapter 3).
Chapter 7 System Application Guide Follow These Steps Complete these display overview steps to run the preconfigured application and gain an understanding of the FANUC CNC system operation.
System Application Guide Chapter 7 Machine Startup Faceplate The machine startup faceplate display provides general machine status and control. It is also configured as the main navigation display for access to the other devices, the alarm history faceplate display, and the equipment status faceplate display. Machine Status The Machine Status indicators (OK and FAULTED) provide general machine status (refer to the figure below).
Chapter 7 System Application Guide Table 8 - Machine Status Indicators Status Indicator Color/Value Description OK Green No machine faults detected. Faulted Red Machine fault detected. Power Up Module Not Ready Module Fault Abort Status Failed to RESET Displays additional diagnostic information for machine ABORT condition. Failed to START Failed to STOP Failed to CLEAR Ready Safe Speed Green Machine is ready to run.
System Application Guide Chapter 7 Machine Control The Machine control buttons provide Operator Start, Stop, and Mode control. Machine Control Buttons Program/Operator Mode In this example you start and stop the CNC/motion system in Program control mode. 1. Press the Operator control mode button so that Program is displayed. Program is now the active mode. 2. Press Start. The required axes and drives are enabled and homed. The machine state goes to IDLE. 3. Press Start (again).
Chapter 7 System Application Guide State Diagram Faceplate Display This display provides a graphical machine state status and is configured to fit within the middle section of the Machine Startup display when launched from the State Diagram Goto display button. White state indicator (oval) = Inactive machine state. Green state indicator (oval) = Current machine state. Gray state indicator (oval) = Previous machine state.
System Application Guide Chapter 7 CNC Faceplate The FANUC CNC faceplate is typically launched from the Machine Startup or Equipment Status faceplate’s corresponding Goto display buttons. Home View Close Button Title Bar Faceplate Toolbar CNC Information Table 9 - Faceplate Toolbar Buttons Function Button Icons Description Function Button Icons Description Alarm The Alarm button indicates a drive fault condition and activates fault diagnostic views.
Chapter 7 System Application Guide CNC Status Views The CNC Status views let you display general CNC status: • Green = ON state • Gray = OFF state TIP The Comms. Ok indicator is red when inactive, instead of gray. Also, some other indicators also have a red state, such the Axis Fault. CNC Control Views The Control Tab gives the general status of the CNC, and shows the available control buttons. The control buttons are unavailable when in Program mode, and available when in Operator mode.
System Application Guide Chapter 7 Table 10 - General Status/Control Buttons Conditions Required for Each Manual Control Button Button/Indicator Description Program/Operator Toggles the control mode between Program and Operator mode. Operator mode permits manual control of the drive from the faceplate. Program mode operates the drive according to the Logix program. The active control mode is displayed on the button. Cycle Start/Cycle Stop Toggles the drive between the start and stop states.
Chapter 7 System Application Guide Fault Diagnostic Views Figure 29 - Last Fault View Help Button Press Help to go to Fault Description views. The Last Fault view is displayed when you press Alarm. The specific error being reported by the module is indicated. Figure 30 - Fault Description View Fault Actions View Press arrows to toggle between display views. This diagnostic information is triggered by the reported module error code.
System Application Guide Chapter 7 Configuration View The configuration button enabled. Program Mode TIP takes you to a display to edit the various CNC settings if Operator mode is Operator Mode In Program mode, the fields are not editable. However, in Operator mode, the values can be changed. You can enter Part Program, Tool Number, and Toggle CNC Edit mode. Some of the fields here are also used on the Equipment Status faceplate.
Chapter 7 System Application Guide Online Help Views Press the Help button on any view to access the online help information. Online Help Example Motion Drive and/or PowerFlex Drive Faceplates For motion drive and/or PowerFlex drive faceplates, refer to the System Application Guide chapter of the Drives and Motion Accelerator Toolkit Quick Start, publication IASIMP-QS019.
System Application Guide Chapter 7 Figure 31 - Equipment Status Example - CNC Work Cell CNCs Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 227
Chapter 7 System Application Guide Alarm History Display Overview The Alarm History display provides time and date stamped machine and device faults, and alarms when launched from the Alarm History Goto display button on the Machine Startup faceplate display. Figure 32 - Alarm History Faceplate Display Example In this example, a number of faults or alarms are displayed from a CNC named Drill CNC.
Appendix A Logic Program Overview The CNC Machining Accelerator Toolkit DVD, publication IASIMP-SP018, was developed around a modular concept. Modularity lets you decide which components to incorporate into your machine, providing greater flexibility and a custom fit. The preconfigured logic is specifically designed around this modular concept and consists of three main logic modules.
Appendix A Logic Program Overview Machine/Application/Device Module Relationship The machine module monitors the current state of the overall machine and based on the state and/or requests from the HMI terminal, broadcasts commands to both the application and device modules. The individual modules perform a predefined task based on the command. Some of the commands may be ignored depending on the module type.
Logic Program Overview Each of the modules are defined as individual programs in the Logix Project. Each program contains all of the necessary logic to interact with the other configured modules. This interface between each of the modules is accomplished via the monitor and control routines in each of the programs. The machine commands and corresponding module status is routed through the monitor and control routines. This lets the modules operate independently in a modular structure.
Appendix A Logic Program Overview Table 13 - Module Routine Overview Logic Module Type Machine Application Routine Function R00_Main Dispatch routine, calls all of the other routines in the program. R01_PowerUp Initializes parameters following powerup or controller first scan. R02_Monitor • Summarizes the status from all of the dependent modules (for example, application and device modules). • Detects Abort and/or Stop conditions. • Provides machine status information to HMI terminal.
Logic Program Overview Appendix A Table 13 - Module Routine Overview (Continued) Logic Module Type Routine Function R00_Main Dispatch routine, calls all of the other routines in the program. R01_PowerUP Initializes parameters following powerup or controller first scan. R02_Monitor • Summarizes the status for the device module (for example, OK, Ready, Reset). • Detects module faults (for example, Failed to RESET, Failed to CLEAR, Module Not Ready).
Appendix A Logic Program Overview Machine Module The machine module contains the high level control for the entire machine. The machine module was built around a simple state machine that you can customize to fit most applications. The machine module broadcasts out commands and receives feedback information from each of the application and device modules. Based on the feedback information, the machine will react accordingly.
Logic Program Overview Appendix A You can fully customize the state machine, letting you change the relationship between states and the state names, and add or remove states if needed. Refer to Appendix B for information on how to customize the state machine. Table 14 - Default Machine States Machine State State Type Description ABORTING Transitional Broadcasts the ABORT command until confirmation that all of the application and device modules are aborted.
Appendix A Logic Program Overview Machine Control Module Tags The machine control data type, UDT_MachCtrl, comprises the overall machine control and status, including the state machine. The user-defined data type consists of these components. Machine Mode Machine Commands Current Machine State Previous Machine State Machine State Display Machine Status Table 16 - Machine Tags Tag Group Function Machine mode Additional modes can be added to the machine.
Logic Program Overview Appendix A Device and Application Status Rung Tags and Logic The device and application status rungs provide feedback information to the machine module and consists of these components. Figure 35 - Device Module Status Figure 36 - Application Module Status The status bits are set in the monitor routine of the corresponding modules. These status bits are vital to the machine module, as they are used to determine the overall status of the machine.
Appendix A Logic Program Overview For the CNC Work Cell application example, the rungs are found in the R02_Monitor routine of the P01_CNC_Work_Cell machine program.
Logic Program Overview Appendix A Figure 37 - CNC_Work_Cell Device and Application Status Rung Example (continued) Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 239
Appendix A Logic Program Overview Application Modules The application modules contain all of the application specific code. This is where a majority of the customizing occurs and is essentially a programming space where you spend a significant portion of your efforts to develop proprietary logic specific to your application. In this example, application code is shown for the CNC Work Cell Machining application.
Logic Program Overview Appendix A Device Modules Device modules contain all of the logic to control the essential functions required by the device. For example, an integrated motion servo drive like the Kinetix 6500 requires logic (MSO/MSF instructions) to enable and/or disable the servo drive. This logic reduces the programming effort required by most applications providing more time for the proprietary logic needed for the application.
Appendix A Logic Program Overview Device Module Control Logic Example In this example, the R03_Control routine for a FANUC CNC device module initiates and/or clears the reset and abort sequences. The routine also attempts to clear any active faults. Refer to the toolkit directory C:\Program Files\RA_Simplification\CMAT\A-Files\6-Project Examples\CNC-Work-Cell folder for a complete example of a logic program.
Appendix B Logic Module Customization The toolkit logic modules are designed with a basic set of machine states, faults, alarms, and reset logic common to most applications. Knowing that specific application requirements dictate exceptions and additions, the ability to customize is also included in the logic module design. This appendix includes common modification recommendations for the customization of machine states, faults, alarms, and reset logic.
Appendix B Logic Module Customization The application and device modules interact with the state machine via their R02_Monitor and R03_Control routines. For example, the device modules accept commands and react accordingly. Therefore, changes to the state machine can impact the individual application and device modules. Refer to Appendix A for more information on the state machine and how it interacts with the application and device modules.
Logic Module Customization Appendix B Modifications to the state, command, or mode need to be made to the corresponding data types. For example, to modify the state names, open and edit the UDT_MachState data type.
Appendix B Logic Module Customization Tag and Logic Modification Recommendations This table contains some of the common modifications to consider for the state machine. The modifications and corresponding recommended actions are meant to highlight the more significant updates that are needed. Additional updates may also be necessary. Modification Description Recommended Actions State Names Simple change to the state name. The number of states and relationship between states remain unaltered.
Logic Module Customization Appendix B State Display Tag Modifications Each instance of any MachineSTATE_Add-On Instruction instruction contains an embedded string tag that sets the Machine.StateDisplay tag following a state change. The Machine.StateDisplay tag is referenced by the HMI to display the current or active machine state. In this example, you modify the embedded string tag. 1. Right-click the Add-On Instruction tag name and choose Open Instruction Logic. 2.
Appendix B Logic Module Customization 3. Use the String Browser to modify or set the State_Name. The new state name must match the updated state set by the MachineSTATE_Add-On Instruction instruction. For example, if the MachineSTATE_Add-On Instruction instruction places the machine into the Machine.State.PRODUCING state, then the corresponding State_Name tag must be set to PRODUCING. Each instance of any MachineSTATE_Add-On Instruction needs to be set or updated based on changes to the machine states.
Logic Module Customization Appendix B Module Fault Customization The application and device module R02_Monitor routines contain module fault logic. Module faults are intended to act as a diagnostic tool to cover not only a drive or device fault, but also module specific faults. You can add custom module fault logic to provide additional diagnostic information based on your application. The default module specific faults are listed below.
Appendix B Logic Module Customization All of the device modules also contain a general drive fault. The drive fault is in addition to the drive specific faults. For example, when a CIP Motion drive faults for an Excessive Position Error, both the drive specific fault (Excessive Position Error) and general fault (Drive Fault) are displayed on the HMI alarm history faceplate.
Logic Module Customization Appendix B In addition to adding the logic for the new module faults, the alarm message within the HMI application needs to be entered for the associated trigger value.
Appendix B Logic Module Customization Alarm History Faceplate Logic Modification The alarm history rungs in the application and device module R02_Monitor routines support the HMI alarm history faceplate. If your HMI application does not include the alarm history faceplate, then you can remove this logic from the monitor routine for each module. You can locate the alarm history faceplate logic rungs just below the alarm history header, in the rung comments.
Logic Module Customization Appendix B Coordinated Reset Customization By default, each device module is pre-programmed with reset logic that is designed to prepare the module and the devices it contains (drives, for example) to run. For a sercos or CIP Motion axis, this might mean the reset logic will home the axis. This approach is well suited for applications where the individual device modules reset independently.
Appendix B Logic Module Customization Notes: 254 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Appendix C Add Other Devices to the Equipment Status Faceplate In this appendix you add devices that do not have pre-configured faceplates, such as a discrete device (solenoid or valve). Add Devices to the Equipment Status Faceplate 1. Go to the Object Explorer dialog box and select which Row_Group you wish to display the Non-preconfigured Device in. 2. Find the DeviceName_String_x object for that row. 3.
Appendix C Add Other Devices to the Equipment Status Faceplate 4. Assign a new controller tag by clicking the Tag browser and search for a controller tag containing the string name you want to display or you can type a static name in the tag field by enclosing in quotes; for example, “Furnace 1”. 5. Go to the State_MSI object and double-click to open its properties. 6. Click the States tab. This Multistate Indicator Properties is pre-configured with 18 device states.
Add Other Devices to the Equipment Status Faceplate Appendix C 10. Expand the Value1_Grp group. 11. Double-click the Value1_Str object to open its Numeric DIsplay Properties. 12. Click the Connections tab and assign a tag to the numeric display object. 13. Double-click the Units1_Str object to open its String Display Properties. 14. Click the Connections tab and assign a tag in the controller that contains a string for the units, or simply type in a static string by enclosing in quotes.
Appendix C Add Other Devices to the Equipment Status Faceplate Add Optional Faceplate Views This example shows two additional faceplate toolbar buttons added to the equipment status faceplate that toggle between the existing main Equipment_Status_Faceplate Group (home button) and a new help object group (help button). 1. Create a new object group, for example HelpManual_Group, to be launched and add the objects within that group you wish to display when help toolbar button is pressed. 2.
Add Other Devices to the Equipment Status Faceplate Appendix C 5. Set the connection or tag tied to this button to {#1.Set_EquipFaceplateAnimation}. 6. Set the button value to the number assigned in the group animation in step 3. 7. Create another interlocked pushbutton on the toolbar (home button in this example) that will activate visibility of the existing Equipment_Status_Faceplate Group. The pre-configured visibility value for this group is 0. 8.
Appendix C Add Other Devices to the Equipment Status Faceplate Notes: 260 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Appendix D Logix Communication and Controller Configuration In this appendix, you configure your personal computer and controller communication, configure your controller, and create a new project by using RSLogix 5000 software. Configure Personal Computer Communication Properties In this example, you set and verify the IP address of the personal computer running your program. Set the IP Address 1. On your desktop, right-click My Network Places and choose Properties. 2.
Appendix D Logix Communication and Controller Configuration Verify Your IP Address 1. From the Start menu, choose Run. The Run dialog box opens. 2. Enter cmd. 3. Click OK. The Windows IP Configuration dialog box opens. 4. Enter ipconfig at the prompt. 5. Press Enter. 6. Verify that the IP address and Subnet Mask match what you entered. If these numbers do not match what you entered, contact your network administrator. 7. Close the cmd.exe window.
Logix Communication and Controller Configuration Appendix D Configure the EtherNet/IP Driver 1. Click the RSLinx icon in the system tool tray to start the RSLinx Classic software. 2. From the Communications menu, choose Configure Drivers. The Configure Drivers dialog box opens. 3. From the Available Driver Types pull-down menu, choose EtherNet/IP Driver. 4. Click Add New. 5. Click OK to accept the default name. The Configure Driver dialog box opens. 6.
Appendix D Logix Communication and Controller Configuration Configure the Logix Controller To configure the Logix controller, you will check the Web for firmware updates, load the controller firmware, assign the IP addresses, and browse the EtherNet/IP network devices. Check the Web for ControlFLASH Firmware Updates 1. From the Start menu, launch RSLogix 5000 software. The RSLogix 5000 Start Page opens. 2. Click the Resource Center icon on the Start Page. 3.
Logix Communication and Controller Configuration Appendix D Load the Controller Firmware TIP This procedure shows how to load firmware in the controller by using a serial connection. It is faster to load the firmware by using an EtherNet/IP connection. For details, see the controller installation instructions. 1. Apply input power to the CompactLogix controller power supply. 2. From the Tools menu, select ControlFLASH. The Welcome to ControlFLASH dialog box opens. 3. Click Next. 4.
Appendix D Logix Communication and Controller Configuration 6. Under AB_DF1-1, select the 1768-L43 controller. 7. Click OK. 8. Move the controller keyswitch to Program. 9. Compare the current drive firmware revision to the latest revision listed. If the Current Revision matches the newest Revision listed, then your controller already has the latest firmware and a firmware update is not needed. a. Click Cancel to abort the firmware upgrade. b. Go to Assign IP Addresses on page 267.
Logix Communication and Controller Configuration Appendix D Assign IP Addresses The BOOTP/DHCP Server utility is used to assign IP addresses to most devices in this quick start, except the PanelView Plus terminal. The BOOTP/DHCP utility is installed during the RSLogix 5000 software installation. 1. From the Start menu, launch the BOOTP/DHCP Server utility. If you are running this utility for the first time, the Network Setup Error dialog box opens. a. Click OK. b.
Appendix D Logix Communication and Controller Configuration The Request History field displays all of the devices in your network that need IP addresses. The EtherNet/IP (MAC) addresses correspond to the pre-loaded addresses and typically are marked on the device labels. 3. Double-click a request from one of the devices. 4. Enter a unique IP address for each device. 5. Click OK. If you are not on an isolated network, obtain the IP addresses from your network administrator. 6.
Logix Communication and Controller Configuration Appendix D Browse the EtherNet/IP Network Devices In this example, you verify that all your network devices are present in RSLinx Classic software. 1. Click the RSWho icon to view the EtherNet/IP driver and devices on the network. 2. Verify that all your network devices are detected. In this example, there are five network devices. The network configuration for your specific application will be different.
Appendix D Logix Communication and Controller Configuration Notes: 270 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Index Numerics 1756-EN2TR Ethernet module 15 1756-EN3TR Ethernet module 15 A add or remove states 243 alarm history faceplate display 149 import/edit alarm tags 174 logic modification 252 set tag name 108 alarm messages string names 108 alarm setup file 171 alarm tags editing 174 importing 174 alarm triggers 173 AOI properties 111 application data collect 17 application logic add preconfigured 100 development 68 examples 126 import preprogrammed logic 120 P0001 (OP panel path 1) 71 P0005 (machine sequence)
Index create a new project file 56 custom module fault logic add 249 customization coordinated reset 253 machine state 243 mode fault 249 customizing applications 240 D default machine commands 235 default machine states 235 design (local) 200 device logic P00015 (PLC EIP input routine) 74 P00016 (PLC EIP output routine) 74 device modules 69, 82 status 237 device program EtherNet/IP option (P00015) 74 manages output data sent to supervisory PLC (P00016) 74 diagnostic tool 249 download FactoryTalk View pro
Index I I/O channel configure USB port 63 instruction latch (L) 122 move (MOV) 122 unlatch (U) 123 Integrated Architecture tools website 11 IP address assign 267 assign to devices 267 setting 261 setting for personal computer 261 verify 262 isolated network 268 L latch (L) instruction 122 logic add preconfigured application logic 100 add preconfigured machine logic 91 application examples 126 CNC examples 127 logic module routines application R00_Main 232 R01_PowerUp 232 R02_Monitor 232 R03_Control 232 R0
Index module faults drive fault 249 failed to clear 249 failed to reset 249 failed to start 249 failed to stop 249 instruction error 249 not ready 249 safety fault 249 user alarm 249 module routines 231 module status application 237 device 237 modules application 81 device 82 move (MOV) instruction 122 MSO/MSF instructions 241 N network communication verify 206 network devices verify devices are detected 269 verify devices present in RSLinx Classic software 269 noise electrical 30 O offline development p
Index stop sequence template 124 supervisory PLC 53 synchronization, time 88 system communication drawings edit 41 system I/O drawings edit 38 system layout drawings edit 43 T tags UDT_AppStatus 108 UDT_ModuleStatus 108 time sync functionality 90 time synchronization 88 toolbar buttons faceplate 221 U UDT_AppStatus tag 108 UDT_ModuleStatus tag 108 unlatch (U) instruction 123 updates firmware 264 USB port define 63 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012 275
Index 276 Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012
Rockwell Automation Support Rockwell Automation provides technical information on the Web to assist you in using its products. At http://www.rockwellautomation.com/support, you can find technical manuals, technical and application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make the best use of these tools. You can also visit our Knowledgebase at http://www.rockwellautomation.