0 functional description, 1 overview, 2 main routine – Rockwell Automation 9329 Drive Application Software User Manual

Page 10

Advertising
background image

FM – Inertia Compensation

Drive Application Software – page 10 of 30

4.0 Functional Description

4.1 Overview

The Diameter Calculation Function Module consists of a program with three routines in
RSLogix 5000

. The three routines are the Main, DiamPreset, & DiamCalc. These routines

are dependent on one another and may not be separated. The user may edit the Main
routine to connect signals (tags) and configure the FM. The user cannot edit the DiamPreset
or DiamCalc routines.

4.1.1 Main routine

The Main routine is where the user connects user created controller tags to the input
and output program tags of the FM. These links are created in the Jump to Sub-
Routine (JSR) instructions. One JSR is used to call the DiamPreset routine and
another JSR is used to call the DiamCalc routine.

4.1.2 DiamPreset routine

The DiamPreset routine is used to select and command a preset value to the
diameter calculator. Diameter preset is used to “reset” the roll diameter to a preset
value such as core diameter as used in winder applications or to the starting roll
diameter as used in unwind applications. If the diameter calculator is not preset to
the correct starting roll diameter, the machine control may not function correctly.

4.1.3 DiamCalc routine

The DiamCalc routine is where the diameter is actually calculated. The diameter is
calculated by measuring the distance of web wound onto the roll for a given number
of roll revolutions. Setting the number of roll revolutions to a whole number, helps
avoid variations in diameter calculation with eccentric rolls.

4.2 Main routine

The Main routine consists of two rungs of ladder logic programming. A rung description
briefly describes the Input and Return (output) parameters of the JSR instructions for each
routine called. Temporary tags have been entered for each input parameter and each return
parameter. The tag names entered in the JSR’s are not declared. The user must replace
these tag names with existing project tags or create new tags. The routine will show an error
until all input and return parameters are satisfied. The input parameters may also be entered
as actual values. If an input parameter is set to a value and not a tag, the value cannot be
edited in run mode. Values entered directly in the JSR should be constants that do not
change during machine operation. Specific formatting is required for values entered directly
in the JSR.

NOTE: For Application Module users, the tags in the JSR’s are predefined and configured for
operation. No additional integration is necessary.

Data Type

Format

Example

B = Boolean

x

0 or 1

I = Integer

x

123

R = Real (Float)

x.x

3.4 / 13.0


If any signal scaling is required to interface the FM into the user application, the user may use
the main routine for this programming. Note; any scaling for inputs to the routines should be
done before the JSR and any scaling applied to the return values from the routines should be
done after the JSR.
Below are descriptions of each parameter required for use of the Diameter Calculation FM.

Advertising