Bg (begin), Motion – Yaskawa SMC–4000 User Manual

Page 77

Advertising
background image

67

SMC–4000 User Manual

BG (Begin)

[Motion]

DESCRIPTION:

The BG command starts motion. When used as an operand, the BG command will return a 1 if there is a
commanded motion in progress, a 0 otherwise. The BG command will result in a command error if a move
is already in progress, the servo is not enabled or a limit switch is preventing motion.

ARGUMENTS: BG XYZWST or ABCD

where

X, Y, Z, W, N, S, T or A, B, C, D specify the axis or sequence. No argument specifies that motion on all

axes must be complete.

USAGE:

OPERAND USAGE:

_BGn contains a ‘0’ if motion complete on the axis, otherwise contains a ‘1’ where n is an axis letter.

RELATED COMMANDS:

AM (After Motion)

ST (Stop)

EXAMPLES:

HINT:

You cannot give another BG command until current BG motion has been completed. Use the AM trippoint to wait
for motion complete between moves. Another method for checking motion complete is to test for _BG being equal
to 0.

While Moving

Yes

Default Value

---

In a Program

Yes

Default Format

---

Command Line

Yes

Can be Interrogated

No

Used as an Operand

Yes

Virtual Axis

Yes

PR 2000

Set up for a relative move

BG

Begin motion

AM

Wait until motion is complete

HM

Issue homing command

BG

Begin motion

AM

Wait until motion is complete

JG 1000

Issue jog command

BG

Begin motion

STATE=_BGX

Assign a 1 to STATE if the axis is performing

a move

Advertising