⊗Standard Commands that can be used as Instant or Buffered.
If sending as Buffered commands, remember you will need to initiate the buffer first and also use a buffer start command. This will be covered further down the page.
⊗
Set Axis Command I00CX125000.000429496729511110001001*
This Command sets the properties of each Axis, but does not start the pulse train on that Axis.
A Start Command must be used after to activate.
| Byte1 | Byte 2-3 | Byte 4-5 | Byte 6-15 | Byte 16-25 | Byte 26 | Byte 27 | Byte 28 | Byte 29-31 | Byte 32-34 | Byte 35 | Byte 36 | Byte 37 |
| I | 00 | CX | 125000.000 | 4294967295 | 1 | 1 | 1 | 100 | 010 | 0 | 1 | * |
Set Axis Reply
The PTHAT will send back a reply when it receives a command and also when it has completed a command.
If the Command sent ID number was set for bytes 2-3, then this will be returned in the reply.
These can be turned off if needed.
X set
Received | Y set
Received | Z set
Received | E set
Received | X set
Completed | Y set
Completed | Z set
Completed | E set
Completed |
| RI00CX* | RI00CY* | RI00CZ* | RI00CE* | CI00CX* | CI00CY* | CI00CZ* | CI00CE* |
Set Axis Command Breakdown
| Byte | Setting | Description | |
| Byte 1 | I=Instant Command
B=Buffer Command | Sets command to either Instant or Buffer. | |
| Byte 2-3 | 0-99 | Optional Command ID | |
| Byte 4-5 |
CX= Set X-Axis
CY= Set Y-Axis
CZ= Set Z-Axis
CE= Set E-Axis |
Sets which Axis is to be set | |
| Byte 6-15 | 000000.000-500000.000 | Sets the frequency of the pulse train | |
| Byte 16-25 | 0000000000-4294967295 | Sets the required pulse count. | |
| Byte 26 | 0-1 | Direction
0=CW
1=CCW | |
| Byte 27 | 0-1 | Start Ramp
0=No ramp
1=Ramp | |
| Byte 28 | 0-1 | Finish Ramp
0=No ramp
1=Ramp | |
| Byte 29-31 | 0-255 | Ramp divide. This will divide the target frequency by this value for each ramp increment. | |
| Byte 32-34 | 0-255 | Ramp pause between each ramp increment., | |
| Byte 35 | 0-2 | Link to ADC
0=No ADC
1=Link to ADC1
2=Link to ADC2 | |
| Byte 36 | 0-1 | Enable Line Polarity
0=Enable Line 0 Volts
1=Enable Line 5 Volts | |
| Byte 37 | * | End of Command | |