Build and download, Execute the function block, Operation sequence for ra_hscplugin – Rockwell Automation 2080 Micro800 Digital and Analog Plug-in Modules User Manual

Page 94: Build and download execute the function block

Advertising
background image

86

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

Appendix B Quickstart

Build and Download

Build and download the program into the controller.

Execute the Function Block

Operation Sequence for RA_HSCPlugIn

• A rising edge of FBEN will cause the input Start to initialize steps. When

initialization is done, Output Initialized will change to TRUE.

• User can start the feedback process (Start counting) after Initialized

output becomes TRUE. A rising edge of Start will trigger the feedback
process. Note that if the user wants to know the positioning information
the user needs to do the following steps to make sure position information
is in sync:
– Initialize the RA_HSCPlugIn function block
– Start the counting process when neccessary

• User can stop/pause the process by giving a rising edge of Stop. If you want

to disable the function block, set Stop to true first.

Initialized

OUTPUT

BOOL

TRUE: HSC plug-in initialization finished and ready
to execute.
FALSE: HSCplug-in initialization not yet finished.

Accumulator

OUTPUT

LINT

Accumulator value.

Rate

OUTPUT

Real

Current pulse rate. The rate calculation is based on
how many pulses have been counted every 10 ms.

Input and Output Parameters

Parameter

Type

Data Type

Description

Advertising