Dp (define position), Setting – Yaskawa SMC–4000 User Manual

Page 101

Advertising
background image

91

SMC–4000 User Manual

DP (Define Position)

[Setting]

DESCRIPTION:

The DP command sets the current motor position and current command positions to a user specified value.
The units are in quadrature counts. This command will set both the

TP (Tell Position)

and

RP (Reference

Position)

values.

ARGUMENTS: DP x, y, z, w or DPX=x or DP a, b, c, d

where

x, y z, w, or a, b, c, d are signed integers

USAGE:

OPERAND USAGE:

_DPn reports the current position where n is an axis letter.

EXAMPLES:

While Moving

No

Minimum Value

-2147483648

In a Program

Yes

Maximum Value

+2147483647

Command Line

Yes

Default Value

n/a

Can be Interrogated

Yes

Default Format

Position Format

Used as an Operand

Yes

Virtual Axis

Yes

:DP 0

Sets the current position of the X axis to 0

:DP -50000

Sets the current position to -50000.

:MG_DPX

-0050000

Returns the motor position

Advertising