Creating and Adapting a Project in EcoStruxure Machine Expert

Creating a Project Based on an Example

This documentation is based on the example project SLC Remote Controller (M262) which is available in EcoStruxure Machine Expert Logic Builder. In the example, devices, tasks, and code (including a visualization) are pre-configured and can be adapted, if required.

Alternatively, you can create your project from scratch based on a Default Project and insert the required devices manually.

Procedure in EcoStruxure Machine Expert Logic Builder:

Step

Action

1

Select File > New Project.

2

In the New Project dialog, click From Example on the left.

3

Select the TM262M25NESS8T Logic/Motion Controller type from the drop-down list. (The example is only available for this controller type. Refer to the note below this table.)

Result: The available example projects are listed in the Matching Examples list.

4

Select the SLC Remote Controller (M262) entry in the Matching Examples list.

5

Enter a project name, select the file directory, and click OK.

Result: The project is created and the Devices tree as well as the Application tree are prepared as described in the next section.

NOTE: Adapt the controller type if you are using a type other than the TM262M25NESS8T.

Resulting Project Based on the SLC Remote Controller Example

As you have created your project based on the SLC Remote Controller (M262) example, the following applies to the project:

  • The Devices tree window reflects the bus structure as prepared in the project example.

  • The Sercos_Master is added to the Ethernet_1 node in the Devices tree. This way, the Ethernet 1 port is configured as Sercos port.

  • Under the Sercos_Master, the TM5CSLCx00FS Safety Logic Controller is available.

  • Under the Sercos_Master, a TM5NS31 bus coupler is available.

  • Under the TM5NS31 bus coupler, the following devices are inserted: TM5SPS3 Power Supply Module, TM5SDI4DFS Digital Input Safety Module, TM5SDO4TFS Digital Output Safety Module, and TM5SDM4TRFS Digital Mixed Safety Module.

  • In the Application tree, the folder SlcRemoteControllerExample is available. The example contains a program POU, an FB POU, and data type definitions. The code in these POUs is ready to compile. It can be used to read the status of the Safety Logic Controller and the connected safety-related modules, and to perform particular configuration-related commands.

  • In the Task Configuration (in the Application tree), a task named Task_SR_VisControl is available with a program instance of the prepared program POU. You must adapt the cycle time of this task.

  • The Tools tree contains the folder SlcRemoteControllerExample with a visualization of a virtual Safety Logic Controller control center. The HMI page VIS_SlcRemoteController enables you to visualize the status of the SLC and the connected safety-related modules, and to perform particular configuration-related commands. Refer to the chapter Remote Controlling of the SLC for further information.

  • In the Feature Configuration editor of the SLC, the option PacDriveCompatibility is selected. This setting is necessary to use the Remote Controller library.

Adapting the Bus Architecture

After you have created the project based on the SLC Remote Controller (M262), you can add further devices involved in your application. For instance, you can add further (safety-related and standard) TM5/TM7 modules at the existing TM5NS31 bus coupler, or further Sercos slaves including TM5NS31 bus couplers.

NOTE: Observe the system limitations.

The steps how to add, remove, replace, and update devices in the Devices tree are described in the chapter Managing Devices of the EcoStruxure Machine Expert Programming Guide.