User Tools

Site Tools


commands:vb

Command:VB

This command has a slightly different usage on Tiger then in MS2000 and RM2000.

MS2000 or RM2000 syntax and function
Shortcut VB
Format VB [X=binary_code] [Y=TTL IN1 state (read only)] [Z=read_decimal_places]
Units integer
Remembered Using SS Z
Firmware Required v8.5+

Adds serial communication verbose modes for special functions. The binary_code is the sum of the bit values for the desired functions from the list below. The Y argument allows the TTL IN1 input state to be directly queried via serial command. The number of decimal places for the WHERE command is set by read_decimal_places.

Bit 0 1Send character ‘N’ upon completion of a commanded move.
Bit 1 2Send ‘p’ for joystick quick-press and release, ‘P’ for long-press.
Bit 2 4Send ‘H’ for TTL IN1 low-to-high transition; ‘L’ for high-to-low.
Bit 3 8Changes the reply termination for <CR>+<LF> to just <CR>
Bit 4 16Move and Move Rel will print the new Target Position.
Bit 5 32Axes positions reported upon completion of a commanded move.

Example VB X=7 turns on the first three of the above functions.

Tiger syntax and function
Shortcut VB
Format [addr#]VB [X=binary_code] [Z=read_decimal_places] [F=###]
Units integer
Type Card-Addressed
Remembered Using [addr#]SS Z

The Z argument sets the number of decimal places for the WHERE command. This is card-addressed so that different cards can be set differently. It is saved to non-volatile memory using the SS Z command.

The F argument sets the reply syntax. Setting to 0 (default) is the MS-2000 syntax, and setting to 1 gives the Tiger syntax (see above section for details). The syntax state does not persist when power is turned off.
Reply Note that this command does NOT return :A or other acknowledgement.

The X argument implemented in firmware version 3.17 and above . When set with the Binary bit shown in the table below, performs the corresponding action

Bit 4 16Move and Move Rel will print the new Target Position.Vector command will print the current position
1vb x=16

<LF>
ve x=1 y=-1
:A -0 -0 
<LF>
ve x=2 y=-2
:A 66562 -66567 
<LF>
ve x=0 y=0
:A 156651 -156663 
<LF>

In the above example , XY stage is on Card Addr#1. Because VB X=16 , BIT4 was set. This makes the Vector command reply with the axis's current position.

commands/vb.txt · Last modified: 2019/04/18 23:33 (external edit)