studio 5000 simulation interface

21
Rockwell Automation Publication 9234-GR001A-EN-P Getting Results Guide Original Instructions Studio 5000 Simulation Interface 9234-RLDSIMx

Upload: others

Post on 29-Dec-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Studio 5000 Simulation Interface

Rockwell Automation Publication 9234-GR001A-EN-P

Getting Results Guide Original Instructions

Studio 5000 Simulation Interface 9234-RLDSIMx

Page 2: Studio 5000 Simulation Interface

Studio 5000 Simulation Interface

2 Rockwell Automation Publication 9234-GR001A-EN-P

Important User Information Read this document and the documents listed in the additional resources section about installation, configuration, and operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws, and standards.

Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required to be carried out by suitably trained personnel in accordance with applicable code of practice.

If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired.

In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment.

The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams.

No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this manual.

Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited.

Throughout this manual, when necessary, we use notes to make you aware of safety considerations.

WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to personal injury or death, property damage, or economic loss.

ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.

IMPORTANT Identifies information that is critical for successful application and understanding of the product.

Labels may also be on or inside the equipment to provide specific precautions.

SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present.

BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous temperatures.

ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential Arc Flash. Arc Flash will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and for Personal Protective Equipment (PPE).

Page 3: Studio 5000 Simulation Interface

Studio 5000 Simulation Interface

3 Rockwell Automation Publication 9234-GR001A-EN-P

Summary of changes

This manual includes new information. Use these reference tables to locate changed information.

Grammatical and editorial style changes are not included in this summary.

Global changes

This table identifies changes that apply to all information about a subject in the online help and the reason for the change. For example, the addition of new supported hardware, a software design change, or additional reference material would result in changes to all of the topics that deal with that subject.

Subject Reason

MATLAB 9.10 Support MATLAB 9.10 is supported.

New or enhanced features

This table contains a list of topics changed in this version, the reason for the change, and a link to the topic that contains the changed information.

Topic Name Reason

Ansys Plugin Studio 5000 Simulation Interface now supports connecting digital twin ROMs (.twin) created in Ansys Twin Builder 2021 R2 built for the Logix 5000 platform to physical or emulated Logix 5000 controller. Create a project using an Ansys® Twin Builder file on page 12

ACD Refresh The ACD refresh functionality updates the .acd module files directly from Studio 5000 Simulation Interface. Previously, applying the modifications of acd tag names and types in Studio 5000 Logix Designer® required removing the .acd files and importing the updated files. To reduce this effort, the new acd Refresh icon appears in Add files beside the download, info, delete . Updating the .acd files maintains the existing tag connections. Refresh ACD file on page 14

Import/Export tags Import Connections imports the new connections from the Connection column of the .csv file, which connects the model and ACD tags in Studio 5000 Simulation Interface based on the connection present in .csv file. This feature allows many to many connections for model and ACD tags. The Export Connections function is available from Connect Tag. You can export a file in .csv format, edit the connections, and import the updated file using Import Connections. Import Connections on page 15 Export Connections on page 16

Page 4: Studio 5000 Simulation Interface

Topic Name Reason

FMU Step Size The FMU Step size is executed using the step size defined in the Functional Mock-up Interface (FMI) standard 2.0. During the Simulation process, the .fmu module file performs the steps for the specific time indicated in step size in every iteration. For example, the FMU step size is 100 ms, the FMU model in Simulation Interface executes a 0.1 ms step size at every 100 ms. FMU Model Parameters on page 11

Compute module The Compute module allows you to perform simulations using the Command Line Interface. Compute Module on page 19

Page 5: Studio 5000 Simulation Interface

Rockwell Automation Publication 9234-GR001A-EN-P 5

Table of Contents

Studio 5000 Simulation Interface .............................................................. 5 System requirements .................................................................................. 6 Home screen ................................................................................................ 8

