MNEMONIC | FUNCTION | TYPE |
HM | Home to Home Switch Variable | Setup Variable |
DESCRIPTION
This instruction will find the selected I/O switch. There are four types for this command:
1)Speed (S): Specifies the direction and speed that the axis will move until the switch is activated (VM).
2)Creep (C): Specifies the direction and speed that the axis will move off the switch until it becomes inactive again (VI).
When HM is executed, the axis moves in the direction specified by the sign of speed at VM. It then creeps off of the switch in the direction specified by the sign of creep at VI. Motion is stopped as soon as the switch becomes deactivated.
USAGE | TYPES |
|
HM=<type> | 1: S- C+, 2: S- |
|
|
|
|
EXAMPLE: |
|
|
HM=3 | ‘Find home switch at VM in the plus direction, Creep off at VI in the minus direction | |
|
| |
RELATED COMMANDS: VM, VI, |
| |
|
|
|
MNEMONIC | FUNCTION | TYPE |
HT | Hold Current Delay Time | Setup Variable |
DESCRIPTION
The HT variable sets the delay time in milliseconds between the cessation of motion and when the MDrive Motion Control shifts to the holding current level specified by the HC (Motor Holding Current) variable. The delay time is also effected by the MT (Motor Settling Delay Time) variable in that the total time from motion ceasing to current change is represented by the sum of MT + HT
USAGE | UNITS | RANGE | DEFAULT |
HT=<time> | milliseconds | 0 to 65000 | 500 |
|
|
|
|
EXAMPLE: |
|
|
|
HT=1500 | ‘Set hold current delay time to 1.5 seconds |
|
RELATED COMMANDS: HC, MT, RC
MNEMONIC | FUNCTION | TYPE |
I1 - I4 | Read Input | I/O Variable |
DESCRIPTION
This variable will read the state of the specified input 1 - 4. Can be used with PR (Print), BR (Branch) and Cl (Call Subroutine) instructions. Can also be used with
USAGE
PR
BR <addr>,
CL <addr>,
EXAMPLE: |
|
PR I2 | ‘Print the state of Input 2 to the Terminal Screen |
BR 128, I3=1 | ‘Conditional branch to program line 128 if Input 3 = 1 |
CL 432, I4=0 | ‘Call subroutine at line 432 if Input 4 = 0 |
RELATED COMMANDS: IN,
46