11-5 Communication Command Description

11-5-2 Data handling

(1)@?POS

Reads the current position.

Transmission example

:

@?POS c/r l/f

Response example

:

321.05 c/r l/f

 

 

OK c/r l/f

(2)@?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

 

 

OK c/r l/f

executed.

Response example 2

: 10/l c/r l/f

Program No.1 is the lead

 

 

OK c/r l/f

program (program selected

 

 

 

with @SWI statement), and

 

 

 

program No.10 is currently

 

 

 

being executed with the JMP

 

 

 

or CALL statement, etc.

(3)@?SNO

Reads the current step number. The @RUN and @SRUN commands are executed from the step read here. In multi-task operation, this command reads the program information on the task cur- rently selected.

Transmission example : @?SNO c/r l/f

11

Response example

: 170 c/r l/f

 

OK c/r l/f

(4)@?TNO

Reads the current task number.

Transmission example

:

@?TNO c/r l/f

 

Response example

:

0 c/r l/f

Task 0 (main task) is currently

 

 

OK c/r l/f

selected.

(5)@?PNO

Reads the currently selected point number. This is used to find which point data is being used for movement, or to find the point that caused an error if it occurs. In multi-task operation, this command reads the program information on the task currently selected.

Transmission example

:

@? PNO c/r l/f

Response example

:

57 c/r l/f

 

 

OK c/r l/f

COMMUNICATION WITH

PC

11-17

Page 193
Image 193
Yamaha SRCP manual Data handling