Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 329
the final {constant} contains the value to be given to the specified range of I-variables
I{constant},{constant},{constant}={constant}
where:
the first {constant} is an integer from 0 to 8190 representing the number of the first I-variable;
the second {constant} is an integer from 1 to 8191 representing the number of I-variables whose
value is to be set;
the third {constant} is an integer from 1 to 8191 representing the numerical spacing between each
I-variable whose value is to be set;
the final {constant} contains the value to be given to the specified set of I-variables
This command assigns the value on the right side of the equals sign to the specified I-variable, or range
or set of I-variables.
If a motion or PLC program buffer is open when the single-variable form of this command is sent to
Turbo PMAC, the command will be entered into the buffer for later execution. If a motion or PLC
program buffer is open when the multiple-variable form of this command is sent, Turbo PMAC will reject
the command with an error, reporting ERR003 if I6 is 1 or 3.
Examples:
I5=2
I130=1.25*I130
I(P1*100+30)=300000
I5001..5048=0
I102=$78003
I100,5,100=1 ; Sets I100, I200, I300, I400, I500 to 1
I104=I103
See Also:
Initialization (I) Variables (Computational Features)
I-Variable Specifications
On-line commands I{constant}, M{data}={expression}, P{data}={expression},
Q{data}={expression}
I{constant}=*
Function: Assign factory default value to an I-variable.
Scope: Global
Syntax: I{constant}[..{constant}]=*
where:
{constant} is an integer from 0 to 8191 representing the number of the I-variable;
the optional second{constant} must be at least as great as the first {constant} -- it represents
the number of the end of the range;
I{constant},{constant},{constant}
where:
the first {constant} is an integer from 0 to 8190 representing the number of the first I-variable;
the second {constant} is an integer from 1 to 8191 representing the number of I-variables to be
set to default values;
the third {constant} is an integer from 1 to 8191 representing the numerical spacing between each
I-variable to be set to default values
This command sets the specified I-variable or range of I-variables to the factor default value. Each I-
variable has its own factory default; these are shown in the I-Variable Specification section.
Example:
I13=*
I100..199=*