En (end), Program flow – Yaskawa SMC–4000 User Manual

Page 112

Advertising
background image

102

SMC–4000 User Manual

EN (End)

[Program Flow]

DESCRIPTION:

The EN command is used to designate the end of a program or subroutine. If a subroutine was called by the

JS (Jump to Subroutine)

command, the EN command ends the subroutine and returns program flow to the

command just after JS.

ARGUMENTS: None

*Note Use the RE command to return from the interrupt handling subroutines #LIMSWI and

#POSERR. Use the RI command to return from the #ININT subroutine.

USAGE:

RELATED COMMANDS:

RE (Return from Error)

RI (Return from Interrupt)

EXAMPLES:

*Note Instead of EN, use the RE command to end the error subroutine and limit subroutine. Use

the RI command to end the input interrupt) subroutine.

While Moving

Yes

Default Value

n/a

In a Program

Yes

Default Format

n/a

Command Line

No

Can be Interrogated

No

Used as an Operand

No

#A

Program A

PR 500

Move X axis forward 500 counts

BGX

Move X axis forward 1000 counts

AMX

Pause the program until the X axis completes the motion

PR 1000

Set another Position Relative move

BGX

Begin motion

EN

End of Program

Advertising