Parker Hannifin acr-motion max api users guide Graphics Functions, AXInitializeGPH, AXSetGphView

Page 16

Public Declare Function AX_SetRov Lib "MotionCore.DLL" _

(ByVal RovVal 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 -> 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 AX_SetGphView Lib _

"MotionCore.DLL" (ByVal viewpoint As Integer, ByVal ZoomAll as Integer) As Integer

16 - API Command Descriptions

API Users Guide

Image 16
Contents API Technical Assistance Parker Hannifin Corporation All Rights ReservedContents Acroloop I/O Layout Getting Started IntroductionAPI Command Groups MDI Mode Commands Error MessageJogging & Homing Virtual OverridesAPI Command Descriptions DLL InitializationAXInitializeControl AXIsCardPresentAXUpdateParams Parameter FunctionsFeedback & Status Functions AXDownloadParameters2CardBit Functions AXGetDistanceToGoCoordinatesAXGetAxisVelocity AXBitOnBit Group Functions AXBitOffAXGetInputs AXGetOutputsJog and Homing Functions AXGetMasterFlagsAXGetMcodeBits AXGetAdcInputsAXHomeAxis Ret = AXJogPlus CurrentAxisRet = AXJogPlusFast CurrentAxis DescriptionMDI Mode Functions Code FunctionsAXLoadGCodeFile AX GetGCodeLineNumberVirtual Overrides AXStopMDIAXExecuteMDI AXSetFov AXSetRov AXSetSovGraphics Functions AXInitializeGPHAXSetGphView ViewPort LayoutError Message System AX SetGraphicsAXSystemErr AXClearSystemErrCycle Functions AXCycleStartFeedHold This is not an API function but how we effect Feed holdAuto/Step Mode ResetThis is not an API function but how we effect a Reset Control Signals MapAPI Users Guide Map Mcode Bits