Controller Variables
You are reading our Automation1 API documentation for the .NET programming language.
The Basics
In the .NET API, Controller Variables lets you get and set controller global variables, controller task variables on a task, and the values of Industrial Ethernet mappings on an Automation1 controller. Refer to the sections that follow for more information.
Global Variables
In the .NET API, Global Variables lets you get and set global variables on an Automation1 controller. You can access controller global variables from all tasks on the controller. Thus you can use them to share information between tasks or between the controller and your custom application.
There are three types of global variables. The global integer array ($iglobal in AeroScript), the global real array ($rglobal in AeroScript), and the global string array ($sglobal in AeroScript).
AeroScript integers are 64-bit. They are represented in .NET by the long data type. AeroScript reals are double-precision floating-point numbers. They are represented in .NET by the double data type.
The strings in the AeroScript global string array have a maximum length of 255 bytes. ASCII characters consume one byte. But the use of multi-byte characters, such as Unicode characters, results in multiple bytes of the string being consumed for individual characters.
How to Use
In the .NET API, Global Variables 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 do work with global variables. For more information about this property, see the Controller page.
You can get a single global variable with one of the methods that follow:
long globalInteger = controller.Runtime.Variables.Global.GetInteger(int globalIntegerIndex);
double globalReal = controller.Runtime.Variables.Global.GetReal(int globalRealIndex);
string globalString = controller.Runtime.Variables.Global.GetString(int globalStringIndex);
You can also get two or more global variables at the same time from the same contiguous segment in the global variable array with one of the methods that follow:
long[] globalIntegers = controller.Runtime.Variables.Global.GetIntegers(int startingGlobalIntegerIndex, int numberOfVariables);
double[] globalReals = controller.Runtime.Variables.Global.GetReals(int startingGlobalRealIndex, int numberOfVariables);
string[] globalStrings = controller.Runtime.Variables.Global.GetStrings(int startingGlobalStringIndex, int numberOfVariables);
You can set a single global variable with one of the methods that follow:
controller.Runtime.Variables.Global.SetInteger(int globalIntegerIndex, long integerValue);
controller.Runtime.Variables.Global.SetReal(int globalRealIndex, double realValue);
controller.Runtime.Variables.Global.SetString(int globalStringIndex, string stringValue);
You can also set two or more global variables at the same time for the same contiguous segment in the global variable array with one of the methods that follow:
controller.Runtime.Variables.Global.SetIntegers(int startingGlobalIntegerIndex, long[] integerValues);
controller.Runtime.Variables.Global.SetReals(int startingGlobalRealIndex, double[] realValues);
controller.Runtime.Variables.Global.SetStrings(int startingGlobalStringIndex, string[] stringValues);
Task Variables
In the .NET API, Task Variables lets you get and set task variables on a task on an Automation1 controller. You can access task variables from AeroScript and every API but only from the same task. You can use task variables to share information between iterations of a program running on the same task.
There are three types of task variables, and every task on an Automation1 controller has a set of these task variable arrays:
-
Task integer array (
$itask
in AeroScript) -
Task real array (
$rtask
in AeroScript) -
Task string array (
$stask
in AeroScript)
AeroScript integers are 64-bit.They are represented by the long data type. AeroScript reals are double-precision floating points. They are represented by the double data type.
The strings in an AeroScript task string array have a maximum length of 255 bytes. ASCII characters use just one byte. But, multi-byte characters, such as Unicode characters, use multiple bytes of the string.
The TaskIntegers Parameter, TaskReals Parameter, and TaskStrings Parameter specify the number of variables that are available to the task for which this parameter is set.
How to Use
In the .NET API, Task Variables is part of the Controller.Runtime property. The Automation1 controller must be running before you can do work with task variables. Refer to Controller for more information.
You can get a single task variable with one of the methods that follow:
long taskInteger = controller.Runtime.Variables.Task.GetInteger(string taskName, int taskIntegerArrayIndex);
double taskReal = controller.Runtime.Variables.Task.GetReal(string taskName, int taskRealArrayIndex);
string taskString = controller.Runtime.Variables.Task.GetString(string taskName, int taskStringArrayIndex);
You can also get more than one task variable at the same time from the same contiguous segment in the task variable array with one of the methods that follow.
long[] taskIntegerArray = controller.Runtime.Variables.Task.GetIntegers(string taskName, int taskIntegerArrayStartingIndex, int numberOfVariables);
double[] taskRealArray = controller.Runtime.Variables.Task.GetReals(string taskName, int taskRealArrayStartingIndex, int numberOfVariables);
string[] taskStringArray = controller.Runtime.Variables.Task.GetStrings(string taskName, int taskStringArrayStartingIndex, int numberOfVariables);
You can set a single task variable with one of the methods that follow.
controller.Runtime.Variables.Task.SetInteger(string taskName, int taskIntegerArrayIndex, long integerValue);
controller.Runtime.Variables.Task.SetReal(string taskName, int taskRealArrayIndex, double realValue);
controller.Runtime.Variables.Task.SetString(string taskName, int taskStringArrayIndex, string stringValue);
You can also set more than one task variable at the same time for the same contiguous segment in the task variable array with one of the methods that follow.
controller.Runtime.Variables.Task.SetIntegers(string taskName, int taskIntegerArrayStartingIndex, long[] integerValues);
controller.Runtime.Variables.Task.SetReals(string taskName, int taskRealArrayStartingIndex, double[] realValues);
controller.Runtime.Variables.Task.SetStrings(string taskName, int taskStringArrayStartingIndex, string[] stringValues);
For all of the method examples, you can specify the task on which to get or set with task name or task index.
Industrial Ethernet Variables
In the .NET API, Industrial Ethernet Variables lets you get and set the values of Industrial Ethernet mappings on an Automation1 controller. Automation1 exposes the memory blocks of Industrial Ethernet protocols, such as Modbus and EtherCAT, through Industrial Ethernet mappings. These Industrial Ethernet mappings let you map memory regions used by Industrial Ethernet protocols to arbitrary controller data types. For more information, see Modbus TCP/IP Overview and EtherCAT Overview.
Industrial Ethernet mappings can be AeroScript integers or reals. AeroScript integers are 64-bit. They are represented in .NET by the long data type. AeroScript reals are double-precision floating-point numbers. They are represented in .NET by the double data type.
How to Use
In the .NET API, Industrial Ethernet Variables 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 do work with Industrial Ethernet mappings. For more information about this property, see the Controller page.
You can get and set the value of a single Industrial Ethernet mapping by using the methods that follow:
long integerValue = controller.Runtime.Variables.IndustrialEthernet.GetInteger(string industrialEthernetMappingName);
double realValue = controller.Runtime.Variables.IndustrialEthernet.GetReal(string industrialEthernetMappingName);
controller.Runtime.Variables.IndustrialEthernet.SetInteger(string industrialEthernetMappingName, long value);
controller.Runtime.Variables.IndustrialEthernet.SetReal(string industrialEthernetMappingName, double value);
You can get and set the value of an index of a single Industrial Ethernet mapping array by using the methods that follow:
long integerValue = controller.Runtime.Variables.IndustrialEthernet.GetInteger(string industrialEthernetMappingName, int industrialEthernetMappingArrayIndex);
double realValue = controller.Runtime.Variables.IndustrialEthernet.GetReal(string industrialEthernetMappingName, int industrialEthernetMappingArrayIndex);
controller.Runtime.Variables.IndustrialEthernet.SetInteger(string industrialEthernetMappingName, int industrialEthernetMappingArrayIndex, long value);
controller.Runtime.Variables.IndustrialEthernet.SetReal(string industrialEthernetMappingName, int industrialEthernetMappingArrayIndex, double value);
You can also get and set a contiguous segment of values within a single Industrial Ethernet mapping array by using the methods that follow:
long[] integerValues = controller.Runtime.Variables.IndustrialEthernet.GetIntegers(string industrialEthernetMappingName, int startingIndustrialEthernetMappingArrayIndex, int numberOfVariables);
double[] realValues = controller.Runtime.Variables.IndustrialEthernet.GetReals(string industrialEthernetMappingName, int startingIndustrialEthernetMappingArrayIndex, int numberOfVariables);
controller.Runtime.Variables.IndustrialEthernet.SetIntegers(string industrialEthernetMappingName, int startingIndustrialEthernetMappingArrayIndex, long[] values);
controller.Runtime.Variables.IndustrialEthernet.SetReals(string industrialEthernetMappingName, int startingIndustrialEthernetMappingArrayIndex, double[] values);
Thread Safety
All the methods that operate under the Controller.Runtime.Variables.Global and Controller.Runtime.Variables.Task property are thread safe. You can call them from two or more threads without interference.
Full Reference
For more information about the methods that are available for Global Variables, Task Variables, and Industrial Ethernet Variables, refer to the lists that follow.
Controller.Runtime.Variables.Global Methods
Returns the value of an integer controller global variable ($iglobal in AeroScript), at the specified global integer array index. The value is returned as an AeroScript integer value (which is a 64-bit long integer).
globalIntegerIndex: The global integer array index to return the value of.
Returns: The value of an integer controller global variable (which is a 64-bit long integer).
Returns an array of values for a contiguous segment of integer controller global variables ($iglobal in AeroScript), starting at the specified global integer array index. The values are returned as AeroScript integer values (which are 64-bit long integers).
startingGlobalIntegerIndex: The global integer array index that starts the segment of global variables to get.
numberOfVariables: The number of global variables to get, starting from the startingGlobalIntegerIndex argument.
Returns: An array of values for the segment of integer controller global variables.
Populates an array of values for a contiguous segment of integer controller global variables ($iglobal in AeroScript), starting at the specified global integer array index and with the specified number of variables to get. The values are returned as AeroScript integer values (which are 64-bit long integers).
startingGlobalIntegerIndex: The global integer array index that starts the segment of global variables to get.
arrayToPopulate: The array in which to store the global variables.
arrayToPopulateOffset: The zero-based offset, in the arrayToPopulate argument, at which to begin storing the global variable values.
numberOfVariables: The number of global variables to get, starting from the startingGlobalIntegerIndex argument.
Returns the value of a real controller global variable ($rglobal in AeroScript), at the specified global real array index. The value is returned as an AeroScript real value (which is a double-precision floating-point number).
globalRealIndex: The global real array index to return the value of.
Returns: The value of a real controller global variable.
Returns an array of values for a contiguous segment of real controller global variables ($rglobal in AeroScript), starting at the specified global real array index. The values are returned as AeroScript real values (which are double-precision floating-point numbers).
startingGlobalRealIndex: The global real array index that starts the segment of global variables to get.
numberOfVariables: The number of global variables to get, starting from the startingGlobalRealIndex argument.
Returns: An array of values for the segment of real controller global variables.
Populates an array of values for a contiguous segment of real controller global variables ($rglobal in AeroScript), starting at the specified global real array index and with the specified number of variables to get. The values are returned as AeroScript real values (which are double-precision floating-point numbers).
startingGlobalRealIndex: The global real array index that starts the segment of global variables to get.
arrayToPopulate: The array to store the global variables.
arrayToPopulateOffset: The zero-based offset, in the arrayToPopulate argument, at which to begin storing the global variable values.
numberOfVariables: The number of global variables to get, starting from the startingGlobalRealIndex argument.
Returns the value of a string controller global variable ($sglobal in AeroScript), at the specified global string array index.
globalStringIndex: The global string array index to return the value of.
Returns: The value of a string controller global variable.
Returns an array of values for a contiguous segment of string controller global variables ($sglobal in AeroScript), starting at the specified global string array index.
startingGlobalStringIndex: The global string array index that starts the segment of global variables to get.
numberOfVariables: The number of global variables to get, starting from the startingGlobalStringIndex argument.
Returns: An array of values for the segment of string controller global variables.
Populates an array of values for a contiguous segment of string controller global variables ($sglobal in AeroScript), starting at the specified global string array index and with the specified number of variables to get.
startingGlobalStringIndex: The global string array index that starts the segment of global variables to get.
arrayToPopulate: The array to store the global variables.
arrayToPopulateOffset: The zero-based offset, in the arrayToPopulate argument, at which to begin storing the global variable values.
numberOfVariables: The number of global variables to get, starting from the startingGlobalStringIndex argument.
Sets the value of an integer controller global variable ($iglobal in AeroScript), at the specified global integer array index. The value to set is an AeroScript integer value (which is a 64-bit long integer).
globalIntegerIndex: The global integer array index to set the value of.
integerValue: The AeroScript integer value (which is a 64-bit long integer) to set on the controller.
Sets a contiguous segment of integer controller global variables ($iglobal in AeroScript), starting at the specified global integer array index. The values to set are AeroScript integer values (which are 64-bit long integers).
startingGlobalIntegerIndex: The global integer array index that starts the segment of global variables to set.
integerValues: The array of AeroScript integer values (which are 64-bit long integers) to set on the controller.
Sets a contiguous segment of integer controller global variables ($iglobal in AeroScript), starting at the specified global integer array index and with the specified number of variables to set. The values to set are AeroScript integer values (which are 64-bit long integers).
startingGlobalIntegerIndex: The global integer array index that starts the segment of global variables to set.
integerValues: The source array of AeroScript integer values (which are 64-bit long integers) to set on the controller.
integerValuesOffset: The zero-based offset, in integerValues, at which to begin setting the global variable values.
numberOfVariables: The number of global variables to set, starting from the startingGlobalIntegerIndex and integerValuesOffset arguments.
Sets the value of a real controller global variable ($rglobal in AeroScript), at the specified global real array index. The value to set is an AeroScript real value (which is a double-precision floating-point number).
globalRealIndex: The global real array index to set the value of.
realValue: The AeroScript real value (which is a double-precision floating-point number) to set on the controller.
Sets a contiguous segment of real controller global variables ($rglobal in AeroScript), starting at the specified global real array index. The values to set are AeroScript real values (which are double-precision floating-point numbers).
startingGlobalRealIndex: The global real array index that starts the segment of global variables to set.
realValues: The array of AeroScript real values (which are double-precision floating-point numbers) to set on the controller.
Sets a contiguous segment of real controller global variables ($rglobal in AeroScript), starting at the specified global real array index and with the specified number of variables to set. The values to set are AeroScript real values (which are double-precision floating-point numbers).
startingGlobalRealIndex: The global real array index that starts the segment of global variables to set.
realValues: The source array of AeroScript real values (which are double-precision floating-point numbers) to set on the controller.
realValuesOffset: The zero-based offset in realValues at which to begin setting the global variable values.
numberOfVariables: The number of global variables to set, starting from the startingGlobalRealIndex and realValuesOffset arguments.
Sets the value of a string controller global variable ($sglobal in AeroScript), at the specified global string array index. Each string global variable has a capacity of 256
characters.
globalStringIndex: The global string array index to set the value of.
stringValue: The AeroScript string value to set on the controller.
Sets a contiguous segment of string controller global variables ($sglobal in AeroScript), starting at the specified global string array index. Each string global variable has a capacity of 256
characters.
startingGlobalStringIndex: The global string array index that starts the segment of global variables to set.
stringValues: The array of AeroScript string values to set on the controller.
Sets a contiguous segment of string controller global variables ($sglobal in AeroScript), starting at the specified global string array index and with the specified number of variables to set. Each string global variable has a capacity of 256
characters.
startingGlobalStringIndex: The global string array index that starts the segment of global variables to set.
stringValues: The source array of AeroScript string values (which is a double-precision floating-point number) to set on the controller.
stringValuesOffset: The zero-based offset in stringValues at which to begin setting the global variable values.
numberOfVariables: The number of global variables to set, starting from the startingGlobalStringIndex and stringValuesOffset arguments.
Controller.Runtime.Variables.Task Methods
Returns the value of an integer task variable ($itask in AeroScript), at the specified task integer array index. The value is returned as an AeroScript integer value (which is a 64-bit long integer).
taskIndex
: The index of the task to get the integer task variable from.
taskIntegerArrayIndex
: The task integer array index to return the value of.
Returns: The value of an integer task variable (which is a 64-bit long integer).
Returns the value of an integer task variable ($itask in AeroScript), at the specified task integer array index. The value is returned as an AeroScript integer value (which is a 64-bit long integer).
taskName
: The name of the task to get the integer task variable from.
taskIntegerArrayIndex
: The task integer array index to return the value of.
Returns: The value of an integer task variable (which is a 64-bit long integer).
Returns an array of values for a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index. The values are returned as AeroScript integer values (which are 64-bit long integers).
taskIndex
: The index of the task to get the integer task variables from.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to get.
numberOfVariables
: The number of task variables to get, starting from taskIntegerArrayStartingIndex
.
Returns: An array of values for the segment of integer task variables.
Returns an array of values for a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index. The values are returned as AeroScript integer values (which are 64-bit long integers).
taskName
: The name of the task to get the integer task variables from.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to get.
numberOfVariables
: The number of task variables to get, starting from taskIntegerArrayStartingIndex
.
Returns: An array of values for the segment of integer task variables.
Populates an array of values for a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index and with the specified number of variables to get. The values are returned as AeroScript integer values (which are 64-bit long integers).
taskIndex
: The index of the task to get the integer task variables from.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to get.
arrayToPopulate
: The array to store the task variables.
arrayToPopulateOffset
: The zero-based offset in at which to begin storing the task variable values.
numberOfVariables
: The number of task variables to get, starting from taskIntegerArrayStartingIndex
.
Populates an array of values for a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index and with the specified number of variables to get. The values are returned as AeroScript integer values (which are 64-bit long integers).
taskName
: The name of the task to get the integer task variables from.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to get.
arrayToPopulate
: The array to store the task variables.
arrayToPopulateOffset
: The zero-based offset in at which to begin storing the task variable values.
numberOfVariables
: The number of task variables to get, starting from taskIntegerArrayStartingIndex
.
Sets the value of an integer task variable ($itask in AeroScript), at the specified task integer array index. The value to set is an AeroScript integer value (which is a 64-bit long integer).
taskIndex
: The index of the task on which to set the integer task variable.
taskIntegerArrayIndex
: The task integer array index to set the value of.
integerValue
: The AeroScript integer value (which is a 64-bit long integer) to set on the task.
Sets the value of an integer task variable ($itask in AeroScript), at the specified task integer array index. The value to set is an AeroScript integer value (which is a 64-bit long integer).
taskName
: The name of the task on which to set the integer task variable.
taskIntegerArrayIndex
: The task integer array index to set the value of.
integerValue
: The AeroScript integer value (which is a 64-bit long integer) to set on the task.
Sets a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index. The values to set are AeroScript integer values (which are 64-bit long integers).
taskIndex
: The index of the task on which to set the integer task variables.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to set.
integerValues
: The array of AeroScript integer values (which are 64-bit long integers) to set on the task.
Sets a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index. The values to set are AeroScript integer values (which are 64-bit long integers).
taskName
: The name of the task on which to set the integer task variables.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to set.
integerValues
: The array of AeroScript integer values (which are 64-bit long integers) to set on the task.
Sets a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index and with the specified number of variables to set. The values to set are AeroScript integer values (which are 64-bit long integers).
taskIndex
: The index of the task on which to set the integer task variables.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to set.
integerValues
: The source array of AeroScript integer values (which are 64-bit long integers) to set on the task.
integerValuesOffset
: The zero-based offset in at which to begin setting the task variable values.
numberOfVariables
: The number of task variables to set, starting from taskIntegerArrayStartingIndex
and integerValuesOffset
.
Sets a contiguous segment of integer task variables ($itask in AeroScript), starting at the specified task integer array index and with the specified number of variables to set. The values to set are AeroScript integer values (which are 64-bit long integers).
taskName
: The name of the task on which to set the integer task variables.
taskIntegerArrayStartingIndex
: The task integer array index that starts the segment of task variables to set.
integerValues
: The source array of AeroScript integer values (which are 64-bit long integers) to set on the task.
integerValuesOffset
: The zero-based offset in at which to begin setting the task variable values.
numberOfVariables
: The number of task variables to set, starting from taskIntegerArrayStartingIndex
and integerValuesOffset
.
Returns the value of a real task variable ($rtask in AeroScript), at the specified task real array index. The value is returned as an AeroScript real value (which is a double precision floating point number).
taskIndex
: The index of the task to get the real task variable from.
taskRealArrayIndex
: The task real array index to return the value of.
Returns: The value of a real task variable.
Returns the value of a real task variable ($rtask in AeroScript), at the specified task real array index. The value is returned as an AeroScript real value (which is a double precision floating point number).
taskName
: The name of the task to get the real task variable from.
taskRealArrayIndex
: The task real array index to return the value of.
Returns: The value of a real task variable.
Returns an array of values for a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index. The values are returned as AeroScript real values (which are double precision floating point numbers).
taskIndex
: The index of the task to get the real task variables from.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to get.
numberOfVariables
: The number of task variables to get, starting from taskRealArrayStartingIndex
.
Returns: An array of values for the segment of real task variables.
Returns an array of values for a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index. The values are returned as AeroScript real values (which are double precision floating point numbers).
taskName
: The name of the task to get the real task variables from.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to get.
numberOfVariables
: The number of task variables to get, starting from taskRealArrayStartingIndex
.
Returns: An array of values for the segment of real task variables.
Populates an array of values for a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index and with the specified number of variables to get. The values are returned as AeroScript real values (which are double precision floating point numbers).
taskIndex
: The index of the task to get the real task variables from.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to get.
arrayToPopulate
: The array to store the task variables.
arrayToPopulateOffset
: The zero-based offset in at which to begin storing the task variable values.
numberOfVariables
: The number of task variables to get, starting from taskRealArrayStartingIndex
.
Populates an array of values for a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index and with the specified number of variables to get. The values are returned as AeroScript real values (which are double precision floating point numbers).
taskName
: The name of the task to get the real task variables from.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to get.
arrayToPopulate
: The array to store the task variables.
arrayToPopulateOffset
: The zero-based offset in at which to begin storing the task variable values.
numberOfVariables
: The number of task variables to get, starting from taskRealArrayStartingIndex
.
Sets the value of a real task variable ($rtask in AeroScript), at the specified task real array index. The value to set is an AeroScript real value (which is a double precision floating point number).
taskIndex
: The index of the task on which to set the real task variable.
taskRealArrayIndex
: The task real array index to set the value of.
realValue
: The AeroScript real value (which is a double precision floating point number) to set on the task.
Sets the value of a real task variable ($rtask in AeroScript), at the specified task real array index. The value to set is an AeroScript real value (which is a double precision floating point number).
taskName
: The index of the task on which to set the real task variable.
taskRealArrayIndex
: The task real array index to set the value of.
realValue
: The AeroScript real value (which is a double precision floating point number) to set on the task.
Sets a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index. The values to set are AeroScript real values (which are double precision floating point numbers).
taskIndex
: The index of the task on which to set the real task variables.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to set.
realValues
: The array of AeroScript real values (which are double precision floating point numbers) to set on the task.
Sets a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index. The values to set are AeroScript real values (which are double precision floating point numbers).
taskName
: The name of the task on which to set the real task variables.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to set.
realValues
: The array of AeroScript real values (which are double precision floating point numbers) to set on the task.
Sets a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index and with the specified number of variables to set. The values to set are AeroScript real values (which are double precision floating point numbers).
taskIndex
: The index of the task on which to set the real task variables.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to set.
realValues
: The source array of AeroScript real values (which are double precision floating point numbers) to set on the task.
realValuesOffset
: The zero-based offset in at which to begin setting the task variable values.
numberOfVariables
: The number of task variables to set, starting from taskRealArrayStartingIndex
and realValuesOffset
.
Sets a contiguous segment of real task variables ($rtask in AeroScript), starting at the specified task real array index and with the specified number of variables to set. The values to set are AeroScript real values (which are double precision floating point numbers).
taskName
: The name of the task on which to set the real task variables.
taskRealArrayStartingIndex
: The task real array index that starts the segment of task variables to set.
realValues
: The source array of AeroScript real values (which are double precision floating point numbers) to set on the task.
realValuesOffset
: The zero-based offset in at which to begin setting the task variable values.
numberOfVariables
: The number of task variables to set, starting from taskRealArrayStartingIndex
and realValuesOffset
.
Returns the value of a string task variable ($stask in AeroScript), at the specified task string array index.
taskIndex
: The index of the task to get the string task variables from.
taskStringArrayIndex
: The task string array index to return the value of.
Returns: The value of a string task variable.
Returns the value of a string task variable ($stask in AeroScript), at the specified task string array index.
taskName
: The name of the task to get the string task variables from.
taskStringArrayIndex
: The task string array index to return the value of.
Returns: The value of a string task variable.
Returns an array of values for a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index.
taskIndex
: The index of the task to get the string task variables from.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to get.
numberOfVariables
: The number of task variables to get, starting from taskStringArrayStartingIndex
.
Returns: An array of values for the segment of string task variables.
Returns an array of values for a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index.
taskName
: The name of the task to get the string task variables from.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to get.
numberOfVariables
: The number of task variables to get, starting from taskStringArrayStartingIndex
.
Returns: An array of values for the segment of string task variables.
Populates an array of values for a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index and with the specified number of variables to get.
taskIndex
: The index of the task to get the string task variables from.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to get.
arrayToPopulate
: The array to store the task variables.
arrayToPopulateOffset
: The zero-based offset in at which to begin storing the task variable values.
numberOfVariables
: The number of task variables to get, starting from taskStringArrayStartingIndex
.
Populates an array of values for a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index and with the specified number of variables to get.
taskName
: The name of the task to get the string task variables from.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to get.
arrayToPopulate
: The array to store the task variables.
arrayToPopulateOffset
: The zero-based offset in at which to begin storing the task variable values.
numberOfVariables
: The number of task variables to get, starting from taskStringArrayStartingIndex
.
Sets the value of a string task variable ($stask in AeroScript), at the specified task string array index. Each string task variable has a capacity of 255 characters.
taskIndex
: The index of the task on which to set the string task variable.
taskStringArrayIndex
: The task string array index to set the value of.
stringValue
: The AeroScript string value to set on the task.
Sets the value of a string task variable ($stask in AeroScript), at the specified task string array index. Each string task variable has a capacity of 255 characters.
taskName
: The name of the task on which to set the string task variable.
taskStringArrayIndex
: The task string array index to set the value of.
stringValue
: The AeroScript string value to set on the task.
Sets a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index. Each string task variable has a capacity of 255 characters.
taskIndex
: The index of the task on which to set the string task variables.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to set.
stringValues
: The array of AeroScript string values to set on the task.
Sets a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index. Each string task variable has a capacity of 255 characters.
taskName
: The name of the task on which to set the string task variables.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to set.
stringValues
: The array of AeroScript string values to set on the task.
Sets a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index and with the specified number of variables to set. Each string task variable has a capacity of 255 characters.
taskIndex
: The index of the task on which to set the string task variables.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to set.
stringValues
: The source array of AeroScript string values (which is a double precision floating point number) to set on the task.
stringValuesOffset
: The zero-based offset in at which to begin setting the task variable values.
numberOfVariables
: The number of task variables to set, starting from taskStringArrayStartingIndex
and stringValuesOffset
.
Sets a contiguous segment of string task variables ($stask in AeroScript), starting at the specified task string array index and with the specified number of variables to set. Each string task variable has a capacity of 255 characters.
taskName
: The name of the task on which to set the string task variables.
taskStringArrayStartingIndex
: The task string array index that starts the segment of task variables to set.
stringValues
: The source array of AeroScript string values (which is a double precision floating point number) to set on the task.
stringValuesOffset
: The zero-based offset in at which to begin setting the task variable values.
numberOfVariables
: The number of task variables to set, starting from taskStringArrayStartingIndex
and stringValuesOffset
.
Controller.Runtime.Variables.IndustrialEthernet Methods
Gets the value of an Industrial Ethernet mapping. The value is returned as an AeroScript integer value, which is a 64-bit long integer.
industrialEthernetMappingName
: The name of the Industrial Ethernet mapping to get the value of.
Returns: An integer value of an Industrial Ethernet mapping.
Gets the value of an Industrial Ethernet mapping array at the specified index. The value is returned as an AeroScript integer value, which is a 64-bit long integer.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array from which to get a value.
industrialEthernetMappingArrayIndex: The index of the Industrial Ethernet mapping array to get the value of.
Returns: An integer value of an Industrial Ethernet mapping.
Gets an array of values for a segment of an Industrial Ethernet mapping array, starting at the specified index. The values are returned as an array of AeroScript integer values, which are 64-bit long integers.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array from which to get the values.
startingIndex: The index of the Industrial Ethernet mapping array that starts the segment of values to get.
numberOfVariables: The length of the segment to get.
Returns: An array of integer values for a segment of an Industrial Ethernet mapping array.
Gets the value of an Industrial Ethernet mapping. The value is returned as an AeroScript real value, which is a double-precision floating-point number.
industrialEthernetMappingName
: The name of the Industrial Ethernet mapping to get the value of.
Returns: A real value of an Industrial Ethernet mapping.
Gets the value of an Industrial Ethernet mapping array at the specified index. The value is returned as an AeroScript real value, which is a double-precision floating-point number.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array from which to get a value.
industrialEthernetMappingArrayIndex: The index of the Industrial Ethernet mapping array to get the value of.
Returns: A real value of an Industrial Ethernet mapping.
Gets an array of values for a segment of an Industrial Ethernet mapping array, starting at the specified index. The values are returned as an array of AeroScript real values, which are double-precision floating-point numbers.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array from which to get the values.
startingIndex: The index of the Industrial Ethernet mapping array that starts the segment of values to get.
numberOfVariables: The length of the segment to get.
Returns: An array of real for a segment of an Industrial Ethernet mapping array.
Sets the value of an Industrial Ethernet mapping as an AeroScript integer value, which is a 64-bit long integer.
industrialEthernetMappingName
: The name of the Industrial Ethernet mapping to set the value of.
value
: The value to set for the Industrial Ethernet mapping.
Sets the value of an Industrial Ethernet mapping array at the specified index as an AeroScript integer value, which is a 64-bit long integer.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array to set the value of.
industrialEthernetMappingArrayIndex: The index in the Industrial Ethernet mapping array to set the value of.
value
: The value to set for the Industrial Ethernet mapping array at the specified index.
Sets the values of a segment of an Industrial Ethernet mapping array, as AeroScript integer values (which are 64-bit long integers), starting at the specified index.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array for which to set the segment of values.
startingIndex: The index in the Industrial Ethernet mapping array that starts the segment of values to set.
values
: The values to set for the segment of the Industrial Ethernet mapping array.
Sets the value of an Industrial Ethernet mapping as an AeroScript real value, which is a double-precision floating-point number.
industrialEthernetMappingName
: The name of the Industrial Ethernet mapping to set the value of.
value
: The value to set for the Industrial Ethernet mapping.
Sets the value of an Industrial Ethernet mapping array at the specified index as an AeroScript real value, which is a double-precision floating-point number.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array to set the value of.
industrialEthernetMappingArrayIndex: The index in the Industrial Ethernet mapping array to set the value of.
value
: The value to set for the Industrial Ethernet mapping array at the specified index.
Sets the values of a segment of an Industrial Ethernet mapping array, as AeroScript real values (which are double-precision floating-point numbers), starting at the specified index.
industrialEthernetMappingArrayName
: The name of the Industrial Ethernet mapping array for which to set the segment of values.
startingIndex: The index in the Industrial Ethernet mapping array that starts the segment of values to set.
values
: The values to set for the segment of the Industrial Ethernet mapping array.