Add A Programmable Limit Switch (Pls) Function - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Add a Programmable Limit Switch (PLS) function

This example shows you how to add a Programmable Limit Switch (PLS) function
to the HSC program.
Variable values for the counter settings
MyAppData.PlsEnable is used to enable or disable the PLS settings. It
should be set to FALSE (disabled) if the MyAppData variable is used.
MyAppData.HscID is used to specify which embedded inputs will be used
based on the mode and application type. See HSC Inputs and Wiring
Mapping to know the different IDs that can be used as well as the
embedded inputs and its characteristics.
If ID 0 is used, ID 1 cannot be used on the same controller because the
inputs are used by Reset and Hold.
MyAppData.HscMode is used to specify the type of operation the HSC
will use to count. See HSC Mode (HSCAPP.HSCMode).
To enable PLS
1. In the Project Organizer, double-click Local Variables to display the
Variables page.
2. Enable the PLS function:
In the Initial Value field for the MyAppData.PlsEnable variable, select
TRUE.
3. Configure the underflow and overflow settings:
In the Initial Value field for MyAppData.OFSetting, type 50.
In the Initial Value field for MyAppData.UFSetting, type -50.
4. Configure the output mask if an output is to be used.
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
High-Speed Counter (HSC) instructions
Chapter 14
353

Advertisement

Table of Contents
loading

Table of Contents