Hx (halt execution), Program flow – Yaskawa SMC–4000 User Manual

Page 131

Advertising
background image

121

SMC–4000 User Manual

HX (Halt Execution)

[Program Flow]

DESCRIPTION:

The HX command halts the execution of any of the programs that may be running independently via
multitasking. The parameter n specifies the program to be halted.

ARGUMENTS: HX n

where

n is 0 to 7 to indicate the task number

USAGE:

OPERAND USAGE:

When used as an operand, _HX n contains the running status of thread n with:

0 Thread not running

1 Thread is running

2 Thread has stopped at trippoint

RELATED COMMANDS:

XQ (Execute Program)

EXAMPLES: (assuming the file contains the label #A and # B)

While Moving

Yes

Default Value

n/a

In a Program

Yes

Default Format

n/a

Command Line

Yes

Can be Interrogated

No

Used as an Operand

Yes

XQ #A

Execute program #A, thread zero

XQ #B,2

Execute program #B, thread two

HX0

Halt thread zero

HX2

Halt thread two

Advertising