Skip to main content

RSLogix Studio 5000

Overview

In this tutorial, you'll learn how to control ATOM over EtherNet/IP with RSLogix Studio 5000.

Note

If you'd like to skip this tutorial, download the completed example project: AtomExampleStudio5000.zip.

Prerequisites

  1. A PC with RSLogix Studio 5000 installed (See Installation Troubleshooting for help with installation issues): TwinCAT XAE Shell
  2. A Logix PLC - a CompactLogix 1769-L19ER-BB1B is used in this example, but you can follow along with any Logix PLC that supports EtherNet/IP.
  3. Download ATOM's EDS file: Atom.eds

Hardware Setup

Connections:

  • Connect port 1 (Front) on your PLC to your PC
  • Connect port 2 (Rear) on your PLC to ATOM (either port)
  • Connect a 24VDC power supply to ATOM and your PLC

Hardware setup

PLC Configuration

Upgrading firmware

Make sure to upgrade your PLC firmware to the lastest version to ensure compatibility with Studio 5000.

  1. Connect your Logix PLC to your PC with a USB cable.
  2. Launch ControlFLASH Plus:

ControlFLASH Plus

  1. Open the network browser:

ControlFLASH Plus

  1. Select your PLC under the USB category:

ControlFLASH Plus

  1. Select the device and latest firmware version, then click Next:

ControlFLASH Plus

  1. Click Flash:

ControlFLASH Plus

  1. After flashing succeeds, reboot your PLC.

ControlFLASH Plus

Configuring your PC's network settings

  1. Open your PC's network settings and select edit on the Ethernet adapter connected to your PLC:

ControlFLASH Plus

  1. In the Edit IP Settings dialog, set:

    • IP Address: 192.168.30.245
    • Subnet Mask: 255.255.255.0

    Click Save to apply the settings.

    ControlFLASH Plus

  2. Open RSLogix Classic and select Communications > Configure Drivers:

ControlFLASH Plus

  1. Select EtherNet/IP Driver and click Add New:

ControlFLASH Plus

  1. Click OK to add the driver:

ControlFLASH Plus

  1. Select the adapter with IP address 192.168.30.245, then hit Apply and OK:

ControlFLASH Plus

ATOM Configuration

  1. Connect ATOM to your PC using a USB-C cable. Launch Control Panel and connect to your ATOM. In the Network tab, set the following:
    • IP Address Configuration: Static
    • IP Address: 192.168.30.100
    • Subnet Mask: 255.255.255.0

ControlFLASH Plus

Create a Studio 5000 project and connect to your PLC

  1. Launch Studio 5000, select File > New Project. Name the project AtomExampleStudio5000 and select 1769-L19ER-BB1B (CompactLogix 5370). Click OK:

Create Project Step 1

  1. Select 0 Modules under Expansion I/O, then click Finish:

Create Project Step 1

  1. Connect your PLC to your PC with a USB-B cable. In Studio 5000, select Communications > Who Active:

Create Project Step 1

  1. Select your PLC under the USB category and click Go Online:

Create Project Step 1

Ensure the switch on your PLC is set to PROG mode before downloading. Create Project Step 1

  1. Select Download and double check that the Controller OK indicator light turns green:

Create Project Step 1

Create Project Step 1

  1. Right click Controller AtomExampleStudio5000 and select Properties:

Create Project Step 1

  1. In the Internet Protocol tab, set the following and hit Apply and OK:
    • Manually configure IP settings checked
    • IP Address: 192.168.30.50
    • Subnet Mask: 255.255.255.0

ControlFLASH Plus

  1. Disconnect the USB cable from your PLC. In Studio 5000, select Communications > Who Active again, then select your PLC under the Ethernet category and click Go Online:

ControlFLASH Plus

ControlFLASH Plus

You should also see ATOM (with IP address 192.168.30.100) under the AB_ETHIP-1 category.

Import EDS file

Select Tools > Device Description Installation Tool (some versions call it EDS Hardware Installation Tool)

Import Atom Step 1 Import Atom Step 3 Import Atom Step 4 Import Atom Step 5 Import Atom Step 6 Import Atom Step 7

Add Atom to the project

  1. Right-click Ethernet and select New Module:

ControlFLASH Plus

  1. In the Catalog tab, search for Atom, select it, and click Create:

ControlFLASH Plus

  1. In the General tab, set the IP Address to 192.168.30.100 and click OK:

ControlFLASH Plus

A basic example program

  1. Right-click Parameters and Local Tags under MainProgram and select New Tag to create a tag:

ControlFLASH Plus

  1. Create two_ new tags:
    • Tag 1
      • Name: ATOM_FULL_ON
      • Data Type: BOOL
    • Tag 2
      • Name: ATOM_LINE_VOLTAGE
      • Data Type: DINT

ControlFLASH Plus

ControlFLASH Plus

You can follow along with either the Structured Text or Ladder Logic examples below.

