MNEMONIC | FUNCTION | TYPE |
OT | Set Ouputs | I/O Variable |
DESCRIPTION
The OT variable allows the user to set Outputs
| Example: OT=12 |
|
| Output 4 = 1 |
|
| Output 3 = 1 |
|
| Output 2 = 0 |
|
| Output 1 = 0 |
|
USAGE |
|
|
| ||
PR OT |
|
|
EXAMPLE: |
|
|
OT=7 | ‘Set outputs |
|
RELATED COMMANDS: |
| |
MNEMONIC | FUNCTION | TYPE |
P | Set/Print Position Counter | Instruction |
DESCRIPTION
This instruction is used to set or print the value of the MDrive Motion Control position counter. The position will read in Motor Counts from C1 (Counter 1) by default, if encoder functions are enabled, the position counter will read in Encoder Counts from C2 (Counter 2).
The main difference in the relationship of the two counters is that where C1 is variable, the value of each count in terms of distance moved is based upon the MS, or microstep resolution setting, C2 will always be 2048 counts per motor revolution, regardless of the microstep resolution setting.
Modifying P in essence changes the frame of reference for the axis. P will probably be set once during system set up to reference or “home” the system.
USAGE | UNITS | RANGE |
P <±position> | Steps | |
PR P |
|
|
|
|
|
EXAMPLE: |
|
|
P=0 | ‘Clear position counter, set to 0 |
|
PR P | ‘Print the state of the position counter |
|
RELATED COMMANDS: C1, C2
53