Create specific application logic, Application code logic template overview – Rockwell Automation 193 Drives and Motion Accelerator Toolkit Quick Start User Manual

Page 82

Advertising
background image

82

Rockwell Automation Publication IASIMP-QS019E-EN-P - August 2013

Chapter 4

Logic Configuration

Create Specific Application Logic

Now that you have imported and configured all of the machine, application, and device modules, you can begin
creating the specific application logic for your machine. You create your application logic within the
R10_ApplicationCode routine of the application module. There are two methods for creating specific
application logic for your machine.

The first method involves selecting and importing preprogrammed logic examples into the Application Code
routine. These logic examples help familiarize less experienced users with the basics behind motion instructions
and/or controlling PowerFlex drives via their add-on profiles. These preprogrammed logic examples are designed
to work seamlessly with the application module and can help further reduce programming time.

The second method provides a blank template with placeholders if you choose to write your application-specific
logic from scratch. This method is recommended for users who feel comfortable with the Studio 5000 Logix
Designer programming environment and who also have experience with motion instructions and/or controlling
PowerFlex drives via their add-on profiles.

Application Code Logic Template Overview

To assist you in creating specific-application logic that interfaces with the preconfigured machine, application,
and device modules, a logic template is included in the R10_ApplicationCode routine of the application module.
It includes placeholders for both run and stop sequences. All of the application logic examples also follow this
same template.

IMPORTANT

Program the stop sequence to make sure all active devices are properly stopped.

Advertising