Example motion program – Yaskawa SMC–4000 User Manual

Page 373

Advertising
background image

363

SMC–4000 User Manual

Example Motion Program:

Instruction

Function

#A

Label

DP0

Define starting positions as zero

LINPOS=0

PR 1000

Required distance

BGX

Start motion

#B

AMX

Wait for completion

WT 50

Wait 50 msec

LIN POS = _DEX

Read linear position

ER=1000-LINPOS-_TEX

Find the correction

JP #C,@ABS[ER]<2

Exit if error is small

PR ER

Command correction

BGX

JP #B

Repeat the process

#C

EN

Advertising