Program mode and program state run – Rockwell Automation 1769-HSC Compact High Speed Counter Module User Manual

Page 76

Advertising
background image

76

Rockwell Automation Publication 1769-UM006E-EN-P - July 2013

Chapter 4

Module Configuration, Output, and Input Data

Program Mode and Program State Run

Program Mode (Out0ProgramMode through Out3ProgramMode)

The program mode bits configure the output for Hold Last State (HLS) or
User-defined Safe State (UDSS) during Program State.

1 = Hold Last State
0 = User-defined Safe State

Program State Run (Out0ProgramStateRun through Out3ProgramStateRun)

Program State Run lets you specify, on a bit basis, that the output should
continue to be controlled by the module as if it were in the Run state. That is,
events on the module or changes in the output image will affect the physical
outputs without regard to the Program_HLS or UDSS state indicated. When
this bit is set, the corresponding Program Mode and Program Value bits are
ignored.

IMPORTANT

Do not set these bits while certain counters or ranges are enabled.
Attempting to do so will result in a BadModConfigUpdate error. See

page 120

for a list of prohibited settings.

Configuration Array Word 2

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

Output Program Mode and
Output Program State Run

Not used

Out3
PSR

Out2
PSR

Out1
PSR

Out0
PSR

Out3
PM

Out2
PM

Out1
PM

Out0
PM

IMPORTANT

Program Mode and Program State Run apply only to certain controllers.
Refer to your controller’s documentation for more information.

The packaged controllers’ embedded HSC does not support this feature.

ATTENTION: Selecting this option lets outputs change state while ladder
logic is not running. You must take care to make sure that this does not
pose a risk of injury or equipment damage when selecting this option.

IMPORTANT

The prescan initiated by some controllers could have an effect on the
outputs. To overcome any changes in physical output states caused by
this, retentive output instructions (for example, latch or unlatch) should
be used when bit manipulations are done on the Output image of this
module in ladder logic.

This applies to a wide range of bits when Program State Run is selected,
because presetting a counter, enabling a range, changing a mask, and
changing configuration array settings can cause ranges and outputs to
change state.

Advertising