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] [T=CMD_code]
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.

CMD_code can be specified on firmware with the NO_CHANGE_SETTINGS module included in the firmware. If you need this function and do not have the module in the firmware, contact ASI. This feature allows some commands to be “turned off” for modification of settings by host software, preventing changes to those settings until the protection is explicitly removed.

Serial commands are enumerated according to the following table with a command number CMD:

AA, AALIGN 0PC, PCROS 20MC, MOTCTRL 40MA, MAINTAIN 60LCD 80
AC, ACCEL 1RM, RBMODE 21PD, PEDAL 41Z2B 61WRDAC 81
B, BACKLASH2RB, RDSBYTE 22AF, AFOCUS 42AM, AFMOVE 62AR, ARRAY 82
BE, BENABLE3RS, RDSTAT 23WT, WAIT 43BU, BUILD 63AH, AHOME 83
CD, CDATE 4~, RESET 24AZ, AZERO 44LL, LLADR 64AIJ 84
C, CNTS 5SL, SETLOW 25SS, SAVESET 45AL, AFLIM 65AFINFO 85
CR, CREST, 6SU, SETUP 26SN, SCAN 46RU, RUNAWAY 66EXTRA 86
D, DACK 7S, SPEED 27LK, LOCK 47UM 67PZ 87
E, ERROR 8@, SPIN 28UN, UNITS 48ZS 68PZC 88
\, HALT 9/, STATUS 29MT, MTIME 49HM, SETHOME 69PZINFO 89
TTL 10V, VERSION 30VE, VECTOR 50OS 70ARM 90
H, HERE 11W, WHERE 31KA 51CCA, CUSTOMA 71BCA,BCUSTOM 95
!, HOME 12N, WHO 32RDADC 52CCB, CUSTOMB 72LED 96
J, JOYSTICK13Z, ZERO 33NR, SCANR 53TEST 73SECURE 97
KD, KDP 14JS, JSSPD 34NV, SCANV 54EP, EPOL 74MM, MULTIMV 98
KI, KIP 15ES, ENSYNC 35UL, UNLOCK 55RT, RTIME 75TSLOCK 99
KP, KPP 16I, INFO 36RL, RELOCK 56AFADJ 76SAA 100
KV, KVP 17SP, SAVEPOS37LR LOCKRG 57AFC, AFCALIB 77SAM 101
M, MOVE 18LD, LOAD 38SB, STOPBITS58AFHOLD 78SAP 102
R, MOVREL 19DU, DUMP 39VB, VBMODE 59SI 79SAF 103
SAO 104

To disable the write function of a command, use VB T=(1000+CMD).

Example VB T=1027 will disable changing the SPEED command.

The command is explicitly enabled by using VB T=CMD.

Example VB T=27 will allow the SPEED command to work again.

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; this command is only applicable to the comm card. The default setting of 0 is the MS-2000 syntax, and setting to 1 gives the Tiger syntax (see Reply Syntax section of Quick Start on Serial Commands. The syntax state does not persist when power is turned off because the comm card has no saved settings (it could potentially in the future, but not as of mid-2022).
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.

Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/vb.txt · Last modified: 2023/09/29 17:49 by jon