Ladder Logic

  1. In the MainRoutine file, select Ring 0 and add an Examine On instruction:

ControlFLASH Plus

  1. Configure this instruction to examine the ATOM_FULL_ON tag:

ControlFLASH Plus

  1. Add an Output Energize instruction and select Atom:O.Digital_RUN_Enable:

ControlFLASH Plus

ControlFLASH Plus

  1. Add a Move instruction and set source to 10000 and dest to Atom:O.Digital_setpoint.

ControlFLASH Plus

ControlFLASH Plus

  1. Right-click and select Add rung. In this new rung, add a MOVE instruction and set source to Atom:I.AC_Line_Voltage and dest to ATOM_LINE_VOLTAGE:

ControlFLASH Plus ControlFLASH Plus

  1. Select the PLC dropdown and click Download to download the program to your PLC:

Ensure the switch on your PLC is set to PROG mode before downloading. Create Project Step 1

ControlFLASH Plus

ControlFLASH Plus

  1. Flip the switch on your PLC to RUN mode.

Create Project Step 1

  1. If everything worked properly, the controller Run Mode indicator light should turn green:

ControlFLASH Plus

Next, jump to the Creating a user interface section.

Structured Text

  1. Delete the default MainRoutine:

Create Project Step 1

  1. Right-click MainProgram and select Add Routine. Name it MainRoutine, set the Type to Structured Text, and click OK:

Create Project Step 1

Create Project Step 1

  1. Right-click MainRoutine, select Properties, and ensure MainRoutine is set as the Main Routine in the Configuration tab:

Create Project Step 1

Create Project Step 1

  1. Insert tags by right-clicking in MainRoutine and selecting Browse Tags.

Create Project Step 1

  1. You can insert Atom:I (input) and Atom:O (output) tags to control ATOM:

Create Project Step 1

  1. Add the following code to MainRoutine:
IF ATOM_FULL_ON THEN
Atom:O.Digital_RUN_Enable := 1;
Atom:O.Digital_setpoint := 10000;
ELSE
Atom:O.Digital_RUN_Enable := 0;
Atom:O.Digital_setpoint := 0;
END_IF;

ATOM_LINE_VOLTAGE := Atom:I.AC_Line_Voltage;

Create Project Step 1

Next, jump to the Creating a user interface section.

Creating a user interface

info

Studio 5000 comes with a separate program called View Designer for creating user interfaces. It's usually installed at C:\Program Files (x86)\Rockwell Software\Studio 5000\View Designer\ENU\V10\ViewDesigner.exe

  1. Launch View Designer and create a new project with the following settings:
    • Controller[0] Reference Name: AtomExampleStudio5000
    • Logix Project File: path-to-your-project\AtomExampleStudio5000.ACD
    • HMI to Controller Path: 192.168.30.50
    • Emulerator to Controller Path: NETWORK\192.168.30.50

Create Project Step 1

  1. Open Screen_001:

Create Project Step 1

  1. In the CommonControls toolbox, drag three components onto the screen:
    • Button
    • Numeric Display
    • Text Display

Create Project Step 1

Create Project Step 1

  1. Select the Text Display component and set the text to AC Line Voltage:

Create Project Step 1

  1. Select the Numeric Display component and set the Value (in the Properties panel) to ATOM_LINE_VOLTAGE:

Create Project Step 1

Create Project Step 1

Create Project Step 1

  1. Select the *Button component and set the text to Start / Stop. In the Events panel, click Add Event, Button Behavior:

Create Project Step 1

  1. Select Toggle a tag on release and set the tag to ATOM_FULL_ON:

Create Project Step 1

Create Project Step 1

Create Project Step 1

  1. Select the Emulate button to launch the HMI emulator:

Create Project Step 1

  1. Ensure your PLC is in RUN if it is not already.

  2. In the emulator, you can click Start / Stop to toggle ATOM's operation. The AC Line Voltage display should show the current line voltage (in tenths of volts (e.g., 2300 for 230.0V)):

Create Project Step 1

If you are connected to ATOM with Control Panel, you can watch the Stop / Run and Fieldbus setpoint controls change as you toggle the button in the Rockwell emulator.

Create Project Step 1

Troubleshooting

Installation troubleshooting

Activation issues

If you use your PC for multiple PLC environments (like Siemens TIA, Codesys, etc.) you may run into activation issues caused by CodeMeter licenses.

Follow this guide to delete other CodeMeter licenses as Studio 5000 requires exclusive access to the CodeMeter license manager.

Your CodeMeter should look like this:

CodeMeter

Factory Talk activation

Use Factory Talk Activation Manager to ensure your have a valid Studio 5000 license.

Factory Talk

Can't connect to PLC or ATOM

Use the ping utility on Windows to check if your PC can reach the PLC/ATOM:

Ping

If:

  • Ping is successful - you have a configuration problem with your PC
  • Ping is unsuccessful - you have a hardware configuration, PLC configuration, or ATOM configuration problem.