AXY:MC-Basic:group.ELEMENTSTATUS

From SoftMC-Wiki
Revision as of 10:35, 28 August 2016 by Miborich (talk | contribs) (Miborich moved page group.ELEMENTSTATUS to MC-Basic:group.ELEMENTSTATUS)
Jump to: navigation, search

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;d 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

? <group_name>.ElementStatus

Availability

Since Version 4.15.12

Type

String

Scope

Terminal or Task

Limitations

Modal Only, Read only

Examples

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

See Also