Home
Parker Hannifin acr-motion max api User's Manual
Contents
1. 11 AX MEIC gut MS oie eee rotta 11 P QUOI UL EAS TEE NE PEE 12 AX MEIN COGS BI esee deese tite iere rette ie e e ded eed T 12 SOG WAL Me PINUS PEN oreet feretro hotte canceade casts tes sra ur e eet ode tne 12 Jog and Homing BPutiGORS d ea TEE 12 eM 12 JO SPTHS 12 AEEA 12 AX JOSPIBS BOSE ctc ferocem mter 12 API Users Guide Getting Started 3 PX DOS SOP m 12 Sd m 13 Place VB Code in a s sereni nennen 14 G Code 14 AX MiG ad GC Od SP ee peace E ENKET EEES 14 GetGcodeLaneNUttbDEr ree retener rre te sab ER Ev eue ve Re Dee E Pe rue TERT ER 14 MDI Mode Functions oserei resies ae ann rece EEE n Re exei Per EE EAR Re rae o a Re ere Fee CH RATER 14 AX Stari MD Ne ee E ehe He RE TER ee 14 AX StopMDI dee e Ga de E C HEC ER dd TREE Yee E E Rena 15 C 15 Vartual Overrides tes de en eR hd E ATH 15 PODER lu TTE
2. JogMinus JogPlus JogMinusFast JogPlusFast JogStop AX HomeAxis JOG SELECTED AXIS MINUS DIRECTION JOG SELECTED AXIS PLUS DIRECTION JOG SELECTED AXIS MINUS DIRECTION at Fast Rate JOG SELECTED AXIS PLUS DIRECTION at Fast Rate STOP ALL JOGGING HOME THE SELECTED AXIS MDI Mode Commands AX StartMDI AX StopMDI AX ExecuteMDI Virtual Overrides AX SetFov AX SetRov AX SetSov Graphics AX InitializeGPH SetGphView AX ZoomWindow SetGraphics Error Message SystemErr ClearSystemErr Cycle Functions CycleStart Feedhold Reset Auto Step API Users Guide Start MDI Mode Signal to DLL Stop MDI Mode Signal to DLL Execute MDI command String to DLL Set Feedrate override manually with sliders Set Rapid rate override manually with sliders Set Spindle override manually with sliders Initialize Graphics Engine amp pass handle of the control area Tell Graphics which ViewPort to plot Pass Zoom Coordinates in Pixies to the Graphics Engine Turn Graphics Generator on off Get the System errors from the DLL if any Acknowledges amp Clears the Error from the DLL Starts Loaded G Code File Running Stop the Program running until Cleared Stop Current programs and effects a M30 Set this bit 133 to tell DLL to Cycle in Auto Clear this bit to run in Step API Command Groups 7 API Command Descriptions DLL Initialization AX InitializeControl Description Sen
3. 15 SE oe IM MIL MIA MD IAM M IM DP De 15 PONE SOUS OW cR 15 Graphics Functions heci noinine eet ee ete bee e ey eee A A GR ls 16 AX Initialize GPH 16 AX 16 AX enti 17 Error Message System cu he ee aia 17 Lo cius PL H 17 AX Cleats E 17 rur MR p 18 Do HE LISTET 18 156 8 07 6 RI 18 19 Auto Step 19 uM E RM M 20 ACLOLOOP Vay OU E 20 Control Signals E 20 Moode MEER 22 4 Getting Started API Users Guide Getting Started Introduction This Guide give basic instructions on the functionality and implementation of the MotionCore DLL API Only experience developers of motion control software should attempt to use this API A working knowledge of the Parker Acroloop AcroBasic language is
4. Arguments VB Example Declaration Pass Screen Coordinates in Pixels of the ZoomBox to the API for Zoom operations Integer 1 on Success 0 on Failure ByVal iGraphicsOn As Integer Turn Graphics On Call SetGraphics 1 Turn Graphics Off Call SetGraphics 0 Public Declare Function SetGraphics Lib MotionCore DLL _ ByVal iGraphicsOn As Integer As Integer Error Message System AX SystemErr Description Returns Arguments VB Example Declaration Get the System errors from the DLL if any Integer 1 on Success 0 on Failure ByVal ErrMsg as String ByVal ErrSource as String ByRef ErrLineNum As Long ErrMsg Space 255 ErrSource Space 128 Call SystemErr ErrMsg ErrSource ErrLineNum ErrMsg Mid ErrMsg 1 Istrlen ErrMsg ErrSource Mid ErrSource 1 Istrlen ErrSource frmErrMsg ErrMsgTxt Text Trim ErrMsg amp vbCrLf amp Source amp Trim ErrSource amp vbCrLf amp Line amp ErrLineNum ErrDisplayOn True Public Declare Function SystemErr Lib _ MotionCore DLL ByVal ErrMsg As String ByVal ErrSource As String ByRef ErrLineNum As Long As Integer AX ClearSystemErr Description Returns Arguments VB Example Declaration API Users Guide Acknowledgement from Vb to DLL side from user that he got the error MSG This function also Clear the Error in the DLL Handler If more errors are in the message Handler the Above Call will be V
5. ACR MotionMax API Users Guide API Users Guide Getting Started 1 IMPORTANT User Information N Warning N ACR Series products are used to control electrical and mechanical components of motion control systems You should test your motion system for safety under all potential conditions Failure to do so can result in damage to equipment and or serious injury to personnel ACR series products and the information in this guide are the proprietary property of Parker Hannifin Corporation or its licensers and may not be copied disclosed or used for any purpose not expressly authorized by the owner thereof Since Parker Hannifin constantly strives to improve all of its products we reserve the right to change this guide and software and hardware mentioned therein at any time without notice In no event will the provider of the equipment be liable for any incidental consequential or special damages of any kind or nature whatsoever including but not limited to lost profits arising from or in any way connected with the use of the equipment or this guide 2004 Parker Hannifin Corporation AII Rights Reserved Technical Assistance Contact your local automation technology center ATC or distributor North America and Asia Parker Hannifin 5500 Business Park Drive Rohnert Park CA 94928 Telephone 800 358 9070 or 707 584 7558 Fax 707 584 3793 Email emn support parker com Internet http www
6. AcroBasic to Signal ACR MOTIONMAX that Axis has been Referenced Set by AcroBasic to Signal ACR MOTIONMAX that Axis has been Referenced Set by AcroBasic to Signal ACR MOTIONMAX that Axis has been Referenced Set by AcroBasic to Signal ACR MOTIONMAX that Axis has been Referenced Set by AcroBasic M18 to Signal ACR MOTIONMAX that Magazine has been Set by AcroBasic when effecting a Gear change Set by ACR MOTIONMAX to signal which Gear has been Requested is a binary Set by ACR MOTIONMAX to signal which Gear has been Requested is a binary Set by ACR MOTIONMAX to signal which Gear has been Requested is a binary Set by AcroBasic to signal Spindle direction is for M3 M4 outputs 1 fwd 0 rev Set by AcroBasic to Signal that Spindle is at rest Set by AcroBasic to signal that spindle is running at the commanded speed Set By AcroBasic to signal that Spindle is at the orient Position Set by ACR MOTIONMAX to signal that the spindle is Enabled Signal will be 1 when the ACR MOTIONMAX Control is Rigid Tapping Signal will be 1 when ACR MOTIONMAX is running a Tapping cycle Set by AcroBasic to ACR MOTIONMAX informing control of 4th axis presence Set by AcroBasic to ACR MOTIONMAX signaling that 4th Axis is locked Set by ACR MOTIONMAX to signal that a contouring mode is active Set in AcroBasic to form logic to turn Spindle back on if paused Set by AcroBasic to ACR MOTIONMAX of an existing OverTravel Set to Allow Virtual Estop Button on GUI Status Signal
7. Ret AX_JogMinus CurrentAxis Jog Axis Minus Normal Speed End Sub Stop Jogging Place Code in MouseUP Event Private Sub JogPB MouseUp Button As Integer Shift As Integer X As Single Y As Single Ret AX JogStop Stops All Jogging All Axis End Sub Ret AX JogMinus CurrentAxis Jog Axis Minus Normal Speed Ret AX JogPlus CurrentA xis Jog Axis Minus Normal Speed Ret AX JogMinusFast CurrentAxis Axis Minus Fast Speed Ret AX JogPlusFast CurrentAxis Jog Axis Minus Fast Speed Ret AX JogStop Stops All Jogging Declaration Public Declare Function AX JogMinus Lib _ MotionCore DLL ByVal CurrentAxis as Integer As Integer Public Declare Function JogPlus Lib _ MotionCore DLL ByVal CurrentAxis as Integer As Integer Public Declare Function JogMinusFast Lib _ MotionCore DLL ByVal CurrentAxis as Integer As Integer Public Declare Function AX_JogPlusFast Lib _ MotionCore DLL ByVal CurrentAxis as Integer As Integer AX HomeAxis Description Calls the Homing Subroutines located in Prog0 of our AcroBasic Template AxisO is at progO line 100 Axis is at ProgO line 200 Axis2 is at ProgO line 300 Returns Integer 1 on Success 0 on Failure Arguments Global CurrentAxis as Integer 0 Axis0 1 Axisl 2 Axis2 Declaration Public Declare Function AX_HomeAxis Lib _ MotionCore DLL ByVal CurrentAxis as Integer As Integer VB Example ret AX HomeAxis CurrentA
8. al as Double As Integer Public Declare Function AX SetSov Lib MotionCore DLL _ ByVal SovVal as Double As Integer Graphics Functions AX InitializeGPH Description Initialize Graphics Engine and give it the handle of the Control to plot to this is typically a PictureBox control in VB The DLL will extract the coordinates of the window in pixels and use these coordinates form then on It is important to not move the window once it has been initialized as incorrect display of graphics could occur Returns Integer 1 on Success 0 on Failure Arguments Long Handle hwnd of the Graphics control VB Example Ret AX_InitializeGPH Declaration Declare Function AX_InitializeGPH Lib _ MotionCore DLL ByVal ProcHwnd As Long As Integer AX_SetGphView Description Informs the Graphics Engine which View Port to Use ViewPort Layout 0 Top 4 NE 1 Front 5 NW 2 Side 6 SE 3 NW 7 SW ZoomAll gt Tells Engine to refresh ViewPort to outer boundaries Depending on if Parameter UseMachWindow 1 if not it uses the Saved ViewPort coordinates Returns Integer 1 on Success 0 on Failure Arguments viewpoint as Integer ZoomAll As integer VB Example Ret AX SetGphView 0 set to top view Declaration Public Declare Function SetGphView Lib _ MotionCore DLL ByVal viewpoint As Integer ByVal ZoomAll as Integer As Integer 16 API Command Descriptions API Users Guide AX SetGraphics Description Returns
9. alid again Integer 1 on Success 0 on Failure None Call ClearSystemErr Public Declare Function SystemErr Lib _ MotionCore DLL ByVal ErrMsg as String ByVal ErrSource As String ByRef ErrLineNum As Long As Integer API Command Descriptions 17 Cycle Functions CycleStart Description Cause DLL to Start running the current Loaded G code file from the Specified Line Returns Integer 1 on Success 0 on Failure Arguments Global Linenum as Long VB Example Call AX CycleStart 0 Start Program from first Line Declaration Public Declare Function AX CycleStart Lib _ MotionCore DLL ByVal Linenum as Long As Integer Note DLL Motion List is zero based The System can run in 2 modes Auto Step To Set control System in Auto Mode Call AX BitOn 133 Set Auto Step Mode Bit 1 Call AX BitOn 134 RunMode bit on To Set control System in Step Mode Call AX BitOff 133 Set Auto Step Mode Bit 0 Call AX BitOn 134 RunMode bit on FeedHold Description Setting these bits in an Option Button will effect a feed hold to the Card This is not an API function but how we effect Feed hold Returns Nothing Arguments None VB Example Private Sub FHoldBtn Click If FHoldBtn value 1 Then Call BitOn 520 feed hold to card Call BitOn 131 set feed hold Control Signal bit CmdStart Enabled False Cycle Start Button INCYCLE False Else Call BitOff 518 Clear Feed hold to c
10. also required to full implement a finished motion system Operating System This 32 bit DLL is for use in MS Windows NT 4 0 service pack 4 0 or above 2000 or XP Pro Installation Parker Hannifin API Installation will prompt you to create a folder C Program Files Parker ACR MotionMax All references in this document will assume the users accepted the default folder When the Installation is complete a prompt to reboot the computer will be displayed In order for all of the drivers to be properly activated the computer must be rebooted before any calls to the MotionCore DLL can be placed Installation Folders and Files The Installation will generate the Axium Folder and several sub folders Docs this folder contains this document and others ParFiles this folder cantains all of the storage files incuding the configuration files Samples this folder contains a Visual C and a Visual Basic sample The MotionCore DLL file was installed in the Windows System32 folder This is done so it is accessible from anywhere on the computer Since the System32 folder is found in the Windows path you do need to reference any drive and folder information to locate it The ACR MOTIONMAX INI files is alos located in the Windows folder This file contains the location of any files you create as well as the file location of the configuration files This file can be edited with any text editor and cahnged to accommodate you specific application T
11. ard Call BitOff 519 Clear Feed hold to card Call BitOff 520 Clear Feed hold to card Call BitOff 131 Clear Feed hold Control Signal bit program running bit If Mid ControlSignals 75 1 1 Then CmdStart Enabled True Cycle Start Button End If End If End Sub 18 API Command Descriptions API Users Guide Reset Description Setting these bits in an Option Button will effect a feed hold to the Card This is not an API function but how we effect a Reset Returns Nothing Arguments None VB Example Private Sub ResetBtn Click Call AX BitOn 130 set reset bit Stop Program and reset to line 0 Auto Step Mode Description Setting these bits in an Option Button will place control in Auto Step mode This is not an API function but how we effect a Reset Returns Nothing Arguments None VB Example Set control System Auto Mode Call AX BitOn 133 Set Auto Step Mode Bit 1 Call AX BitOn 134 RunMode bit on To Set control System in Step Mode Call AX BitOff 133 Set Auto Step Mode Bit 0 Call AX BitOn 134 RunMode bit on API Users Guide API Command Descriptions 19 Acroloop I O Layout Control Signals These bits 128 255 used by the DLL for communication with the VB and AcroBasic The MotionCore DLL depends on these bits so don t use them in your Vb programs for any other purpose than as defined below If you need to use some bits for your program logic we have s
12. as Integer As Integer Bit Group Functions AX Getlnputs Description Returns Arguments VB Example Declaration Extract all 96 Inputs as 0 s or 1 s to a 1 based string See Control signals Map Integer 1 on Success 0 on Failure Global Inputs As String Inputs Space 97 Ret _ Inputs If Mid Inputs 2 1 1 Then Estop True Public Declare Function GetInputs Lib _ MotionCore DLL ByVal Inputs as String As Integer AX GetOutputs Description Returns Arguments VB Example Declaration Extract all 96 Outputs as 0 s or 1 s to a 1 based string See Control signals Map Integer 1 on Success 0 on Failure Global Outputs As String Outputs Space 97 Ret AX GetOutputs Outputs If Mid Outputs 2 1 1 Then Output 2 is on Public Declare Function GetInputs Lib _ MotionCore DLL ByVal Outputs as String As Integer AX GetControlBits Description Returns Arguments VB Example Declaration GET INTERNAL CONTROL BITS 128 255 extracts all 128 BITS from DLL Integer 1 on Success 0 on Failure Global ControlSignals As String ControlSignals Space 129 Ret AX GetControlBits ControlSignals Public Declare Function AX GetControlBits Lib _ MotionCore DLL ByVal ControlSignals As String As Integer API Users Guide API Command Descriptions 11 AX GetMasterFlags Description Get all 32 MASTERFLAGS bits from DLL Returns Int
13. ds Handle hwnd of the Applications Main Form to the DLL to spawn its threads Returns Integer 1 on Success 0 on Failure Arguments Long handle of the Applications Main Form VB Example Private Sub frmForm_Initialize Call AX InitializeControl frmMain hwnd End sub Declaration Public Declare Function AX InitializeControl Lib MotionCore DLL ByVal ProcHwnd As Long As Integer AX IsCardPresent Description Checks if Servo Controller Card is present Returns 1 if Motion card exists O if not Arguments None Declaration Public Declare Function AX_IsCardPresent Lib MotionCore DLL As Integer VB Example Private Sub frmMain_ Initialize RetVal Call IsCardPresent If RetVal 0 then Offline True MotionCard not found Else Offline False MotionCard Found End if End Sub 8 API Command Descriptions API Users Guide Parameter Functions AX UpdateParams Description Force DLL to Reload All Parameters from Parameters Cfg File Returns Integer 1 on Success 0 on Failure Arguments None VB Example Private Sub UpdateParamsBtn Click Force DLL to Reload All Parameters from Parameters Cfg File Call UpdateParams Sleep 10 Force DLL to Update Params from Parameters Cfg file to ServoCard Call AX DownloadParameters2Card Sleep 10 Declaration Public Declare Function UpdateParams Lib _ MotionCore DLL As Integer AX DownloadParameters2Card Description Force DLL t
14. eger 1 on Success 0 on Failure Arguments Global MasterFlags As String MasterFlags Space 33 VB Example Ret AX GetMasterFlags MasterFlags Declaration Public Declare Function AX_GetMasterFlags Lib _ MotionCore DLL ByVal MasterFlags As String As Integer AX_GetMcodeBits Description GET M CODE BITS 1920 TO 2047 Extracts all BITS from DLL Returns Integer 1 on Success 0 on Failure Arguments Global MCodes As String MCodes Space 129 VB Example AX GetMcodeBits MCodes Declaration Public Declare Function GetMcodeBits Lib _ MotionCore DLL ByVal MCodeBits as String As Integer AX GetAdcInputs Description Get All 8 Analog to Digital Channel Inputs in an Array Returns Integer 1 on Success 0 on Failure Arguments Global ADCs 0 To 8 As Single VB Example Ret AX GetAdcInputs ADCs 0 Declaration Public Declare Function AX_GetAdcInputs Lib _ MotionCore DLL ByRef ADCs as Single As Integer Jog and Homing Functions AX_JogMinus AX JogPlus AX JogMinusFast AX JogPlusFast AX JogStop Description Jogs the Selected Axis JogSpeed Defined in the Parameters Cfg file 12 API Command Descriptions API Users Guide Returns Integer 1 on Success 0 on Failure Arguments Global CurrentAxis as Integer 0 Axis0 1 Axisl 2 Axis2 VB Example To Jog an Axis Place Code in MouseDown Event Private Sub JogPB_MouseDown Button As Integer Shift As Integer X As Single Y As Single
15. esonn iaire aare rasan ER EE RE EREET ERE 6 G2 Code FilesFunC Ons 3 r a aa dude tat ace coto e roce ees ae a acer a doce a E dass A EE EEE OERE 6 POSEN G 7 MDI Mode Eomm nds ss nr a a leta vota cen Poen ae E TOR ene 7 V Ital AY 1 u u SE CEDERE DEDERE 7 run e 7 cep 7 e Cle Xue 7 API Command Descriptions 8 DLL Ai eee 8 InitalzeGonttol 8 AX 8 ParameterFunetions ia nalen Ade Shes i ecd ed ele did eU depen ERES 9 AX_ pd teParams INC T 9 AX DownloadParameters2 Gand eot tete 9 amp Status BOfle HOS Je ae ee ee eon retainer terrent en rit roten eee ee eee ere 9 EEC QUIT 9 AX GetDista nce 10 YONG CAU P O 10 Dit Pte icc Lp MEE 10 AN DNO EH eme M MEME 10 Pe MOR ee cove cee sa case case seen HEEL 11 Bit Group FUMCMONS EP 11 AT GG lr c e 11 MGSO UNIS c
16. et aside some User Scratch Pad bits at bit locations 224 248 that you may use as desired Bit Description 128 Cycle Start Set by AcroBasic to Signal that Cycle Start has been pressed 129 Estop Signals that Estop is On or Off 130 Reset Signals ACR MOTIONMAX System to Do a Reset 131 Feedhold Signals ACR MOTIONMAX that Feedhold is on 132 Dry Run Signals ACR MOTIONMAX to run in Dry Run Mode 133 Auto Step Signals control to Run in Auto or Step mode Auto 1 Step 0 134 OK to Run If Not in Feed Hold Estop MDI Mode or Jog Mode This Signal Is Set by ACR MOTIONMAX 135 Jog Mode Set by ACR MOTIONMAX when In Jog Mode 136 MDI Mode Set by ACR MOTIONMAX when in MDI Mode 137 Offsets Mode Set By ACR MOTIONMAX when Control is in Offsets Screen 138 In Cycle Set by ACR MOTIONMAX when Control Goes in Cycle 139 Edit Mode Set by ACR MOTIONMAX when Control Goes in edit Mode 140 JoggedInCycle Set by ACR MOTIONMAX when the Control has jogged in cycle 141 ReturnToPreJogPos Used by Mill max after a InCycle jog 142 OptionalStopActive When 1 Optional Stop will be acted on else they will be ignored 143 Control Ready Set In ACR MOTIONMAX when Software Starts and cleared When Program End 144 Homing Active Set In AcroBasic to Signal that a Homing operation is in progress 145 Control Initialized Signal set by AcroBasic that Initialization succeeded to ACR MOTIONMAX 146 Spindle Encoder Installed Used by ACR MOTIONMAX for Rigid Tapping 147 M Done Set by AcroBas
17. he files looks like the following PATHS Root C Program Files Parker ACR MotionMax Config C Program Files Parker ACR MotionMax ParFiles API Users Guide Getting Started 5 API Command Groups Command Groups DLL Initialization AX InitializeControl Start DLL this must be the first call to the DLL IsCardPresent Checks for Servo Controller Presence Parameters AX UpdateParams Force DLL to Reload All Parameters from Parameters Cfg File AX DownloadParameters2Card Force DLL to Update Params from Parameters Cfg file to ServoCard Feedback amp Status AX GetEncoderCounts Extract Encoder information from DLL in array GetDistanceToGoCoordinates Extract DISTANCE TO GO information from DLL into array AX GetAxisVelocity Extract Master velocity from DLL Bit Functions AX BitOn Turns on any bit Except Inputs BitOff Turns on any bit Bit Group Functions AX GetInputs Extracts all 96 Inputs AX GetOutputs Extracts all 96 Outputs AX GetControlBits Extracts BITS 128 255 ACR MOTIONMAX Control Signals AX GetMasterFlags Extracts BITS 512 543 Master Flags AX GetMcodeBits Extracts BITS 1920 2047 ACR MOTIONMAX MCode Bits AX GetAdcInputs Extracts ADC Channels 0 7 into Array G Code File Functions LoadGCodeFile Send DLL a G Code Filename to load in the Motion List AX GetGCodeLineNumber Extract Current Gcode Line Number being executed in cycle 6 API Command Groups API Users Guide Jogging amp Homing
18. ic to Signal that a M code has finished successfully 148 S Done Set By AcroBasic to Signal that a S code has finished successfully 149 T Done Set By AcroBasic to Signal that a T code has finished successfully 150 M Strobe Set By ACR MOTIONMAX when a M Code has been Sent to be serviced by AcroBasic 151 S Strobe Set By ACR MOTIONMAX when a S Code has been Sent to be serviced by AcroBasic 20 Map API Users Guide 152 T Strobe AcroBasic 153 Tool Change Active 154 Tool Change Done 155 Z T change Position 156 Tool Seek Active 157 Tool Seek Done 158 Tool Seek Direction 159 Tool Seek Speed 160 MPG Enabled 161 MPG X Select 162 MPG Y Select 163 MPG Z Select 164 MPG 4 Select 165 MPG 5 Select 166 X 1 Mode Select Pendant Moves 167 X1 Mode Select Pendant Moves 168 X10 Mode Select Pendant Moves 169 X100 Mode Select Pendant Moves 170 X Home Done 171 Y Home Done 172 Z Home Done 173 4 Axis Home Done 174 5th Axis Home Done 175 Magazine Ref Done Referenced 176 Gear Change Active 177 Gear Change bit 0 code 178 Gear Change bit 1 code 179 Gear Change bit 2 code 180 Spindle Direction Bit 181 0 Speed Arrival bit 182 Speed Arrival bit 183 Orient Complete 184 Spindle Enable 185 Rigid Tapping Active 186 Tapping Active 187 4th Axis Present 188 4th Axis Clamped 189 Contouring 190 SpindleRunning 191 Reserved 192 Over Travel Active 193 EnableVirtualEstop 194 V Estop Status 195 Re
19. o Update Params from Parameters Cfg file to ServoCard Returns Integer 1 on Success 0 on Failure Arguments None VB Example Private Sub UpdateParamsBtn Click Force DLL to Reload All Parameters from Parameters Cfg File Call UpdateParams Sleep 10 Force DLL to Update Params from Parameters Cfg file to ServoCard Call AX DownloadParameters2Card Sleep 10 Declaration Declare Function AX DownloadParameters2Card Lib _ MotionCore DLL As Integer Feedback amp Status Functions AX GetEncoderCounts Description Extract Encoder information from DLL in array Returns Integer 1 on Success 0 on Failure Arguments Global EncoderArray 0 To 8 As Long VB Example Private Sub IOTIMER Timer Ret AX GetEncoderCounts EncoderArray 0 Get ABS Encoder Pos array API Users Guide API Command Descriptions 9 AbsReadout 0 Caption Format EncoderArray 0 Val Resolution0 WorkOffsetsArray 0 00 0000 AbsReadout 1 Caption Format EncoderArray 1 Val Resolution1 WorkOffsetsArray 1 00 0000 AbsReadout 2 Caption Format EncoderArray 2 Val Resolution2 WorkOffsetsArray 2 CurLength 00 0000 AbsReadout 3 Caption Format EncoderArray 3 Val Resolution3 WorkOffsets Array 3 000 000 End sub Declaration Public Declare Function AX GetEncoderCounts Lib MotionCore DLL _ ByRef EncoderArray as Long As Integer AX GeiDistanceToGoCoordinates Description Extrac
20. parkermotion com Europe non German speaking Parker Hannifin 21 Balena Close Poole Dorset England BH17 7DX Telephone 44 0 1202 69 9000 Fax 44 0 1202 69 5750 Email EMDTech Help parker com Automation 2 Getting Started Germany Austria Switzerland Parker Hannifin Postfach 77607 1720 Robert Bosch Str 22 D 77656 Offenburg Telephone 49 0 781 509 0 Fax 49 0 781 509 176 Email sales hauser parker com Italy Parker Hannifin 20092 Cinisello Balsamo Milan Italy via Gounod 1 Telephone 49 0 781 509 0 Fax 49 0 781 509 176 Email sales sbc parker com Technical Support E mail emn support parker com API Users Guide Contents GENE SIGHED nase 5 ee H Y 5 Operating System m 5 seusscessavescetesseuces avosces 5 Installation Folders and Files eR 5 API Command Groups areas a AAG AO 6 joniiruEbvIL 6 BLEG Ini aaliZallOD 6 AMATI LES dares d ie cmd e Kee deuda dcs euer esee 6 Beedback Status ies ace totae sete see bated ane ed esie oe e ees Ped E and Erde 6 Bil FUNC HONS 6 Bit Group tores or
21. s None VB Example Call AX_StartMDI Sleep 100 14 API Command Descriptions API Users Guide Declaration Public Declare Function StartMDI Lib MotionCore DLL _ As Integer AX StopMDI Description End MDI Mode Signal to DLL Returns Integer 1 on Success 0 on Failure Arguments None VB Example Call AX_StopMDI Sleep 100 Declaration Public Declare Function StopMDI Lib MotionCore DLL _ As Integer AX ExecuteMDI Description Send MDI Command String to DLL to Execute Returns Integer 1 on Success 0 on Failure Arguments Global MDICmdStr as String VB Example Call AX ExecuteMDI MDICmdStr Sleep 100 Declaration Public Declare Function ExecuteMDI Lib MotionCore DLL _ ByVal MDICmdStr as String As Integer Virtual Overrides AX SetFov AX SetRov AX SetSov Description Sets the Feed Rapid Spindle Speed Overrides for machines not using External Override POTS or Switches Returns Integer 1 on Success 0 on Failure Arguments Global OverrideVal as Double VB Example Call AX SetFov OVRSlider 0 value 0 01 Set Feedrate OVR Call SetRov OVRSlider 0 value 0 01 Set Rapid OVR Call SetSov OVRSlider 0 value 0 01 Set Spindle Speed OVR Declaration Public Declare Function SetFov Lib MotionCore DLL _ ByVal FovVal as Double As Integer API Users Guide API Command Descriptions 15 Public Declare Function SetRov Lib MotionCore DLL _ ByVal RovV
22. served for future use 196 Reserved for future use 197 Reserved for future use 198 Reserved for future use API Users Guide Set By ACR MOTIONMAX when a T Code has been Sent to be serviced by Set by ACR MOTIONMAX DLL to Signal M6 Sub needs to do a change Set By AcroBasic in M6 Code to signal a tool change has finished ok Set By AcroBasic to Signal that Z is at the Tool change Position Set in AcroBasic T Strobe Code to Signal that Magazine is Moving Set by AcroBasic to Signal that the seek operation is complete Set By ACR MOTIONMAX to Signal bi directional Magazine direction to Move Set By AcroBasic for Magazines that have Slow Down Capabilities Set AcroBasic to Signal ACR MOTIONMAX that Pendant is Enabled Set by AcroBasic to Signal ACR MOTIONMAX that Axis is under Pendant Control Set by AcroBasic to Signal ACR MOTIONMAX that Axis is under Pendant Control Set by AcroBasic to Signal ACR MOTIONMAX that Axis is under Pendant Control Set by AcroBasic to Signal ACR MOTIONMAX that Axis is under Pendant Control Set by AcroBasic to Signal ACR MOTIONMAX that Axis is under Pendant Control Set by AcroBasic to Signal ACR MOTIONMAX that X 1 Mode is selected for Set by AcroBasic to Signal ACR MOTIONMAX that X1 Mode is selected for Set by AcroBasic to Signal ACR MOTIONMAX that X10 Mode is selected for Set by AcroBasic to Signal ACR MOTIONMAX that X100 Mode is selected for Set by AcroBasic to Signal ACR MOTIONMAX that Axis has been Referenced Set by
23. t Distance to Go information from DLL in array Returns Integer 1 on Success 0 on Failure Arguments Global DTGArray 0 To 8 As Long VB Example Ret AX GetDistanceToGoCoordinates DTGArray 0 Declaration Public Declare Function GetDistanceToGoCoordinates Lib _ MotionCore DLL ByRef IDTGArray As Long As Integer AX GetAxisVelocity Description Extract Master velocity from DLL Returns Integer 1 on Success 0 on Failure Arguments Global MasterVel 0 To 8 As Double VB Example Ret AX GetAxisVelocity mastervel 0 Get Master velocity Display Current Profile Feedrate FeedsReadout 3 Caption Format mastervel 0 0000 00 Declaration Public Declare Function GetAxisVelocity Lib _ MotionCore DLL ByRef DMasterVel as Double As Integer Bit Functions AX BitOn Description Turns on any bit except the Inputs Returns Integer 1 on Success 0 on Failure Arguments Global BitNum as Integer VB Example Call Ax BitOn 512 set Kill Moves to Card Declaration Public Declare Function BitOn Lib _ MotionCore DLL ByVal BitNum as Integer As Integer 10 API Command Descriptions API Users Guide AX BitOff Description Returns Arguments VB Example Declaration Turns off any bit except the Inputs Integer 1 on Success 0 on Failure Global BitNum as Integer Call Ax BitOff 512 Clear Kill Moves to Card Public Declare Function AX BitOff Lib _ MotionCore DLL ByVal BitNum
24. used by ACR MOTIONMAX of VEstop Map 21 199 200 Reserved for future use 202 Program Running 203 Program Modified 204 to 212 213 Digital FOV 214 Digital FOV Bitl 215 Digital FOV Bit2 216 Digital FOV Bit3 217 Digital ROV 218 Digital ROV Bitl 219 Digital ROV Bit2 220 Digital ROV Bit3 221 Digital SOV BitO 222 Digital SOV Bitl 223 Digital ROV Bit2 224 Digital ROV Bit3 225 to 248 249 Reserved 250 User Error bit 0 MOTIONMAX 251 User Error bit 1 252 User Error bit 2 253 User Error bit 3 254 User Error bit 4 255 User Error Bit 5 Reserved for future use Mcode Bits These bits 1920 2047 these bits are reserved and should not be used other than to set an Mcode Function MO M126 that the Mcode Processor will process 22 Map Set by ACR MOTIONMAX signals that a G Code program is running InCycle Set by ACR MOTIONMAX when the current program has been altered Reserved for future use Don t Use 4 bit Code for External Feedrate Override Switches to Create logic 0 100 96 4 bit Code for External Rapid Override Switches 4 bit Code for External Rapid Override Switches Scratch Pad bits Bits for the User to use as status bits Used by ACR MOTIONMAX for internal Error Messages display Bits 250 to 255 form a binary code for Error Messages to send to ACR See Setting Up User Defined Error Messages API Users Guide
25. xis Home the Selected Axis API Users Guide API Command Descriptions 13 Place VB Code in a button Home X Axis Ret HomeAxis 0 HomingActiveLbITXT Caption Homing amp AxisOLetter Sleep 500 WaitForX DoEvents If Mid ControlSignals 2 1 1 Or Mid ControlSignals 3 1 1 Then Goto HomeErr if Estop exit Tf X not home yet done yet loop If Mid ControlSignals 43 1 0 Then Goto WaitForX G Code Functions AX LoadGCodeFile Description Send DLL a G Code Filename to load in the Motion List Returns Integer 1 on File Load Success 0 on Failure Arguments Global GCodeFilename as String VB Example Ret AX LoadGCodeFile GCodeFilename send file to DLL Declaration Public Declare Function LoadGCodeFile Lib _ MotionCore DLL ByVal filename As String As Integer Note If File has Error the Error message System will pick it up to allow you to see what line caused the Error AX GetGCodeLineNumber Description Extract Current Gcode Line Number being executed in cycle Returns Integer 1 on Success 0 on Failure Arguments Global gCodeLineNumber As Long VB Example Ret AX GetGCodeLineNumber gCodeLineNumber cur Line from DLL Declaration Public Declare Function AX GetGCodeLineNumber Lib _ MotionCore DLL ByRef gCodeLineNumber As Long As Integer MDI Mode Functions AX StartMDI Description Start MDI Mode Signal to DLL Returns Integer 1 on Success 0 on Failure Argument
Download Pdf Manuals
Related Search
Related Contents
Répartition des contenus du cours FIA 330-2 Trekstor i.Beat sweez FM, 512MB, Silver Copyright © All rights reserved.
Failed to retrieve file