beautypg.com

Create specific application logic, Application code logic template overview, Create specific – Rockwell Automation IASIMP Computer Numerical Control (CNC) Machining Accelerator Toolkit Quick Start User Manual

Page 120: Application logic

background image

120

Rockwell Automation Publication IASIMP-QS034A-EN-P - October 2012

Chapter 4

GuardLogix Configuration

Create Specific Application Logic

Now that you have imported and configured all 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 two methods are described below:

Preprogrammed Logic Examples

– 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 using instructions for controlling FANUC CNCs 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.

Write Logic from Scratch

– 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 RSLogix 5000 software programming environment and who also have
experience with instructions used for controlling FANUC CNCs 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.