Commands
You are reading our Automation1 API documentation for the Python™ programming language.
The Basics
In the Python API, Commands lets you execute AeroScript commands on the Automation1 controller. This is one of three ways that you can command your controller. You can also command it by running AeroScript programs with Tasks or by using a Command Queue in the Python API.
When you execute AeroScript commands through the Python API, a quantity of fixed overhead occurs. There will be some delay between commands when you execute two of them, one right after the other. This delay averages from 3 to 5 milliseconds, based on the performance of the PC. It also includes all the network latency delays that might occur. If this delay is not compatible with your production environment, use Command Queue.
MovePt() or MovePvt() commands, this process also requires a command queue. If you do not use one, your profile will stutter and drop out because of the delay that occurs between commands.
All Python methods have the same blocking behavior as their AeroScript function equivalents. Thus if the AeroScript function blocks, the Python method will block too.
All Python methods will apply relative paths as absolute paths, which is different from their AeroScript function equivalents.
Most AeroScript commands execute on a controller task. When you execute AeroScript commands through the Python API, they will execute on Task 1 by default. To change the task on which the commands will execute, specify the optional execution_task_index argument when you call the method.
How to Use
In the Python API, Commands is part of the Controller.runtime property. For all the APIs that operate under this property, the Automation1 controller must be running before you can execute commands. For more information about this property, see the Controller page.
To execute an AeroScript command, call the Python method that has the same arguments as the corresponding AeroScript function. To see a list of all the Python methods that you can use for Commands, refer to the Full Reference section. Some commands accept either axes or tasks. You can specify an axis by axis name or axis index. You can specify a task by task name or task index. Refer to the example that follows.
controller.runtime.commands.motion.enable(axes)
controller.runtime.commands.motion.movelinear(axes, distances, coordinated_speed)
controller.runtime.commands.motion.disable(axes)
You can execute almost every AeroScript command through the Python API. But there might be some special cases where you want to execute custom AeroScript. If this occurs, use the Controller.runtime.commands.execute method to specify the arbitrary AeroScript that you want to execute. Refer to the example that follows.
controller.runtime.commands.execute(aeroscript_text)
When you execute AeroScript commands through the Python API, they will execute on Task 1 by default. To change the task on which the commands will execute, specify the optional execution_task_index argument. You can specify a task by task name or task index. Refer to the example that follows.
controller.runtime.commands.motion.enable(axes, execution_task_index)
controller.runtime.commands.motion.movelinear(axes, distances, coordinated_speed, execution_task_index)
controller.runtime.commands.motion.disable(axes)
Example Code
# Enable the X axis. Move it 10 mm at 5 mm/s for a two-second move. Then disable it.
# All the AeroScript commands execute on Task 1, which is the default task.
controller.runtime.commands.motion.enable("X")
controller.runtime.commands.motion.movelinear("X", 10, 5)
controller.runtime.commands.motion.disable("X")
Thread Safety
The threading library is the only multithreading library that is officially supported by the Automation1 Python API.
All the methods that operate under the Controller.runtime.commands property are thread safe. When you use the threading library, you can call them from two or more threads without interference.
But just because the Python API is thread safe, this does not mean the controller can process the AeroScript commands that you are trying to execute. A single controller task can execute only one AeroScript command at a time. Thus if you try to execute two or more commands on the same task from different Python threads, an exception will occur.
Also, a single axis can do motion only from one AeroScript command. Thus if you try to execute a motion command on an axis that is currently executing a previous motion command, an exception will occur.
To prevent controller errors from occurring, you must synchronize or coordinate your process.
For Example
You can make a single Python thread responsible for a single controller task and some number of motion axes.
Full Reference
For more information about the methods that are available for Commands, refer to the list that follows.
Controller.runtime.commands Methods
Executes an AeroScript command on the Automation1 controller on the specified task.
aeroscript_text: The AeroScript string text to compile and execute.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an AeroScript command on the Automation1 controller on the specified task and returns an AeroScript axis value (which is the index of the axis). To get a return value from the AeroScript command, set the value of the AeroScript $areturn[0] property in the AeroScript command. If no return value is set or the AeroScript command fails before you set the AeroScript $areturn[0] property, this method will return 0 by default.
aeroscript_text: The AeroScript string text to compile and execute.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the AeroScript $areturn[0] property after the AeroScript command has executed.
Executes an AeroScript command on the Automation1 controller on the specified task and returns an AeroScript integer value (which is an int). To get a return value from the AeroScript command, set the value of the AeroScript $ireturn[0] property in the AeroScript command. If no return value is set or the AeroScript command fails before you set the AeroScript $ireturn[0] property, this method will return 0 by default.
aeroscript_text: The AeroScript string text to compile and execute.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the AeroScript $ireturn[0] property after the AeroScript command has executed.
Executes an AeroScript command on the Automation1 controller on the specified task and returns an AeroScript real value (which is a float). To get a return value from the AeroScript command, set the value of the AeroScript $rreturn[0] property in the AeroScript command. If no return value is set or the AeroScript command fails before you set the AeroScript $rreturn[0] property, this method will return 0.0 by default.
aeroscript_text: The AeroScript string text to compile and execute.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the AeroScript $rreturn[0] property after the AeroScript command has executed.
Executes an AeroScript command on the Automation1 controller on Task 1 and returns an AeroScript string value. To get a return value from the AeroScript command, set the value of the AeroScript $sreturn[0] property in the AeroScript command. If no return value is set or the AeroScript command fails before you set the AeroScript $sreturn[0] property, this method will return an empty string by default.
aeroscript_text: The AeroScript string text to compile and execute.
execution_task_index: The index of the task to execute the AeroScript command on.
Return: The value of the AeroScript $sreturn[0] property after the AeroScript command has executed.
Starts a command queue on the specified task and returns a CommandQueue object to manage and add commands to the new command queue. A command queue on a task will store all of the AeroScript commands that you add to it and execute them sequentially, in the order they were added. When you add AeroScript commands to the command queue, this method does not block unless the command queue is full and the should_block_if_full argument is True. If this method does not block, the AeroScript command is added to the command queue and will execute after all of the commands that you previously added are executed. A command queue is typically used to prevent the communication latency that occurs between AeroScript commands while your motion executes with the Commands API. (For example, let's say that you use velocity blending where the communication latency will cause deceleration to occur.) The specified task can execute queued commands only while the command queue is active. Non-queued commands from the Commands API and AeroScript programs cannot run while the command queue is active. When you are done with the command queue, use the Controller.runtime.commands.end_command_queue(CommandQueue) method to end the command queue and return the task to its normal state.
See Command Queue in the Python API for more information.
task: The task on which to create a command queue.
command_capacity: The maximum number of unexecuted AeroScript commands that can be stored in the command queue, after which the command queue is full.
should_block_if_full: Whether or not to block if you add an AeroScript command when the command queue is full. If True, the add will block until the command can be added. If False, a ControllerOperationException will be raised.
Stops the command queue on the task and returns the task to normal AeroScript execution. If an AeroScript command is currently executing, it will be aborted. All of the remaining queued AeroScript commands will be discarded. After you call this method, you cannot continue to use the specified CommandQueue object.
See Command Queue in the Python API for more information.
command_queue: The command queue to end.
milliseconds_timeout: The number of milliseconds to wait to end the command queue. If the command queue requires more than this quantity of time to end, an exception is raised. If the value of this function is set to -1, the function will wait an unspecified quantity of time for the command queue to end.
Controller.runtime.commands.advanced_motion Methods
Unloads a camming table from the SMC.
table_num: The camming table number to remove. This value must be greater than or equal to 0 and less than or equal to 99.
execution_task_index: The index of the task to execute the AeroScript command on.
Loads a camming table into the SMC.
table_num: The camming table number to use. This value must be greater than or equal to 0 and less than or equal to 99. Use this number when using the CammingOn() and CammingFreeTable() functions.
leader_values: Array of leader axis position values for the follower axis to track.
follower_values: Array of follower axis positions or velocities to use.
num_values: The number of values in the leaderValues and followerValues arrays.
units_mode: The units of the values in the camming table.
interpolation_mode: The interpolation type to use if the position of the leader axis is between two values in the table.
wrap_mode: Determines how a leader axis position value outside of the table is treated.
table_offset: An offset applied to all follower axis position or velocity values in the table.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables camming on the specified follower axis.
follower_axis: The follower axis on which to disable camming.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables camming on the specified leader axis and follower axis.
follower_axis: The axis to set as the follower axis.
leader_axis: The axis to set as the leader axis.
table_num: The camming table number to use. This value must be greater than or equal to 0 and less than or equal to 99.
source: The signal on the leader axis that the follower axis will track.
output: The output signal to generate and the synchronization mode to use on the camming follower axis.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables gearing on an axis.
follower_axis: The axis on which to disable gearing.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables gearing on an axis.
follower_axis: The axis on which to enable gearing.
filter: Type of filter applied to follower axis motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures gearing for an axis.
follower_axis: Follower axis for the gearing setup.
leader_axis: Leader axis for the gearing setup.
gearing_source: Input data source for gearing.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the gearing ratio for an axis.
follower_axis: The axis on which to set the gear ratio.
gear_ratio: The scale factor applied to the motion of the follower axis, specified as the ratio of follower axis counts to leader axis counts. A negative gear ratio will cause the follower axis to move in the opposite direction of the motion of the leader axis.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an asynchronous move on an axis to move it out of a limit condition.
axis: The axis on which to perform the move.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an asynchronous move on an axis to move it into a limit condition in the counterclockwise direction.
axis: The axis on which to perform the move.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an asynchronous move on an axis to move it into a limit condition in the clockwise direction.
axis: The axis on which to perform the move.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables normalcy mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables normalcy mode.
normalcy_alignment: The type of the normalcy mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the axes to use for normalcy mode.
normalcy_axis: The normalcy axis. This must be a dependent type axis.
plane_axes: The axes to use as the X and Y axes of the normalcy plane. These axes must be dominant type axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the tolerance to use for normalcy mode.
tolerance: The normalcy mode tolerance, in degrees.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.autofocus Methods
Disables autofocus on an axis.
axis: The axis on which to disable autofocus.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables autofocus on an axis.
axis: The axis on which to enable autofocus.
focus_mode: Selects if autofocus will run in continuous focus or single focus mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.calibration Methods
Loads and activates the specified axis calibration file or galvo power correction file.
calibration_type: The type of calibration that the specified file represents.
controller_file_name: The path to the file to be loaded as a calibration file.
execution_task_index: The index of the task to execute the AeroScript command on.
Deactivates and unloads the calibration for the specified calibration type.
calibration_type: The type of calibration to be unloaded.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.device Methods
Reads the contents of the drive array into the values_list_to_populate array. This method does not use a controller task.
axis: The axis from which to read the drive array.
values_list_to_populate: The list to populate with data that was read from the drive array.
start_address: Byte-addressable index of the drive array from which to begin reading data.
num_elements: The number of drive array elements to read.
drive_array_type: The underlying data type to read from the drive array.
Deprecated: This command is deprecated and will be removed in the next major version of Automation1 software. It will be replaced by a command with the same name that does not accept execution_task_index as an argument.
Writes the contents of the values_list argument to the drive array.
axis: The axis on which to write the drive array.
values_list: The data to write to the drive array.
start_address: Byte-addressable index of the drive array at which to begin writing data.
num_elements: The number of drive array elements to write.
drive_array_type: The underlying data type to write to the drive array.
execution_task_index: This argument is unused and will be removed in the next major version of Automation1 software.
Disengages the brake output and allows the axis to move freely.
axis: The axis on which to disengage the brake.
execution_task_index: The index of the task to execute the AeroScript command on.
Engages the brake output and prevents the axis from moving freely.
axis: The axis on which to engage the brake.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the drive array for drive data capture.
axis: The axis on which to configure the drive array for drive data capture.
configuration_number: The data capture configuration number. When capturing one input signal on the specified axis, specify a value of 0. When capturing two input signals on the specified axis, specify 0 for the first signal and 1 for the second signal.
drive_array_start_address: The byte-addressable index of the drive array where the first drive data capture value will be written.
number_of_points: The number of points that will be written to the drive array by drive data capture.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects the signal that will be stored by drive data capture.
axis: The axis on which to select the drive data capture signal.
configuration_number: The data capture configuration number. When capturing one input signal on the specified axis, specify a value of 0. When capturing two input signals on the specified axis, specify 0 for the first signal and 1 for the second signal.
input: The input signal for drive data capture.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects the event that will trigger drive data capture.
axis: The axis on which to select the drive data capture trigger.
configuration_number: The data capture configuration number. When capturing one input signal on the specified axis, specify a value of 0. When capturing two input signals on the specified axis, specify 0 for the first signal and 1 for the second signal.
trigger: The trigger event for drive data capture.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables drive data capture of configured inputs.
axis: The axis on which to disable drive data capture.
configuration_number: The data capture configuration number. When capturing one input signal on the specified axis, specify a value of 0. When capturing two input signals on the specified axis, specify 0 for the first signal and 1 for the second signal.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables drive data capture of configured inputs.
axis: The axis on which to enable drive data capture.
configuration_number: The data capture configuration number. When capturing one input signal on the specified axis, specify a value of 0. When capturing two input signals on the specified axis, specify 0 for the first signal and 1 for the second signal.
execution_task_index: The index of the task to execute the AeroScript command on.
Resets drive data capture configuration.
axis: The axis on which to reset drive data capture.
configuration_number: The data capture configuration number. To reset the first configuration on the specified axis, specify a value of 0. To reset the second configuration on the specified axis, specify a value of 1.
execution_task_index: The index of the task to execute the AeroScript command on.
Inverts the output signal of a specified channel.
axis: The axis on which to apply the configuration.
output_channel: The outgoing encoder channel.
reverse_direction: Reverses the direction of the encoder output signal.
execution_task_index: The index of the task to execute the AeroScript command on.
Applies a divider on the specified output channel, lowering the frequency of output signals.
axis: The axis on which to apply the configuration.
output_channel: The outgoing encoder channel.
output_divider: The divider to apply to encoder output.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an output channel to echo encoder signals from the specified input channel.
axis: The axis on which to apply the configuration.
output_channel: The outgoing encoder channel.
input_channel: The incoming encoder channel.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables encoder output on the specified output channel.
axis: The axis on which to disable encoder output.
output_channel: The outgoing encoder channel.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables encoder output on the specified output channel.
axis: The axis on which to enable encoder output.
output_channel: The outgoing encoder channel.
output_mode: This argument is unused and will be removed in the next major version of Automation1 software. You must specify EncoderOutputMode.Default.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the specified drive item from the specified axis.
axis: The axis from which to retrieve the drive item value.
drive_item: The drive item to retrieve.
additional_data: Additional data for the specified drive item. This argument is required by some drive items.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified drive item..
Configures pulse streaming mode.
output_axis: The output axis on which to configure pulse streaming mode.
input_axes: A list of one or more axes which will be tracked.
input_scale_factors: A list of scale factors to apply to each axis in the $inputAxes array.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures pulse streaming mode.
output_axis: The output axis on which to configure pulse streaming mode.
input_axes: A list of one or more axes which will be tracked.
input_scale_factors: A list of scale factors to apply to each axis in the $inputAxes array.
signal_mode: The signal mode used when DriveEncoderOutputConfigureInput() and DriveEncoderOutputOn() are configured to echo the Pulse Stream signal to an encoder output.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables pulse streaming mode on an axis.
output_axis: The axis on which to disable pulse streaming mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables pulse streaming mode on an axis.
output_axis: The axis on which to enable pulse streaming mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Deprecated: This command is deprecated and will be removed in the next major version of Automation1 software. This function has been obsoleted by DriveSetEncoderPosition(). Use that function instead to set the auxiliary feedback.
Sets the auxiliary feedback of the axis.
axis: The axis on which to set the auxiliary feedback.
auxiliary_feedback: The feedback value to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the hardware position counter of a drive encoder.
axis: The axis on which to set the hardware position counter of a drive encoder.
encoder_channel: The drive encoder on which to set the hardware position counter.
encoder_value: The value to set to the hardware position counter.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the position command value of the specified axis at the servo loop level and adjusts the position feedback for position error.
axis: The axis on which to set the position command.
position_command_value: The position command value to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the position command and the position feedback value of the specified axis at the servo loop level.
axis: The axis on which to set the position command.
position_feedback_value: The position feedback value to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.drive_analog_control Methods
Configures the relationship between the acceleration feedforward and analog input voltage, where Acceleration Feedforward = (Analog Input Voltage - ($inputOffset / 1000)) x $inputScale.
axis: The axis on which to apply the configuration for the Drive Analog Acceleration Feedforward feature.
analog_input_num: The analog input signal used in the acceleration feedforward computation.
input_scale: The scale value used in the acceleration feedforward computation to convert from volts to units/second^2.
input_offset: The offset value in millivolts used in the acceleration feedforward computation. This argument has a minimum value of -1000 and a maximum value of 1000.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the Drive Analog Acceleration Feedforward feature.
axis: The axis on which to disable the Drive Analog Acceleration Feedforward feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the Drive Analog Acceleration Feedforward feature.
axis: The axis on which to enable the Drive Analog Acceleration Feedforward feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the relationship between the output current and analog input voltage, where Current = (Analog Input Voltage - ($inputOffset / 1000)) x $inputScale.
axis: The axis on which to apply the configuration for the Drive Analog Current Control feature.
analog_input_num: The analog input signal used in the current computation.
digital_input_num: The digital input signal used to enable and disable the axis.
input_scale: The scale value used in the current computation to convert from volts to amps.
input_offset: The offset value in millivolts used in the current computation. This argument has a minimum value of -1000 and a maximum value of 1000.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the Drive Analog Current Control feature.
axis: The axis on which to disable the Drive Analog Current Control feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the Drive Analog Current Control feature.
axis: The axis on which to enable the Drive Analog Current Control feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the relationship between the output position and analog input voltage, where Position = (Analog Input Voltage - $inputOffset) x $inputScale + (Starting Position). Starting Position is the position of the axis at the time DriveAnalogPositionControlOn() is called.
axis: The axis on which to apply the configuration for the Drive Analog Position Control feature.
input_num: The analog input signal used in the position computation.
input_scale: The scale value used in the position computation.
input_offset: The offset value used in the position computation.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the maximum speed at which the controller commands the axis to move using the Drive Analog Position Control feature. If you do not use this function, then the controller does not limit the maximum speed.
axis: The axis on which to apply the configuration for the Drive Analog Position Control feature.
max_speed: The speed in user units per second. If you specify a value of 0 for this argument, then the controller does not limit the maximum speed.
execution_task_index: The index of the task to execute the AeroScript command on.
Disable the Drive Analog Position Control feature.
axis: The axis on which to disable the Drive Analog Position Control feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Enable the Drive Analog Position Control feature.
axis: The axis on which to enable the Drive Analog Position Control feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the relationship between the output velocity and analog input voltage, where Velocity = (Analog Input Voltage - ($inputOffset / 1000)) x $inputScale.
axis: The axis on which to apply the configuration for the Drive Analog Velocity Control feature.
analog_input_num: The analog input signal used in the velocity computation.
digital_input_num: The digital input signal used to enable and disable the axis.
input_scale: The scale value used in the velocity computation to convert from volts to units/second.
input_offset: The offset value in millivolts used in the velocity computation. This argument has a minimum value of -1000 and a maximum value of 1000.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the Drive Analog Velocity Control feature.
axis: The axis on which to disable the Drive Analog Current Control feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the Drive Analog Velocity Control feature.
axis: The axis on which to enable the Drive Analog Velocity Control feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the relationship between the velocity feedforward and analog input voltage, where Velocity Feedforward = (Analog Input Voltage - ($inputOffset / 1000)) x $inputScale.
axis: The axis on which to apply the configuration for the Drive Analog Velocity Feedforward feature.
analog_input_num: The analog input signal used in the velocity feedforward computation.
input_scale: The scale value used in the velocity feedforward computation to convert from volts to units/second.
input_offset: The offset value in millivolts used in the velocity feedforward computation. This argument has a minimum value of -1000 and a maximum value of 1000.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the Drive Analog Velocity Feedforward feature.
axis: The axis on which to disable the Drive Analog Velocity Feedforward feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the Drive Analog Velocity Feedforward feature.
axis: The axis on which to enable the Drive Analog Velocity Feedforward feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.fault_and_error Methods
Acknowledges all axis faults and clears all task errors.
execution_task_index: The index of the task to execute the AeroScript command on.
Acknowledges faults on axes.
axes: The axes on which to acknowledge faults.
execution_task_index: The index of the task to execute the AeroScript command on.
Causes faults on an axis.
axis: The axis on which to cause faults.
fault_mask: The mask of faults to cause on the axis.
execution_task_index: The index of the task to execute the AeroScript command on.
Clears the task error that is set on the given task.
task_index: The task index on which to clear the task error.
execution_task_index: The index of the task to execute the AeroScript command on.
Clears the task warning that is set on the given task.
task_index: The task index on which to clear the task warning.
execution_task_index: The index of the task to execute the AeroScript command on.
Causes a task error with the specified message on a task.
task_index: The task on which to cause a task error.
error_message: The error message to display.
execution_task_index: The index of the task to execute the AeroScript command on.
Deprecated: This command is deprecated and will be removed in the next major version of Automation1 software. This function overload has been obsoleted by the TaskSetError($taskIndex as integer, $errorMessage as string) overload. Use that overload instead to set a task error with your own specified message. Use the TaskClearError($taskIndex as integer) function to clear a task error.
Causes a specified task error on a task.
task_index: The task on which to cause a task error.
error: The task error to cause. Specify 0 to clear the current task error.
execution_task_index: The index of the task to execute the AeroScript command on.
Causes a task warning with the specified message on a task.
task_index: The task on which to cause a task warning.
warning_message: The warning message to display.
execution_task_index: The index of the task to execute the AeroScript command on.
Deprecated: This command is deprecated and will be removed in the next major version of Automation1 software. This function overload has been obsoleted by the TaskSetWarning($taskIndex as integer, $warningMessage as string) overload. Use that overload instead to set a task warning with your own specified message. Use the TaskClearWarning($taskIndex as integer) function to clear a task warning.
Causes a specified task warning on a task.
task_index: The task on which to cause a task warning.
warning: The task warning to cause. Specify 0 to clear the current task warning.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.galvo Methods
Specifies the pulse width, in microseconds, of the O1 signal.
axis: The axis on which to configure the laser 1 pulse width.
time: The time value in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the pulse width, in microseconds, of the O2 signal.
axis: The axis on which to configure the laser 2 pulse width.
time: The time value in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies when the axis fires the laser relative to when you command the laser to power on and when the axis stops firing the laser relative to when you command the laser to power off.
axis: The axis on which to configure laser delays.
on_delay: The delay time, in microseconds, that is necessary for the laser to power on. If your program uses the automatic laser mode, this value must be greater than or equal to -32,768 and less than or equal to 32,767. If your program uses the manual laser mode or if you are operating in IFOV mode, this value must be greater than or equal to -975 and less than or equal to 32,767.
off_delay: The delay time, in microseconds, that is necessary for the laser to power off. This value must be greater than or equal to -975 and less than or equal to 2,000,000.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the mode in which the laser output signals operate.
axis: The axis on which to configure the laser mode.
laser_mode: The value of the laser output mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the period, in microseconds, of the O1 and O2 signals.
axis: The axis on which to configure the laser output period.
time: The time value in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the period, in microseconds, of the standby signals.
axis: The axis on which to configure the standby period.
time: The time value in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the pulse width, in microseconds, of the standby signals.
axis: The axis on which to configure the standby pulse width.
time: The time value in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the pulse width, in microseconds, of the suppression signal.
axis: The axis on which to configure the suppression pulse width.
time: The time value in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables "marking on the fly" functionality.
axis: The axis on which to configure the encoder scale factor.
encoder_scale_factor: The ratio of scanner counts to encoder counts. This value must be greater than -32,768 and less than 32,767.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies how the laser on a galvo axis is controlled.
axis: The axis on which to configure the laser state.
laser_state: The mode to use to control the laser.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the projective transformation on galvo axes.
axis: The galvo axis on which to disable the projection.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the projective transformation on galvo axes.
axis: The galvo axis on which to apply the projection.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the projective transformation coefficients that are applied to galvo axes.
axis: The galvo axis on which the projection is to be applied.
coefficients: The coefficients to use.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies an angle of rotation that is applied to galvo axes.
axis: The galvo axis on which the rotation is to be applied.
angle: The angle in degrees.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the galvo wobble feature.
axis: The galvo axis on which the galvo wobble is to be disabled.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the galvo wobble feature.
axis: The galvo axis on which the galvo wobble is to be applied.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the wobble feature, which generates a wobble pattern that is added to the motion command of a galvo axis.
axis: The galvo axis on which the galvo wobble is to be applied.
amplitude_parallel: The amplitude of the wobble shape parallel to the vector path.
amplitude_perpendicular: The amplitude of the wobble shape perpendicular to the vector path.
frequency: The frequency of the wobble oscillation. Specified in hertz for time-based mode or user units for distance-based mode.
wobble_mode: Specifies whether the wobble is repeated based on a fixed time or a fixed vector distance.
wobble_type: The type of figure that is generated by the wobble.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables Infinite Field of View (IFOV).
execution_task_index: The index of the task to execute the AeroScript command on.
Enables Infinite Field of View (IFOV).
execution_task_index: The index of the task to execute the AeroScript command on.
Configures axes to command in Infinite Field of View (IFOV).
axis_pair_h: The horizontal axis pair. This pair consists of a galvo axis and its corresponding servo axis.
axis_pair_v: The vertical axis pair. This pair consists of a galvo axis and its corresponding servo axis.
scale_factor_h: Specifies the scaling from the servo axis to the galvo axis in the horizontal axis pair.
scale_factor_v: Specifies the scaling from the servo axis to the galvo axis in the vertical axis pair.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the field of view size of the galvo head in Infinite Field of View (IFOV).
size: The field of view size, in user units, of the galvo head.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures more axes to command in Infinite Field of View (IFOV).
axes: A list of axes to synchronize in Infinite Field of View in addition to those specified in IfovSetAxisPairs().
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the maximum search time that the controller looks ahead in Infinite Field of View (IFOV).
time: The time, in milliseconds, that the controller looks ahead.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the maximum acceleration of the servo axes while in Infinite Field of View (IFOV).
acceleration: The maximum acceleration, in user units/second squared, of the servo axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the maximum speed of the servo axes while in Infinite Field of View (IFOV).
speed: The maximum speed, in user units/time base, of the servo axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.io Methods
Gets the value of a specified analog input.
axis: The axis on which to retrieve the value of the analog input.
input_num: The number of the analog input to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified analog input..
Configures the specified analog output to use values from the drive array.
axis: The axis on which to apply the configuration.
output_num: The number of the analog output to configure.
update_event: The event which causes a new analog output value to be read from the drive array.
drive_array_start_address: The byte-addressable index of the drive array where the first analog output value is stored.
number_of_points: The number of analog output values to read from the drive array.
divisor: Divides the default update event rate by the specified integer if $updateEvent is set to Time.
enable_repeat: Configures the specified analog output to start over at the first analog output value after the last value in the drive array is used.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an analog output to be dependent on a specified real-time internal servo loop value of a single axis.
output_axis: The axis of the servo loop value that $trackingItem is tracking.
output_num: The index of the analog output to update.
tracking_item: A servo loop value, such as position command, to track.
scale_factor: The scale factor applied to the analog output.
offset: This value is applied with the tracking value to the analog output. Use this argument if you want to track position on a stage where the position can never be negative. The units are volts.
min_voltage: The minimum voltage that the analog output will be set to.
max_voltage: The maximum voltage that the analog output will be set to.
execution_task_index: The index of the task to execute the AeroScript command on.
Restores the analog output configuration to the default operating mode.
axis: The axis on which to apply the configuration.
output_num: The number of the analog output to configure.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an analog output to be dependent on the square root of the sum of squares of a specified real-time internal servo loop value of multiple axes. The tracked value is always positive or zero.
output_axis: The axis of the servo loop value that $trackingItem is tracking.
output_num: The index of the analog output to update.
input_axes: A list of axes from which to read the $trackingItem from, vectorizing the result, in order to update the analog output.
tracking_item: A servo loop value, such as position command, to track.
scale_factor: The scale factor applied to the analog output.
offset: This value is applied with the tracking value to the analog output. Use this argument if you want to track position on a stage where the position can never be negative. The units are volts.
min_voltage: The minimum voltage that the analog output will be set to.
max_voltage: The maximum voltage that the analog output will be set to.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the value of a specified analog output.
axis: The axis on which to retrieve the value of the analog output.
output_num: The number of the analog output to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified analog output..
Sets the value of a specified analog output.
axis: The axis on which to set the value of the analog output.
output_num: The number of the analog output to set.
value: The value to set to the specified analog output.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the value of the specified digital input bit.
axis: The axis from which to get the digital input bit.
input_num: The digital input bit to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified digital input bit..
Gets the value of the specified digital output bit.
axis: The axis from which to get the digital output bit.
output_num: The digital output bit to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified digital output bit..
Sets the value of the specified digital output bit.
axis: The axis on which to set the digital output bit.
output_num: The digital output bit to set.
value: The value of the specified digital output bit.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the laser to manual mode and to the specified value.
axis: The axis on which to configure the laser state.
laser_state: The value for the laser. To turn off the laser, specify a value of 0. To turn on the laser, specify a value of 1.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the value of the specified virtual binary input bit.
input_num: The virtual binary input bit to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified virtual binary input bit..
Sets the value of the specified virtual binary input bit.
input_num: The virtual binary input bit to set.
value: The value to which you set the virtual binary input bit.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the value of the specified virtual binary output bit.
output_num: The virtual binary output bit to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified virtual binary output bit..
Sets the value of the specified virtual binary output bit.
output_num: The virtual binary output bit to set.
value: The value to which you set the virtual binary output bit.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the value of a specified virtual register input.
input_num: The number of the virtual register input to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified virtual register input..
Sets the value of a specified virtual register input.
input_num: The number of the virtual register input to set.
value: The value to set to the virtual register input.
execution_task_index: The index of the task to execute the AeroScript command on.
Gets the value of a specified virtual register output.
output_num: The number of the virtual register output to get.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value of the specified virtual register output..
Sets the value of a specified virtual register output.
output_num: The number of the virtual register output to set.
value: The value to set to the virtual register output.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.joystick Methods
Adds an axis group configuration to the joystick configuration.
motion_axes: A list of one or more axes to control with the joystick.
joystick_inputs: A list of one or more joystick inputs to use to control axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Removes all axis group configurations from the joystick configuration.
execution_task_index: The index of the task to execute the AeroScript command on.
Activates the joystick.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.motion Methods
Aborts motion on the specified axes. The controller stops all motion and ramps the axis to zero speed. This method waits for the abort to start but it does not wait for the abort to complete. This method does not block. It is different from the AeroScript Abort() function, which does block. Use the Controller.runtime.commands.motion.waitformotiondone method to ensure aborted motion is done before executing the next command, otherwise an error might occur.
axes: The axes to abort.
Disables the axes so that you cannot command motion. This method waits for the disable to start but it does not wait for the disable to complete. This method does not block. It is different from the AeroScript Disable() function, which does block.
axes: The axes to disable.
Enables the axes so that you can command motion.
axes: The axes to enable.
execution_task_index: The index of the task to execute the AeroScript command on.
Performs a home cycle by moving the axes to a known hardware reference location. The task waits for completion of the home cycle.
axes: The axes to home.
execution_task_index: The index of the task to execute the AeroScript command on.
Performs a home cycle by moving the axes to a known hardware reference location. The controller performs the home cycle asynchronously so that the task moves on without waiting for completion.
axes: The axes to home.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an asynchronous point-to-point move to an absolute target-position on the specified axes.
axes: The axes on which to perform point-to-point motion.
positions: The absolute target-positions of the move.
speeds: The speeds at which to move the specified axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes a coordinated counterclockwise circular arc move on the specified axes. An arc move creates an arc in vector space using two axes.
axes: The axes on which to perform counterclockwise circular motion.
distances: The end points of the circular arc.
radius: The radius of the circular arc.
coordinated_speed: The speed of the coordinated circular motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes a coordinated counterclockwise circular arc move on the specified axes. An arc move creates an arc in vector space using two axes.
axes: The axes on which to perform counterclockwise circular motion.
distances: The end points of the circular arc.
center: The relative offsets of the center point from the starting positions of the axes.
coordinated_speed: The speed of the coordinated circular motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes a coordinated clockwise circular arc move on the specified axes. An arc move creates an arc in vector space using two axes.
axes: The axes on which to perform clockwise circular motion.
distances: The end points of the circular arc.
radius: The radius of the circular arc.
coordinated_speed: The speed of the coordinated circular motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes a coordinated clockwise circular arc move on the specified axes. An arc move creates an arc in vector space using two axes.
axes: The axes on which to perform clockwise circular motion.
distances: The end points of the circular arc.
center: The relative offsets of the center point from the starting positions of the axes.
coordinated_speed: The speed of the coordinated circular motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Commands axes to remain at zero velocity for a quantity of time.
axes: The axes on which to perform the delay.
delay_time: Total delay time in milliseconds, rounded to the nearest time interval of the MotionUpdateRate parameter.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an asynchronous freerun move on the specified axes. The axes will move indefinitely at the specified velocity.
axes: The axes on which to perform freerun motion.
velocities: The velocities at which to move the specified axes. The signs of the velocities specify the directions of motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Stops an asynchronous freerun move on the specified axes. The axis velocities decelerate to zero.
axes: The axes on which to stop freerun motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes an asynchronous point-to-point move by an incremental distance on the specified axes.
axes: The axes on which to perform point-to-point motion.
distances: The distances and directions to move the specified axes relative to the current positions. A distance of zero results in no motion.
speeds: The speeds at which to move the specified axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes a coordinated linear move on the specified axes. A linear move creates a line in vector space on one or more axes.
axes: The axes on which to perform linear motion.
distances: The end points of the linear move.
coordinated_speed: The speed of the coordinated linear motion.
execution_task_index: The index of the task to execute the AeroScript command on.
Executes a point-to-point rapid move on the specified axes.
axes: The axes on which to perform point-to-point rapid motion.
distances: The end points of the rapid move.
speeds: The speeds at which to move each of the axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Clears the program position offsets on the specified axes. The program positions will be restored to the current axis positions.
axes: The axes on which to clear the program position offsets.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the program positions of the specified axes to the specified values. The controller applies an offset to the current axis positions so that the axes do not move. All moves that specify an absolute target-position will be relative to the new program position.
axes: The axes on which to set the program positions.
program_positions: The new program positions to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Waits for motion to be done on the specified axes and for the axes to be in position. The motion is done when the commanded velocity is at zero. The axes are in position when the position error is at the threshold specified by the InPositionTime and InPositionDistance parameters.
axes: The axes on which to wait for motion to be done and in position.
execution_task_index: The index of the task to execute the AeroScript command on.
Waits for motion to be done on the specified axes. The motion is done when the commanded velocity is at zero.
axes: The axes on which to wait for motion to be done.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the specified work offset on the specified axes and values. Previously configured axes will retain their values unless overwritten.
offset_number: The index of the work offset to configure. An integer between and including 1 and 100.
axes: The axes on which to configure work offset values.
program_positions: The program positions to set as the work offset origin.
execution_task_index: The index of the task to execute the AeroScript command on.
Deactivates work offsets for all axes on the controller.
axes: The axes on which to disable work offsets.
execution_task_index: The index of the task to execute the AeroScript command on.
Activates the specified work offset and applies offsets to the specified axes.
offset_number: The index of the work offset to enable. An integer between and including 1 and 100.
axes: The axes on which to enable the specified work offset.
execution_task_index: The index of the task to execute the AeroScript command on.
Erases the work offset configurations on all axes. All work offsets must first be disabled.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.motion_setup Methods
Removes all motion restrictions from the selected axes.
axes: The axes from which to remove motion restrictions.
execution_task_index: The index of the task to execute the AeroScript command on.
Applies motion restrictions to the selected axes. This function restricts the motion, home, and enable features on the selected axes.
axes: The axes on which to apply motion restrictions.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets a ramp type along with a ramp type value for accelerations and decelerations separately for an axis.
axis: The axis on which to set the ramp type.
ramp_type_accel: The ramping type to set during accelerations.
ramp_type_arg_accel: The ramping type additional argument for accelerations. This is only used when $rampTypeAccel is RampType.SCurve and represents the s-curve percentage.
ramp_type_decel: The ramping type to set during decelerations.
ramp_type_arg_decel: The ramping type additional argument for decelerations. This is only used when $rampTypeDecel is RampType.SCurve and represents the s-curve percentage.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets a ramp value for accelerations and decelerations separately for an axis.
axis: The axis on which to set the ramp value.
ramp_mode_accel: The ramping mode to set during accelerations.
ramp_value_accel: The ramp value to set during accelerations.
ramp_mode_decel: The ramping mode to set during decelerations.
ramp_value_decel: The ramp value to set during decelerations.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the speed of an axis for MoveRapid() motion.
axis: The axis on which to set the speed.
speed: The speed to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the maximum acceleration of coordinated motion on dominant axes on the current task.
accel_limit_non_tangent: The maximum acceleration of axes at non-tangent portions of a motion path.
accel_limit_circular: The maximum acceleration of axes at curved parts of a motion path.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets a coordinated ramp type along with a ramp type value for accelerations and decelerations separately for dominant axes on the current task.
ramp_type_accel: The ramping type to set during accelerations.
ramp_type_arg_accel: The ramping type additional argument for accelerations. This is only used when $rampTypeAccel is RampType.SCurve and represents the s-curve percentage.
ramp_type_decel: The ramping type to set during decelerations.
ramp_type_arg_decel: The ramping type additional argument for decelerations. This is only used when $rampTypeDecel is RampType.SCurve and represents the s-curve percentage.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets a coordinated ramp value for accelerations and decelerations separately for dominant axes on the current task.
ramp_mode_accel: The ramping mode to set during accelerations.
ramp_value_accel: The ramp value to set during accelerations.
ramp_mode_decel: The ramping mode to set during decelerations.
ramp_value_decel: The ramp value to set during decelerations.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the coordinated speed for dominant axes on the current task.
speed: The speed to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the maximum acceleration of coordinated motion on dependent axes on the current task.
accel_limit_dependent: The maximum acceleration of axes at all portions of a motion path.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets a coordinated ramp rate for accelerations and decelerations separately for dependent axes on the current task.
ramp_value_accel: The ramp rate value to set during accelerations.
ramp_value_decel: The ramp rate value to set during decelerations.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the coordinated speed for dependent axes on the current task.
speed: The speed to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the distance units of the current task.
distance_units: The distance units to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the target mode of the current task.
target_mode: The target mode to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the time units of the current task.
time_units: The time units to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the wait mode of the current task.
wait_mode: The wait mode to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.pso Methods
Configures an array of PSO bit data words, where each word is a 32-bit integer.
axis: The axis on which to configure the bit data.
drive_array_start_address: The byte-addressable index of the drive array where the first word of bit data is stored.
number_of_points: The number of bit data words to be read from the drive array.
enable_repeat: Configures PSO to continue to use bit data words after the last word in the array is used, starting over at the first word.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the distance counter tracking directions that will cause PSO distance events.
axis: The axis on which to configure the distance event directions.
event_direction: The distance event directions to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an array of distances in counts that the PSO counter or counters must travel for an event to occur.
axis: The axis on which to configure the distances.
drive_array_start_address: The byte-addressable index of the drive array where the first distance is stored.
number_of_distances: The number of distances to be read from the drive array.
enable_repeat: Configures PSO to continue to use distances after the last distance in the array is used, starting over at the first distance.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the conditions which will reset the PSO distance counters.
axis: The axis on which to configure the distance counter reset conditions.
options_mask: A bitmask of PSO distance counter reset options. Use the values from the PsoDistanceCounterResetMask enum.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the distance in counts that the PSO counter or counters must travel for an event to occur.
axis: The axis on which to configure the distance.
distance: The distance in counts.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects the source of each PSO distance counter.
axis: The axis on which to configure the distance counter sources.
inputs: A list of one to three input sources, one for each distance counter.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the PSO distance counters to apply an integer scale factor for each tracking input.
axis: The axis on which to configure the scale factors.
scale_factors: A list of one to three integer scale factors, one per tracking input.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the PSO distance counters, causing them to retain their values and ignore their configured inputs.
axis: The axis on which to disable the PSO distance counters.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the PSO distance counters, allowing them to track their configured inputs.
axis: The axis on which to enable the PSO distance counters.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables PSO distance events.
axis: The axis on which to disable distance events.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables PSO distance events.
axis: The axis on which to enable distance events.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures additional conditions to prevent PSO events from occurring.
axis: The axis on which to configure the event mask conditions.
event_mask: A bitmask of event mask conditions. Use the values from the PsoEventMask enum.
execution_task_index: The index of the task to execute the AeroScript command on.
Immediately halts active continuous PSO events.
axis: The axis on which to halt the events.
execution_task_index: The index of the task to execute the AeroScript command on.
Immediately causes continuous PSO events to occur.
axis: The axis on which to cause the events.
execution_task_index: The index of the task to execute the AeroScript command on.
Immediately causes a single PSO event to occur.
axis: The axis on which to cause the event.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables PSO laser events.
axis: The axis on which to disable PSO laser events.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the PSO to generate an event when the laser command bit turns on.
axis: The axis on which to generate laser PSO events.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects the output pin on which to drive the PSO output.
axis: The axis on which to select the PSO output pin.
output: The selected output pin.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects which internal PSO signal to drive onto the output pin.
axis: The axis on which to select the PSO output source.
output_source: The selected output source.
execution_task_index: The index of the task to execute the AeroScript command on.
Immediately deactivates the PSO output.
axis: The axis on which to deactivate the PSO output.
execution_task_index: The index of the task to execute the AeroScript command on.
Immediately activates the PSO output.
axis: The axis on which to activate the PSO output.
execution_task_index: The index of the task to execute the AeroScript command on.
Resets all PSO configuration, which restores all PSO settings to their default values.
axis: The axis on which to reset the PSO configuration.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures a PSO input transformation channel.
axis: The axis on which to configure the transformation channel.
transformation_channel: The transformation channel to configure.
input_a: The first input to the transformation.
input_b: The second input to the transformation.
transformation_function: The function of the transformation.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables a PSO input transformation channel.
axis: The axis on which to disable the transformation channel.
transformation_channel: The transformation channel to disable.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables a PSO input transformation channel.
axis: The axis on which to enable the transformation channel.
transformation_channel: The transformation channel to enable.
execution_task_index: The index of the task to execute the AeroScript command on.
Checks for a valid configuration of pulse mode parameters and applies the configuration to the waveform module.
axis: The axis on which to apply the pulse configuration.
execution_task_index: The index of the task to execute the AeroScript command on.
Checks for a valid configuration of PWM mode parameters and applies the configuration to the waveform module.
axis: The axis on which to apply the PWM configuration.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the waveform module to wait for the specified time after a PSO event before beginning to output a waveform.
axis: The axis on which to configure the waveform output delay.
delay_time: The delay time in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects the output mode of the waveform module.
axis: The axis on which to select the output mode of the waveform module.
waveform_mode: Mode selection for the waveform module output.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an array of pulse counts for a sequence of waveform module outputs in pulse mode. The pulse count specifies the number of periods that will be generated from a single PSO event.
axis: The axis on which to configure the pulse counts.
drive_array_start_address: The byte-addressable index of the drive array where the first pulse count is stored.
number_of_points: The number of pulse counts to be read from the drive array.
enable_repeat: Configures PSO to continue to use pulse counts after the last pulse count in the array is used, starting over at the first pulse count.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an array of on times for a sequence of waveform module outputs in pulse mode. The on time specifies the active portion of the pulse period.
axis: The axis on which to configure the on times.
drive_array_start_address: The byte-addressable index of the drive array where the first on time is stored.
number_of_points: The number of on times to be read from the drive array.
enable_repeat: Configures PSO to continue to use on times after the last on time in the array is used, starting over at the first on time.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an array of total times for a sequence of waveform module outputs in pulse mode. The total time specifies the full period of the pulse.
axis: The axis on which to configure the total times.
drive_array_start_address: The byte-addressable index of the drive array where the first total time is stored.
number_of_points: The number of total times to be read from the drive array.
enable_repeat: Configures PSO to continue to use total times after the last total time in the array is used, starting over at the first total time.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the maximum number of events in the queue. Each event in the queue will cause a PSO waveform pulse generation to occur after the active waveform period completes.
axis: The axis on which to configure the queue for the PSO waveform pulse event.
max_queued_events: The maximum number of events to put in the queue.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the fixed pulse count of the waveform module output in pulse mode, which will be applied to all pulses. The pulse count specifies the number of periods that will be generated from a single PSO event.
axis: The axis on which to configure the number of pulses.
pulse_count: The integer number of pulses.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the fixed on time of the waveform module output in pulse mode, which will be applied to all pulses. The on time specifies the active portion of the pulse period.
axis: The axis on which to configure the on time.
on_time: The on time in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the fixed total time of the waveform module output in pulse mode, which will be applied to all pulses. The total time specifies the full period of the pulse.
axis: The axis on which to configure the total time.
total_time: The total time in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures additional conditions to disable the PSO waveform output in pulse mode.
axis: The axis on which to configure PSO waveform pulse mode masking options.
pulse_mask: A bitmask of PSO waveform pulse mode masking options. Use the values from the PsoWaveformPulseMask enum.
execution_task_index: The index of the task to execute the AeroScript command on.
Allows or prevents the waveform module from outputting truncated waveform outputs in pulse mode.
axis: The axis on which to configure the pulse truncation prevention feature.
prevent_truncation: Configures the waveform module to not allow the generation of truncated waveform outputs in pulse mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an array of on times for a sequence of waveform module outputs in PWM mode. The on time specifies the variable active portion of the PWM signal.
axis: The axis on which to configure the on times.
drive_array_start_address: The byte-addressable index of the drive array where the first on time is stored.
number_of_points: The number of on times to be read from the drive array.
enable_repeat: Configures PSO to continue to use on times after the last on time in the array is used, starting over at the first on time.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the fixed total time of the waveform module output in PWM mode. The total time specifies the full period of the PWM signal.
axis: The axis on which to configure the total time.
total_time: The total time in microseconds.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the delay mode of the waveform module when you use the external synchronization signal.
axis: The axis on which to configure the external sync delay mode.
delay_mode: The external sync delay mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the external sync option for the waveform module.
axis: The axis on which to disable external sync option.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the waveform module to wait for the rising edge of the external sync signal before beginning to output a waveform.
axis: The axis on which to enable external sync option.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the waveform module, preventing PSO events from triggering it.
axis: The axis on which to disable the waveform module.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the waveform module, allowing PSO events to trigger it.
axis: The axis on which to enable the waveform module.
execution_task_index: The index of the task to execute the AeroScript command on.
Specifies the configuration of the optional PSO waveform scaling feature.
axis: The axis on which to configure PSO waveform scaling.
scaling_mode: Specifies the waveform parameters to which to apply the PSO waveform scaling.
scaling_input: Specifies the input to the PSO waveform scaling.
input_range: Specifies the range of values in which the configured input will be used to calculate the scale factor to apply to the waveform parameters.
scale_factor_range: Specifies the valid range of scale factor outputs from the PSO waveform scaling feature.
execution_task_index: The index of the task to execute the AeroScript command on.
Deactivates PSO waveform scaling.
axis: The axis on which to deactivate PSO waveform scaling.
execution_task_index: The index of the task to execute the AeroScript command on.
Activates PSO waveform scaling.
axis: The axis on which to activate PSO waveform scaling.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures an array of window range pairs each consisting of a lower bound followed by an upper bound.
axis: The axis on which to configure the window ranges.
window_number: The number of the window on which to configure the ranges.
drive_array_start_address: The byte-addressable index of the drive array where the lower bound of the first range pair is stored.
number_of_ranges: The number of range value pairs to be read from the drive array.
enable_repeat: Configures PSO to continue to use range pairs after the last range pair in the array is used, starting over at the first range pair.
execution_task_index: The index of the task to execute the AeroScript command on.
Deprecated: This command is deprecated and will be removed in the next major version of Automation1 software. This function has been obsoleted by PsoWindowConfigureEventDirection(). Use that function instead to specify the update behavior of the PSO Window ranges in array mode.
Configures the array of window range pairs to update when exiting the active window range in specific directions.
axis: The axis on which to configure the window array update direction.
window_number: The number of the window on which to configure the array update direction.
window_update_direction: Mode selection to select the active window range exit directions on which to update the window range.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the conditions which will reset the PSO window counters.
axis: The axis on which to configure the window counter reset conditions.
options_mask: A bitmask of PSO window counter reset options. Use the values from the PsoWindowCounterResetMask enum.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the directions which will trigger an internal window event upon entering or exiting the active window.
axis: The axis on which to configure the window event direction.
window_number: The number of the window on which to configure the window event direction.
window_event_direction: Specifies the directions which will trigger an internal window event upon entering or exiting the active window.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures the conditions which will generate PSO window events.
axis: The axis on which to configure the window event conditions.
event_mode: The specified window event mode.
execution_task_index: The index of the task to execute the AeroScript command on.
Configures a fixed window range consisting of a lower bound and an upper bound for the specified window.
axis: The axis on which to configure the window range.
window_number: The number of the window on which to configure the range.
lower_bound: The value for the window range lower bound.
upper_bound: The value for the window range upper bound.
execution_task_index: The index of the task to execute the AeroScript command on.
Selects the source of the specified window counter.
axis: The axis on which to select the window counter input source.
window_number: The window number for which to select the counter input source.
input: The window counter input source.
reverse_direction: Configures the window counter to count in the opposite direction of its input source.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the specified window counter to the specified value.
axis: The axis on which to set the window counter.
window_number: The number of the window on which to set the counter.
value: The new counter value.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the specified window output.
axis: The axis on which to disable the window output.
window_number: The number of the window on which to disable the output.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the specified window output.
axis: The axis on which to enable the window output.
window_number: The number of the window on which to enable the output.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.safe_zone Methods
Adds a boundary to the specified safe zone.
zone: The index of the safe zone on which to add a boundary.
axis: The axis that represents the boundary to add.
lower_bound: The safe zone lower boundary, specified in user units.
upper_bound: The safe zone upper boundary, specified in user units.
execution_task_index: The index of the task to execute the AeroScript command on.
Removes the specified boundary from the specified safe zone.
zone: The index of the safe zone on which to remove a boundary.
axis: The axis that represents the boundary to remove.
execution_task_index: The index of the task to execute the AeroScript command on.
Removes all boundaries from the specified safe zone.
zone: The index of the safe zone on which to remove all boundaries.
execution_task_index: The index of the task to execute the AeroScript command on.
Disables the specified safe zone.
zone: The safe zone to disable.
execution_task_index: The index of the task to execute the AeroScript command on.
Enables the specified safe zone.
zone: The safe zone to enable.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the safe zone type for the specified safe zone.
zone: The safe zone on which to set the safe zone type.
zone_type: The safe zone type to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.servo_loop_tuning Methods
Sets the specified feedforward gain values on the specified axis.
axis: The axis on which to set the gain values.
feedforward_gains: A list of feedforward gains to set.
feedforward_gain_values: A list of feedforward gain values to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Generates an open-loop current command at a fixed electrical angle.
axis: The axis on which to command current.
current: The current to output, specified in amperes.
angle: The electrical angle, specified in degrees. 360 degrees is one electrical commutation cycle of the motor.
execution_task_index: The index of the task to execute the AeroScript command on.
Generates an open-loop current command at a rotating electrical angle.
axis: The axis on which to command current.
current: The current to output, specified in amperes.
duration: The amount of time to output current, specified in milliseconds. Specify 0 to output current continuously.
execution_task_index: The index of the task to execute the AeroScript command on.
Sets the specified servo loop gain values on the specified axis.
axis: The axis on which to set the gain values.
servo_gains: A list of servo loop gains to set.
servo_gain_values: A list of servo loop gain values to set.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.transformation Methods
Disable a C transformation. This will stop running inverse and forward computations for this transformation.
transformation_name: The name specified in the C Transformation configuration.
execution_task_index: The index of the task to execute the AeroScript command on.
Enable a C transformation. This will begin running inverse and forward computations for the specified transformation. All axes part of the transformation must be enabled at any time the transformation is enabled. If the transformation is enabled while there is synchronous motion on the same task, then the motion program will wait for motion to complete before enabling the transformation.
transformation_name: The name specified in the C Transformation configuration.
execution_task_index: The index of the task to execute the AeroScript command on.
Call the OnGetProperty() C function defined in a C transformation.
transformation_name: The name specified in the C Transformation configuration.
property_: The property argument provided to the OnGetProperty() C function.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value argument set by the OnGetProperty() C function..
Set the input axes of a C transformation.
transformation_name: The name specified in the C Transformation configuration.
input_axes: The input axes of the transformation. Motion from these axes are input to the transformation.
execution_task_index: The index of the task to execute the AeroScript command on.
Set the output axes of a C transformation.
transformation_name: The name specified in the C Transformation configuration.
output_axes: The output axes of the transformation. The transformation outputs motion to these axes.
execution_task_index: The index of the task to execute the AeroScript command on.
Call the OnSetProperty() C function defined in a C transformation.
transformation_name: The name specified in the C Transformation configuration.
property_: The property argument provided to the OnSetProperty() C function.
value: The value argument provided to the OnSetProperty() C function.
execution_task_index: The index of the task to execute the AeroScript command on.
Controller.runtime.commands.utility_and_conversion Methods
Returns the value in user units of a specified value in counts.
axis: The axis to use when performing the conversion.
counts: The value in counts.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value converted to user units..
Returns the value in counts of a specified value in user units.
axis: The axis to use when performing the conversion.
units: The value in user units.
execution_task_index: The index of the task to execute the AeroScript command on.
Returns: The value converted to counts..



