beautypg.com

10 example applications, Instruction set examples – Yaskawa SMC–4000 User Manual

Page 350

background image

340

SMC–4000 User Manual

10 Example Applications

Instruction Set Examples

Below are some examples of simple instructions. It is assumed your system is hooked-up and the motors
are under stable servo control.

DP*=0

Define all axis positions as 0

PF 6,6,6,6

Define position format as 6 digits

PR 100,200,300,400

Specify X,Y,Z,W position command

BG

Begin Motion

TP

Tell Position

00100,00200,00300,00400

Returned Position data

PR?,?,?,?

Request Position Command

00100,00200,00300,00400

Returned data

BGX

Begin X axis only

TPX

Tell X position only

00200

Returned position data

tpx

Enter invalid command

? TC1

Controller response - Request error code

1 Unrecognized command

Controller response

VM XY

Specify Vector Mode for XY

VS 10000

Specify Vector Speed

VP 2000,3000

Specify Vector Segment

VP 4000,5000

Specify Vector

LE

Segment End Vector

BGS

Begin Coordinated Sequence

TPXY

Tell X and Y position

004200,005200

Returned data