Preparation: hardware description

The PLC used in this example application has the following:

Note: The S7-1200 PLC has integrated I/O which can be accessed by hinge panels at the top and bottom of unit.

The Valve Terminal used in this example application has the following:

Preparation: import device master file (GSDML)

  • Locate GSDML in Festo Support Portal. Part #548751 was used in search window (CPX-M-FB34).
  • Current version for GSDML is V2.31 released on 1/3/2015.

Commissioning With Siemens TIA Portal: Starting Project

Commissioning with Siemens TIA Portal: Create Project

  • Create New Project.
  • Select Create after entering project name.
  • Click “Open the project view”.
  • Navigate to Menu Command for Options > Manage General Station Description Files (GSD).
  • Navigate to the directory containing the GSDML file. Please extract contents first.
  • Select the GSDML file using the check box.
  • Install.

Configure the CPU (Scan Method)

  • Select “Configure a device”.
  • Use the “Unspecified CPU 1200” listed in Simatic S7-1200 tree.
  • Click “OK”.

Scan the network to detect CPU configuration:

After selecting Unspecified CPU, you will see the window below that informs you the CPU is not specified.

  • Click “detect” the configuration.
  • Click “Start search”.

Detect CPU scan results

Notice the Device type CPU listed as 1214C DC/DC/DC & Address info.

  • Click “Detect” to accept these findings.

Notice CPU device overview

Once the CPU has been configured, review the module info and I/Q addresses listed in the Siemens Device Overview. The S7-1200 CPU has integrated Inputs and Outputs already configured.

Also notice that, although the CPU rack contains a Power Supply and Network Switch, there is no device shown in these positions. Leave the slots blank for this example, this will not affect the project.

Compile and Save Project

At this point, please compile and save the project. Double-click “Devices & networks” in the Siemens tree. Highlight the PLC and click Compile, then Save Project.

This ends the portion of configuring the CPU via scan method.

Configure the CPU (Manual Method)

  • Refer back to page 7 for creating a new project.
  • After clicking on “Add new device”, find CPU 1214C DC/DC/DC listed in the Siemens tree. Use 6ES7-214-1AG40-0XB0.
  • Click “Add” in lower RH corner.
  • Add the ProfiBus module to your configuration. Refer to the Siemens Hardware catalog. Find ProfiBus, then drag and drop the 6GK7 243-5DX30-0XE0 to slot 101 in the PLC rack.
  • Double-click “Devices & networks” in LH Siemens tree.
  • Highlight the PLC and click Compile.
  • Save Project.

This ends the portion of configuring the CPU via Manual Method.

Configure the Festo Valve Terminal (Manual Method)

  • Double-click “Devices & networks”.
  • In the Hardware Catalog, find the CPX VT that fits your application. Our sample uses CPX. Drag and drop on workspace.
  • Click the blue “Not assigned” text and select the PLC ProfiNet interface.

Download the PLC & CPX configuration

  • Highlight the CPX, then click “Compile”.
  • Return to “Devices & networks” view.
  • Save Project.
  • Highlight the PLC in the network view, then Download the project to the PLC.

Go Online With the Project

  • Within the Load preview window, select “Stop all” in the Stop modules Target.
  • Click “Load”.
  • Click “Finish”.
  • Select the PLC, then click “Go online”. If all configurations have been completed correctly, you will see the following green check marks.
  • Save Project.

Creating PLC tags

  • Go Offline with your project.
  • In LH Project tree, open PLC and go to PLC tags. Double-click Default tag table.
  • Assign your required tags according to how you would like them. Refer back to your CPX Device Overview for assigned addresses.
  • Tags can be entered individually as bits or whole Byte format (other formats also selectable). This is your choice.

Creating force table

  • In LH Siemens Project tree, click Watch and force table. Double-click the Force table.
  • Cut and paste your data created from the Default tag table into your Force table. If you prefer to manually type them into the Force table, that will also work. The project will reference your address and data type from the Tag table.
  • When the Force table is complete, click “Compile”. Then Download to Device, then Go Online. It’s time for testing!
  • Save Project.

Forcing outputs test (digital)

  • Make sure you are Online and the CPU is in Run mode.
  • Go to the Force table. Change the Force value to outputs (from 0 to 1 or False to True). Click “Force All” button. Notice that bits change from 0 to 1 or True to False where Hexidecimal is shown for Outputs set up in byte format.
  • Confirm that your forced outputs work with your status LEDs on the CPX (shown below).

Forcing outputs test (Digital)

  • To turn forces off, click “Stop Forcing” button.
  • Manually change all Force values to False or Zero if needed.

Forcing VPPM outputs test (analog)

  • Double-click on the Default tag table to see that your VPPM_Output is set to “Word” for Data type. Also notice that the Address is %QW64, which is the first byte of the output address in the CPX (64 & 65).

Commissioning with Siemens TIA Portal – Primary Setup Tool

  • If bus faults occur, verify communication by pinging the address of each using the PC command prompt.