beautypg.com

5-2 data handling, Communica tion with pc 11-5-2 data handling – Yamaha SRCP User Manual

Page 193

background image

11-

17

11

11-5 Communication Command Description

COMMUNICA

TION WITH PC

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

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

(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

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

selected.

OK c/r l/f

(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