User Tools

Site Tools


ring_buffer

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ring_buffer [2021/09/23 17:15] – external edit 127.0.0.1ring_buffer [2026/08/13 20:31] (current) – [Looping or single-use buffer points and automatic re-triggering] chrisd
Line 1: Line 1:
-====== RING BUFFER Multi-Point Save/Move ======+====== RING BUFFER MODULE ======
  
  
-Often there is a need to mark several positions to later revisit.  The ''RING BUFFER'' module enables a buffer with up to 50 locations that the user can load with position information and then visit sequentially.  Many firmwares can be built to allow 250 positions; contact ASI if you require this.+Often there is a need to mark several positions to later revisit.  The ''RING BUFFER'' module enables a buffer with up to 50 locations that the user can load with position information and then visit sequentially.  Many firmware builds can allow 250 positions; contact ASI if you require this.
  
-**Using controller buttons to manipulate the RING BUFFER**+==== Using controller buttons to manipulate the RING BUFFER ====
  
-The easiest way to use the ring buffer is to save positions and revisit them using the buttons on the controller. The default button functions are listed below.  In some cases, additional firmware modules may preempt these button functions.  Contact ASI if you have questions. +A common use of the ring buffer is to save positions and revisit them using the buttons on the controller. The default button functions are listed below.  In some cases, additional firmware modules may preempt these button functions.  Contact ASI if you have questions. 
  
 <WRAP center round info 60%> <WRAP center round info 60%>
Line 19: Line 19:
 **Revisit locations using the @ Button** **Revisit locations using the @ Button**
  
-Save locations can be revisited by pressing the @ button briefly.  Each press of the @ button causes the stage to advances to the next position.  When you reach the last position, the next press of the @ button will take you back to the first position.  +Save locations can be revisited by pressing the @ button briefly.  Each press of the @ button causes the stage to advance to the next position.  When you reach the last position, the next press of the @ button will take you back to the first position.  
  
 **Clear the buffer with the HOME Button** **Clear the buffer with the HOME Button**
Line 27: Line 27:
 You can also use the serial command "RBMODE X=0" to clear the ring buffer. You can also use the serial command "RBMODE X=0" to clear the ring buffer.
  
-**Using TTL pulses to control automated moves**+==== Using TTL pulses to control automated moves ====
  
 You can advance to the next position in the ring buffer when the controller receives a TTL pulse. You can advance to the next position in the ring buffer when the controller receives a TTL pulse.
Line 39: Line 39:
 See [[commands:load|LOAD]], [[commands:rbmode|RBMODE]], and [[commands:ttl|TTL commands]] for details. See [[commands:load|LOAD]], [[commands:rbmode|RBMODE]], and [[commands:ttl|TTL commands]] for details.
  
-**Using serial commands to load the buffer and control automated moves**+==== Using serial commands to load the buffer and control automated moves ====
  
-The ring buffer may be preloaded with values via the serial command [[commands:load|LOAD]].  Serial commands can also be used to advance to the next position as well as to control which axes will be affected by the move commands.  See [[commands:load|LOAD]], [[commands:rbmode|RBMODE]], and [[commands:ttl|TTL commands]] for details.  Contact ASI for details.+The ring buffer may be preloaded with values via the serial command [[commands:load|LOAD]].  Serial commands can also be used to advance to the next position as well as to control which axes will be affected by the move commands, and what will trigger a move to the next position.  See [[commands:load|LOAD]], [[commands:rbmode|RBMODE]], and [[commands:ttl|TTL commands]] for details.  Contact ASI for details. 
 + 
 +==== Looping or single-use buffer points and automatic re-triggering ==== 
 + 
 +The command [[commands:rbmode|RBMODE]] can select whether ring buffer points are visited only once then deleted (Consume Mode) or if the ring buffer will repeat from the beginning once the end is reached. This command also can control if the ring buffer is to automatically move to the next position after being triggered, or only advance to the next point from each external trigger. This command also selects which axes are allowed for ring buffer moves. 
 + 
 +==== Serial Command Cheatsheet ==== 
 + 
 +On Tiger, these commands are card addressed except for the ''LOAD'' command. 
 + 
 +^ Ring Buffer Serial Commands                                                                                                           |||| 
 +^ Property                                 ^ Set                         ^ Get                         ^ Notes                             ^ 
 +| Clear Positions                          | [[commands:rbmode|RM X=0]]  | -                           | Clears the ring buffer            | 
 +| Start Array Scan                         | [[commands:rbmode|RM X=1]]  | -                           | Requires ARRAY_MODULE             | 
 +| Single TTL Pulse                         | [[commands:rbmode|RM]]      | -                           | Based on TTL input mode           | 
 +| Number of Positions                      | -                           | [[commands:rbmode|RM X?]]   | Number of positions               | 
 +| Axis Byte                                | [[commands:rbmode|RM Y=#]]  | [[commands:rbmode|RM Y?]]   | Enable or disable axes            | 
 +| Mode Byte²                               | [[commands:rbmode|RM F=#]]  | [[commands:rbmode|RM F?]]   | Ring buffer mode                  | 
 +| Read Index                               | [[commands:rbmode|RM Z=#]]  | [[commands:rbmode|RM Z?]]   | Current read index                | 
 +| TTL In Mode 1                            | [[commands:ttl|TTL X=1]]    | -                           | Move to next position (absolute)  | 
 +| TTL In Mode 12                           | [[commands:ttl|TTL X=12]]   | -                           | Move to next position (relative)  | 
 +| Load Position¹                           | [[commands:load|LD X+ Y+]]  | -                           | Load current position             | 
 +| Next Position¹                           | -                           | [[commands:load|LD X? Y?]]  | Read next position                | 
 +^ Consume Mode Differences (v3.41+ only)²                                                                                               |||| 
 +| Open Positions                           | -                           | [[commands:rbmode|RM X?]]   | Remaining open positions          | 
 +| Read Index                               | -                           | [[commands:rbmode|RM Z?]]   | Read-only                         | 
 + 
 +¹ See the [[commands:load|LOAD]] command for more details. 
 + 
 +² See the section at the bottom of [[commands:rbmode|RBMODE]] for details about the addition of Consume Mode (F=0).
  
 {{tag>advanced_feature ringbuffer ms2000 tiger}} {{tag>advanced_feature ringbuffer ms2000 tiger}}
  
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
ring_buffer.1632431725.txt.gz · Last modified: by 127.0.0.1