Chapter 1 Create a Project using a MATLAB file ........................................................ 9 MATLAB Model Parameters ....................................................................... 9 ACD Model Parameters..............................................................................10 Create a project using a Function Mock-up Unit file .............................. 11 FMU Model Parameters ............................................................................. 11 Create a project using an Ansys® Twin Builder file ................................. 12 Ansys Twin Builder model parameters ..................................................... 12 Define a Communication Path between Studio 5000 Simulation Interface and the controller. ...................................................................... 13 Connect tags ............................................................................................... 13 Disconnect tags .......................................................................................... 14 Refresh ACD file ......................................................................................... 14 Import Connections ................................................................................... 15 Import Failed .............................................................................................. 15 Import warning .......................................................................................... 15 Export Connections ................................................................................... 16

Chapter 2 Running a simulation ................................................................................ 17 Simulation window parameters ............................................................... 17 Generate a Model file using an ACD file ................................................... 18

Chapter 3 Command Line Interface .......................................................................... 19 Copy Configuration to Edge Compute Device ........................................ 19 Edit the project file ..................................................................................... 19 Open the command prompt ...................................................................... 19 Run the command line interface ............................................................... 19 Verify simulation changes ........................................................................ 20

Create a project

Run a simulation

Compute module

Page 6: Studio 5000 Simulation Interface

6 Rockwell Automation Publication 9234-GR001A-EN-P

Studio 5000 Simulation Interface Studio 5000 Simulation Interface software enables simulation-assisted commissioning, model-based design and machine optimization in applications utilizing Rockwell Automation controllers. Use Studio 5000 Simulation Interface to create, modify, and monitor communication links between various simulation and modeling tools and Rockwell Automation controllers in a co-simulation environment.

Studio 5000 Simulation Interface:

• Discovers model variables from imported MATLAB® Simulink® models (*.mdl), Function Mock-up Units (*.fmu), or Ansys® twin builder models (.twin).

• Provides an interface to map model variables to tags in a target controller program file (*.acd).

• Acts as the co-simulation master, providing the interface to start, stop, or step through a simulation.

• Connects model variables mapped to tags in physical controllers through FactoryTalk Linx.

• Connects model variables mapped to tags in emulated controllers through a high-speed interface

See Also

Home menu on page 8

System requirements on page 6

System requirements For optimal performance of the Studio 5000 Simulation Interface software application, the personal computer should meet or exceed these hardware and software requirements.

Hardware requirements • Intel® Core™ i5 Standard Power processor (i5-3xxx) • 8 GB RAM memory • 20 GB free hard disk space

Software requirements

This version of Studio 5000 Simulation Interface software is expected to operate correctly on these operating systems:

Page 7: Studio 5000 Simulation Interface

Rockwell Automation Publication 9234-GR001A-EN-P 7

• Windows® 10 Professional (64-bit) version 1803 • Windows Server 2016 or later

These prerequisite software are required to use this version of the Studio 5000 Simulation Interface software and is automatically installed if not already present:

• FactoryTalk® Services Platform version 6.21 • FactoryTalk® Activation version 4.05.01 • FactoryTalk® Linx™ version 6.21 or RSLinx® Classic version 4.21 • .NET Framework 4.6.1 and 4.8

Check the software requirements for other Rockwell Software products that will be installed to be sure that these products are also compatible with the system.

Software compatibility

This version of Studio 5000 Simulation Interface is compatible with these software applications:

• Studio 5000 Logix Designer® version 24 or higher (up to and including version 33)

