Intelligent Motion Systems 17 manual Hold Program Execution Program Instruction

Page 47

MNEMONIC

FUNCTION

TYPE

H

Hold Program Execution

Program Instruction

DESCRIPTION

The hold instruction is used in a program to suspend program execution. If no parameter is specified the execution of the program will be suspended while motion is in progress. This will typically be used following a MA or MR instruction.

A time in milliseconds may be placed as a parameter to the hold instruction, This will suspend program execution for the specified number of milliseconds

USAGE

H <time> ‘Blank or 0 - hold while moving, 1 - 65000 usec.

EXAMPLE:

‘example 1

 

MA 20000

‘move absolute 20000 motor units

H

‘hold program execution until motion completes

MA -20000

‘move absolute -20000 motor units

H

‘hold program execution until motion completes

‘example 2

 

O2=1

‘set output 2 HIGH

H 1000

‘hold 1 second

O2=0

‘set output 2 LOW

RELATED COMMANDS: PG, E

MNEMONIC

FUNCTION

TYPE

HI

Home to Index Mark Variable

Setup Variable

DESCRIPTION

This instruction will find the the encoder index mark. There are four types for this command:

1)Speed (S): Specifies the direction and speed that the axis will move until the index mark is found (VM).

2)Creep (C): Specifies the direction and speed that the axis will move off the index mark until it becomes inactive again (VI).

When HI 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

 

 

HI=<type>

1: S- C+, 2: S- C-, 3: S+ C-, 4: S+ C+

 

 

 

 

 

EXAMPLE:

 

 

 

HM=2

‘Find index mark at VM in the minus direction, Creep off at VI in the minus direction

 

 

 

RELATED COMMANDS: VM, VI, EE, I6

 

 

 

 

 

 

MNEMONIC

FUNCTION

 

TYPE

HC

Hold Current

 

Setup Variable

DESCRIPTION

 

 

 

This variable defines the motor holding current in percent.

 

 

 

 

 

 

USAGE

UNITS

RANGE

DEFAULT

HC=<percent>

Percent

0 to 100

5

 

 

 

 

EXAMPLE:

 

 

 

HC=5

‘Set motor holding current to 5%

 

 

RELATED COMMANDS: HT, RC, HI

45

Image 47
Contents Operating Instructions Intelligent Motion Systems, Inc All Rights Reserved Table of Contents List of Figures Part 1 General Information and Hardware Specifications Intentionally Left Blank A t u r e S u m m a r y Control Knob LMAX2 T a r y M o t o r Specification sC t i o n O v e r v i e w Standard Rotary Motor LmaxMDI1719 N e a r M o t o r Specification sMDI1715 E e d F o r c e C u r v e 4 5 V D C MDI17 Linear ActuatorE e d F o r c e C u r v e 2 4 V D C MDI17 Acme Screws N e r a l Specification sR i v e 1 7 M o t i o n C o n t r o l a C M E S c r e w C o m m e n d e d I M S P o w e r S u p p l i e s E r m a l Specification sW e r S u p p l y R e q u i r e m e n t s A t u r e S u m m a r y MDI2218 MDrive23 Motion Control SpecificationsMDI2231 MDI2222Refer to .10 for screw pitch information MDI23 Linear ActuatorMDI23 Acme Screws R i v e 2 3 M o t i o n C o n t r o l a C M E S c r e wIP404MDI23 Page Intentionally Left Blank C o m m e n d e d W i r i n g Connector P1Y o u t a n d I n t e r f a c e G u i d e l i n e s N C o n f i g u r a t i o n a n d D e s c r i p t i o n sN g l e M D r i v e Connector P2 10 Pin HeaderT e r f a c i n g P o w e r T e r f a c i n g R S 4 8 5 C o m m u n i c a t i o n sRS-485 Interface, Multiple MDrive Motion Control System Input Functions T e r f a c i n g t h e D i g i t a l I / OE s o f t h e D i g i t a l I / O T e r f a c i n g I n p u t sTruth Table I/O Used as a Group TTL Interface to Input GroupT e r f a c i n g a S i n g l e O u t p u t E x a m p l e s T e r f a c i n g O u t p u t sM p l e U s a g e T e r f a c i n g t h e a n a l o g I n p u tS t e m R e q u i r e m e n t s Install i n g a n d U s i n g I M S Te r m i n a lInstallation I n g t h e I M S Te r m i n a l S o f t w a r e 13 IMS Terminal Upgrader Window R i a b l e s R i v e M o t i o n C o n t r o l P r o g r a m m i n gE r a t i o n a l M o d e s S t r u c t i o n sY w o r d s A g sT i o n C o m m a n d s T h F u n c t i o n sC o m m a n d s Read IO1 Setup PR S1 Read IO2 Setup PR S2Please Note Any program labeled SU will execute on power-up VAR CT Baud Mnemonic Function Unit Range Syntax ExampleI n s t r u c t i o n s , Va r i a b l e s a n d F l a g s T h e m a t i c a l F u n c t i o n s Symbol FunctionRetrieve All Parameters Variable Baud Rate Setup VariableAcceleration Motion Variable Busy Flag Read Only Motion Flag Branch Program InstructionClear Program Program Instruction Set Counter 2 Encoder Counts Motion VariableCall Subroutine Program Instruction Deceleration Motion Variable Set Encoder Deadband Setup VariableD1-D5 Digital Input Filtering Variable End Program Execution Program Instruction Drive Enable Flag Setup FlagDevice Name Setup Variable Read-Only Error Flag Status Flag Encoder Enable Flag Setup FlagEcho Mode Flag Setup Flag Execute Program Program Instruction Error Number Variable Status VariableHold Program Execution Program Instruction Home to Index Mark Variable Setup VariableHold Current Setup Variable Read Input Variable Home to Home Switch Variable Setup VariableHold Current Delay Time Setup Variable Increment Variable Program Instruction Read Analog Input VariableRead Encoder Index Mark Variable Initialize Parameters Instruction Joystick Enable Flag Setup FlagRead Inputs 1-4 As 1 Value Variable Label Program/Subroutine Instruction Lock User Program Setup FlagList Program Space Instruction Move To Relative Position Motion Instruction Motion InstructionPR MS Microstep Resolution Motion VariableO1 O4 Set/Print Output Logic State Variable Motor Settling Delay Time Motion VariableOn Error Handler Instruction Set/Print Position Counter Instruction Set Ouputs 1-4 As 1 Value VariablePrint Selected Data/Text Instruction Postition Maintenance Enable Setup FlagEnter/Exit Program Mode Program Instruction Pause Program Instruction Party Mode Enable Flag Setup FlagR1 R4 User Registers User Variable Run Current Setup VariableSave to EEProm Instruction Resume Program InstructionReturn From Subroutine Instruction Set/Print I/O Point Instruction S1 S4 Set/Print I/O Point Type/Active State InstructionEncoder Variable Stall Detection Mode Variable Encoder VariableTrip on Input Variable Trip Enable Flag Setup FlagRead Only Stall Flag Encoder Flag Read User Variables Upgrade Firmware InstructionTrip on Position Variable Create User Variable Name Instruction Read Only Velocity Variable Motion VariableRead Only Firmware Version Factory Variable Appendix a Program Errors Error Code FaultErrors Data ErrorsTWENTY-FOUR Month Limited Warranty Western Region