Dc - change distance, Command details, Parameter details – Applied Motion RS-232 User Manual

Page 61: Examples

Advertising
background image

61

920-0002 Rev. I

2/2013

Host Command Reference

DC - Change Distance

Compatibility: All drives
Affects:

FC, FY, FO, FM commands.

Sets or requests the change distance. The change distance is used by various move commands to define more
than one distance parameter. All move commands use the DI command at some level, and many require DC as
well. Examples are FC, FM, FO, and FY. The moves executed by these commands change their behavior after
the change distance (DC) has been traveled. For example, FM is similar to FS, but in an FM move the sensor
input is ignored until the motor has moved the number of steps set by DC. This is useful for masking unwanted
switch or sensor triggers. Since DI sets move direction (CW or CCW), the sign of DC is ignored.

Command Details:

Structure

DC{Parameter #1}

Type

BUFFERED

Usage

READ/WRITE

Non-Volatile

YES

Register Access

“C” (019)

Parameter Details:

Parameter #1

distance

- units

encoder counts

- range

0 to 2,147,483,647
(the sign of negative values is ignored)

Examples:

Command

Drive sends

Notes

DC80000

-

Set change distance to 80000 counts

DC DC=80000

DI-100000

-

Set overall move distance to 100000 counts in CCW direction

DC50000

-

Set change distance to 50000 counts

VE5

-

Set base move velocity to 5 rev/sec

VC2

-

Set change velocity to 2 rev/sec

FC

-

Initiate FC command

Advertising
This manual is related to the following products: