Sc - status code, Command details, Response details – Applied Motion RS-232 User Manual

Page 195: Examples

Advertising
background image

195

920-0002 Rev. I

2/2013

Host Command Reference

SC - Status Code

Compatibility: All drives
See also:

RS command

Requests the current drive status as the Hexadecimal equivalent of a binary word. Each bit in the binary word
relates to a status condition (see assignments below). The representation of this binary word as a hexadecimal
value is called the Status Code. Drives can have multiple status conditions at one time, and host systems can
typically interpret a Hexadecimal code very quickly. See Appendix E for more details on the Status Code.

Command Details:

Structure

SC

Type

IMMEDIATE

Usage

READ ONLY

Non-Volatile

NO

Register Access

None

Units

Hexadecimal equivalent of the binary status code word (see bit
assignments below)

Response Details:

Hex Value

Status Code bit definition

0001

Motor Enabled (Motor Disabled if this bit = 0)

0002

Sampling (for Quick Tuner)

0004

Drive Fault (check Alarm Code)

0008

In Position (motor is in position)

0010

Moving (motor is moving)

0020

Jogging (currently in jog mode)

0040

Stopping (in the process of stopping from a stop command)

0080

Waiting (for an input; executing a WI command)

0100

Saving (parameter data is being saved)

0200

Alarm present (check Alarm Code)

0400

Homing (executing an SH command)

0800

Waiting (for time; executing a WD or WT command)

1000

Wizard running (Timing Wizard is running)

2000

Checking encoder (Timing Wizard is running)

4000

Q Program is running

8000

Initializing (happens at power up)

Examples:

Command

Drive sends

Notes

SC

SC=0009

Drive is in position and enabled (hex values 0001 and 0008)

SC

SC=0004

Drive is faulted and disabled (hex value 0004)

SC

SC=0209

Drive has an alarm, is in position and enabled (hex values 0001, 0008,

and 0200)

Advertising
This manual is related to the following products: