RV.WAYPOINT.CMDNUM

Command:

RV.WAYPOINT.CMDNUM

Command Syntax:

RV.WAYPOINT.CMDNUM

Code
Sample:

Send("READ RV.WAYPOINT.CMDNUM")

Example:

Program to determine if a drive command has completed without referring to a specific command number.

Note: the Wait is intended to increase the probability of catching a difference in the Command Number.

Code
Sample:

Send("RV FORWARD 10")

Send("READ RV.WAYPOINT.CMDNUM")

Get(M)

M->N

 

While M=N

 

Send("READ RV.WAYPOINT.CMDNUM")

Get(N)

End

 

Disp "Drive Command is completed"

Range:

N/A

Describe:

READ RV.WAYPOINT.CMDNUM - returns the last command number of the current waypoint.

 

Result:

Returns a value of 0 if the RV is currently "working" on a command and is either in motion, or running a STAY operation. This command will return a value of 1 when ALL queued operations are completed, nothing is remaining in the command queue, and the current operation has completed (and immediately after CONNECT RV).

Type or
Addressable Component:

Returns Data

See Also: RV.DONE