AeroScript Equivalents of AeroBasic Commands for the Ensemble and Soloist

If you are not new to Aerotech controllers, you might want to convert AeroBasic programs to AeroScript. The tables that follow list all the AeroBasic commands for Ensemble and Soloist drives and tell you how to get the same or similar functionality in AeroScript. Some AeroBasic commands were removed and some are currently not available, but will be supported in a future release of Automation1.

 

AeroBasic Command AeroScript Equivalent

AOUT

Replaced by AnalogOutputGet() and AnalogOutputSet().

AIN

Replaced by AnalogInputGet().

DOUT

Replaced by DigitalOutputGet() and DigitalOutputSet().

DIN

Replaced by DigitalInputGet().

 

AeroBasic Command AeroScript Equivalent

SETGAIN

Replaced by TuningSetServoLoopGains() and TuningSetFeedforwardGains().

GETPARM

For axis parameters, this AeroBasic command was replaced by ParameterGetAxisValue() and ParameterGetAxisStringValue().

For task parameters, this AeroBasic command was replaced by ParameterGetTaskValue() and ParameterGetTaskStringValue().

SETPARM

For axis parameters, this AeroBasic command was replaced by ParameterSetAxisValue() and ParameterSetAxisStringValue().

For task parameters, this AeroBasic command was replaced by ParameterSetTaskValue() and ParameterSetTaskStringValue().

COMMITPARAMETERS

Removed.

 

AeroBasic Command AeroScript Equivalent

GOTO

Renamed to goto.

CALL

Removed. To declare functions, use the function keyword. Then call the functions by name.

ONAXISFAULT

Replaced by onerror().

ONTASKERROR

Replaced by onerror().

EXIT

Renamed to return.

LOCK

Removed.

UNLOCK

Removed.

LONGJMP

Removed.

 

AeroBasic Command AeroScript Equivalent

PROGRAM PAUSE (M0)

See Task and Program Functions.

M1 (optional stop)

See Task and Program Functions.

PROGRAM* commands

See Task and Program Functions.

END PROGRAM

See Task and Program Functions.

CHECKPASSWORD

Removed.

 

AeroBasic Command AeroScript Equivalent

F word

Renamed to F command. The functionality stays the same.

EF word

Renamed to E command.

LINEAR

Renamed to MoveLinear().

CW/CCW

Renamed to MoveCw() and MoveCcw().

PT/PVT

Renamed to MovePt() and MovePvt().

PV

Removed.

FREERUN

Renamed to MoveFreerun().

OSCILLATE

Removed.

LOOPTRANS

Removed. You can do a loop transmission in the Configure workspace.

RECONCILE

Removed.

 

AeroBasic Command AeroScript Equivalent

DWELL

Renamed to Dwell().

WAIT MOVEDONE

Replaced by WaitForMotionDone().

WAIT INPOS

Replaced by WaitForInPosition().

 

AeroBasic Command AeroScript Equivalent

RAMP* commands

See Motion Setup Functions.

SCURVE

See Motion Setup Functions.

PLANE

Removed.

TIMESCALE

Removed.

HALT

Removed.

START

Removed.

STARTSYNC

Removed.

SCALEFACTOR

Removed.

 

AeroBasic Command AeroScript Equivalent

ABS

Replaced by SetupTaskTargetMode().

INC

Replaced by SetupTaskTargetMode().

VELOCITY ON

Renamed to VelocityBlendingOn().

VELOCITY OFF

Renamed to VelocityBlendingOff().

GETMODE

Removed.

 

AeroBasic Command AeroScript Equivalent

DEL

Renamed to DirectoryFileDelete().

EOF

Renamed to FileIsEndOfFile().

DIR

Renamed to DirectoryFileExists().

FILECOUNT

Renamed to DirectoryFileCount().

OPEN

Renamed to FileOpenBinary() and FileOpenText().

FILEFREESPACE

Removed.

FILELIST

Renamed to DirectoryGetName().

FREEFILE

Removed.

INPUT

Replaced by the FileBinaryRead* functions.

INPUT BOX

Renamed to AppMessageInputBox().

LINE INPUT

Replaced by FileTextReadLine().

LOC

Removed.

SEEK

Replaced by FileSetByteOffset().

WRITE

Replaced by the FileBinaryWrite* functions and FileTextWriteString().

CLEARCOM

Removed.

CLOSECOM

Renamed to SocketClose().

FLUSHCOM

Removed. In Automation1, SocketWrite*() functions automatically flush all data that you write. See Socket Functions.

OPENCOM

Renamed to SocketTcpClientCreate() and SocketTcpServerCreate().

READCOM* commands

Replaced by SocketRead*().

WRITECOM* commands

Replaced by SocketWrite*().

WRITEBYTE

Removed.

PROGRAM RUN

Renamed to ProgramRun().

 

AeroBasic Command AeroScript Equivalent

ABS

See Math Functions.

EXP

See Math Functions.

LOG

See Math Functions.

SQR

See Math Functions.

ACOS

See Math Functions.

ASIN

See Math Functions.

ATN

