User Tools

Site Tools


commands:sap

Command:SAP

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

This command sets the type of pattern to generate and configures the clocks. The parameter is a bit-mapped number that determines the characteristics of the motion, with the lowest bits determining the type of pattern. The code is interpreted according to the following table:

Bit Clear Set
7 Internal Clock External clock on TTL input
6 Polarity of Clk, positive edge Polarity of Clk, negative edge
5 No TTL out TTL out
4 Polarity of TTL out, active high Polarity of TTL out, active low
3 reserved Reserved
2-0 000 Ramp/sawtooth (code 0)
001 Triangle (code 1) (period always even number of msec)
010 Square wave (code 2) (period always even number of msec)
011 Sine wave (code 3)
Example
SAP r=0   
:A

Sets up for ramp (sawtooth) pattern, running off internal clock with no TTL outs

SAP r=129   
:A

Sets up for triangle pattern, running off positive edge external TTL clock with no TTL outs.

SAP r=161   
:A

Sets up for triangle pattern, running off positive edge external TTL clock with TTL outs. A 250usec pulse is put out at the start of the pattern.

Serial command<Card Addr#>TTL Y=22 will route the TTL pulses generated when BIT5 is set, to the TTL OUT0 port. Available only in firmware version 3.17 and above.

Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/sap.txt · Last modified: 2019/04/18 23:33 (external edit)