beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 841

background image

Publication GMLC-5.2 - November 1999

804

1394 GMC Turbo SLC Interface

To transfer a floating point variable to the SLC using an SLC input file,
you must do the steps shown in the following sections:

GML Commander program

SLC program

GML Commander Program

The purpose of the following GML Commander program, is to move
Axis 0 so that the system variable Actual Position changes.

In your GML Commander program:

Define the discrete file size.

Define the number of floats. For the program below we need one
output float and no input floats.

Link the output float to the system variable Actual Position for Axis
0.

Equipment
Configuration

The equipment for this example consists of:
• A four-slot rack with an SLC 5/03 processor.
• An SLC output module located in slot one.
• A 1394 GMC Turbo located in slot four.

Task

To set an output in the SLC based on the position of Axis 0, that is
controlled by the 1394 GMC Turbo.

Solution

Send the axis position to the SLC. Once the SLC receives the Axis 0
position, it evaluates that position and then sets an output.

Programming

Use discrete file transfer to send the Axis 0 position to the SLC as a
floating-point value.