beautypg.com

Tp (tell position), Set both the, Status – Yaskawa SMC–4000 User Manual

Page 236

background image

226

SMC–4000 User Manual

TP (Tell Position)

[Status]

DESCRIPTION:

This command returns the current position of the motor in quadrature counts.This value is updated every
servo cycle.

ARGUMENTS: TP XYZW ABCD

N

USAGE:

OPERAND USAGE:

_TPn contains the current position value where n is an axis letter.

EXAMPLES:

While Moving

Yes

Default Value

n/a

In a Program

Yes

Default Format

Position Format

Command Line

Yes

Can be Interrogated

Yes

Used as an Operand

Yes

Virtual Axis

Yes

:PF 7

Position format of 7

:TP

Return position

0000200

PF-6.0

Change to hex format

TP

Return in hex

$0000C8

Position=_TPX

Assign the variable, Position, the value of TP