讀取當前方法,縮回,搜索值

出自 ArcoWiki
於 2018年6月15日 (五) 07:34 由 Slia (對話 | 貢獻) 所做的修訂 (创建页面,内容为“In order to assign to variable the current values of <code>SNSET/APPRCH</code>, <code>SNSET/RETRCT</code>, <code>SNSET/SEARCH</code> it is necessary to execu…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
前往: 導覽搜尋

In order to assign to variable the current values of SNSET/APPRCH, SNSET/RETRCT, SNSET/SEARCH it is necessary to execute a standard DMIS command VALUE/.
Specifically the value are returned by assign using the following syntax:

Command Description
VALUE/SNSET,APPRCH Assign the current Approach distance to the variable
VALUE/SNSET,RETRCT Assign the current Retract distance to the variable
VALUE/SNSET,SEARCH Assign the current Search distance to the variable

a code example is as follow:

$$Declare Return Variable
DECL/DOUBLE,CurrentValue

$$Return Current Approach
CurrentValue=VALUE/SNSET,APPRCH

$$Return Current Retract
CurrentValue=VALUE/SNSET,RETRCT

$$Return Current Search
CurrentValue=VALUE/SNSET,SEARCH