Galil DMC-1400 用户手册

下载
页码 235
DMC-1400  Series Command Reference ZS 
● 223   
ZS 
FUNCTION:  Zero Subroutine Stack 
DESCRIPTION: 
The ZS command is only valid in an application program and is used to avoid returning from 
an interrupt (either input or error).  ZS alone returns the stack to its original condition.  
ZS1 adjusts the stack to eliminate one return.  This turns the jump to subroutine into a 
jump. Do not use RI (Return from Interrupt) when using ZS.  To re-enable interrupts, you 
must use II command again.   
ARGUMENTS:  ZS n 
where  
 0 returns stack to original condition 
 1 eliminates one return on stack 
USAGE:     
While Moving 
Yes 
Default Value 
--- 
In a Program 
Yes 
Default Format 
--- 
Command Line 
No 
 
 
Can be Interrogated 
Yes 
 
 
Used as an Operand 
Yes 
 
 
Controller Usage 
ALL CONTROLLERS 
OPERAND USAGE: 
_ZSn contains the stack level for the specified thread where n = 0 or 1.  The response, an 
integer between zero and seven, indicates zero for beginning condition and seven for the 
deepest value. 
EXAMPLES: 
II1 
Input Interrupt on 1 
#A;JP #A;EN 
Main program 
#ININT Input 
Interrupt 
MG "INTERRUPT" 
Print message 
S=_ZS Interrogate 
stack 
S= Print 
stack 
ZS Zero 
stack 
S=_ZS Interrogate 
stack 
S=  
EN