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 [2023/08/24 20:50] – jonring_buffer [2026/08/13 20:31] (current) – [Looping or single-use buffer points and automatic re-triggering] chrisd
Line 41: Line 41:
 ==== 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 ==== ==== Serial Command Cheatsheet ====
Line 47: Line 51:
 On Tiger, these commands are card addressed except for the ''LOAD'' command. On Tiger, these commands are card addressed except for the ''LOAD'' command.
  
-^ Ring Buffer Serial Commands |||| +^ Ring Buffer Serial Commands                                                                                                           |||| 
-^ Property ^ Set ^ Get ^ Notes ^ +^ Property                                 ^ Set                         ^ Get                         ^ Notes                             ^ 
-| Clear Positions | RM X=0 | - | Clears the ring buffer | +| Clear Positions                          | [[commands:rbmode|RM X=0]]  | -                           | Clears the ring buffer            | 
-| Start Array Scan | RM X=1 | - | Requires ARRAY_MODULE | +| Start Array Scan                         | [[commands:rbmode|RM X=1]]  | -                           | Requires ARRAY_MODULE             | 
-| Single TTL Pulse | RM | - | Based on TTL input mode | +| Single TTL Pulse                         | [[commands:rbmode|RM]]      | -                           | Based on TTL input mode           | 
-| Number of Positions | - | RM X? | Number of positions | +| Number of Positions                      | -                           | [[commands:rbmode|RM X?]]   | Number of positions               | 
-| Axis Byte | RM Y=# | RM Y? | Enable or disable axes | +| Axis Byte                                | [[commands:rbmode|RM Y=#]]  | [[commands:rbmode|RM Y?]]   | Enable or disable axes            | 
-| Mode Byte | RM F=# | RM F? | Ring buffer mode | +| Mode Byte²                               | [[commands:rbmode|RM F=#]]  | [[commands:rbmode|RM F?]]   | Ring buffer mode                  | 
-| Read Index | RM Z=# | RM Z? | Current read index | +| Read Index                               | [[commands:rbmode|RM Z=#]]  | [[commands:rbmode|RM Z?]]   | Current read index                | 
-| TTL In Mode 1 | TTL X=1 | - | Move to next position (absolute) | +| TTL In Mode 1                            | [[commands:ttl|TTL X=1]]    | -                           | Move to next position (absolute)  | 
-| TTL In Mode 12 | TTL X=12 | - | Move to next position (relative) | +| TTL In Mode 12                           | [[commands:ttl|TTL X=12]]   | -                           | Move to next position (relative)  | 
-| Load Position* | LD X+ Y+ | - | Load current position | +| Load Position¹                           | [[commands:load|LD X+ Y+]]  | -                           | Load current position             | 
-| Next Position* | - | LD X? Y? | Read next position | +| Next Position¹                           | -                           | [[commands:load|LD X? Y?]]  | Read next position                | 
-^ Consume Mode Differences |||| +^ Consume Mode Differences (v3.41+ only)²                                                                                               |||| 
-| Open Positions | - | RM X? | Remaining open positions | +| Open Positions                           | -                           | [[commands:rbmode|RM X?]]   | Remaining open positions          | 
-| Read Index | - | RM Z? | Read-only |+| Read Index                               | -                           | [[commands:rbmode|RM Z?]]   | Read-only                         | 
 + 
 +¹ See the [[commands:load|LOAD]] command for more details.
  
-* 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.1692924655.txt.gz · Last modified: by jon