MC-Basic:element.ELEMENTSTATUS

From SoftMC-Wiki
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