11-
21
11
11-5 Communication Command Description
COMMUNICA
TION WITH PC
11-5-2 Data handling
(1)@?POS [<axis>]
Reads the current position of all axes or a specified axis.
Axis
: "0" for all axes, "1" for the X-axis, and "2" for the Y-axis.
If this setting is omitted, X-axis is selected.
Transmission example
: @?POS 0 c/r l/f
Response example
: 321.05, 100.15 c/r l/f
OK c/r l/f
(2)@XPOS
This reads the current position of the X-axis.
Transmission example
: @?XPOS c/r l/f
Response example
: 321.05 c/r l/f
OK c/r l/f
(3)@YPOS
This reads the current position of the Y-axis.
Transmission example
: @?YPOS c/r l/f
Response example
: 100.15 c/r l/f
OK c/r l/f
(4)@?NO
Reads the current program number. In multi-task operation, this command reads the program
information on the task currently selected.
Transmission example
: @?NO c/r l/f
Response example 1
: 31 c/r l/f ........................................ Program No.31 is being
executed.
OK c/r l/f
Response example 2
: 10/l c/r l/f ...................................... Program No.1 is the lead
program (program selected
with @SWI statement), and
program No.10 is currently
being executed with the JMP
or CALL statement, etc.
OK c/r l/f
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com