Output mask bits (hscapp.outputmask) – Rockwell Automation 2080-LC50 Micro830 and Micro850 Programmable Controllers User Manual User Manual

Page 142

Advertising
background image

126

Rockwell Automation Publication 2080-UM002F-EN-E - December 2013

Chapter 8 Use the High-Speed Counter and Programmable Limit Switch

Output Mask Bits (HSCAPP.OutputMask)

The HSCAPP.OutputMask defines which embedded

outputs on the controller

can be directly controlled by the high-speed counter. The HSC sub-system has
the ability to directly (without control program interaction) turn outputs ON or
OFF based on the HSC accumulator reaching the High or Low presets. The bit
pattern stored in the HSCAPP.OutputMask variable defines which outputs are
controlled by the HSC and which outputs are not controlled by the HSC.

For example, if the user wants to control outputs 0, 1, 3, using HSC then the user
needs to assign,
HscAppData.OutputMask = 2#1011
(OR using Decimal Value: HscAppData.OutputMask = 11)

The bit pattern of the HSCAPP.OutputMask variable directly corresponds to the
output bits on the controller. Bits that are set (1) are enabled and can be turned
on or off by the HSC sub-system. Bits that are clear (0) cannot be turned on or
off by the HSC sub-system. The mask bit pattern can be configured only during
initial setup.

The following table shows example of how HPOutput and OutputMask controls
Embedded output.

TIP

Data loaded into the underflow variable must be less than or equal to
the data resident in the low preset (HSCAPP.LPSetting) or an HSC error
is generated.

Description

Data Format

User Program Access

HSCAPP.OutputMask

word (32-bit binary)

read/write

Effect of HSC Output Mask on Embedded Outputs

Output Variable

32-Bit Signed Integer Data Word

32…20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

HSCAPP.HPOutput (high
preset output)

0

1

0

1

0

1

0

1

0

0

1

1

0

0

0

1

1

0

0

1

HSCAPP.OutputMask
(output mask)

1

1

0

0

0

0

0

0

0

1

1

0

0

0

1

1

0

0

1

1

Embedded output
(10-point)

0

1

Embedded output
(16-point)

0

1

0

1

Embedded output
(24-point)

1

0

1

0

1

Advertising
This manual is related to the following products: