beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 658

background image

Publication GMLC-5.2 - November 1999

Motion Controller Functions

621

In our example, to create a bit mask for the group beginning at bit #2 and
ending at bit #5, but excluding bit #3, add together these binary values:

The first input in your group (unless it is masked) has the binary value of
1, no matter what its address number may be.

RIO Group Input

Use the

RIO_group_input function to directly specify RIO adapter input

groups in an expression.

You define and select input groups using the Tag Explorer (under RIO
Adapter Input Group) and Tag Window. It is not necessary to use this
function to specify them directly.

Syntax:

RIO_group_input[address, total signals in group, optional mask]

16

th

32,768

Bit Number / Status

Binary Value

2 / ON

1 (the first bit in the group)

3 / OFF

0 (masked)

4 / ON

4 (the third bit in the group)

5 / ON

8 (the fourth bit in the group)

Bit Mask = 13

Argument

Description

Address

The address or signal number (from 0 to 11) of the first signal whose
output is read.

For this bit
in an input group

Use this Binary Value