Using RSLogix Guard PLUS! Software with GuardPLC™ Controllers Bulletin 1753, 1754, 1755 Programming Manual
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.ab.com/manuals/gi) describes some important differences between solid state equipment and hard-wired electromechanical devices.
Summary of Changes The information below summarizes the changes to this manual since the last publication. To help you find new and updated information in this release of the manual, we have included change bars as shown to the right of this paragraph. Programming and configuration procedures and examples have been removed from the GuardPLC Controller Systems User Manual, publication 1753-UM001 and assembled in this programming manual.
iv Summary of Changes Publication 1753-PM001A-EN-P - November 2005
Table of Contents Preface Who Should Use This Manual . . . . . . . . . . . . . . . . . . . . . . P-1 Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1 Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1 Chapter 1 Connect to the GuardPLC Controller In This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Connect to the Controller via RSLogix Guard PLUS! Software 1-1 Connect to a GuardPLC 1200 Controller . . . . . . . .
vi Table of Contents Set I/O Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 Configure the Offline IP Address . . . . . . . . . . . . . . . . . 2-4 Go Online With the Module . . . . . . . . . . . . . . . . . . . . . . . 2-5 Chapter 3 Create a GuardPLC Project In This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Start a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configure the Project and Hardware . . . . . . . . . . . . . . . .
Table of Contents vii Force Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 Start Forces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 Stop Forces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 Chapter 6 Access Management In This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 How the Controller Uses Access Levels . . . . . . . . . . . . . . . 6-1 Create User Access . . . . . . . . .
viii Table of Contents Appendix B Configure the GuardPLC OPC Server In This Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Choose an IP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . Add the GuardPLC Controller and the OPC Server to the Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configure the GuardPLC System for OPC Communication. Configure the Communication Network . . . . . . . . . . . Connect Signals . . . . . . . . . . . .
Preface Who Should Use This Manual Use this manual if you are responsible for programming, or troubleshooting control systems that use GuardPLC controllers. Personnel responsible for installation, programming, operation, and troubleshooting of safety-related controllers must be familiar with relevant safety standards for Programmable Electronic Systems (PES).
2 Preface For Read this Document Document Number In-depth information on the safety concept of GuardPLC controller systems, including the DeviceNet Safety Scanner for GuardPLC Controllers. GuardPLC Controller Systems Safety Reference Manual 1753-RM002 Information on installing, configuring, operating, and monitoring the status of your GuardPLC controller system.
Chapter 1 Connect to the GuardPLC Controller In This Chapter For information about Connect to the Controller via RSLogix Guard PLUS! Software See page connecting to the controller via RSLogix Guard PLUS 1-1 going online with the GuardPLC controller 1-5 configuring the programming terminal 1-19 login dialog 1-20 determining the IP address and SRS of the controller 1-21 changing the SRS of the controller 1-22 changing the IP address of the controller 1-23 You connect the controller to the
1-2 Connect to the GuardPLC Controller Connect to a GuardPLC 1600 or 1800 Controller Ethernet Ports 3 and 4 3 (—) (—) L- L- 4 L+ L+ 24V DC RS-485 MODBUS ASCII/HSP COMM3 COMM2 COMM1 GuardPLC Ethernet 10/100 BaseT 1 (—) (—) 2 Ethernet Ports 1 and 2 Connect to a GuardPLC 2000 Controller Tx COL Ethernet port 10/100 Base T GuardPLC Controller Factory Default Settings Parameter Setting IP Address 192.168.0.99 Subnet Mask 255.255.252.
Connect to the GuardPLC Controller 1-3 (octets 001 and 002) and the Host ID (octets 003 and 004). The Network ID portion of the IP address is derived from the subnet mask. When any two devices attempt to talk on Ethernet, a check is made to see if the Network ID of both the originator and the destination address match. If they match, then the message is sent on the local network. If they do not match, then the message is sent to the Gateway to route the message to the destination.
1-4 Connect to the GuardPLC Controller Change the IP address of your programming terminal running RSLogix Guard PLUS! software so that the GuardPLC controller and programming terminal can communicate on a local network. TIP If you suspect the GuardPLC controller has the factory-set default IP address of 192.168.0.99 and the default subnet mask of 255.255.252.0, set your programming terminal’s IP address to 192.168.0.98 with a subnet of 255.255.252.0 to establish communications.
Connect to the GuardPLC Controller Go Online with the GuardPLC Controller 1-5 The following flowchart illustrates the steps required to successfully go online with the GuardPLC controller. Step 1: Open RSLogix Guard PLUS! Note: This path is not possible for GuardPLC 1200 and GuardPLC 2000 controllers. Step 2: Create a New Project Notes: (1) Assume correct SRS was entered in Step 3.
1-6 Connect to the GuardPLC Controller Step 1: Open RSLogix Guard PLUS! Software Choose Start>Programs>RSLogix Guard PLUS>RSLogixGuardPLUS. Step 2: Create a New Project Open an existing project or create a new project that contains a GuardPLC controller. 1. To create a new project, choose Project>New from the main menu or click the New icon. 2. Enter the name of the project in the Object Name field. 3. Click OK.
Connect to the GuardPLC Controller 1-7 The RSLogix Guard PLUS! Hardware Management window opens. Both the Project Management and Hardware Management windows are normally open when running RSLogix Guard PLUS! software. Step 3: Configure the Controller Type and SRS To go online, you must specify the controller type and change the default SRS. The software defaults to an SRS of zero (0), which is the only illegal SRS value.
1-8 Connect to the GuardPLC Controller 3. Specify the controller type and enter an SRS of 60000. You must use the default SRS of 60000 the first time you connect to a GuardPLC controller. 4. Click OK. The Hardware Management window appears as shown below. Notice that the SRS has changed to 60000.
Connect to the GuardPLC Controller 1-9 Step 4: Get Communication Settings 1. Choose Online>Communication Settings from the pull-down menu. 2. Enter the last three elements of the MAC address into the MAC Address field and click Get. The MAC address is on the sticker on the side of a GuardPLC 1200 controller, on the label positioned over both lower RJ-45 connections on GuardPLC 1600/1800 controllers and I/O, or on the front bezel of the AB-CPU module of a GuardPLC 2000 controller.
1-10 Connect to the GuardPLC Controller Step 5: Change Settings via MAC Address 1. Enter desired settings for the IP and SRS in the Communication Settings fields indicated by the arrows below. 2. Click the Set via MAC button. 3. Enter the default username ‘Administrator’ in the Authentication window, as shown below. 4. Click OK.
Connect to the GuardPLC Controller 1-11 The IP address and SRS should have changed. A prompt appears at the bottom of the window and the settings in the middle fields change. Step 6: Move the Settings Into Your Offline Project If you wish to connect using the current GuardPLC controller settings, move the settings into your offline project. 1. Left-click -> Project.
1-12 Connect to the GuardPLC Controller 2. Make sure Resource is selected in the Resource Selection window and click OK. 3. Click Yes. This moves the IP address and SRS of the GuardPLC controller to your offline project and overwrites the existing values. These new values are used in the login screen to connect with the GuardPLC controller. Step 7: Use the Control Panel to Connect to the GuardPLC Controller 1. Right-click [60000] Resource. 2. Choose Online>Control Panel. 3.
Connect to the GuardPLC Controller 1-13 The Control Panel Online indicator will be GREEN if the controller is in RUN Mode. The Online indicator may also be yellow, white, or red based on its current state. TIP If you are successfully online with the GuardPLC controller and in RUN mode (Green Online indicator as shown above), you do not need to continue with the steps 8 through 12. However, if you are not online and in RUN mode, consult the flowchart on page 1-5, and perform the appropriate steps.
1-14 Connect to the GuardPLC Controller Step 8: Change the Controller to STOP Mode To change the controller to STOP mode, choose Resource>Stop from the Control Panel or use the Stop icon. When in STOP Mode, the Control Panel appears as follows: Close the Control Panel. Step 9: Reset the Controller to the Default Settings In some cases, you may have to reset the GuardPLC controller to its default IP address and SRS.
Connect to the GuardPLC Controller 1-15 To reset the controller: 1. Hold down the Reset button, then power cycle the GuardPLC controller. 2. Continue to hold down the Reset button until the PROG led stops flashing. At the next power cycle, the settings will revert back to the last configured settings. These could be the settings in place prior to the Reset operation, if you did not reconfigure them after resetting the controller.
1-16 Connect to the GuardPLC Controller 3. Ping the GuardPLC controller using the command shown at the C:\> below. If the ping is successful, the IP address of the GuardPLC controller has been verified and the Ethernet link is operating. If the ping was not successful either the IP address, subnet mask, or Ethernet link is not correct. The picture below is the result of a successful ping. 4. Type EXIT at the command prompt to close the Command Prompt window.
Connect to the GuardPLC Controller 1-17 3. Edit the IP address to match the GuardPLC controller and click OK. Step 12: Recover from a Controller Fault After Using the Reset Button After using the Reset button, the Control Panel appears as follows if the SRS was not originally 60000 prior to the Reset. The Fault LED on the front of the GuardPLC controller is illuminated, and the CPU State of the Resource is STOP/INVALID CONFIGURATION.
1-18 Connect to the GuardPLC Controller To recover from this fault: 1. Choose Extra>Change System ID from the Control Panel. 2. Verify that 60000 appears in the first window with 0 in the second, as shown below. 3. Click OK. The Fault LED should turn off, and the Control Panel should show that the CPU State has changed to STOP/VALID CONFIGURATION, as shown below. TIP Publication 1753-PM001A-EN-P - November 2005 The Online indicator is white because the GuardPLC controller is in STOP/VALID mode.
Connect to the GuardPLC Controller 1-19 Configure the Programming Specify the Host SRS Terminal From the Hardware Management window, you can specify the host SRS of the programming terminal. 1. Right-click Programming Terminal and choose Properties. 2. Enter the host SRS (1 to 65535) for the programming terminal. Make sure the host SRS of the programming terminal is not identical to the system ID (SRS) of any other controllers or programming terminals.
1-20 Connect to the GuardPLC Controller Login Dialog The Login dialog defines the communication parameters between the controller and the programming terminal. Field Description IP address The IP address of the controller on the Ethernet network. The factory-set IP address is 192.168.0.99. SRS SRS stands for System, Rack, Slot. The rack and slot IDs are already preset by the controller, so you only need to enter the system ID. You can enter any number from 1 to 65,535.
Connect to the GuardPLC Controller Determine the IP Address and SRS of the Controller 1-21 The default IP address of a new controller is 192.168.0.99. The default SRS of a new controller is 60000. To check the current IP address and SRS of a controller: 1. Choose Online>Communication Settings. 2. In the MAC address field, enter the MAC address of the controller.
1-22 Connect to the GuardPLC Controller TIP If communication fails: • check to make sure you entered the address correctly. • check that your PC is configured properly. • anti-virus or firewall programs have blocked communications. • the cable is not connected or is not the correct cable. – A GuardPLC 1600 or 1800 controller can use direct or cross-over cable.
Connect to the GuardPLC Controller TIP Change the IP Address of the Controller 1-23 Typically, you change the SRS of the GuardPLC controller to match that of the controller/routine that you wish to download to it. Recall that the SRS is compiled into the executable and ensures that this .EXE can only be downloaded to a GuardPLC controller with a matching SRS. After you establish communications with the controller, you can change the IP address of the controller to match your Ethernet network.
1-24 Connect to the GuardPLC Controller Publication 1753-PM001A-EN-P - November 2005
Chapter 2 Connect to GuardPLC Distributed I/O Modules In This Chapter For this information See page Understand Module Addressing 2-1 Add the Module to the Hardware Configuration 2-2 Configure the Module 2-3 Go Online With the Module 2-5 This chapter guides you through the process of addressing, configuring, and connecting to the distributed I/O modules. GuardPLC distributed I/O modules are ‘owned’ by a GuardPLC controller.
2-2 Connect to GuardPLC Distributed I/O Modules Distributed I/O modules inherit the first portion of the SRS from the parent controller. You configure the second part of the SRS. For example, the default SRS of distributed I/O modules is 60000.1. If the module is owned by a controller with an address of 25, then the SRS of the distributed I/O should be 25.1. If a second module is added to the controller, its SRS is then 25.2. A third module would be SRS 25.3.
Connect to GuardPLC Distributed I/O Modules 2-3 3. Click New…. The Create HH Network dialog appears. 4. Click OK. The Specify HH Network window reappears showing the selected network. 5. Click OK to confirm your selection. The distributed I/O module now appears in the project tree.
2-4 Connect to GuardPLC Distributed I/O Modules Set I/O Properties 1. In the RSLogix Guard PLUS! Hardware Management window, right-click the module in the project tree and select Properties. 2. You must change the Rack ID [SRS] to configure the second portion of the SRS. Change the Rack ID [SRS] value to 1. 3. Click OK. The offline SRS is now 60000.1. The 60000 comes from the parent controller, as shown by the arrow in the illustration above. Configure the Offline IP Address 1.
Connect to GuardPLC Distributed I/O Modules 2-5 The offline configuration of the module is complete. The next section explains how to go online with the module and change the IP address and SRS to match the offline settings. Go Online With the Module Make a point-to-point connection between your programming terminal and the distributed I/O module. Over this connection, change the IP address and SRS of the module, following these steps: 1.
2-6 Connect to GuardPLC Distributed I/O Modules 4. To change the IP address and SRS settings, enter the new data into the Communication Settings fields. 5. Click the Set via MAC button. 6. Enter Administrator in the User Name field and click OK. The new IP address and SRS settings are shown in the Address PES using … fields. 7. Close the Communication Settings dialog by clicking the Cancel button.
Chapter 3 Create a GuardPLC Project In This Chapter This chapter guides you through the following basic steps required to create a project: • • • • • • Start a new project. Configure the project and hardware. Create signals. Connect signals to the I/O points. Create a Function Block program using the signals. Save, compile, test, and download the program to the GuardPLC controller. • Monitor the project online. Start a New Project To start a new GuardPLC project: 1.
3-2 Create a GuardPLC Project 4. Return to the Project Management window and expand the project tree until it matches the example below. When the project is expanded, you can see that it contains a Configuration and under the Configuration there is a Resource, which is the actual GuardPLC controller. Under the Resource is the program TypeInstance that will run on the GuardPLC controller.
Create a GuardPLC Project 3-3 3. Edit the properties as shown below. The Resource Type needs to match the type of GuardPLC controller to which you want to connect. The SRS is a code that is compiled with the function block routine. The routine can be downloaded only to a GuardPLC controller with a matching SRS code stored in its non-volatile memory.
3-4 Create a GuardPLC Project 6. Expand the Resource so that the Hardware Management project tree appears as shown below. 7. Right click COM under the GuardPLC 1800 controller, and choose Properties. 8. Enter the IP address of your GuardPLC controller. Neither the Subnet Mask nor the Default Gateway should require changes. TIP T The GuardPLC controller’s default IP address is 192.168.0.99. 9. Click OK.
Create a GuardPLC Project 3-5 Understand the Signal Editor The Signal Editor lets you define the signals for your application. The Name column contains a unique name for the signal. The Name is required and must be less than 32 characters in length. The Type column indicates the desired data type for the signal. The default is Boolean. Signals are typically stored in RAM memory.
3-6 Create a GuardPLC Project Create Signals in the Signal Editor 1. To open the Signal Editor, choose Signals > Editor from the Hardware Management menu bar. 2. Create 3 new signals, START, STOP, and MOTOR: a. Left-click on New Signal in the Signal Editor. Type START in the Name field and press the Enter key. b. Left-click on New Signal again. Type STOP in the Name field and press the Enter key. c. Left Click on New Signal again. Type MOTOR in the Name field and press the Enter key.
Create a GuardPLC Project 3-7 Connect Digital Input Signals 1. Right-click on the controller’s inputs (DI 20 for 1600 or MI 24/8 FS1000 for 1800) or on a Distributed I/O module and choose Connect Signals. TIP Set up your screen so that you can easily drag signals from the Signal Editor window to the Signal Connections window. Both the Name fields in the Signal Editor and the Signal fields in the Signal Connections window must be visible, as shown above. 2.
3-8 Create a GuardPLC Project 3. Connect the START and STOP signals to inputs by dragging START and STOP from the Name field in the Signal Editor to the Signal field in the Signal Connections window. a. Make sure the cursor is not active in any field in either the Signal Editor or the Signal Connections dialog. b. Left-click and hold on the Name field. Drag the signal to the Signal field in the Signal Connections dialog. c. Release when over the proper field.
Create a GuardPLC Project 3-9 d. Connect USED to the DI channels being used: DI[17].Used, and DI[18].Used 5. Close the DI Signal Connections window. Connect Output Signals 1. Right-click the controller’s outputs (DO8) or a Distributed I/O module and choose Connect Signals. 2. The Signal Connections window defaults to the Inputs tab. Choose the Outputs tab to view the output fields. 3. Connect the MOTOR signal to the first output, as shown below.
3-10 Create a GuardPLC Project Connect Distributed I/O Signals For distributed I/O modules, you connect signals to the distributed I/O module’s inputs and outputs just as if they were I/O points on a controller. 1. Expand the distributed I/O module in the Hardware Management project tree and right-click on DI for inputs or DO for outputs. 2. Choose the proper tab, Inputs or Outputs, on the Signal Connections dialog. 3.
Create a GuardPLC Project 3-11 3. Connect these signals to the analog inputs on the Inputs tab of the Signal Connections dialog. 4. Choose the Outputs tab of the Signal Connections dialog. 5. Connect the USED signal from the Signal Editor to the analog input channels you are using for your application.
3-12 Create a GuardPLC Project 2. Create a Count signal for counter value. Connect Configuration Signals and Counter Value Signals 1. Right-click the GuardPLC 1800 controller’s high speed counters (HSC2) and choose Connect Signals to open the Signal Connections dialog. 2. Choose the Outputs tab. 3. Connect the True and False signals to the counter outputs to configure the desired counter behavior.
Create a GuardPLC Project 3-13 Count Up regardless of Direction Counter[xx] Output Variable Description 5/24V Mode True (1) = 24V False (0) = 5V Auto Advance Sense True (1) = Count Up or Down Based on Direction False (0) = Count Up Regardless of Direction Direction If Auto Advance Sense is False (0), then count in the indicated Direction: • True (1) = Down • False (0) = Up Gray Code True (1) = Use Gray Code Mode False (0) = Use Pulse Mode Reset True (1) = No Counter Reset False (0) = Reset Cou
3-14 Create a GuardPLC Project 1. Close the Signal Connections window. Leave the Signal Editor active, and restore the Project Management window. 2. If necessary, expand the project tree in Project Management until [I] TypeInstance is visible and double left-click [I] TypeInstance to open the Function Block Editor program page. 3. Drag signals from the Signal Editor (in Hardware Management) to any location on the FB Editor program page.
Create a GuardPLC Project 3-15 4. Minimize the Hardware Management window. TIP You can delete the white areas under the signals, which are used for descriptions, by clicking the white area and hitting the Delete key. 5. In the Project Management project tree, expand StandardLibs, IEC61131-3, and Bistr as shown below. 6. Drag an AND and an OR block onto the routine (Left-click, hold, drag and release).
3-16 Create a GuardPLC Project 7. Connect the blocks with lines by left-clicking and holding the very small dots on the edges of the boxes. Drag and release over the destination dot. TIP Use the Zoom In tool on the toolbar to zoom in to see the dots on the edge of the boxes. 8. Create a duplicate MOTOR signal by right-clicking MOTOR and choosing Duplicate. Drag and drop the signal on the page. 9. Invert the STOP signal by right-clicking on the dot and choosing Invert.
Create a GuardPLC Project 3-17 2. Click OK TIP The FB editor menu bar displays the number of edits since the last save. Following a save, it displays ‘(unchanged)’. Compile the Code 1. Close the Type Instance Program. 2. Right-click Resource and choose Code Generation. 3. The results of the code generation are shown on the Error State Viewer. If the Error State Viewer is not visible, click the red triangle to make it visible.
3-18 Create a GuardPLC Project Run an Off-Line Simulation To test the code before downloading it to the GuardPLC controller, run an off-line simulation: 1. Right-click Resource and choose OFF-Line-Simulation. The OLS tab appears. 2. Double left-click [I] TypeInstance. The following appears.
Create a GuardPLC Project 3-19 3. Choose points to toggle/view during the simulation. To activate a point, left-click on a point, drag, release, and left-click again. 4. Start the simulation by left-clicking the blue flag button. 5. Double left-click the yellow field to toggle TRUE/FALSE. Blue lines represent OFF. Red lines represent ON. 6. When finished testing, stop the simulation by choosing the Stop icon. 7. Close the Off-line simulation using the Close OLS icon.
3-20 Create a GuardPLC Project Download the Program 1. Connect the GuardPLC controller to your PC’s Ethernet port using a Cat. 5 Ethernet cable. 2. In the Hardware Management window, close the Signal Editor. 3. Right-click [60000] Resource. 4. Choose Online>Control Panel. 5. Enter the default Username (Administrator) with no password and click OK. The Control Panel opens. TIP You can use the [Ctrl]+[A] shortcut to enter the default Username and Password.
Create a GuardPLC Project 3-21 8. Left-click on the Download icon. 9. Answer Yes to the warning prompt. 10. Make sure the download was successful by checking the Status Field for a ‘Resource Configuration successfully loaded’ message. 11. Put the GuardPLC controller into RUN mode by clicking the Coldstart button and answering Yes to the warning prompt.
3-22 Create a GuardPLC Project How to Monitor the Routine Online To monitor the routine online, you must be online with the controller, and the controller must be in RUN mode. 1. In the Project Management window, right-click Resource and choose ON-Line Test. The Project Manager appears as shown below. 2. Double left-click [I] TypeInstance. If the lines appear RED (TRUE) and BLUE (FALSE), then the monitor is active. Test the routine and monitor the function code.
Create a GuardPLC Project 3-23 3. Close the On-Line Test when finished testing. 4. Click the PROJ tab to return to the project tree. If the lines are RED/BLACK striped, then the Control Panel is NOT online with the GuardPLC controller or the controller is not in RUN mode. See Chapter 2 for information on going online with the GuardPLC controller. TIP For more information on downloading, see Chapter 4.
3-24 Create a GuardPLC Project Publication 1753-PM001A-EN-P - November 2005
Chapter 4 Check, Download, Start, and Test a Routine Using This Chapter For information about See page checking consistency (whether you need to download your routine) 4-1 downloading a routine 4-2 starting a routine 4-4 testing a routine 4-5 how a routine executes 4-6 To download and run a routine, you must: • Complete your system configuration and your routine logic. • Save your logic by choosing Object>Save on the Project Management menu bar. • Generate code.
4-2 Check, Download, Start, and Test a Routine Download a Routine 1. Choose Online>Control Panel. The software automatically asks you to log in. 2. After you successfully log in, the Control Panel opens. Coldstart Download Stop 3. The routine must be stopped before downloading is permitted. Choose Resource>Stop. 4. Choose Resource>Download to load the routine into the controller. IMPORTANT If your controller is in FAILURE_STOP, it must be rebooted before you can download a routine.
Check, Download, Start, and Test a Routine 4-3 Troubleshoot the Download Process The SRS of the controller must match the SRS saved in the routine in order to download the routine. When you specify an SRS for a controller in a project, that SRS gets saved in the routine when you generate code. Check the SRS of the Controller 1. Choose Online>Communication Settings. 2. In the MAC address field, enter the MAC address of the controller.
4-4 Check, Download, Start, and Test a Routine updates the SRS in the controller and corrects the issue. You should now be able to download the routine. TIP For more information on recovering from FAILURE_STOP, refer to the GuardPLC Controller Systems User Manual, publication number 1753-UM001. 1. Choose Extra>Change System ID (SRS). 2. Enter the SRS and click OK. 3. Try the download again. Start a Routine After you successfully download a routine, you can start the routine.
Check, Download, Start, and Test a Routine Test a Routine 4-5 Test a routine to check for and eliminate errors. You must have Administrator or Read/Write access to test a routine. Test options are discussed in the table below. From the Test Mode menu on the Control Panel, choose the test option you want. Test Option Description Enter Test Mode (Hot Start) To enter test mode hot, a routine must be loaded and started in the controller.
4-6 Check, Download, Start, and Test a Routine How a Routine Executes A controller has only one routine. A routine can be in any one of these states: Routine State Description RUN_RUN The controller is in the RUN mode. • The routine is executed cyclically by the controller. • Input data are processed in the routine. • Output data of the routine are operated. RUN_FREEZE The controller is in the RUN mode. • The routine is not executed. • No input data are processed by the routine.
Chapter 5 Monitor and Force Signals In This Chapter For information about Monitor Signals See page monitoring signals 5-1 forcing 5-3 enabling forces 5-4 starting the force editor 5-4 force time 5-6 specifying force values and force marks 5-5 starting forces 5-6 stopping forces 5-7 The Force Editor provides a window that lets you choose signals to monitor, whether they are forced or not. 1. Right-click the Resource and choose Online>Force Editor.
5-2 Monitor and Force Signals 2. After you successfully log in, the software displays the Force Editor. 3. In the Force Editor, choose Configure. The software displays a list of force signals you can choose whether to view or not.
Monitor and Force Signals 5-3 4. If you are not already connected, in the Force Editor, choose File>Connect. The software displays the values of the signals you selected. The R-Value (Resource Value) column displays the current values of the signals. You can force any of the signals that have been configured in the Force Editor. Forcing Forcing describes the intervention of the user in the logic of the application program loaded into the controller.
5-4 Monitor and Force Signals Enable Forces To enable forcing, both the Forcing allowed and Main Enable switches must be set. The Forcing allowed switch can be set via the programming software, but only if the controller is in RUN or STOP mode. A forced value remains saved in the controller until: • the user program is stopped, • the force value is replaced by another value, or • the controller is switched off.
Monitor and Force Signals Specify Force Values and Force Marks 5-5 To set a signal with a force value, you: 1. Enter the force value for the signal in the Force column. TIP For Boolean signals, True or False and 1 or 0 are acceptable values. 2. Double-click in the F column to mark that you want the controller to use the force value rather than the process value. 3. Send the force value(s) to the controller. The Force Editor displays the force value(s) in the R-Force column.
5-6 Monitor and Force Signals Field Description Signal The name of the signal you want to force. Force The value you want to force the signal to have. The value you enter must match the type displayed in the Type field. F (force mark) A check in this field identifies that the force value you entered is sent to and saved in the controller and will become active when forcing is active.
Monitor and Force Signals 5-7 3. The Force Editor opens. Once forcing starts, the Forcing activated box is checked and R-Force values take precedence over R-Values. Stop Forces To stop forcing, click the Stop… tab or choose File>Stop. Once forcing is stopped, the Forcing activated check box is cleared. However, the Resource Force Mark (RF) field is still checked, indicating that force values remain in the resource, but are inactive.
5-8 Monitor and Force Signals Publication 1753-PM001A-EN-P - November 2005
Chapter 6 Access Management In This Chapter For information about How the Controller Uses Access Levels See page how the controller uses access levels 6-1 creating user access 6-2 An Administrator can set up access privileges for a maximum of ten users per controller. The controller stores the access privileges in its non-volatile memory. The access privileges are not saved with the program, and are not downloaded to the controller with the program.
6-2 Access Management The following access levels are available: Create User Access This access level Allows Administrator • • • • • • • • • • highest privileges manage usernames and passwords read data from controller write routines and data into controller force tags stop, start, freeze, and force a routine download an operating system reboot the controller change IP address and system ID can also login under read/write and read levels Read/Write • • • • • read data from controller write routin
Access Management 6-3 2. After you successfully log in with Administrator access, the software displays the Access Management window. Field Description Username Name of the user. Password Password of the user. The password is case sensitive. Password Verification Verify the password specified above. Access Type The access level of the user. Specify Administrator, Read/Write, Read, or No Access. The username and password are case sensitive and can contain as many as 31 characters.
6-4 Access Management Publication 1753-PM001A-EN-P - November 2005
Chapter 7 Archive and Restore Projects In This Chapter For information about See page Archive a Project 7-2 Restore a Project 7-3 Archiving a project moves the project to a back up location. It also freezes a project so that no changes can be made to it. The archived project can be moved from one PC to another or emailed.
7-2 Archive and Restore Projects Archive a Project To archive a project: 1. Open the RSLogix Guard PLUS! Program Management window. 2. Right-click the project name in the project tree and choose Archive. 3. Click the Browse button and choose the folder into which you want to place the archived project. 4. Enter the name of the archived project in the Object Name field. The name you choose for the archive does not have to match the current name of the project. 5. Click OK. 6.
Archive and Restore Projects Restore a Project 7-3 Restoring an archived project extracts the project files from the archive file and creates the .L2P files and folders that can then be edited. To restore an archived project: 1. Open the Project Management window, but do not open a project. 2. From the Project pull-down menu, choose Restore Project…. The Restore dialog opens. 3. Browse for the target directory where you want to place the restored project. 4.
7-4 Archive and Restore Projects Publication 1753-PM001A-EN-P - November 2005
Chapter 8 Create User-Defined Function Blocks In This Chapter For information about Create User-Defined Function Blocks See page creating user-defined function blocks 8-1 declaring variables 8-4 moving declared variables to the user-defined function block page 8-9 generating function block code 8-10 With RSLogix Guard PLUS! software, you can create user-defined function blocks that consist of standard function block logic, as shown in the illustrations below.
8-2 Create User-Defined Function Blocks To create a function block: 1. In the Program Management Window, right-click Configuration and choose New>Library. 2. Right-click the new Library and choose New>Function Block Type to create the new function block. 3. You can rename the new function block by right-clicking it and choosing Rename.
Create User-Defined Function Blocks 8-3 4. Double-click the new function block to start the editor. Interface Declaration Editor Drawing Field Overview Window Variable Declaration Editor The FBD editor for user-defined function blocks differs slightly from the FBD editor for routines. The components of the editor are: Use this component To Overview Window displays the function block diagram in reduced scale. Drawing field create the logic of the FB-type.
8-4 Create User-Defined Function Blocks Declare variables Variable declaration defines the connecting points of the function block. There are tabs for these types of variables. Use this tab To define VAR an internal variable without type limitations. You can also define the attribute: CONST a constant value that cannot be changed by logic VAR_INPUT an input variable, which is also displayed on the block. VAR_OUTPUT an output variable, which is also displayed on the block.
Create User-Defined Function Blocks 8-5 You can either define the variable here or use the Derivation Type buttons (recommended). The Derivation Type buttons activate dialogs to help declare a variable of the chosen type. Use these buttons to ensure accurate syntax. This button Defines a variable type Direct derived directly from another variable type Array array of one or more dimensions For example: ARRAY:array[1..
8-6 Create User-Defined Function Blocks This button Defines a variable type Subrange has values that should be within a certain range For example: DINT(0,200) is an DINT value where • the minimum allowable value is 0 and • the maximum allowable value is 200 Enumeration not yet implemented Define Technical Units and Scaling You can define technical units and scaling for each variable: In this field Define Techn. unit an available unit from the pulldown menu min. value max.
Create User-Defined Function Blocks Abbreviation Unit kg Kilogram lm Lumen lx Lux m Meter mol Mol N Newton 8-7 Definition mass illumination illumination density length amount of substance force Ohm Ohm Pa Pascal pressure electrical resistance Rad Radiant plane angle s Siemens electrical conductance S Second time sr sRadiant solid angle T Tesla magnetic flux density V Volt electrical potential W Watt power Wb Weber magnetic flux Define I/O Positions For input an
8-8 Create User-Defined Function Blocks How the Variables Display Once you declare your variable, the editor displays the variables. The editor uses these symbols to identify the variables: Symbol Definition Used as source The variable is read from. Used as sink The variable is written to. Used as source and sink The variable is read from and written to. Variables used in different types of connections are also identified by this symbol.
Create User-Defined Function Blocks Move Declared Variables to the User-Defined Function Block Page 8-9 In order to use these declared variables, you must: 1. Drag them from the Variable Definition Editor to the user-defined function block page. 2. Drag down the required function blocks and make all the necessary connections. To use the completed user-defined function blocks, you must drag them to the function block page and connect signals to them.
8-10 Create User-Defined Function Blocks Generate Function Block Code When you complete your function block logic, you must compile that logic into code the controller can execute. In the Program Management Window, expand the project. Right-click the Resource and choose Code Generation. IMPORTANT You should save before every Code Generate. A save is required for any change to the function block page. Any time a change is made, the number of changes displayed on the function block menu bar increments.
Create User-Defined Function Blocks 8-11 Check for Errors and Warnings After performing a code generate, check the status bar at the bottom of the Project Management window. The status bar indicates whether or not a .L2P file was successfully generated. If a .L2P file was not created, check the Hardware Management Window to view the errors and/or warnings compiled during the process of code generation. The window below shows an example of code generation warnings.
8-12 Create User-Defined Function Blocks Publication 1753-PM001A-EN-P - November 2005
Appendix A Programming Software Versions, Compatibility, and Firmware Updates In This Appendix For information about See page RSLogix and RSLogix Guard PLUS! Versions A-1 RSLogix Guard PLUS! Software and GuardPLC Firmware Compatibility A-3 Convert Projects A-5 Upgrade GuardPLC Firmware A-5 RSLogix and RSLogix Guard PLUS! Versions Programming Software RSLogix Guard Catalog Number Version Supported Controllers 1755-PCS 3.
A-2 Programming Software Versions, Compatibility, and Firmware Updates About RSLogix Guard Software, Version 3.3 RSLogix Guard software can go online to any GuardPLC controller to start, stop or reboot the controller. However, you cannot open any projects that include unsupported controllers in the project tree, for example GuardPLC 1600. RSLogix Guard software cannot download programs to a GuardPLC 1600 or 1800.
Programming Software Versions, Compatibility, and Firmware Updates RSLogix Guard PLUS! Software and GuardPLC Firmware Compatibility A-3 RSLogix Guard PLUS! Software and Associated GuardPLC Firmware Versions The table below describes the firmware version associated with each major release of RSLogix Guard PLUS! Software. Backward compatibility is maintained so that user programs developed using an earlier version of RSLogix Guard PLUS! software will work with later versions of GuardPLC firmware.
A-4 Programming Software Versions, Compatibility, and Firmware Updates Firmware and Software Version Compatibility The following table shows the best choice combinations of GuardPLC controller and distributed I/O firmware and RSLogix Guard PLUS! software versions. When other combinations are used, you will not have access to certain functional upgrades. CPU/COM GuardPLC Version Controller Platform Distributed I/O Firmware Version CPU 1.04 COM 1.00 1200 and 2000 N/A CPU 2.04 COM 2.
Programming Software Versions, Compatibility, and Firmware Updates Convert Projects A-5 Consult the following table for information on converting existing projects from one software version or package to another. Conversion Procedure From: RSLogix Guard v. 3.3 Use the project converter tool that ships with RSLogix Guard PLUS! to convert projects. This tool To: RSLogix Guard PLUS! v. 3.5 only works for conversions from RSLogix Guard v. 3.3 to RSLogix Guard PLUS! v. 3.5.
A-6 Programming Software Versions, Compatibility, and Firmware Updates Upgrade CPU Firmware 1. From the Control Panel menu, choose Extra > Update OS > Update CPU. 2. Browse to the folder that contains the new firmware and find the appropriate file. The CPU firmware file includes ‘cpu’ in the filename and has a .ldb file extension. 3. Select the firmware file and click Open to start the upgrade process. 4. After the firmware downloads, the GuardPLC controller reboots.
Programming Software Versions, Compatibility, and Firmware Updates A-7 2. Browse to the folder that contains the new firmware and find the appropriate file. The COM firmware file includes ‘com’ in the filename and has a .ldb file extension. 3. Select the firmware file and click Open to start the upgrade process. 4. After a COM update the Control Panel goes offline. Click the Connect button in the upper left corner of the Control Panel to go online again.
A-8 Programming Software Versions, Compatibility, and Firmware Updates Publication 1753-PM001A-EN-P - November 2005
Appendix B Configure the GuardPLC OPC Server In This Appendix For information about See page choosing an IP address B-2 adding the controller and OPC server to a project B-2 configuring the GuardPLC system for OPC communications B-3 generating code for the OPC server B-8 going online with the GuardPLC controller B-8 using the OPC server B-8 OLE for Process Control (OPC) is a standard interface for exchanging data between different applications.
B-2 Configure the GuardPLC OPC Server Choose an IP Address Add the GuardPLC Controller and the OPC Server to the Project Choose an IP address for the OPC Server and the GuardPLC controller. In this example, we used the default IP address of the GuardPLC controller, 192.168.0.99. The IP address of the OPC Server is 192.168.0.216. 1. In RSLogix Guard PLUS! software, choose Project>New. 2. Enter the name of the project and confirm OK. In this example, our project is called ‘OPCtest’. 3.
Configure the GuardPLC OPC Server B-3 8. In the project tree, right-click Configuration and choose New>OPC-Server. The OPC server appears in the project tree. Configure the GuardPLC System for OPC Communication Configure the Communication Network 1. In the Hardware Management window, right-click the OPCtest Project and choose New>HH-Network. 2. Expand the HH-Network. 3. Right-click Token Group and choose Node Editor. 4. Drag the OPC-Server and G16OPC01 onto the Node Editor. 5. Close the Node Editor.
B-4 Configure the GuardPLC OPC Server 7. Drag G16OPC01 onto the OPC-Server Resources Editor. The Specify HH-Network Configuration for OPC dialog opens. 8. Click OK. Connect Signals 1. Choose the Signals pulldown menu from the menu bar and choose Editor. 2. Add two new signals: • DI1 - input sent to the OPC Server • DO1 - output sent from the OPC Server 3. Left-click 1 in the OPC-Server Resources Editor. Choose Connect OPC-Signals. 4.
Configure the GuardPLC OPC Server B-5 5. Choose the Outputs tab. Drag DI1 from the Signal Editor to the Outputs section of the OPC Signal Connections window. TIP Input and Output are identified from the controller’s perspective. Therefore, output means signals sent out from the GuardPLC 1600 controller and input means signals sent in to the GuardPLC 1600 controller. 6. Close the OPC Signal Connections window and the OPC-Server Resources Editor. 7. Completely expand the G16OPC01 tree.
B-6 Configure the GuardPLC OPC Server 12. Drag DO1 from the Signal Editor to the DO[01].Value signal field. 13. Close the DO Signal Connections window and the Signal Editor. Set the System Properties Controller 1. Right-click COM under the GuardPLC 1600 controller tree and choose Properties. 2. Set the IP Address to 192.168.0.99 and click OK. 3. Right-click Programming Terminal and choose Properties. 4. Set the System ID (SRS) to 5. Click OK.
Configure the GuardPLC OPC Server B-7 6. Set the System ID (SRS) to 1 and click OK. 7. Expand the OPC-Server and double-click IP Address. 8. Set the IP Address to 192.168.0.216 and click OK. Token Group 1. Right-click Token Group and choose Properties. 2. Change the profile to Medium. 3. Verify that the Token Group ID is 4. 4. Click Apply and then OK.
B-8 Configure the GuardPLC OPC Server Generate Code for the OPC Server 1. To generate the XML file for the OPC server, right-click the OPC Server and choose Code Generator. The process should take only 1 or 2 seconds. Make sure there are no warnings or errors. 2. The resulting XML file is located in the project path of the RSLogix Guard PLUS! project. Make note of this path so that you can point to it from the GuardPLC OPC Server. 3. Return to the Project Management window and save the project. 4.
Configure the GuardPLC OPC Server B-9 2. Choose File >Open. 3. Point to your opc.xml file and click Open. 4. The controller and the OPC Server should appear in the Root window. Root Name System ID/SRS Connection state IP Addresses G16OPC01 60000.1 Not connected 192.168.0.99, 127.0.0.1 OPC Server_1 1 Not connected 192.168.0.216, 127.0.0.1 5. Click the Connect to HIPRO button. 6. Answer Yes to the query. 7. A connection opens between the G16OPC01 and the OPC Server.
B-10 Configure the GuardPLC OPC Server Publication 1753-PM001A-EN-P - November 2005
Appendix C Create a Time-based Variable To create a timer variable, you need to create a value field, enter the time value, and connect that field to your function block. 1. In the Function Block Diagram Editor, right-click in any open space on the page and choose Create Value Field. 2. Move the cursor to position the value field. 3. Click on the place where you want the value field to reside. 4. Enter the timer value preceeded by T#.
C-2 Create a Time-based Variable Publication 1753-PM001A-EN-P - November 2005
Index A E access level 6-1 archiving a project 7-2 C check consistency 4-1 code 8-10 communications changing IP address 1-23 changing SRS 1-22 determining IP address 1-21 determining SRS 1-21 logging in 1-20 compatibility software and firmware A-4 configuring programming terminals 1-19 connecting controllers and programming terminals editing forces 5-5 entering force values and force marks 5-5 Ethernet connecting controller and programming terminal 1-1 F firmware and software compatibility A-4 firmwar
2 Index project archiving 7-2 restore 7-3 projects converting A-5 publications, related P-2 R related publications P-2 restore a project 7-3 retain 3-5 routines controlling 4-6 downloading 4-2 execution states 4-6 starting 4-4 testing 4-5 S scaling 8-6 signal editor 3-5 signal editor filter creating signals 3-6 signals analog input 3-10 connecting 3-7–3-13 creating 3-6 Publication 1753-PM001A-EN-P - November 2005 digital input 3-7 digital output 3-9 force values and force marks 5-5 high speed counter
Rockwell Automation Support Rockwell Automation provides technical information on the web to assist you in using our products. At http://support.rockwellautomation.com, you can find technical manuals, a knowledge base of FAQs, 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.