Hsc_set_sts function block, Programmable limit switch (pls) function, Programmable limit switch (pls) – Rockwell Automation 2080-LC50 Micro830 and Micro850 Programmable Controllers User Manual User Manual

Page 153

Advertising
background image

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

137

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

HSC_SET_STS Function
Block

The HSC Set Status function block can be used to change the HSC counting
status. This function block is called when the HSC is not counting (stopped).

Programmable Limit Switch
(PLS) Function

The Programmable Limit Switch function allows you to configure the
High-Speed Counter to operate as a PLS (programmable limit switch) or rotary
cam switch.

When PLS operation is enabled (HSCAPP.PLSEnable = True), the HSC
(High-Speed Counter) uses PLS data for limit/cam positions. Each limit/cam
position has corresponding data parameters that are used to set or clear physical
outputs on the controller’s base unit. The PLS data block is illustrated below.

HSC Parameters

Parameter

Parameter
Type

Data Type

Parameter Description

Enable

Input

BOOL

Enable function block.
When Enable = TRUE, set/reset the HSC status.
When Enable = FALSE, there is no HSC status
change.

HscId

Input

See HSC APP
Data Structure
on page 117

Describes which HSC status to set.

Mode1Done

Input

BOOL

Mode 1A or 1B counting is done.

HPReached

Input

BOOL

High Preset reached.
This bit can be reset to FALSE when HSC is not
counting.

LPReached

Input

BOOL

Low Preset reached.
This bit can be reset to FALSE when HSC is not
counting.

OFOccurred

Input

BOOL

Overflow occurred.
This bit can be reset to FALSE when necessary.

UFOccurred

Input

BOOL

Underflow occurred.
This bit can be reset to FALSE when necessary.

Sts

Output

UINT

HSC function block execution status
Refer to HSC Function Block Status Codes on
page 136
for HSC status code description (except
0x02 and 0x04).

HSC

HSC

HscId

STS

Mode1Done

HPReached

LPReached

OFOccured

UFOccured

Enable

45646

Advertising
This manual is related to the following products: