The ARC Script Manual.

A.)

ACos( value ) Returns the math ACos() function (also called ArcCos) Example: $x = Acos(27)

Abs( value ) Returns the absolute value of a number Converts a negative into a positive number Example: $x = Abs(-22)

ADC_Wait (adcPort, higher/lower/equals, value, [delay ms]) Wait until ADC port is higher or lower than specified value The optional parameter Delay MS is the millisecond delay for checking. This value determines the delay between checks. Example: ADC_Wait(ADC0, HIGHER, 50) Example: ADC_Wait(ADC0, HIGHER, 50, 50)

ADC_Wait_Between (adcPort, low, high, [delay ms]) Wait (pauses script) until ADC port is between the specified values. Soon as the ADC port is between the low and high values, it will stop waiting. The optional parameter Delay MS is the millisecond delay for checking. This value determines the delay between checks. Example: ADC_Wait_Between(ADC0, 20, 50) Example: ADC_Wait_Between(ADC0, 20, 50, 50)

AppendArray( variable, value ) Appends the value to an existing array. This grows the size/length of the array to hold the new value. Example: AppendArray($myArray, 10) Example: AppendArray($myArray, banana)

ASin( value ) Returns the math ASin() function (also called ArcSin) Example: $x = ASin(27)

AX12Led(id, on/off) Controls the LED status of an Dynamixel AX-12 servo by its ID on port D5. Check the port modes in the respective section near the end of this document. Example: AX12LED(1, on) Example: AX12LED(1, off)

References

ADC Ports The ADC Ports are labeled on the EZ-B as A0 to A7. They are Analog Input ports, which read the voltage of the incoming data between 0 and 5 volts. Consult the Learn Section of our website for more information on Port Types. ADC0 ADC1 ADC2 ADC3 ADC4 ADC5 ADC6 ADC7

Auto Start Command Line Options

EZ-Builder supports two command line options for loading a project, and/or executing a script. If you wish to have ARC auto-load from a shortcut, the command line parameters allow you to specify an auto connect also. You may use the Shortcut Creator, located under the File Menu.

Parameter 1: The path and filename of the project file you wish to load apon startup. Parameter 2: The name of the script control you wish to execute apon startup.

"c:\Program Files\EZ-Builder\EZ-Builder.exe "C:\files\My File.ezb" "c:\Program Files\EZ-Builder\EZ-Builder.exe "C:\files\My File.ezb" "InitScript"


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.