Loading
Microsoft SQL Server | FactoryTalk Transaction Manager | Studio 5000

Motor Starting Sequence with SQL Recipe Parameters

Revision: A (12/01/2023) - Deploy Time: 45 Minutes | Learn to generate a motor starting sequence with multiple recipes to showcase flexible reconfigurable manufacturing.
Autonomous robot factory producing vehicle bodies
On this page:
  • Overview
  • Installation guide
Innovation Center Home Page

What is this for?

The SQL motor startup sequence introduces the use of FactoryTalk Transaction Manager (FTTM) to link communication between an SQL database and Studio 5000. FTTM reads values from different recipes for flexible and reconfigurable manufacturing and applies these values to tags in sequence programs to start the corresponding process once the current routine is completed. This way, an information exchange is implemented between production floor control and commercial databases.

The current model performs bidirectional information transactions between FTTM and Studio 5000. These are carried out once the control system indicates it and proceeds to take information from the database for application in the system. All transactions made are stored for the necessary traceability of production operations. With applications in consumption, automotive, packaging, and other industries, this project serves as a template for commissioning motors with parameters in databases.

General characteristics

The motor startup sequence with an SQL database offers the following features:

  • Information exchange between plant floor and commercial databases
  • Connectivity between backed-up information for processes
  • Remote commissioning of motors
  • Parameterization of processes controllable in the database prior to implementation.
  • Structured organization of productive process information

Advantages

  • Organized production parameter changes
  • Secure and backed-up procedural information
  • Centralized or distributed architecture according to scalability requirements
  • Traceability of historical operations with transaction records
  • Process quality traceability
  • Download of recipes and configuration information to the control system
  • Collection of information and automated storage
  • Production performance monitoring

Is it useful for me?

The demand for multiple SKUs (Stock Keeping Unit) on production lines requires quick transitions between manufacturing setups. This project serves as a fundamental basis for connecting a Studio 5000 program and an SQL database with all necessary production parameters. Through flexible technology, manufacturers will be able to improve equipment performance and overall efficiency (OEE), while digitizing operations to provide real-time process control and production support.

Customer demand will continue to increase and present different scenarios on production lines. Manufacturers will need to implement flexible and reconfigurable manufacturing to address these challenges. Through this project, a Studio 5000 program commissions motors according to the selected recipe number and provides an integrated database solution for production companies.

Implementations of this project can vary from serving as a demonstration for companies facing these challenges to being used as a template for configuring production parameters from an SQL instruction database.

How can I make it work?

Hardware:

  • Motor stations (Motor, VFD’s Power Flex,PAC).

Software:

  • Studio 5000 (v33-35)
  • FactoryTalk Transaction Manager v13
  • FactoryTalk Live Data source (Logix Echo, Logix Emulate, or Logix controller)
  • FactoryTalk Administration Console
  • Microsoft SQL Server 2016 w/SQL Server Management Studio

Knowledge:

Familiarity with the use of SQL databases, motor commissioning through frequency inverters and PAC controllers, knowledge of network configuration for motor stations. 

Links of interest:

FactoryTalk Transaction Manager Basic Configuration Lab.

Downloads

Please note: You will need to agree to the Terms & Conditions for each download.

