beautypg.com

Example - jog in x only, Homing example (hm method) – Yaskawa LEGEND-MC User Manual

Page 330

background image

320

LEGEND-MC User’s Manual

Example - Jog in X only

Jog X motor at 50000 count/s. After X motor is at its jog speed, begin jogging Z in reverse direction at
25000 count/s.

Homing Example (HM method):

Instruction

Interpretation

#A

Label

AC 20000,20000

Specify X,Y acceleration of 20000 cts / sec

DC 20000,20000

Specify X,Y deceleration of 20000 cts / sec

JG 50000,-25000

Specify jog speed and direction for X and Y axis

BG X

Begin X motion

AS X

Wait until X is at speed

BG Z

Begin Z motion

EN

Instruction

Interpretation

#HOME

Label

AC 1000000

Acceleration Rate

DC 1000000

Deceleration Rate

SP 5000

Speed for Home Search

HM X

Home X

BG X

Begin Motion

AM X

After Complete

MG "AT HOME"

Send Message

EN

End

#EDGE

Label

AC 2000000

Acceleration rate

DC 2000000

Deceleration rate

SP 8000

Speed

FE Y

Find edge command

BG Y

Begin motion

AM Y

After complete

MG "FOUND HOME"

Send message

DP,0

Define position as 0

EN

End