Hx (halt execution), Program flow, N is 0 to 3 to indicate the task number – Yaskawa LEGEND-MC User Manual

Page 136: 0 thread not running, 1 thread is running, 2 thread has stopped at trippoint

Advertising
background image

126

LEGEND-MC User’s 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 3 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:

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

Distributed Control

No, Local

"XQ"

Execute program

XQ #A

Execute program #A, thread zero

XQ #B,2

Execute program #B, thread two

HX0

Halt thread zero

HX2

Halt thread two

Advertising