ACRMotion COMponents ActiveX Userguide
ACRMotion COMponents ActiveX Userguide
Warning — 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.
© 2003-2005 Parker Hannifin Corporation
All Rights Reserved
ActiveX is a trademark of Microsoft Corporation.
Technical Assistance
Contact your local automation technology center (ATC) or distributor.
emn_support@parker.com
- iii -
GetValue ............................................................................................................................... 29
IsFlagSet............................................................................................................................... 29
Events ............................................................................................................................................30
DataChanged........................................................................................................................ 30
Numeric Control Properties, Methods and Events ...................................................................31
Properties ......................................................................................................................................33
ParameterSelect ................................................................................................................... 33
ParameterPlacement ............................................................................................................ 33
IndexMask............................................................................................................................. 33
PollRate................................................................................................................................. 33
Autosize ................................................................................................................................ 34
IndexMaskCSV ..................................................................................................................... 34
ConnectionControl ................................................................................................................ 34
Methods .........................................................................................................................................35
ParameterLabel .................................................................................................................... 35
SetLong................................................................................................................................. 35
SetReal ................................................................................................................................. 36
SetGlobal .............................................................................................................................. 36
GetValue ............................................................................................................................... 37
GetParamType...................................................................................................................... 37
GetParamInfo........................................................................................................................ 38
GetParamAddr ...................................................................................................................... 39
GetLocalAddr ........................................................................................................................ 39
GetLocalArrayAddress.......................................................................................................... 40
GetStatus .............................................................................................................................. 40
GetACRMemory.................................................................................................................... 41
GetACRGroup....................................................................................................................... 41
GetACRCustom .................................................................................................................... 42
GetACRGroupRaw ............................................................................................................... 42
SetACRMemory .................................................................................................................... 43
SetACRMemoryMask ........................................................................................................... 44
SetParamLongMask ............................................................................................................. 44
InitPerformance..................................................................................................................... 45
GetPerformance.................................................................................................................... 45
AddACRGroup ...................................................................................................................... 45
AddACRGroupRaw............................................................................................................... 46
AddACRCustom.................................................................................................................... 46
AddACRMemory ................................................................................................................... 47
DelStatus .............................................................................................................................. 47
Events ............................................................................................................................................48
DataChanged........................................................................................................................ 48
Moves Control Properties and Methods ....................................................................................49
Properties ......................................................................................................................................50
MoveProfile ........................................................................................................................... 50
MoveVel ................................................................................................................................ 50
MoveFVel .............................................................................................................................. 50
MoveAcc ............................................................................................................................... 50
MoveMode ............................................................................................................................ 51
MoveAbsolute ....................................................................................................................... 51
MoveCounter ........................................................................................................................ 51
ArcMode................................................................................................................................ 51
ArcAbsolute........................................................................................................................... 52
ArcCCW ................................................................................................................................ 52
Connectioncontrol ................................................................................................................. 52
Methods .........................................................................................................................................53
Moves.................................................................................................................................... 53
- iv -
MoveBatch ............................................................................................................................ 53
Arc......................................................................................................................................... 54
MoveStop .............................................................................................................................. 55
SendRes ............................................................................................................................... 55
GetMoveCounter................................................................................................................... 56
SetMoveCounter ................................................................................................................... 56
Feedrate Control Properties and Methods.................................................................................57
Properties ......................................................................................................................................57
MotionProfile ......................................................................................................................... 57
FOV....................................................................................................................................... 57
MinFOV ................................................................................................................................. 58
MaxFOV ................................................................................................................................ 58
ConnectionControl ................................................................................................................ 58
Methods .........................................................................................................................................59
SetFOV ................................................................................................................................. 59
SetROV ................................................................................................................................. 59
CANOpen Control Properties and Methods...............................................................................60
Properties ......................................................................................................................................61
MasterNodeID....................................................................................................................... 61
BitRate .................................................................................................................................. 61
CyclicPeriod .......................................................................................................................... 61
NumSlaveNodes ................................................................................................................... 61
ConnectionControl ................................................................................................................ 62
Methods .........................................................................................................................................63
CalcBitRate ........................................................................................................................... 63
CalcCyclicPeriod................................................................................................................... 63
SetSlaveNodeID ................................................................................................................... 63
GetSlaveNodeID ................................................................................................................... 64
StartCANOpen ...................................................................................................................... 64
ResetCANOpen .................................................................................................................... 64
GetCANOpenStatus.............................................................................................................. 65
TeachPanel Control Properties and Methods............................................................................66
Properties ......................................................................................................................................67
ActualPos .............................................................................................................................. 67
Axis ....................................................................................................................................... 67
DriveEnable .......................................................................................................................... 67
DriveFault.............................................................................................................................. 67
PosLimit ................................................................................................................................ 68
NegLimit ................................................................................................................................ 68
Home..................................................................................................................................... 68
TeachArrayIndex................................................................................................................... 68
Velocity.................................................................................................................................. 69
Acceleration .......................................................................................................................... 69
TargetPosition....................................................................................................................... 69
PPU....................................................................................................................................... 69
JogMode ............................................................................................................................... 70
HomeDirectionPositive.......................................................................................................... 70
DisableDriveOnEStop ........................................................................................................... 70
Pollrate .................................................................................................................................. 70
Connectioncontrol ................................................................................................................. 71
Methods .........................................................................................................................................72
JogNeg.................................................................................................................................. 72
JogPos .................................................................................................................................. 72
JogStop ................................................................................................................................. 72
EnableDrive .......................................................................................................................... 73
KillAllMotion .......................................................................................................................... 73
-v-
HomePos .............................................................................................................................. 74
ClearPos ............................................................................................................................... 74
CapturePos ........................................................................................................................... 74
ClearArray............................................................................................................................. 75
SaveArray ............................................................................................................................. 75
PlaybackPanel Control Properties and Methods ......................................................................76
Properties ......................................................................................................................................76
StartingIndex......................................................................................................................... 76
CurrentIndex ......................................................................................................................... 77
Velocity.................................................................................................................................. 77
Acceleration .......................................................................................................................... 77
Deceleration.......................................................................................................................... 77
StopRamp ............................................................................................................................. 78
MasterProfile......................................................................................................................... 78
Connectioncontrol ................................................................................................................. 78
Methods .........................................................................................................................................79
ImportArray ........................................................................................................................... 79
ImportFromTeach ................................................................................................................. 79
AddEvent .............................................................................................................................. 79
Playback................................................................................................................................ 80
StepPlayback ........................................................................................................................ 80
SaveArray ............................................................................................................................. 80
PausePlayback ..................................................................................................................... 81
ResumePlayback .................................................................................................................. 81
StopPlayback ........................................................................................................................ 81
GetValue ............................................................................................................................... 82
SetValue................................................................................................................................ 82
StatusPanel Control Properties Methods and Events ..............................................................83
Properties ......................................................................................................................................84
Pollrate .................................................................................................................................. 84
ConnectionControl ................................................................................................................ 84
Methods .........................................................................................................................................85
GetMasterBitStatus............................................................................................................... 85
GetAxisBitStatus ................................................................................................................... 85
GetMasterNumericStatus...................................................................................................... 86
GetAxisNumericStatus.......................................................................................................... 87
Events ............................................................................................................................................88
DataChanged........................................................................................................................ 88
DriveTalk Control Properties and Methods ...............................................................................89
Properties ......................................................................................................................................89
AxesMask ............................................................................................................................. 89
EnableDriveTalk.................................................................................................................... 90
DriveDataMask ..................................................................................................................... 90
DriveTalkMode...................................................................................................................... 90
ConnectionControl ................................................................................................................ 90
Methods .........................................................................................................................................91
GetDriveDataRequest........................................................................................................... 91
GetConfig .............................................................................................................................. 91
SendConfig ........................................................................................................................... 92
GetErrorLog .......................................................................................................................... 92
SendASTFile......................................................................................................................... 93
EStop Control Properties and Methods .....................................................................................94
Properties ......................................................................................................................................95
ClearColor............................................................................................................................. 95
StopColor .............................................................................................................................. 95
ClearLabel............................................................................................................................. 95
- vi -
StopLabel.............................................................................................................................. 95
DisableDriveOnEStop ........................................................................................................... 96
Connectioncontrol ................................................................................................................. 96
Methods .........................................................................................................................................97
SendEStop............................................................................................................................ 97
ClearEStop............................................................................................................................ 97
- vii -
Overview
The .NET version of Motion COMponents for ACR series motion controllers acts as a wrapper for
the ComACRsrvr.dll, which you can use with your motion control applications. For more
information about the ComACRsrvr.dll, see the
The following illustrates the interaction between a personal computer and control system.
The Motion COMponents let you access the ComACRsrvr.dll using many different Windows
based programming environments. The following diagram illustrates this concept.
- viii -
Connection Control Properties and Methods
The Connection Control is the primary control responsible for creating the communication
connection with the ACR controller from the application. It will have a group of properties and
methods to facilitate communication.
Properties
• Boolean OnConnectTest
• String ComVersion
• Long Port
• Long BPS
• Long Bus
• Long Card
• String IPAddr
• Boolean IsOffline
• Long Transport
• String USBSerialNumber
• Long nDevice
Methods
OnConnectTest
Description A wrapper Boolean property that determines the Connection and verified
after connection is established. If it is true then both Connect method and
TestConnect method will be called. If it is False then only the Connect
method will be called.
Property OnConnectTest
Return Type Boolean
Range N/A
Default True
Example ACRConnection1.OnConnectTest=True
ComVersion
Description A wrapper read only string that holds the version number of the
comACRSrvr.dll file.
Property ComVersion
Return Type String
Range N/A
Default N/A
Example Dim strVer as String
strVer = ACRConnection1.ComVersion
Port
Description A wrapper long used to set the communications port of the computer to
which the serial ACR device is connected. Only used for RS232 Serial
connections.
Property Port
Return Type Long
Range 1 – 256
Default 1
Example ACRConnection1.Port =1 ‘For COM1 port
BPS
Description A wrapper long used to set the speed of the serial port in Bits per
Second for the serial port specified by Port. Only used for RS232 Serial
communication.
Property BPS
Return Type Long
Range 9600, 19200, 38400
Default 38400
Example ACRConnection1.BPS =38400
Property BUS
Return Type Long
Range 0-1
Default 0 (PCI)
Example ACRConnection1.Bus =0 ‘For PCI Bus
Card
Description A wrapper long to set the index number of the ACR Controller. Only
used for Bus communication.
Property Card
Return Type Long
Range N/A
Default 0
Example ACRConnection1.Card =1
IPAddr
Property IPAddr
Return Type String
Range N/A
Default 192.168.10.40
Example ACRConnection1.IPAddr = “172.20.22.10”
IsOffline
Property IsOffline
Return Type Boolean
Range N/A
Default TRUE
Example Dim blnIsOffline as Boolean
blnIsOffline = ACRConnection1.IsOffline
Property Transport
Return Type Long
Range 0-4
Default N/A
Example ACRConnection1.Transport = 3 ‘Ethernet connection
USBSerialNumber
Property USBSerialNumber
Return Type String
Range N/A
Default N/A
Example Dim strUSBSerialNumber as String
strUSBSerialNumber = ACRConnection1.USBSerialNumber
nDevice
Description Specifies the ACR model.
Property nDevice
Return Type Long
Range 0-8
Default 8
Example Dim lngnDevice as long
lngnDevice = ACRConnection1.nDevice
Connect
Description Establish a connection of type transport to an ACR Controller.
Parameters
nTransport Indicates the physical communication layer being used, or no layer when
offline. (0-Offline, 1- Bus, 2- Serial, 3-Ethernet, 4-USB)
All Interfaces initially come up with transport = Offline. Each transport type has its own
data requirements for connecting.
Bus The nIndex value must be the card index assigned during installation. To
find this card number see parameter P7041, or DIP switch setting on
some cards. The Bus property must be set to ISA or PCI depending on
the card type.
Serial The nIndex value is the index of the card, which is typically zero. In a
daisy chain configuration, this number identifies the specific controller.
The Port must be set to the PC communications port that will be used,
and the BPS must be set to the desired bits per second rate.
Ethernet The nIndex value can be any value. The IPAddrproperty must be set to
the IP address of the ACR controller.
USB The nIndex value is the unique Serial ID of the ACR device. If this is set
to zero, the first ACR USB device found will be connected.
Any transport specific properties (i.e. IPAddr for Ethernet, etc.) should be
set prior to calling Connect method.
Example ACRConnection1.IPAddr=”192.9.200.58”
ACRConnection1.Transport=3
Call ACRConnection1.Connect (ACRConnection1.Transport, 0)
Signature TestConnect ()
Parameters N/A
Return A command is sent and the return value verified. If this process
succeeds, an ACR's presence is presumed and TRUE is returned.
Otherwise FALSE is returned. When the transport type = Offline, this
method always returns FALSE.
SetWatchDog
Description Modifies the Watchdog values.
Parameters
nInterval The time in milliseconds, between sending test keep-alive strings to the
ACR device.
nRetries The number of times the keep-alive test string message is sent to the
ACR device, with no valid reply, before attempting to reconnect to the
ACR device.
Return The Ethernet transport currently has Watchdog functionality. The ACR
controller uses a separate port to receive a coded command string
(keep-alive message), and echoes it back to the sender. If the
Communications Server fails to get a response to a keep-alive message
in nInterval*nRetries milliseconds, the Communications Server attempts
to reconnect
Signature Disconnect ()
Parameters N/A
The Terminal Control is dual pane multi-line edit control. The right pane is used as an editor and
the left pane is used as a terminal where it displays the output of the ACR Controller as well as
inputting and sending command to the ACR Controller. There are also buttons below the editor
and terminal used to download and upload programs, downloading OS etc.
Properties
• Long DataWaitRate
• OLE_COLOR TerminalBackcolor
• OLE_COLOR TerminalForecolor
• OLE_COLOR EditorBackcolor
• OLE_COLOR EditorForecolor
• Object Connectioncontrol
Methods
• String DataRead ()
• Void DataWrite (send as Variant)
• Void DownloadFile (bstrPrg as String, bstrFile as String)
• Void DownloadOS (nDevice as Long, bstrFile as String)
• Long GetDownloadStatus (nTotal as Long, nBytes as Long)
• Void UploadFile (bstrPrg as String, bstrFile as String)
• Void StopDownload ()
Events
• Void DataWaiting ()
DataWaitRate
Description This property is a wrapper property setting the minimum time between
status alerts in milliseconds. The default value is 50 ms.
Property DataWaitRate
Return Type Long
Range N/A
Default 50 ms
Example ACRTerminalcontrol1.DataWaitRate=100
TerminalBackColor
Description The back color for the Terminal rich text box can be changed to user
chosen color.
Property TerminalBackColor
Return Type OLE_COLOR
Range N/A
Default vbBlue
Example ACRTerminalcontrol1.TerminalBackcolor =rgb (0, 0, 153)
TerminalForeColor
Description The fore color for the Terminal rich text box can be changed to user
chosen color.
Property TerminalForeColor
Return Type OLE_COLOR
Range N/A
Default vbWhite
Example ACRTerminalcontrol1.TerminalForecolor =rgb (255, 255, 255)
EditorBackColor
Description The back color for the Editor rich text box can be changed to user
chosen color.
Property EditorBackColor
Return Type OLE_COLOR
Range N/A
Default vbWhite
Example ACRTerminalcontrol1.EditorBackcolor =rgb (255, 255, 255)
Property EditorForeColor
Return Type OLE_COLOR
Range N/A
Default vbBlack
Example ACRTerminalcontrol1.EditorForeColor =rgb (0,0,0)
Connectioncontrol
Description This property will hold the reference of the instance of connection
control.
Property ConnectionControl
Return Type Object
Range N/A
Default N/A
Example Set ACRTerminalcontrol1.ConnectionControl=ACRConnection1
DataRead
Description A wrapper method used to get any ASCII data from the ACR controller.
This method wraps the method of Read available in the Terminal
interface of ComACRsrvr.dll. This method is used to read the Data
available in the buffer of ACR Controller. This method is mainly used to
display the output of ACR Controller in the left-pane of Terminal
controller.
Signature DataRead ()
Parameters N/A
DataWrite
Description This method wraps the method of Write available in the Terminal
interface of ComACRsrvr.dll. This method is used to send the command
to the ACR Controller.
Parameters
Return N/A
Parameters
Return N/A
DownloadOS
Description This method wraps the method of DownloadOS available in the Utility
interface of ComACRsrvr.dll. This method is used to download the new
Operating system to the controller.
Parameters
bstrFile Specifies the fully qualified file name of the new Operating System.
Return N/A
Parameters
Uploadfile
Description This method wraps the method of “Uploadfile” available in the Utility
interface of ComACRsrvr.dll. Uploads the AcroBasic Program or PLC
program from the ACR to the PC.
Parameters
bstrFile Specifies the fully qualified path and name of the file to download.
Return This method blocks any other instruction from running until the upload is
complete. There is no checking of the code uploaded.
Description This method wraps the method of “StopDownload” available in the Utility
interface of ComACRsrvr.dll. This method aborts the file transfer to the
Controller.
Signature StopDownload ()
Parameters N/A
Return N/A
Example ACRTerminalcontrol1.StopDownload ()
DataWaiting
Description A wrapper callback method is fired whenever the Data available in the
Buffer of ComACRsrvr.dll. Using this event the terminal emulator
displays the result.
Signature DataWaiting ()
Parameters N/A
Return N/A
The Bit Status Control will be an array of up to 32-bit indicators with labels. The number of bit
indicators is dependent on the value of the property BitMask. Bit Data are retrieved in 32-bit
blocks. The Bitlabels will constantly update the values of the bits with a color for TRUE and a
different color for FALSE.
Properties
• Long BitSelect
• Long BitPlacement
• Long Pollrate
• OLE_COLOR TrueColor
• OLE_COLOR FalseColor
• Variant BitMask
• String BitMaskCSV
• Boolean AutoSize
• Object ConnectionControl
Methods
• Void BitLabel (strBitName as String)
• Void SetBit ()
• Void ClearBit ()
• Boolean GetValue ()
• Boolean IsFlagSet (nFlgGrp as Long, nFlgNdx as Long)
Events
• Void DataChanged ()
BitSelect
Description Represents the user-selected bit number.
Property BitSelect
Return Type Long
Range N/A
Default N/A
Example ACRBitStatus1.BitSelect=550
BitPlacement
Description Represents the position of the bit within the 32-bit response. Range 0-31.
This is read only property.
Property BitPlacement
Return Type Long
Range N/A
Default N/A
Example Dim lngPlacement as Long
‘If BitSelect=34 then result is 2
lngPlacement=ACRBitStatus1.BitPlacement
Pollrate
Description Refreshing of bits with ACR Controller will take place based on the
Pollrate. Default is set to 100 ms.
Property Pollrate
Return Type Long
Range N/A
Default 10 ms
Example ACRBitStatus1.Pollrate=100 ‘100 milliseconds
TrueColor
Description OLE_Color data type has to be set for this property. If the bit is set to
true then the LED color is TrueColor.
Property TrueColor
Return Type OLE_COLOR
Range N/A
Default VbGreen
Example ACRBitStatus1.TrueColor=VbGreen
Property FalseColor
Return Type OLE_COLOR
Range N/A
Default VbGrey
Example ACRBitStatus1.FalseColor=VbRed ‘If Bit not set, LED color is Red
BitMask
Description This is a variant value representing the mask of 32 bits. The control will
show only the bits that are specified in the mask. Input should be
Hexadecimal format.
Property BitMask
Return Type Variant
Range 0 - FFFFFFFF
Default N/A
Example ACRBitStatus1.BitMask = “FFFFFFFF” ‘it will show all 32 bits
BitMaskCSV
Description This is a comma-separated value of string type. The control will show
only the bits that are specified in the BitMaskCSV. Comma separated
values can be any value between 0 and 31.
Property BitMaskCSV
Return Type String
Range 0-31
Default N/A
Example ACRBitStatus1.BitMaskCSV = “0,1,3” ‘it will show bit 0,1, and 3
AutoSize
Description If the Autosize property is true then the size of the control has to be
dynamically changed.
This will be based on
(i) Number of bits selected by masking the BitMask property, or
(ii) Number of bits selected in BitMaskCSV property.
Property AutoSize
Return Type Boolean
Range N/A
Default TRUE
Example ACRBitStatus1.AutoSize=True
Description This property will hold the reference of the instance of connection
control.
Property ConnectionControl
Return Type Object
Range N/A
Default N/A
Example Set ACRBitStatus1.ConnectionControl=ACRConnection1
BitLabel
Description Bit Label has to be captured from the user and has to be assigned to the
BitSelect.
Parameters
Return N/A
Example ACRBitStatus1.BitSelect=516
Call ACRBitStatus1.BitLabel (“Bit Five One Six”)
SetBit
Description This method will enable the corresponding bit of the property BitSelect.
Signature SetBit ()
Parameters N/A
Return This method will call the SetFlag() method to enable the bit.
ClearBit
Description This method will disable the corresponding bit of the property BitSelect.
Signature ClearBit ()
Parameters N/A
Return This method will call the SetFlag() method to disable the bit.
Signature GetValue ()
Parameters N/A
Return Returns TRUE if BitSelect bit is 1, and returns FALSE when the BitSelect
bit is 0.
IsFlagSet
Description Utility for identifying a bit in a 32-bit long.
Parameters
Return Returns TRUE if bit at nFlagNdx is 1, returns FALSE when the bit is 0.
DataChanged
Description This event will fire when the data requested is changed.
Signature DataChanged ()
Parameters N/A
Return N/A
Numeric Status control will get an input parameter from the user (ParameterSelect property has
to be used) and it retrieves an array of 8 parameters, which are belongs to same group, from
ACR controller.
Properties
• Long ParameterSelect
• Long ParameterPlacement
• Long IndexMask
• Long PollRate
• Boolean Autosize
• String IndexMaskCSV
• Object ConnectionControl
Methods
Events
Void DataChanged ()
ParameterSelect
Description This property represents the parameter selected.
Property ParameterSelect
Return Type Long
Range N/A
Default N/A
Example ACRNumericStatus1.ParameterSelect=6916
ParameterPlacement
Description This property represents the index of the array of 8 parameters that the
parameter selected by ParameterSelect resides.
Property ParameterPlacement
Return Type Long
Range N/A
Default N/A
Example Dim lngPlacement as Long
ACRNumericStatus1.ParameterSelect=6916
lngPlacement=ACRNumericStatus1.ParameterPlacement
‘It gives 5 as result
IndexMask
Description This property represents the mask of parameters.
Property IndexMask
Return Type Long
Range N/A
Default N/A
Example ACRNumericStatus1.IndexMask=255
‘It shows value for 8 Parameters
ACRNumericStatus1.IndexMask=8
‘It shows value for 3rd Parameter
PollRate
Description This property indicating the period in milliseconds to poll for the status.
This value must be set assigned to
ACRConnection1.ObjStatus.nStatusWaitRate before calling Connect
method. ACRConnection1 is the name of connection control in the form.
Property PollRate
Autosize
Description If true the control will be automatically resized based on the number of
parameters selected with the IndexMask or IndexMaskCSV.
Property AutoSize
Return Type Boolean
Range N/A
Default TRUE
Example ACRNumericStatus1.AutoSize=True
IndexMaskCSV
Description This property represents the mask of parameters with comma separated.
Property IndexMaskCSV
Return Type String
Range 0-7
Default N/A
Example ACRNumericStatus1.IndexMaskCSV=”1,2,3”
ConnectionControl
Description This property will hold the reference of the instance of connection
control.
Property ConnectionControl
Return Type Object
Range N/A
Default N/A
Example Set ACRNumericStatus1.ConnectionControl=ACRConnection1
‘ACRConnection1 is the name of Connection Control in the
‘Current form
ParameterLabel
Description Method used to set the label for a parameter.
Parameters
Return N/A
SetLong
Description Changes the value of a specific p-Parameter of type Long.
Parameters
Value Description
TRUE Binary
FALSE ASCII
Return N/A
Parameters
Value Description
TRUE Binary
FALSE ASCII
Return N/A
SetGlobal
Description Changes the value of a specific, pre-dimensioned global parameter.
Parameters
ncard Code value for type of card. This information is needed if using a binary
command (bFast=TRUE) to find the memory address. Use zero if using
ASCII (bFast=FALSE).
Device Types
Value Controller
0 ACR1200
1 ACR1500
2 ACR2000
3 ACR8010
4 ACR8020
5 ACR8020 (16-axis)
6 ACR1505
7 Reserved
Value Description
TRUE Binary
FALSE ASCII
Return N/A
GetValue
Description Returns value for ParameterSelect.
Signature GetValue ()
Parameters N/A
Return Returns the value of the selected parameter through the property
ParameterSelect.
Example ACRNumericStatus1.ParameterSelect=6916
Call ACRNumericStatus1.GetValue
GetParamType
Description A wrapper method used to get the data type of a parameter.
Parameters
nParameter Holds the p-Parameter number whose data type has to be returned.
GetParamInfo
Description A wrapper method used to get specific information on a parameter.
Parameters
Value Description
0 Long
1 Double
2 Single
nCode The ACR Group Code as documented in the ACR-View online help.
nIndex The ACR Group Index as documented in the ACR-View online help.
Parameters
GetLocalAddr
Description A wrapper method used to retrieve the memory address of a local
variable in a specific program.
Parameters
Value Description
0 Long
1 Double
2 Single
nSize After the call, this parameter holds the number of dimensioned variable
available.
Return The return value is a valid ACR memory address (or zero if no memory is
dimensioned for the requested variable type.)
Parameters
Value Description
0 Long
1 Double
2 Single
nSize After the call, this parameter holds the number of dimensioned variables
available.
Return The return value is a valid ACR memory address (or zero if no memory is
dimensioned for the requested variable type.)
GetStatus
Description A wrapper method used to retrieve the specific status information.
Parameters
nMsgID The key to a specific status request as returned by one of the Add
routines.
Return The returned array can be any size. It holds the values in Variants, either
type long or double.
GetACRMemory
Description A wrapper method used to retrieve values requested from the specific
memory location.
Parameters
Value Description
0 Long
1 Double
2 Single
Return The returned array can be of any size but is limited to a single data type.
GetACRGroup
Description A wrapper method used to get the requested parameter group.
Parameters
GetACRCustom
Description A wrapper method used to get the requested Parameters.
Parameters
GetACRGroupRaw
Description A wrapper method used to get the requested parameter group from the
index and code.
Parameters
Value Description
0 Long
1 Double
nCode The ACR Group Code as documented in the ACR-View online help.
nIndex The ACR Group Index as documented in the ACR-View online help.
Return Return an array containing up to 8 Variants, all of which are of type long
or double.
SetACRMemory
Description A wrapper method used to changes the value at a specific memory
location
Parameters
Value Description
0 Long
1 Double
2 Single
Return N/A
Parameters
nAddress The starting physical memory address. This address must point to a
variable of type long for the mask to properly work.
Return N/A
SetParamLongMask
Description A wrapper method used to change the long value through bitwise
operations.
Parameters
nPparm The parameter on the ACR product. This address must point to a
variable of type long for the mask to properly work.
Return N/A
Signature InitPerformance ()
Parameters N/A
Return N/A
GetPerformance
Description A wrapper method used to retrieve the performance data of the ISA
Cards.
Signature GetPerformance ()
Parameters N/A
Return N/A
Example ACRNumericStatus1.GetPerformance
AddACRGroup
Description Method to add a group request into the status queue.
Parameters
AddACRGroupRaw
Description Method to Add a group request into the status queue.
Parameters
Value Description
0 Long
1 Double
2 Single
nCode The ACR Group Code as documented in the ACR-View online help.
nIndex The ACR Group Index as documented in the ACR-View online help.
Return A key identifying the request in the queue. The key can be used to
retrieve data using GetStatus ().
(for example, when the alert is signaled).
AddACRCustom
Description Add a custom p-Parameter request into the status queue.
Parameters
Return A key identifying the request in the queue. The key can be used to
retrieve data using GetStatus () (for example, when the alert is
signaled).
AddACRMemory
Description Add a memory value request into the status queue.
Parameters
Value Description
0 Long
1 Double
2 Single
nCount The number of values to read (starting at the memory location.) The
values of each memory location will be placed in a corresponding
position in the returned array.
Return A key identifying the request in the queue. The key can be used to
retrieve data using GetStatus () (for example, when the alert is
signaled).
DelStatus
Description Delete a status request from the status queue.
Parameters
nMsgID The key to a specific status request as returned by one of the Add
routines.
Return N/A
Events
DataChanged
Description This event will fire when the data requested has changed.
Signature DataChanged ()
Parameters N/A
Return N/A
Moves control doesn’t have a dialog and primarily will be a wrapper for properties and methods of
the ComACRSrvr.dll. With this control we can perform movement in the motor one is linear move
and the other is arc move.
Properties
• Long MoveProfile
• Double MoveVel
• Double MoveFVel
• Double MoveAcc
• Long MoveMode
• Boolean MoveAbsolute
• Long MoveCounter
• Long ArcMode
• Boolean ArcAbsolute
• Boolean ArcCCW
• Object ConnectionControl
Methods
• Void Moves (nmask As Long, targets As Variant)
• Void MoveBatch (nmask As Long, movement As Variant)
• Void Arc (nmask As Long, targets As Variant)
• Void MoveStop (bdecel As Boolean)
• Void SendRes (nmask As Long)
• Void GetMoveCounter (nCounter As Long, nIncrement As Long)
• Void SetMoveCounter (nCounter As Long, nIncrement As Long)
MoveProfile
Description This property specifies the master profile for use to move. Wraps the
ComACRsrvr property nMoveProfile.
Property MoveProfile
Return Type Long
Range 0-15
Default 0
Example ACRMoves1.MoveProfile = 1
MoveVel
Description This property sets the linear velocity for the next move. Wraps the
ComACRsrvr property fMoveVel.
Property MoveVel
Return Type Double
Range N/A
Default -1 (Use Preset Velocity)
Example ACRMoves1.MoveVel = 11.25
MoveFVel
Description This property sets the final velocity for the next move. Wraps the
ComACRsrvr property fMoveFVel.
Property MoveFVel
Return Type Double
Range N/A
Default -1 (Use Preset Velocity)
Example ACRMoves1.MoveFVel = 12.25
MoveAcc
Description This property sets the Acceleration to be used with a linear move. Wraps
the ComACRsrvr property fMoveAcc.
Property MoveAcc
Return Type Double
Range N/A
Default -1 (Use Preset Velocity)
Example ACRMoves1.MoveAcc = 7.50
Property MoveMode
Return Type Long
Range 0-3
Default 2
Example ACRMoves1.MoveMode = 2
MoveAbsolute
Description This property sets the absolute co-ordinate system or incremental co-
ordinate system. Wraps the ComACRsrvr property bMoveAbsolute.
Property MoveAbsolute
Return Type Boolean
Range N/A
Default TRUE (Absolute Moves)
Example ACRMoves1.MoveAbsolute = True
MoveCounter
Description This property enables the move counter. Wraps the ComACRsrvr
property nMoveCounter.
Property MoveCounter
Return Type Long
Range -1, 0 and 1
Default 1 (ON, Count UP)
Example ACRMoves1.MoveCounter = 1
ArcMode
Description This property determines primary and secondary axes when performing
the arc move. Wraps the ComACRsrvr property nArcMode.
Property ArcMode
Return Type Long
Range 0-3
Default 0
Example ACRMoves1.ArcMode = 1
Property ArcAbsolute
Return Type Boolean
Range N/A
Default TRUE (Arc Absolute Centers)
Example ACRMoves1.ArcAbsolute = True
ArcCCW
Description This property determines the direction of the arc move. Wraps the
ComACRsrvr property bArcCCW.
Property ArcCCW
Return Type Boolean
Range N/A
Default TRUE (CCW)
Example ACRMoves1.ArcCCW = True
Connectioncontrol
Description This property will hold the reference of the instance of connection
control.
Property Connectioncontrol
Return Type Object
Range N/A
Default N/A
Example Set ACRMoves1.ConnectionControl=ACRConnection1
Moves
Description This wrapper method will generate the move.
Parameters
Return N/A
MoveBatch
Description This wrapper method will send a set of fully defined moves for batch
processing.
Parameters
Return N/A
Arc
Description This wrapper method will generate an Arc move.
Parameters
targets The arc centers the target position information for each axis.
Return N/A
Parameters
Value Description
TRUE Stop All Moves
FALSE Kill All Moves
Return When the bDecel parameter is TRUE, a Stop All Moves flag is set using
the binary command.
When the bDecel parameter is FALSE, a Kill All Moves flag is set using
binary.
SendRes
Description This wrapper method resets the position counters of the ACR Controller.
Parameters
Return
Parameters
nCounter The index value of the move currently active on the controller.
Return The nCounter and nIncrement are both updated after calling this method.
SetMoveCounter
Description This wrapper method sets the move counter of the ACR Controller.
Parameters
nCounter The index value of the move currently active on the controller.
Return N/A
The Feedrate control is used to manipulate the move by either increasing or decreasing the
speed of the motor. The motor can also be paused while the motor is in motion and can also be
unpaused.
Properties
• Long MotionProfile
• Double FOV
• Double MinFOV
• Double MaxFOV
• Object ConnectionControl
Methods
• Void SetFOV (nMask As Long, fValue As Double)
• Void SetROV (nMask As Long, fValue As Double)
Properties
MotionProfile
Description This property holds the Master number that the control will be using.
Property MotionProfile
Return Type Long
Range 0 – 15
Default 0
Example ACRFeedRate1.MotionProfile = 0
FOV
Description This property holds the Feedrate override value for the current Master
profile. This value will either increase or decrease the speed of the
motor. FOV should always be within MinFov and MaxFov.
Property FOV
Return Type Double
Range N/A
Default 1
Example ACRFeedRate1.FOV = 1.25
Property MinFOV
Return Type Double
Range N/A
Default 1
Example ACRFeedRate1.MinFov = 1.0
MaxFOV
Description This property holds the Maximum Feedrate override value for the current
Master profile. This property keeps check on the upper boundary of FOV.
Property MaxFOV
Return Type Double
Range N/A
Default 100
Example ACRFeedRate1.MaxFov = 7.50
ConnectionControl
Description This property will hold the reference of the instance of connection
control.
Property Connectioncontrol
Return Type Object
Range N/A
Default N/A
Example Set ACRFeedRate1.ConnectionControl=ACRConnection1
SetFOV
Description This wrapper method will set the Feedrate override value for the current
master profile.
Parameters
fValue Set the FOV value for all the specified axes in nMask.
Return N/A
SetROV
Description This wrapper method will set the Rapid Feedrate override value for the
current master profile.
Parameters
fValue Set the ROV value for all the specified axes in nMask.
Return N/A
The CANOpen control is used to configure and start the CANOpen I/O Network based on the
value of Master Node ID, Bit Rate, Cyclic period and Number of Slave nodes set by the User.
Properties
• Long MasterNodeID
• Long BitRate
• Long CyclicPeriod
• Long NumSlaveNodes
• Object ConnectionControl
Methods
• Void CalcBitRate ()
• Void CalcCyclicPeriod ()
• Void SetSlaveNodeID (slavenodes as Integer)
• Integer GetSlaveNodeID ()
• Void StartCANOpen ()
• Void ResetCANOpen ()
• Void GetCANOpenStatus ()
MasterNodeID
Description Represents the MasterNodeID of the CANOpen network.
Property MasterNodeId
Return Type Long
Range 1 - 127
Default 5
Example ACRCANOpen1.MasterNodeId =5
BitRate
Description Represents the Bit Rate for the CANOpen network in kbps.
Property BitRate
Return Type Long
Range 10,20,50,125,250,500,800,1000
Default 125
Example ACRCANOpen1.BitRate =125
CyclicPeriod
Description Represents the Cyclic period of the CANOpen network (in ms).
Property CyclicPeriod
Return Type Long
Range N/A
Default 50
Example ACRCANOpen1.CyclicPeriod =50
NumSlaveNodes
Description Holds the value of number of slave nodes on the Network (Range 0- 4).
Property NumSlaveNodes
Return Type Long
Range 0-4
Default 1
Example ACRCANOpen1.NumSlaveNodes =3
Property Connectioncontrol
Return Type Object
Range N/A
Default N/A
Example Set ACRCANOpen1.ConnectionControl=ACRConnection1
‘ACRConnection1 is the name of Connection Control in the
‘Current form
CalcBitRate
Description Displays the BitRate Table selection dialog.
Signature CalcBitRate ()
Parameters N/A
Return N/A
CalcCyclicPeriod
Signature CalcCyclicperiod ()
Parameters N/A
Return N/A
SetSlaveNodeID
Description Sends an array of integers that represents the NodeID for each of the
Slave Nodes.
Parameters
Return N/A
GetSlaveNodeID
Description Retrieves an array of integers that represents NodeID for each of the
Slave Nodes.
Signature GetSlaveNodeID ()
Parameters N/A
Return This method returns integer array that represents all slave node ids.
StartCANOpen
Description This method activates the CANOpen Network.
Signature StartCANOpen ()
Parameters N/A
Return N/A
ResetCANOpen
Description Method is used to stop and reset the CANOpen Network.
Signature ResetCANOpen ()
Parameters N/A
Return N/A
Description This method is used to request and retrieve the status of the CANOpen
Network and displays in the Display textbox.
Signature GetCANOpenStatus ()
Parameters N/A
Return N/A
The TeachPanel control is used to play movements in the controller and record the same. Jog
Neg and Jog Pos are the 2 different movements, which can be handled, in three different modes.
Continuous, Incremental and Whileheld are the three modes. While the drive is rotating we can
capture the position and store it in an array. The captured array can be cleared or stored in a
CSV file. Through the button named Enable we can enable the drive and with the button named
EStop we can stop the motor while in motion.
Properties
• Double ActualPos
• Long Axis
• Boolean DriveEnable
• Boolean DriveFault
• Boolean PosLimit
• Boolean NegLimit
• Boolean Home
• Long TeachArrayIndex
• Double Velocity
• Double Acceleration
• Double TargetPosition
• Long PPU
• Long JogMode
• Boolean HomeDirectionPositive
• Boolean DisableDriveOnEStop
• Long Pollrate
• Object ConnectionControl
Methods
• Void JogNeg ()
• Void JogPos ()
• Void JogStop ()
• Void EnableDrive (DriveStatus as string)
• Void KillAllMotion (StopStatus as string)
• Void HomePos (Direction as Long)
• Void ClearPos ()
• Void CapturePos ()
• Void ClearArray ()
• Void SaveArray ()
ActualPos
Description This is a read only property, which holds the current position of the
motor.
Property ActualPos
Return Type Double
Range N/A
Default N/A
Example Dim actPosition as Double
actPosition = ACRTeachPanel1.ActualPos
Axis
Description This property holds the value of the Axis.
Property Axis
Return Type Long
Range 0-15
Default 0
Example ACRTeachPanel1.Axis = 7
DriveEnable
Description This is a read only property, which stores the drive enable status in this
property. If the value of this property is true then it represents drive is
enabled, and if the value is false it represents drive is disabled.
Property DriveEnable
Return Type Boolean
Range N/A
Default N/A
Example Dim bdriveEnable as Boolean
bdriveEnable = ACRTeachPanel1.DriveEnable
DriveFault
Description Drive fault will be stored in this read only property. If the value of this
property is true then it represents drive is disabled, and if the value is
false it represents drive is enabled.
Property DriveFault
Return Type Boolean
Range N/A
Default N/A
Example Dim bdriveFault as Boolean
bdriveFault = ACRTeachPanel1.DriveFault
Property PosLimit
Return Type Boolean
Range N/A
Default N/A
Example Dim bPosLimit as Boolean
bPosLimit = ACRTeachPanel1.PosLimit
NegLimit
Description Maximum negative limit status will be stored in this read only property.
True represents drive has reached negative limit, false represents drive
has not yet reached the negative limit.
Property NegLimit
Return Type Boolean
Range N/A
Default N/A
Example Dim bNegLimit as Boolean
bNegLimit = ACRTeachPanel1.NegLimit
Home
Description Read only property, which represents the home state of the drive. If true
then the position of the drive is in home state.
Property Home
Return Type Boolean
Range N/A
Default N/A
Example Dim bHome as Boolean
bHome = ACRTeachPanel1.Home
TeachArrayIndex
Description This is a read only property which holds the running index of the teach
array index. For every click on the CapturePos the index will be
increased by one. This will be zero when ClearPos is clicked.
Property TeachArrayIndex
Return Type Long
Range N/A
Default 0
Example Dim lngTeachArrayIndex as Long
lngTeachArrayIndex = ACRTeachPanel1.TeachArrayIndex
Property Velocity
Return Type Double
Range N/A
Default N/A
Example ACRTeachPanel1.Velocity = 33.88
Acceleration
Description This property increases the speed of the motor and its value should be
greater than zero.
Property Acceleration
Return Type Double
Range N/A
Default N/A
Example ACRTeachPanel1.Acceleration = 88.33
TargetPosition
Description Property, which makes the jog movement, if JogPos is clicked then the
movement will be in positive direction based on the Incremental distance
text box. If JogNeg is clicked then the movement will be in negative
direction based on the Incremental distance text box.
Property TargetPosition
Return Type Double
Range N/A
Default N/A
Example ACRTeachPanel1.TargetPosition = 20.235
PPU
Description Pulses Per Unit will be stored in this property.
Property PPU
Return Type Long
Range N/A
Default N/A
Example ACRTeachPanel1.PPU = 8000
Property JogMode
Return Type Long
Range 0-2
Default 0
Example ACRTeachPanel1.Jogmode = 1
HomeDirectionPositive
Description Property that determines whether the motion should happen in the
positive direction or in negative direction. If the Boolean value is true,
then positive direction else negative direction.
Property HomeDirectionPositive
Return Type Boolean
Range N/A
Default TRUE
Example ACRTeachPanel1.HomeDirectionPositive = True
DisableDriveOnEStop
Description Property determines whether the drives should be disabled or not while
stopping. If true the drives are disabled while pressing EStop button else
drives will not be disabled.
Property DisableDriveOnEStop
Return Type Boolean
Range N/A
Default TRUE
Example ACRTeachPanel1.DisableDriveonEstop = True
Pollrate
Description Delay time between fetching values from the ACR Controller will be
stored in this property.
Property Pollrate
Return Type Long
Range N/A
Default 10
Example ACRTeachPanel1.Pollrate = 10
Property Connectioncontrol
Return Type Object
Range N/A
Default N/A
Example Set ACRTeachPanel1.ConnectionControl=ACRConnection1
JogNeg
Description This method will make the jog movement in negative direction.
Signature JogNeg ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.JogNeg ()
JogPos
Description This method will make the jog movement in positive direction.
Signature JogPos ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.JogPos ()
JogStop
Description This method will stop the jog movement.
Signature JogStop ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.JogStop ()
Description This method will either enable or disable the drive based on the value of
the drivestatus string. If the value of Drivestatus string is “On” then the
drive is enabled or if the drivestatus string is “Off” then it is disabled.
Parameters
Return N/A
KillAllMotion
Description This method will stop the motion of the motor by sending the values Ctrl
+ Z or Ctrl + X if the caption of the EStop button is “EStop”. If the button
caption is “Clear EStop” then Ctrl + Y will be sent to the controller to clear
the flags.
Parameters
Return N/A
Parameters This long variable holds either 1 or –1. Value 1 makes rotates the motor
in positive direction and –1 rotates the motor in negative direction.
Return N/A
Example ACRTeachPanel1.HomePos ()
ClearPos
Description This method will make the AcutalPos property to zero.
Signature ClearPos ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.ClearPos ()
CapturePos
Description This method will capture the present ActualPos value in an array.
Signature CapturePos ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.CapturePos ()
Signature ClearArray ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.ClearArray ()
SaveArray
Description This method will save the so far captured position into a CSV file.
Signature SaveArray ()
Parameters N/A
Return N/A
Example ACRTeachPanel1.SaveArray ()
The Playback Panel control is used to play various teach point movements and also playback
array movements. The movement can be paused and can be resumed. Through this control we
can also perform row-by-row movement. This control saves the played points in a CSV file.
Events can also be saved against the points in a separate grid. Velocity, Acceleration,
Deceleration and StopRamp has to be provided for the movement of the motor.
Properties
• Long StartingIndex
• Long CurrentIndex
• Double Velocity
• Double Acceleration
• Double Deceleration
• Double StopRamp
• Long MasterProfile
• Object ConnectionControl
Methods
• Void ImportArray (strCSVFileName as String)
• Void ImportFromTeach (strCSVFileName as String)
• Void AddEvent ()
• Void Playback ()
• Void StepPlayback ()
• Void SaveArray (strCSVFileName as string)
• Void PausePlayback ()
• Void ResumePlayback ()
• Void StopPlayback ()
• String GetValue (lngRow As Long, lngCol As Long) As String
• Void SetValue (lngRow As Long, lngCol As Long, strValue As String)
Properties
StartingIndex
Description This property holds the starting index value for the StepNext point
movement. This property should be greater than zero. This property will
be used only for the first time when StepPlayback is clicked.
Property StartingIndex
Return Type Long
Range N/A
Default N/A
Example ACRPlaybackPanel1.StartingIndex = 3
Description This read only property holds the index of the current row while playing.
This property gets increased one by one while playing.
Property CurrentIndex
Return Type Long
Range N/A
Default 0
Example Dim lngCurrIndex as Long
ACRPlaybackPanel1.CurrentIndex = lngCurrIndex
Velocity
Description Velocity value will be stored in this property. Velocity should be greater
than zero for the movement of the motor.
Property Velocity
Return Type Double
Range N/A
Default 0
Example ACRPlaybackPanel1.Velocity = 20
Acceleration
Description Acceleration value will be stored in this property. This property increases
the speed of the motor.
Property Acceleration
Return Type Double
Range N/A
Default 0
Example ACRPlaybackPanel1.Acceleration = 20
Deceleration
Description Deceleration value will be stored in this property. This property
decreases the speed of the motor.
Property Deceleration
Return Type Double
Range N/A
Default 0
Example ACRPlaybackPanel1.Deceleration = 20
Property StopRamp
Return Type Double
Range N/A
Default 0
Example ACRPlaybackPanel1.StopRamp = 20
MasterProfile
Description MasterProfile value will be stored in this property. This represents which
master is being used.
Property MasterProfile
Return Type Long
Range 0 – 15
Default 0
Example ACRPlaybackPanel1.MasterProfile = 2
Connectioncontrol
Description This property will hold the reference of the instance of connection
control.
Property Connectioncontrol
Return Type Object
Range N/A
Default N/A
Example Set ACRPlaybackPanel1.ConnectionControl = ACRConnection1
ImportArray
Description This method will load the CSV file into the Grid.
Parameters
Return N/A
ImportFromTeach
Description This method will load the CSV file created through TeachPanel Control.
Parameters
Return N/A
AddEvent
Description This method will add the command string and the added event will be
played back.
Signature AddEvent ()
Parameters N/A
Return N/A
Playback
Description This method will download the file to the controller and execute the
playback points.
Signature Playback ()
Parameters N/A
Return N/A
Example ACRPlaybackPanel1.Playback ()
StepPlayback
Description This method will perform the playback for one step from the current
Index.
Signature StepPlayback ()
Parameters N/A
Return N/A
Example ACRPlaybackPanel1.StepPlayback ()
SaveArray
Description This method will save the teach point array and the Event if available.
Parameters
Return N/A
PausePlayback
Description This method will pause the movement of the motor at the current index.
Signature PausePlayback ()
Parameters N/A
Return N/A
Example ACRPlaybackPanel1.PausePlayback ()
ResumePlayback
Description This method will resume the movement of the motor from the paused
stage.
Signature ResumePlayback ()
Parameters N/A
Return N/A
Example ACRPlaybackPanel1.ResumePlayback ()
StopPlayback
Description This method will stop the movement of the motor at the current index.
Signature StopPlayback ()
Parameters N/A
Return N/A
Example ACRPlaybackPanel1.StopPlayback ()
Parameters
Return This function returns the value of the cell specified in lngRow and lngCol.
SetValue
Description This method will update the grid cell at the specified row and column with
the specified value.
Parameters
Return N/A
The Status Panel Control displays the status of the most commonly used bits and the numeric
value of the P-parameters.
Properties
• Long PollRate
• Object ConnectionControl
Methods
Events
• Void DataChanged ()
Pollrate
Description This property indicates the period in milliseconds to poll for the status.
This value must be set assigned to
ACRConnection1.ObjStatus.nStatusWaitRate before calling Connect
method.
Property Pollrate
Return Type Long
Range N/A
Default 10
Example ACRStatusPanel1.PollRate=100
ConnectionControl
Description This property will hold the reference of the instance of connection
control.
Property ConnectionControl
Return Type Object
Range N/A
Default N/A
Example Set ACRStatusPanel1.ConnectionControl=ACRConnection1
GetMasterBitStatus
Description Returns the value from the user interface for a particular label in master
bit status display.
Parameters
Return Return value TRUE represents the corresponding bit is glowing and
value FALSE represents the corresponding bit is not glowing.
GetAxisBitStatus
Description Returns the value from the user interface for a particular label in axis bit
status display.
Parameters
Return Return value TRUE represents the corresponding bit is glowing and
value FALSE represents the corresponding bit is not glowing.
GetMasterNumericStatus
Description Returns the value from the user interface for a particular label in master
numeric status display.
Parameters
Return This returns the variant value of the corresponding cell from the grid.
GetAxisNumericStatus
Description Returns the value from the user interface for a particular label in axis
numeric status display.
Parameters
Return This returns the variant value of the corresponding cell from the grid.
DataChanged
Description This event will fire when the data requested has changed.
Signature DataChanged ()
Parameters N/A
Return N/A
The DriveTalk Control is the primary mechanism for configuration of DriveTalk communication
with DriveTalk enabled drives. This is also the main mechanism for retrieving Drive Status (bits
and numeric) from these drives. Also this control allows for sending commands as well as
configuration information to these drives.
Properties
• Long AxesMask
• Boolean EnableDriveTalk
• Double DriveDataMask
• Long DriveTalkMode
• Object ConnectionControl
Methods
• Void GetDriveDataRequest ()
• Void GetConfig ()
• Void SendConfig ()
• Void GetErrorLog ()
• Void SendASTFile (strASTFileName As String)
Properties
AxesMask
Description Represents the mask value for number of axes (for Axis 0 –15), which
are to be connected to the drive talk.
Property AxesMask
Return Type Long
Range 1 - 65535
Default N/A
Example ACRDriveTalk1.AxesMask=1 ‘ Axis 0 to be connected
ACRDriveTalk1.AxesMask=3 ‘ Axis 0, Axis 1 are to be connected
ACRDriveTalk1.AxesMask=8 ‘Axis 3 to be connected
ACRDriveTalk1.AxesMask=65535 ‘ Axis 0 to 15 are to be connected
Property EnableDriveTalk
Return Type Boolean
Range N/A
Default FALSE
Example ACRDriveTalk1.EnableDriveTalk=True
DriveDataMask
Description DriveDataMask is a 32-bit mask that indicates what data parameters the
controller should query the Aries Drive for. The lists of the data
parameter types are indicated in Bits10496-10750. So it indicates what
information the user is interested in.
Property DriveDataMask
Return Type Double
Range N/A
Default N/A
Example ACRDriveTalk1.DriveDataMask =128 ‘for DriveReset
ACRDriveTalk1.DriveDataMask=1048576 ‘for Actual Torque
DriveTalkMode
Description Represents the mode of communication with the DriveTalk enabled
drives. This property has 3 modes.
1 – Drive Talk
2 – DTalk
3 – TalkTo
Property DriveTalkMode
Return Type Long
Range 1-3
Default N/A
Example ACRDriveTalk1.DriveTalkMode=3 ‘Mode is set to TalkTo
ConnectionControl
Description This property will hold the reference of the instance of connection
control.
Property ConnectionControl
Return Type Object
Range N/A
Default N/A
Example Set ACRDriveTalk1.ConnectionControl=ACRConnection1
‘ACRConnection1 is the name of Connection Control in the
‘Current form
GetDriveDataRequest
Description This method used to initiate the controller to query the drive. After the
query the data should be available in Parameters P28672-30543. This
method will call the IControl.SetParmLong and IControl.SetFlag methods
of the ComACRsrvr.dll to change the drive data, based on AxesMask
and DriveDataMask properties. This method can be called only if
EnableDriveTalk is True and DriveTalkMode is 1.
Signature GetDriveDataRequest ()
Parameters N/A
Return N/A
GetConfig
Description This method will call the IControl.SetFlag () method of the
comACRSrvr.dll to get the drive configuration from the drive. This
method will call the SetFlag () method and pass the value for the nBit
parameter based on the axis number. (Axis number can be received
from AxesMask property). This method can be called only if
EnableDriveTalk is True and DriveTalkMode is 1.
Parameters N/A
Return N/A
SendConfig
Description This method will call the IControl.SetFlag () method of the
comACRSrvr.dll to send the configuration to the drive. This method will
call the SetFlag () method and pass the value for the nBit parameter
based on the axis number. This method can be called only if
EnableDriveTalk is True and DriveTalkMode is 1.
Signature SendConfig ()
Parameters N/A
Return N/A
GetErrorLog
Description This method will call the IControl.SetFlag () method of the
comACRSrvr.dll to get the error log from the drive. This GetErrorLog ()
method should call the SetFlag () method and pass the value for the nBit
Signature GetErrorLog ()
Parameters N/A
Return N/A
SendASTFile
Description This method calls the IUtility.DownloadFile () to send the config file
generated from the Aries Support Tool (.AST file) to the drive. This
method can be called only if the property EnableDriveTalk is set to true
and DriveTalkMode it is set to 2 or 3.
Parameters
Return N/A
This control can be called as Emergency Stop. The control will have the label as “EStop” and
“Clear EStop”. EStop will stop the motion of the motor and also it can disable the drive based on
the Boolean property “DisableDriveonEStop”. Clear EStop will be in blinking stage and this clears
the KAMR bit set and makes the motor ready for motion if the motor is not disabled.
Properties
• OLE_COLOR ClearColor
• OLE_COLOR StopColor
• String ClearLabel
• String StopLabel
• Boolean DisableDriveOnEStop
• Object ConnectionControl
Methods
• Void SendEStop ()
• Void ClearEStop ()
ClearColor
Description This property holds the back color of the control and will be displayed
only when the control is in “Clear EStop” stage. This will be in blinking
stage.
Property ClearColor
Return Type OLE_COLOR
Range N/A
Default Green
Example ACREStop1.ClearColor = RGB (75, 75, 75)
StopColor
Description This property holds the back color of the control and will be displayed
only when the control is in “EStop” stage.
Property StopColor
Return Type OLE_COLOR
Range N/A
Default Red
Example ACREStop1.StopColor = RGB (75, 75, 75)
ClearLabel
Description This property holds the text and will be displayed only when the control is
in clear Estop stage.
Property ClearLabel
Return Type String
Range N/A
Default Clear EStop
Example ACREStop1.ClearLabel = “Clear EStop”
StopLabel
Description This property holds the text and will be displayed only when the control is
in Estop stage. Default text is “EStop”.
Property StopLabel
Return Type String
Range N/A
Default EStop
Example ACREStop1.StopLabel = “EStop”
Property DisableDriveOnEStop
Return Type Boolean
Range N/A
Default FALSE
Example ACREStop1.DisableDriveonEstop = True
Connectioncontrol
Description This property will hold the reference of the instance of connection
control.
Property Connectioncontrol
Return Type Object
Range N/A
Default N/A
Example Set ACREStop1.ConnectionControl=ACRConnection1
SendEStop
Description This method will send the “Chr (26)” to the controller, which will stop all
the motion of the motors, and the KAMR bit will be set.
Signature SendEStop ()
Parameters N/A
Return N/A
Example ACREStop1.SendEStop ()
ClearEStop
Description This method will send the “Chr (25)” to the controller, which will clear
only the KAMR bit set.
Signature ClearEStop ()
Parameters N/A
Return N/A
Example ACREStop1.ClearEStop ()