Downloadable files ›
Legal Disclaimer Acceptance. ROCKWELL AUTOMATION WILL PROVIDE ACCESS TO ROCKWELL PRODUCTS (BEST PRACTICES, APPLICATIONS AND KNOWLEDGE) ON THE CONDITION THAT YOU ACCEPT AND COMPLY WITH THE FOLLOWING TERMS AND CONDITIONS. YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS AGREEMENT BY DOWNLOADING, INSTALLING, COPYING, OR OTHERWISE USING PRODUCTS. IF YOU ARE ACCEPTING THESE TERMS ON BEHALF OF ANOTHER PERSON, COMPANY, OR OTHER LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND THAT PERSON, COMPANY, OR LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS, DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, OR USE THE PRODUCTS, SOFTWARE AND/OR CLOUD SERVICES. 1. Rockwell Automation retains full ownership and title to all Products and related documentation. No rights or licenses are granted other than those set forth in this Agreement. Company grants to Rockwell Automation a non-exclusive, worldwide, royalty-free, perpetual, non-revocable license to use any feedback Company provides regarding the Products, even if Company has designated the feedback as confidential. Rockwell Automation will be entitled to use the feedback without restriction or compensation to Company. 2. Company may not lease sub-lease, assign, license, sub-license or otherwise transfer any of the Products without the prior written consent of Rockwell Automation. Company may not assign or otherwise transfer access rights to the Products without the prior written consent of Rockwell Automation. Any reverse assembly, reverse engineering, decompilation, and creation of derivative works based on the Products by Company is prohibited. 3. Company acknowledges that Products provided under this Agreement are Rockwell Automation’s Confidential Information and are covered by effective or pending copyrights, patents, trademarks and/or trade secrets of Rockwell Automation, and Company agrees to maintain confidentiality by not disclosing Products or documentation to any third party without the prior written consent of Rockwell Automation and to protect the confidentiality of the Products as it would Company’s own confidential information. Company agrees that its obligation of confidentiality under this paragraph shall survive expiration or termination of this Agreement. 4. Company agrees that Products provided under this Agreement are prototypes and examples and its application and results may vary depending on each customer and project conditions. Rockwell Automation do not warranty the same results. This Agreement shall in no way be construed as a commitment by Rockwell Automation at any time to manufacture and/or offer Products for sale. There is no explicit or implicit service level agreement associated with using the Products. Rockwell Automation does not warrant that the functions contained in the Products will meet Company’s requirements. Company agrees to use all Products only in accordance with the instructions and only for the intended usages identified in the documentation. 5. EXCLUSION OF WARRANTIES AND LIMITATION OF LIABILITY. THE PRODUCTS ARE PROVIDED "AS IS". ROCKWELL AUTOMATION DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ROCKWELL AUTOMATION EXPLICITLY DISCLAIMS ALL WARRANTIES OF NON- INFRINGEMENT AND EXPRESSLY DOES NOT WARRANT THAT THE PRODUCTS, IN WHOLE OR IN PART, WILL BE ERROR FREE OR FREE FROM SECURITY VULNERABILITIES. IN NO EVENT SHALL ROCKWELL AUTOMATION BE LIABLE FOR (i) LOST PROFITS, LOST SAVINGS, DOWNTIME, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR (ii) ANY PERSONAL INJURY, PROPERTY DAMAGE OR ENVIRONMENTAL DAMAGE ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT, WHETHER IN AN ACTION IN CONTRACT, STRICT LIABILITY OR IN TORT INCLUDING NEGLIGENCE. 6. COMPANY AGREES TO INDEMNIFY AND HOLD ROCKWELL AUTOMATION HARMLESS FROM ALL COSTS, AWARDS, DAMAGES, EXPENSES AND FEES (INCLUDING ATTORNEYS FEES) RESULTING FROM OR RELATED TO ANY THIRD-PARTY CLAIMS (INCLUDING EMPLOYEES AND AGENTS OF COMPANY) AGAINST ROCKWELL AUTOMATION, ITS DISTRIBUTORS, AGENTS, OFFICERS, DIRECTORS OR EMPLOYEES FOR PERSONAL INJURY (INCLUDING DEATH), PROPERTY DAMAGE OR ENVIRONMENTAL DAMAGE RELATED TO OR RESULTING FROM THE USE OF THE PRODUCTS. 7. In the event a Product is exported, Company agrees to comply with all applicable United States Export Control Law and Regulations, and the applicable export control laws of other countries. This Agreement shall be governed by the laws of the state of Wisconsin. This Agreement is the complete and exclusive Agreement between Rockwell Automation and the Company, and supersedes all prior agreements, whether written or oral, relating to the Products.

Need Help?

If you need help with an application or have feedback from the Innovation Center, please contact us.

Installation Guide

Step 1

Identify the applications used for this implementation: Studio 5000, SQL Server Management Studio, FactoryTalk Transaction Manager, and FactoryTalk Administration Console.

  • Step1 - Screenshot

    Step 1 - Image 1

  • Step 1.2 - Screenshot

    Step 1 - Image 2

  • Step 1.3 Screenshot

    Step 1 - Image 3

  • Step 1.4 - Screenshot

    Step 1 - Image 4

