Rockwell Automation 2080-LC50 Getting Started with Motion Control Using a Simulated Axis User Manual

Page 36

Advertising
background image

26

Publication 2080-QS001A-EN-E - January 2013

Chapter 3 Write Your Motion Control Programs

19. Select Reset Coil from the

Toolbox and drag it onto the
fourth rung as shown.

Create and Assign Variables and Values for the MC_Home Function Block

1. Create the following Global

Variables with the data types and
initial values (if any) as shown in
the table.

2. On the first rung, assign the

variables for the MC_Home
function block elements
as shown.

Variable Name

Data Type

Initial Value

SWHome

BOOL

HomeSetPos

Real

110

BFMD

SInt

t#1ms

time

Simulator.AxisHomed

BOOL

SWrstEncoder

BOOL

Advertising
This manual is related to the following products: