Using the sample ladder program – Rockwell Automation 1746-QS,D17466.19 SYNCHRONIZED AXES MODULE User Manual

Page 28

Advertising
background image

5–2

Publication 1746-6.19 March 1998

Consider creating a bit and data address table for your own applicaion.
Data and bit addresses associated with the sample program are:

Address:

Description:

N7:0

current state of axis 1, programmed automatic motion

N7:1

current state of axis 2, programmed automatic motion

N7:4

next state of axis 1, programmed automatic motion

N7:5

next state of axis 2, programmed automatic motion

N11

M-file initialization parameters

N12:0-5

axis 1 advance profile, programmed automatic motion

N12:6-11

axis 2 advance profile, programmed automatic motion

N12:12-17

axis 1 retract profile, programmed automatic motion

N12:18-23

axis 2 retract profile, programmed automatic motion

N12:24-29

axis 1 advance profile for jog

N121:30-35

axis 1 retract profile for jog

B3:0/0

copy M file from N11 into module and initialize axis 1 and 2

B3:0/1

copy M file from module into N11

B3:0/3

jog advance

B3:0/4

jog retract

B3:0/7

enter programming for automatic motion

Load the ladder file into the SLC processor.

Important: You can run the sample ladder program from the desktop
using pre-programmed configuration parameters in file N11 without
LDT or drive output connections to the module
because the Simulate bit
is set by default in each axis Config word in the sample program.

ATTENTION: To guard against equipment damage or personal injury,
do NOT attempt to operate the module outside of simulate mode
without first initializing valid configuration parameters in the module.

If you have already initialized the module with valid configuration
parameters that suit your machine, you should copy them from the
module into the N11 file. (Refer to Copy Configuration Parameters to
the SLC Processor, next.)

If you have NOT initialized the module with valid configuration
parameters, copy the N file of the sample program to the module to
initialize axis 1 and 2 with pre-programmed configuration parameters
(Refer to Copy Configuration Parameters to the Module, next.)

Using the Sample Ladder
Program

Advertising