See Math Functions.

COS

See Math Functions.

SIN

See Math Functions.

TAN

See Math Functions.

CEIL

See Math Functions.

FLOOR

See Math Functions.

RAND

See Utility and Conversion Functions.

EXTRACTINTEGER

Removed.

 

AeroBasic Command AeroScript Equivalent

LEN

See String Functions.

CDBL

See String Functions.

CINT

See String Functions.

CSNG

See String Functions.

CLNG

See String Functions.

FORMAT

See String Functions.

 

AeroBasic Command AeroScript Equivalent

ABORT

Renamed to Abort().

ANALOG CONTROL ON/OFF

Currently not available.

AUTOFOCUS

Replaced by AutofocusOn() and AutofocusOff().

BLOCKMOTION

Removed.

BRAKE

Replaced by DriveBrakeOn() and DriveBrakeOff().

CAMSYNC

Replaced by CammingOn() and CammingOff().

DISABLE

Renamed to Disable().

ENABLE

Renamed to Enable().

GEAR

Renamed to GearingOn() and GearingOff().

HOME

Renamed to Home().

JOYSTICK AXISGROUP

Renamed to JoystickAxisGroupAdd().

JOYSTICK ON

Renamed to JoystickRun().

JOYSTICK RESET

Renamed to JoystickAxisGroupRemoveAll().

PMRKLATCH

Removed.

 

AeroBasic Command AeroScript Equivalent

PSOCONTROL FIRE

See More PSO Functions.

PSOCONTROL RESET

See More PSO Functions.

PSODISTANCE* commands

See More PSO Functions.

PSOOUTPUT* commands

See More PSO Functions.

PSOPULSE* commands

See More PSO Functions.

PSOTRACK DIRECTION/INPUT/RESET

See More PSO Functions.

PSOWINDOW ON/OFF/RANGE/LOAD

See More PSO Functions.

PSOWINDOW INPUT/RESET

See More PSO Functions.

POSOFFSET SET

Renamed to PositionOffsetSet().

POSOFFSET CLEAR

Renamed to PositionOffsetClear().

PSOARRAY

Replaced by DriveArrayWrite().

POSCAP

Replaced by DriveDataCaptureOn(), DriveDataCaptureOff(), and the DriveDataCaptureConfigure* functions.

 

AeroBasic Command AeroScript Equivalent

ACKNOWLEDGEALL

Renamed to AcknowledgeAll().

FAULTACK

Renamed to FaultAcknowledge().

AXISFAULT

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

TASKERROR

Removed. You can get functionality that is almost the same by using the StatusGetTaskItem() function.

THROW

Removed.

 

AeroBasic Command AeroScript Equivalent

ANALOG TRACK

Currently not available.

AXISSTATUS

Renamed to StatusGetAxisItem().

CALDATA/CALDATAUNITS

Removed.

CALENABLE/CALDISABLE

Removed.

CALINFO/CALINFOUNITS

Removed.

CHECKTIMER

Replaced by TimerClear() and TimerRead().

CLEARTIMEBIT

Removed.

CMDPOS

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

DGLOBAL

Renamed to $rglobal[].

DRIVEINFO

Renamed to DriveGetItem().

ETHERSTATUS

Removed.

EXTPOS

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

EXTVEL

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

ICMD

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

IERR

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

IFBK

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

IGLOBAL

Renamed to $iglobal[].

LOADCAM

Replaced by CammingLoadTableFromArray().

MAKEDOUBLE

Removed.

MAKEINTEGER

Removed.

MAKESINGLE

Removed.

MCOMM

Renamed to TuningSetMotorCurrent().

Modbus* (MODBUSREG, MODBUSBIT) commands

Currently not available.

MSET

Renamed to TuningSetMotorAngle().

OPTION IMPLICIT/EXPLICIT

Removed.

PCMD

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PCMDCAL

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PCMDPROG

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PERR

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PFBK

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PFBKCAL

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PFBKPROG

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

PLANE

Removed.

PLANEPOS

Removed.

PLANESTATUS

Removed.

QUERYTIMEBIT

Removed.

READCOM

Removed.

RESET

Removed.

SCOPEBUFFER

Removed.

SCOPEDATA

Removed.

SCOPESTATUS

Removed. You can get functionality that is almost the same by using the StatusGetSystemItem() function.

SCOPETRIG

Replaced by AppDataCollectionSnapshot() and AppDataCollectionStop().

SCOPETRIGPERIOD

Removed.

SERVO ON/OFF

Currently not available.

SETEXTPOS

Renamed to DriveSetAuxiliaryFeedback().

SETPOSCMD

Renamed to DriveSetPositionCommand().

SETTIMEBIT

Removed.

SGLOBAL

Renamed to $sglobal[].

SYNC

Replaced by sync keyword.

TASKSTATE

Removed. You can get functionality that is almost the same by using the StatusGetTaskItem() function.

VCMD

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

VERR

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

VFBK

Removed. You can get functionality that is almost the same by using the StatusGetAxisItem() function.

WAIT MODE* commands

Renamed to SetupTaskWaitMode().