Hswen, Hswstat – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual

Page 238

Advertising
background image

216

Language Reference • Reference

Publication 1398-PM601A-EN-P — October 2000

WORDS

HSWEN

Home Switch Enable

Home

Purpose

Set if Home Switch input is enabled.

Syntax

variable = HSWEN

variable

The variable may be a nonvolatile flag Bn, a volatile flag Fn, or
another system flag.

Remarks

This flag is provided so that you can configure the standard home program (system
program 25) to your specific needs. This flag informs the home program that a home
switch is present. HSWEN is set in the Parameter menu, Inputs dialog box.

See Also

INDEXEN, Appendix A, System Programs

Example

F7 = HSWEN

IF HSWEN = ON º

HSWSTAT

Home Switch Status

Home

Purpose

Present status of the Home Switch input. This flag reports the home input status as
active or inactive. It does NOT report if the input is ON or OFF. The Home Switch
Active States parameter in the Parameter menu, Inputs dialog box determines if HSW-
STAT is active when the home switch input is ON or OFF.

Syntax

variable = HSWSTAT

variable

The variable may be a nonvolatile flag Bn, a volatile flag Fn, or
another system flag.

Remarks

This flag is provided primarily for use with the standard home routine. If a home pro-
gram was written for a specific machine, the program could test for I5 ON or OFF
rather than test this flag.

See Also

Appendix A, System Programs

Example

IF HSWSTAT = ON ...

F3 = HSWSTAT

Advertising