User Tools

Site Tools


commands:sam

Command:SAM

MS2000 or RM2000 syntax
Shortcut SAM
Format SAM [axis]=### …
Units Integer code, 0-3 (see below)
Remembered Using SS Z
Tiger syntax
Shortcut SAM
Format SAM [axis]=### …
Units Integer code, 0-3 (see below)
Type Axis-Specific
Remembered Using [addr#]SS Z

Sets the single-axis mode according to the integer code.

Code Meaning
0 Puts single-axis mode in idle state (i.e. stops it if running)
1 Puts the single-axis mode in active state (i.e. starts generating the pattern)
2 Arms the trigger; on receipt of a TTL trigger pulse the single-axis mode becomes active
3 Makes the single-axis mode active and restarts the pattern of any other axis on the same card so they will be synchronized
Example
SAM A=0  
:A

Disables the routine for the A axis

SAM A=1  
:A

Enables the routine for the A axis

SAM B=2  
:A

Arms the routine for the B axis. The routine for B will start running on receipt of a TTL pulse

SAM B=3  
:A

Enables the routine for the B axis. Also the routine for A axis is reset, so they will both run in sync

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