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.
Getting Started ..................................................................................................................................... 5
Installation Folders and Files........................................................................................................................5
API Command Groups ........................................................................................................................ 6
Feedback & Status ........................................................................................................................................................6
Bit Functions................................................................................................................................................................. 6
Bit Group Functions .....................................................................................................................................................6
(Bit Group Functions).................................................................................................................................................11
(Jog and Homing Functions).......................................................................................................................................12
Place VB Code in a button ......................................................................................................................................14
Control Signals ...........................................................................................................................................................20
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 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\ACRMotionMax. 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. The files looks like the following…
AX_InitializeControlStart DLL … this must be the first call to the DLL
AX_IsCardPresentChecks for Servo Controller Presence
Parameters
AX_UpdateParamsForce DLL to Reload All Parameters from Parameters.Cfg File
AX_DownloadParameters2CardForce DLL to Update Params from Parameters.Cfg file to ServoCard
Feedback & Status
AX_GetEncoderCountsExtract Encoder information from DLL in array
AX_GetDistanceToGoCoordinates Extract DISTANCE TO GO information from DLL into array
AX_GetAxisVelocityExtract Master velocity from DLL
Bit Functions
AX_BitOnTurns on any bit (Except Inputs)
AX_BitOffTurns on any bit
Bit Group Functions
AX_GetInputsExtracts all 96 Inputs
AX_GetOutputsExtracts all 96 Outputs
AX_GetControlBitsExtracts BITS [128-255] ACR-MOTIONMAX Control Signals
AX_GetMasterFlagsExtracts BITS [512-543] Master Flags
AX_GetMcodeBitsExtracts BITS [1920-2047] ACR-MOTIONMAX MCode Bits
AX_GetAdcInputsExtracts ADC Channels (0-7) into Array
G-Code File Functions
AX_LoadGCodeFileSend DLL a G-Code Filename to load in the Motion List
AX_GetGCodeLineNumberExtract Current Gcode Line Number being executed in cycle
6 - API Command GroupsAPI Users Guide
Jogging & Homing
AX_JogMinusJOG SELECTED AXIS MINUS DIRECTION
AX_JogPlusJOG SELECTED AXIS PLUS DIRECTION
AX_JogMinusFastJOG SELECTED AXIS MINUS DIRECTION at Fast Rate
AX_JogPlusFastJOG SELECTED AXIS PLUS DIRECTION at Fast Rate
AX_JogStopSTOP ALL JOGGING
AX_HomeAxisHOME THE SELECTED AXIS
MDI Mode Commands
AX_StartMDIStart MDI Mode Signal to DLL
AX_StopMDIStop MDI Mode Signal to DLL
AX_ExecuteMDIExecute MDI command String to DLL
Virtual Overrides
AX_SetFovSet Feedrate override manually with sliders
AX_SetRovSet Rapid rate override manually with sliders
AX_SetSovSet Spindle override manually with sliders
Graphics
AX_InitializeGPHInitialize Graphics Engine & pass handle of the control area
AX_SetGphViewTell Graphics which ViewPort to plot
AX_ZoomWindowPass Zoom Coordinates (in Pixies) to the Graphics Engine
AX_SetGraphics Turn Graphics Generator on/off
Error Message
AX_SystemErrGet the System errors from the DLL if any
AX_ClearSystemErrAcknowledges & Clears the Error from the DLL
Cycle Functions
AX_CycleStartStarts Loaded G Code File Running
FeedholdStop the Program running until Cleared
ResetStop Current programs and effects a M30
Auto/StepSet this bit (133) to tell DLL to Cycle in Auto
Clear this bit to run in Step
API Users GuideAPI Command Groups - 7
Loading...
+ 15 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.