MC-Basic:element.ELEMENTSTATUS

From SoftMC-Wiki
Revision as of 11:49, 26 June 2017 by Itay (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文(简体)‎

Returns the line number of the program from where the currently executing motion was invoked. Due to the buffering mechanism of motion commands, program execution can continue far from the line where motion was given. Therefore when querying the task status, the line number returned has no relation to the line number from where the currently executing motion was issued. In order to get the line number from where the currently executing motion was commanded this command should be used.
String returned is in the format:

Main Program line : <line number> File : <program file name>, Library line : <line number of the library> File : <library file name>

Syntax

? <element>.ElementStatus

Availability

Since Version 4.15.12

Type

String

Scope

Terminal or Task

Limitations

Modal Only, Read only

Examples

Axis

?A1.ElementStatus
Main Program line : 49 File : TJ3.PRG, Library line : 79 File : STAT.LIB 


Group

?G1.ElementStatus
Main Program line : 49 File : TJ3.PRG, Library line : 79 File : STAT.LIB 

See Also