beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 648

background image

Publication GMLC-5.2 - November 1999

Motion Controller Functions

611

RIO Scanner Variable

Use the

RIO_scanner_variable function to directly specify RIO scanner

formatted data input groups in an expression.

You define and select RIO scanner inputs using the Tag Explorer (under
RIO Formatted Input) and the Tag Window. It is not necessary to use the
RIO Scanner Variable function to specify them directly.

Syntax:

RIO_scanner_variable[rack, group, type, scale factor]

See your motion controller’s Installation and Setup manual for further
information.

Task Status

Task_status is an integer value representing the current state of the
specified task in the motion controller. It allows mathematical or logical
calculations to be made based on the status of a task.

You use an On Task block (with either If Task or Wait for Task selected)
in the GML Commander diagram to check the Task_status function,
rather than use the Task Status function.

Argument

Description

Rack

The rack address of the controller (from 0 to 7) from which I/O is
read.

Group

The starting group of the selected rack’s discrete I/O to be read.

Type

One of the following numerical values:
0:Formatted Binary
1:Formatted BCD

Scale factor

If you use the scale factor, the controller will multiply this number
against the value read from the PLC output image table.
If you do not use scale formatted data when defining this variable,
the value of the formatted data input group equals the value read
from the PLC output image table (effectively using a scale factor of
1).