Step 1 - Screenshot
Step 1.2 - Screenshot
Step 1.3 - Screenshot
Step 1.4 - Screenshot

Step 2

In the FactoryTalk Administration Console application, create a shortcut to the motor system controller named "Mach1_Ent".

Step 2 - screenshot

Step 2 - Image 1

Step 2 - screenshot

Step 3

3.1 Enter the Studio 5000 program attached with the motor startup sequence. Go to the Object_Assignments routine. Adjust the variables of the motor commands towards the used PowerFlex VFDs.

Step 3.1 - Screenshot

Step 3 - Image 1

Step 3.1 - Screenshot

3.2. If you wish to create different variables for your VFDs, do so in Controller Tags.

Step 3.2 - Screenshot

Step 3 - Image 2

Step 3.2 - Screenshot

3.3. If you need to change or improve the routine, you can activate or deactivate them with the Jump to Sub Routine (JSR) instruction found in the Servos routine.

Step 3.3 - Screenshot

Step 3 - Image 3

Step3Part3

Step 4

Access the routines of each station (in this case there are five stations) and assign values to the variables using the MOV command. For example, if you want to change the "PRESET" time of a timer, in our case the S1M1_TimeOn1, or if you want to change the RPM value of the motor, you can also do it with this instruction. In the attached program, there are examples for assigning time intervals and changing speeds.

Step 4 - screenshot

Step 4 - Image 1

Step 4 - screenshot

Step 5

Access FTTM and add the created variables as Data Points in the Checklist. Then click on Save Edits and subsequently Assemble Edits.

Step 5 - screenshot

Step 5 - Image 1

Step 5 - screenshot

Step 6

Access the SQL queries in the MotorStationCommands Excel file and modify the database using the columns as the variables used in Studio5000 to commission the motors. Add as many recipes as desired.

Step 6 - screenshot

Step 6 - Image 1

Step 6 - screenshot

Step 7

Access Programmability: Stored Procedures: dbo.Recipe_sp. Modify the SQL query procedure to get the values of the columns and assign them as data points in FTTM.

Step 7 - screenshot

Step 7 - Image 1

Step 7 - screenshot

Step 8

In step 4 of the FTTM checklist, add the parameters of the revised procedure in the previous step of the SQL database.

Step 8 - screenshot

Step 8 - Image 1

Step 8 - screenshot

Step 9

Separate the input and output parameters of the variables in step 5 of the FTTM configuration. Assign null values to all input variables for motor control. Apply and save all changes and start the FTTM configuration.

Step 9 - screenshot

Step 9 - Image 1

Step 9 - screenshot

Step 10

Enter the Studio5000 program and test all changes by selecting different recipes. To do this, enter the recipe number in the RecipeReq tag in the S01_TransactionManager program. Then toggle the Recipe_On_Off bit. Validate the process operation by checking the recipe values once the current cycle is completed.

Step 10 - screenshot

Step 10 - Image 1

Step 10 - screenshot
Have a general inquiry?

Rockwell Automation and our partners offer exceptional industry knowledge to help design, implement, and support your automation investment.

Contact Rockwell Automation
  1. Chevron LeftChevron Left Rockwell Automation Home Chevron RightChevron Right
  2. Chevron LeftChevron Left Sup... Chevron RightChevron Right
  3. Chevron LeftChevron Left Pro... Chevron RightChevron Right
  4. Chevron LeftChevron Left Downloads Chevron RightChevron Right
  5. Chevron LeftChevron Left Innovation Center Chevron RightChevron Right
  6. Chevron LeftChevron Left Motor Starting Sequence with SQL Recipe Parameters Chevron RightChevron Right
Please update your cookie preferences to continue.
This feature requires cookies to enhance your experience. Please update your preferences to allow for these cookies:
  • Social Media Cookies
  • Functional Cookies
  • Performance Cookies
  • Marketing Cookies
  • All Cookies
You can update your preferences at any time. For more information please see our {0} Privacy Policy
CloseClose