Specifications
BASIC commands
PROGRAMMING MANUAL 140
Revision 5.0
/i
/i
3.2.201 OUTDEVICE
/i
/i
/i
3.2.202 OUTLIMIT
/i
Bit 1 Bit 2 Result
000
011
101
111
Arguments • expression1
Any valid BASIC expression.
• expression2
Any valid BASIC expression.
Example result = 10 OR (2.1*9)
The parentheses are evaluated first, but only the integer part of the result, 18,
is used for the operation. Therefore, this expression is equivalent to the fol-
lowing:
result = 10 OR 18
The OR is a bit operator and so the binary action taking place is:
01010 OR 10010 = 11010
Therefore, result will contain the value 26.
Example IF KEY OR VR(0) = 2 THEN GOTO label
See also N/A
Type I/O parameter
Syntax OUTDEVICE
Description The OUTDEVICE parameter defines the default output device. This device
will be selected for the PRINT command when the #n option is omitted. The
OUTDEVICE parameter is task specific. The supported values are listed in
the table below.
Value Description
0 Programming port 0 (default)
1 RS-232C serial port 1
2 RS-422A/485 serial port 2
5 Trajexia Studio port 0 user channel 5
6 Trajexia Studio port 0 user channel 6
7 Trajexia Studio port 0 user channel 7
Arguments N/A
Example No example.
See also PRINT, INDEVICE
Type Axis parameter
Syntax OUTLIMIT
Description The output limit restricts the demand output from a servo axis to a lower value
than the maximum. The value required varies depending on the maximum
demand output possible. If the voltage output is generated by a 16 bit DAC
values an OUTLIMIT of 32767 will produce the full +/-10v range. A MECHA-
TROLINK-II speed axis has a 32 bit maximum demand.
Arguments N/A
Example OUTLIMIT AXIS(1) = 16384
The above will limit the voltage output to a +/-5V output range from the TJ1-
FL02 unit. This will apply to the DAC command if SERVO=OFF, or to the volt-
age output by the servo loop if SERVO=ON.
See also AXIS, S_REF, S_REF_OUT, SERVO.