beautypg.com

Ladder logic program example – Yaskawa MP940 User Manual

Page 479

background image

11.4 Position Control Using Motion Commands

11-77

11

Ladder Logic Program Example

Fig 11.27 Fixed Speed Feed Programming Example (DWG H03)

The example in the above illustration has been greatly simplified. In actual operation, each
register can be controlled from the user program.

IFON

H0101

RUNMOD

OWC000

RUN

OBC0010

SB000004

0

MCMDCODE

OWC012

RUNPB

IB00304

0000005000

RV

OLC022

SB000004

IEND

DEND

H0104

RUNMOD

OWC000

DIRECTION

OBC0212

IFON

7

MCMDCODE

OWC020

ELSE

Set the position control mode to ON.

Rapid traverse speed (RV)

(5,000,000 pulses/min)

Driver operation command (RUN)

Execute fixed speed feed (FEED) as the

motion command.

When IB00304 turns ON, rapid traverse

starts in the forward direction.

When IB00304 turns OFF, the axis

decelerates to a stop. When travel is

completed, the positioning completed

signal (IBC000D) turns ON.