User Tools

Site Tools


commands:vb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commands:vb [2017/06/01 21:27]
vik
commands:vb [2019/04/18 23:33] (current)
Line 1: Line 1:
 +====== 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 |1|Send character ‘N’ upon completion of a commanded move.            |
 +^Bit 1 |2|Send ‘p’ for joystick quick-press and release, ‘P’ for long-press. |
 +^Bit 2 |4|Send ‘H’ for TTL IN1 low-to-high transition; ‘L’ for high-to-low. ​ |
 +^Bit 3  |8|Changes the reply termination for''​ <​CR>​+<​LF>''​ to just''​ <​CR>'' ​  |
 +^Bit 4  |16|Move and Move Rel will print the new Target Position. ​     |
 +^Bit 5  |32|Axes positions reported upon completion of a commanded move.       ​| ​     ​
 +
 +**Example**
 +<wrap cmd> VB X=7 </​wrap>​ 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 [[commands:​saveset|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 <wrap reply> :A </​wrap>​ 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  |16|Move and Move Rel will print the new Target Position.Vector command will print the current position ​  |
 +<asi> $ 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></​asi>​
 +
 +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. ​
 +
 +<--
 +
 +
 +
 +
 +
 +
 +{{tag>​commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/vb.txt · Last modified: 2019/04/18 23:33 (external edit)