• Studio 5000® Logix Emulate™ version 24 or higher (up to and including version 33

• MATLAB 8.6 (R2015b, Simulink 8.6) – MATLAB 9.10 (R2021a, Simulink 10.3)

• FMI 2.0 co-simulation compatible 32-bit Functional Mock-up Units (*.FMU)

• Ansys 2021 R2 Twin Builder ROMs (*.TWIN)

Controller compatibility

This version of Studio 5000 Simulation Interface is compatible with these hardware controllers:

Controller Family Supported Firmware Versions

ControlLogix® 5580 Controllers CompactLogix™ Controllers Armor™ Compact GuardLogix 5370 Controllers Compact GuardLogix 5380 Controllers

Versions 28 through 33

GuardLogix 5580 Controllers Compact GuardLogix 5380 Controllers

Versions 31 and 33

Page 8: Studio 5000 Simulation Interface

8 Rockwell Automation Publication 9234-GR001A-EN-P

Controller Family Supported Firmware Versions

ControlLogix 5570 Controllers GuardLogix 5570 Controllers Armor ControlLogix 5570 Controllers Armor GuardLogix 5570 Controllers Compact GuardLogix 5370 L3 Controllers Compact GuardLogix5370 L3 Controllers Armor Compact GuardLogix 5370 L3 Controllers Compact GuardLogix 5370 L2 Controllers Compact GuardLogix 5370 L1 Controllers Logix Emulate™ Controllers

Versions 24 through 33

CompactLogix 5480 Controllers Versions 30 through 33

Supported browsers

These web browsers were tested and are supported for use with this release:

• Internet Explorer® 11 must be run in Compatibility View.

Home screen Create a new project or open an existing project on the home screen:

Option Description

New Project Creates a new project configuration.

Open Project Opens a saved simulation interface (.syc file name extension). Import CSV Imports a CSV file. Recent Lists recently used simulation interface projects.

See also

Create a Project using a MATLAB file on page 9

Create a project using a Function Mock-up Unit file on page 11

Create a project using an Ansys® Twin Builder file on page 12

Page 9: Studio 5000 Simulation Interface

Rockwell Automation Publication 9234-GR001A-EN-P 9

Chapter 1

Create a project

Create a Project using a MATLAB file Create a simulation project using a MATLAB/Simulink file:

1. Select New Project from the Home screen. 2. Enter the project name. 3. In Add a Model File, select Browse. 4. A message appears stating the file may be from an untrusted source.

Select YES to continue or NO to exit. 5. In the File Type list, select MATLAB Simulink Model (*.mdl). 6. Select the MATLAB Simulink file (.mdl extension). 7. Select Open. the Add Module dialog box opens. 8. The model is imported, and the MATLAB Simulink model opens. 9. From the task bar, open the MATLAB Simulink model. 10. In the MATLAB application, select the proxy block. 11. Return to Studio 5000 Simulation Interface. 12. Select OK in the Add Module dialog box. 13. After the model is imported, select OK to close the Add Module dialog

box. 14. In Add an ACD File, select BROWSE and select and import the ACD

file.

See also

MATLAB Model Parameters on page 9

ACD Model Parameters on page 10

Connect tags on page 13

Define a Connection Path between Studio 5000 Simulation Interface and the controller. on page 13

Select the information icon next to the model name to view MATLAB model parameters. The module name appears at the top of the information window.

Parameter Description

File Path Shows the full path to ACD file used to create module. Type Describes module type.

MATLAB Model Parameters

Page 10: Studio 5000 Simulation Interface

Chapter 1 Create a project

10 Rockwell Automation Publication 9234-GR001A-EN-P

Parameter Description

Subsystem Shows the path to a block (the subsystem) in the MATLAB/Simulink model. The model contains the S-Function block used to communicate with Studio 5000 Simulation Interface.

Sample time Indicates the block that produces output. If appropriate, updates the blocks internal state.

User Command Contains a string with a command that is evaluated in the current MATLAB workspace after a simulation download.

Time Conversion Defines the ratio between time units of controller(s) and simulation. Time conversion is usually used to initialize the simulation. If using an initialization script (m-file), it must not contain any clear commands. For example, the basic time unit of Studio 5000 Logix Emulate is 1 millisecond, which is also the basic time unit of Studio 5000 Simulation Interface. If a MATLAB simulation uses seconds, set the time conversion property to 1000 (1[s] = 1000[ms]) to synchronize modules. When MATLAB simulation time uses minutes, set the time conversion to 60000 (Time_ms = Time_min * 60 * 1000).

Proxy mode Defines the solver types. • 0 = Variable-Step • 1 = Fixed-Step

Counterpart - GENERATE Creates counterpart Logix Designer project (ACD file) from the existing MATLAB/Simulink model (.mdl extension).

See also

Create a Project using a MATLAB file on page 9

ACD Model Parameters on page 10

An ACD model is a file with an .acd extension that contains project files created by the Logix Designer application.

Parameters available for the ACD model include:

Parameter Description

File Path Displays the full path to ACD file used to create the model. Model Name Displays model name based on the ACD file name. Download Path Displays the path to the controller used to download the ACD file. Communication Path Displays path the controller uses to read and write tags. Time Slice Determines the Studio 5000 Simulation Interface time step in

milliseconds. After each step the Logix Emulate module stops and shares data with other modules.

Controller Type Displays the controller type used to configure the ACD file. Type Displays the type of controller configured in Studio 5000 project (in the

ACD file). Counterpart - GENERATE Creates a counterpart file, either MATLAB Simulink or FMU from the

existing ACD file.

See also

Create a Project using a MATLAB file on page 9

ACD Model Parameters

Page 11: Studio 5000 Simulation Interface

Chapter 1 Create a project

Rockwell Automation Publication 9234-GR001A-EN-P 11

MATLAB Model Parameters on page 9

Create a project using a Function Mock-up Unit file A Function Mock-up Unit (FMU) file is a zip file that contains data used by the model. You can create a simulation project using an FMU file.

1. Select Home > New Project. The Add Files screen opens. 2. Under Name this Project, type the project name. 3. Next to Add a Model File, select BROWSE. 4. A message appears stating the file may be from an untrusted source.

Select YES to continue or NO to exit. 5. In the File Type list, select Function Mock-up Unit file (*.fmu). 6. Browse to the location of the model file and select the Function Mock-

up Unit file (.fmu extension) to import. 7. Select Open to import the model. The Add Module dialog box opens. 8. After the model is imported, select OK in the Add Model dialog box. 9. In Add an ACD File, select BROWSE. 10. Browse to the location of the model file and select the ACD file to

import. 11. Select Open to import the ACD file. 12. When the file is imported, select OK in the Add Model dialog box.

See Also

FMU Model Parameters on page 11

ACD Model Parameters on page 10

Connect tags on page 13

Define a Connection Path between Studio 5000 Simulation Interface and the controller on page 13

Generate a Controller Project file based on a Functional Mock-up Model on page 18

In the Add Files window, select the information icon next to the model name to view FMU model parameters. The model name appears at the top of the model information dialog box.

FMU model parameters include:

Parameter Description

File Path Displays the full path to FMU file used to create model. FMU Version Displays the current version of the FMU model. Model Identifier Displays the Model identifier of FMU model. Version Displays the FMU file version.

FMU Model Parameters

Page 12: Studio 5000 Simulation Interface

Chapter 1 Create a project

12 Rockwell Automation Publication 9234-GR001A-EN-P

Parameter Description

Documentation Opens the document from FMU folder. Type Displays the module type. Model Name Displays the unique name of FMU model. GUID Displays the unique identifier of FMU file. Co-Simulation Displays Yes if the module is designed for co-simulation.

Displays No if the module is not designed for co-simulation.

Step Size [ms] Enter the step size, also known as the sampling rate. This is the distance between two subsequent communication points in milliseconds. The step size range is 0.1 - 32,000 ms. The default rate is 1.

Counterpart Create a counterpart ACD module from the existing FMU. Generate Generates the counterpart file, ACD module.

See also

Create a project using a Function Mock-up Unit file on page 11

Generate a Controller Project file based on a Functional Mock-up Model on page 18

Create a project using an Ansys® Twin Builder file You can create a simulation project using using an Ansys Twin Builder file.

1. From the home screen, select New Project. 2. Enter the project name. 3. In Add a Model File, select Browse. 4. A message appears stating the file may be from an untrusted source.

Select YES to continue or NO to exit. 5. In the File Type list, select Ansys Twin Builder File (*.twin) and select

the file. 6. Select Open. 7. The model is imported and the Ansys model opens. 8. After the model is imported, select OK 9. In Add an ACD File, select BROWSE. 10. In Open, select and import the ACD file.

See also

Ansys Twin Builder model parameters on page 12

Parameters available for the Ansys Twin Builder model include:

Parameter Description

File Path Displays the full path to Ansys Twin Builder file used to create the model.

Ansys Twin Builder model parameters

Page 13: Studio 5000 Simulation Interface

Chapter 1 Create a project

Rockwell Automation Publication 9234-GR001A-EN-P 13

Parameter Description

Type Displays the software used to create the twin file. Version Displays the Studio 5000 Simulation Interface file version. Version Internal Displays the major and minor revision of Twin Builder used to create

the reduced order twin model. Is Cross Platform Indicates if the .twin file is cross-platform (Microsoft®Windows \

Linux operating systems. Counterpart GENERATE Creates a counterpart Studio 5000 Logix Designer from the existing

.TWIN file.

See also

Create a project using an Ansys® Twin Builder file on page 12

Define a Communication Path between Studio 5000 Simulation Interface and the controller. Define a communication path for Studio 5000 Simulation Interface to exchange data between the computer and the target device.

1. In the Add Files screen, select the information icon. 2. In the open window, select Communication Path. The RSWhoBrowser

dialog box opens. 3. In the RSWhoBrowser dialog box, select the target controller. 4. Select OK to close the RSWhoBrowser dialog box. The path is created. 5. Select OK to close the ACD information dialog box.

See also

Create a Project using a MATLAB file on page 9

Create a project using a Function Mock-up Unit file on page 11

Create a project using an Ansys® Twin Builder file on page 12

Connect tags on page 13

Connect tags Connect the tags in the model with the tags in the ACD file to link the projects and make the simulation functional.

Tip: If the names in the model and controller project match, select Auto Connect to create the links. To connect multiple tags, select a set of tags and then drag them over the corresponding tags.

1. Select File > Open Project to open a simulation project workspace. 2. In the model workspace, select CONNECT TAGS. The Connect Tags

dialog box opens.

Page 14: Studio 5000 Simulation Interface

Chapter 1 Create a project

14 Rockwell Automation Publication 9234-GR001A-EN-P

In In/Out, the MATLAB model has two options: Input and Output. The FMU model has three additional options: Parameter, Control, and Status.

IMPORTANT The ACD In/Out parameter displays Unknown when no direction is associated with the tag. Connecting the tags establishes either Input or Output direction.

3. In the model column, select a tag name. 4. In the ACD column, select the corresponding ACD tag to link to the

model tag. The Connection column updates with connection details. 5. Repeat steps 3 and 4 until all tags are linked.

Once all tags are connected, START SIMULATION appears in the lower left corner of the Connect Tags dialog box.

See Also

Simulation window parameters on page 17

Disconnect tags on page 14

Disconnect tags Disconnect tags that are no longer part of the simulation.

1. Select File > Open Project to open a simulation project workspace. 2. Select CONNECT TAGS. 3. Select the tag. 4. Select the disconnect icon.

Tip: To disconnect all tags, select Disconnect All from the menu.

See also

Connect tags on page 13

Refresh ACD file on page 14

Refresh ACD file You can update the ACD file to reflect changes to tag names or tag types and maintain the existing tag connections.

To update the ACD file:

1. From the Add Files screen, select refresh. A message appears when the module successfully refreshes

2. After refreshing the ACD file, update the communication path using the property window.

3. Select CONNECT TAGS to view the modified tag name or tag type.

Page 15: Studio 5000 Simulation Interface

Chapter 1 Create a project

Rockwell Automation Publication 9234-GR001A-EN-P 15

See Also

Define a Communication Path between Studio 5000 Simulation Interface and the controller. on page 13

Import Connections You can import new connections from a .csv file.

To import connections:

1. From the Connect Tags screen, select More. 2. Select Import Connections from the menu. 3. A message appears stating the file may be from an untrusted source.

Select YES to continue or NO to exit. 4. From Open, select the file to import. 5. Select Open. When the connections are successfully imported, a

message appears stating the number of tags connected and the number of tags that failed to connect.

6. Select OK.

See Also

Export Connections on page 16

Import Failed on page 15

The selected file did not import. The file may contain invalid format or content:

• One or more model headers missing. • ACD headers missing • Empty file. • Blank row found. • Duplicate tags found. • Non-standard separators used. The valid separator is a semi-colon. • File does not contain any valid tags to connect. • Connections not added in the exported .csv file before import. • Model or ACD no available in .csv file. • File contents invalid.

See Also

Import Connections on page 15

A tag mismatch occurred. Some tags available in the .csv file are not available in the project. If you continue, these tags are discarded.

Import Failed

Import warning

Page 16: Studio 5000 Simulation Interface

Chapter 1 Create a project

16 Rockwell Automation Publication 9234-GR001A-EN-P

Export Connections You can export connections to a .csv file.

To export:

1. From the Connect Tags screen, select More. 2. Select Export Connections. 3. In Save As, enter the file name and select Save. A message appears

stating the connections successfully exported.

Tip: If the chosen file name exists in the selected location, the Export Failed message appears.

See Also

Import Connections on page 15

Page 17: Studio 5000 Simulation Interface

Rockwell Automation Publication 9234-GR001A-EN-P 17

Chapter 2

Run a simulation

Running a simulation After the connection path is defined and tags are linked, run the simulation.

1. Select START. The Start Simulation window opens. This window closes when the simulation is running and START changes to PAUSE.

Observe the values change in the model.

2. Select STOP to stop the simulation.

Use STEP to execute the simulation one iteration at a time.

When the simulation is running, the tag values display on both the model and ACD side.

Tip: Use Controller Mode to place the controller in Run mode before the simulation starts.

See Also

Simulation window parameters on page 17

Simulation window parameters include:

Parameter Description

Start Starts the simulation based on the configuration set. Pause Pauses the running simulation. Step Executes one simulation step. Stop Stops the simulation and unloads all modules in application. Simulation Logs Opens the log folder and displays the log. Timer Displays the complete simulation time. The timer begins when you

select Start and ends when you select Stop. Acceleration Sets the acceleration when simulation starts. Lite Mode Saves a simulation data to a file when you select Off. No simulation

file is saved if you select On. Comm Type Select the communication type for the controller:

• For the physical controller, select Linx. • For a Studio 5000 Logix Emulate controller, select Linx or OTS

API. • For a FactoryTalk® Logix Echo™ controller, select Linx or Echo

API. Number of Modules Displays the number of modules in use. Number of Iterations Displays the number of simulation cycles completed. Updates by +1

each cycle.

Simulation window parameters

Page 18: Studio 5000 Simulation Interface

Chapter 2 Run a simulation

18 Rockwell Automation Publication 9234-GR001A-EN-P

Parameter Description

Run Time Displays the module internal simulation time. Time begins when the simulation starts and ends when the simulation stops.

Scale Time Controls the speed of each quantum execution in the FactoryTalk Logix Echo controller. The available range is 1-20. Scale Time appears only when the Comm Type is Echo API.

Task Fidelity Determines how often the continuous task executes. The range is 10-100%. Task Fidelity appears only when the Comm Type is Echo API.

Controller Mode Sets the controller mode to Run or Program when OTS API or Echo API is set to Off.

See also

Running a simulation on page 17

Generate a Model file using an ACD file Use an existing Studio 5000 Logix Designer project to generate a simulation model based on an ACD file.

1. Select the information icon to the right of the model file name. 2. In the model information dialog box, under Counterpart,

select GENERATE. 3. In the Generate Counterpart dialog box, enter a name for the model. 4. Select a location to save the application file. 5. Select Save. 6. On the Generate Counterpart dialog box, select OK.

See also

Create a project using a Function Mock-up Unit file on page 11

FMU Model Parameters on page 11

Page 19: Studio 5000 Simulation Interface

Rockwell Automation Publication 9234-GR001A-EN-P 19

Chapter 3

Compute module

Command Line Interface Studio 5000 Simulation Interface supports a Command Line Interface for use on Windows IoT edge computing devices.

Access the edge compute device and copy the simulation files to the module.

1. Navigate to the saved file location. 2. Copy the controller project, such as the *.ACD model file, *.FMU or

*.TWIN, and SavedProject *.syc files to the Compute Module.

Tip: Running a MATLAB/Simulink model on the edge compute device requires a licensed and installed version of MATLAB.

Edit the project file to reflect the new file directory paths and communication paths.

1. Navigate to the project file *.syc saved on the Edge compute device. 2. Open the file in Notepad. 3. Edit these lines:

• update the type="Functional Mock=up Unit" or type="Ansys Twin Builder" file path

• Update the "Logix Project" file=ACD file path • Update the Property name="'Communication Path"

value=communication path

4. Save the file.

Open the command prompt.

1. Enter cmd in the search bar to open the Command Prompt. 2. Navigate to SimkitCLI application folder path: C:\Program Files

(x86)\Rockwell Software\Studio 5000 Simulation Interface.

Run the Command Line Interface.

1. Enter run SimkitCLI.exe. The welcome message appears.

At the command prompt, enter the project file, such using the file path: C:\Users\Simkit\Downloads\Username\Compute\fmu.syc After the FMU.syc file loads, you can see the current simulation state

Copy Configuration to Edge Compute Device

Edit the project file

Open the command prompt

Run the command line interface

Page 20: Studio 5000 Simulation Interface

Chapter 3 Compute module

20 Rockwell Automation Publication 9234-GR001A-EN-P

2. Perform the simulation using these options: 1. -> Start simulation in continuous mode 2. -> Start simulation in step mode 5. -> Exit The simulation state changes to Simulation is running in continuous mode.

3. Select from these options:

• 3 - Pause simulation • 4 - Stop simulation • 5 - Exit

You can verify simulation changes in Studio 5000 Logix Designer on a computer that can communicate with the physical controller.

1. When simulation stars in Compute., verify that appropriate values are updated in Studio 5000 Logix Designer.

2. Enter 3 in the command prompt to pause the simulation The simulation state displays Simulation is running in pause mode.

These options appear:

• 1. - Start simulation in continuous mode • 2. - Start simulation in step mode • 4. - Stop simulation • 5. - Exit

3. Enter 2 in the command prompt to run the simulation in step mode. The simulation state displays Simulation is running in step mode.

These options appear:

• 1. - Start simulation in continuous mode • 2. - Start simulation in step mode • 4. - Stop simulation • 5. - Exit

4. Enter 5 in the command prompt to exit the application.

When simulation is complete, you can view simulation logs in this location: C:\Users\UserName\AppData\Roaming\Rockwell Software\Studio 5000 Simulation Interface.

Verify simulation changes

Page 21: Studio 5000 Simulation Interface

Allen-Bradley, expanding human possibility, Logix, Rockwell Automation, and Rockwell Software are trademarks of Rockwell Automation, Inc.

EtherNet/IP is a trademark of ODVA, Inc.

Trademarks not belonging to Rockwell Automation are property of their respective companies.

Rockwell Otomayson Ticaret A.Ş. Kar Plaza İş Merkezi E Blok Kat:6 34752, İçerenkÖy, İstanbul, Tel: +90 (216) 5698400 EEE YÖnetmeliğine Uygundur

Rockwell Automation Publication 9234-GR001A-EN-P Copyright © 2021 Rockwell Automation Technologies, Inc. All Rights Reserved. Printed in the U.S.A.

Rockwell Automation support Use these resources to access support information.

Technical Support Center Find help with how-to videos, FAQs, chat, user forums, and product notification updates.

rok.auto/support

Knowledgebase Access Knowledgebase articles. rok.auto/knowledgebase Local Technical Support Phone Numbers Locate the telephone number for your country. rok.auto/phonesupport

Literature Library Find installation instructions, manuals, brochures, and technical data publications. rok.auto/literature Product Compatibility and Download Center (PCDC)

Get help determining how products interact, check features and capabilities, and find associated firmware.

rok.auto/pcdc

Documentation feedback Your comments help us serve your documentation needs better. If you have any suggestions on how to improve our content, complete the form at rok.auto/docfeedback.

Waste Electrical and Electronic Equipment (WEEE)

At the end of life, this equipment should be collected separately from any unsorted municipal waste.

Rockwell Automation maintains current product environmental information on its website at rok.auto/pec.