Reference Manual
PMAC 2 Software Reference
232 PMAC On-Line Command Specification
Note:
If a motion program buffer (including a rotary buffer) is open,
I{constant} will be entered into that buffer for later execution, to
be interpreted as a full-circle move command with a vector to the
center along the X-axis (see Circular Moves in the Writing a Motion
Program section).
Example
I5 ...................... ; Request the value of I5
2......................... ; PMAC responds
I130..135...... ; Request the value of I130 through I135
60000 ............... ; PMAC responds with 6 lines
5000
5000
50000
1
20000
To see the effect of I9 on the form of the response, observe the following:
I9=0 I125
49152 ............... ; Short form, decimal
I9=1 I125
I125=49152 ... ; Long form, decimal
I9=2 I125
$C000 ............... ; Short form, hexadecimal
I9=3 I125
I125=$C000 ; Long form, hexadecimal
See Also
Initialization (I) Variables (Computational Features)
I-Variable Specifications
I-variable I9
On-line commands I{constant}={expression}, M{constant}, P{constant},
Q{constant}
Program commands {axis}{data}{vector}{data}, I{data}
I{constant}={expression}
Function
Assign a value to an I-variable.
Scope
Global
Syntax
I{constant}[..{constant}]={expression}
where:
• {constant} is an integer from 0 to 1023 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;
• {expression} contains the value to be given to the specified I-variable(s)
Remarks
This command assigns the value on the right side of the equals sign to the specified I-variable
or range of I-variables.
If a motion or PLC program buffer is open when this command is sent to PMAC, the
command will be entered into the buffer for later execution.
Example
I5=2
I130=1.25*I130
I22..44=0
I102=$C003
I104=I103