BASIC commands
PROGRAMMING MANUAL
121
Revi
si
on 3.0
/i
3.2.200 OUTDEVICE
/i
/i
3.2.201 OUTLIMIT
/i
3.2.202 OV_GAIN
/i
Example
Example 1:
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 following:
result = 10 OR 18
Therefore, result will contain the value 26.
Example 2:
Example
result = 10 OR 18
The
OR
is a bit operator and so the binary action taking place is:
01010 OR 10010 = 11010
Example
IF KEY OR VR(0) = 2 THEN GOTO label
See also
N/A
Bit 1
Bit 2
Result
0
0
0
0
1
1
1
0
1
1
1
1
Type
I/O parameter
Syntax
OUTDEVICE
Description
The
OUTDEVICE
parameter defines the default output device. This device
will be selected for the
command when the
#n
option is omitted. The
OUTDEVICE
parameter is task specific. The supported values are listed in
the table below.
Arguments
N/A
Example
No example.
See also
.
Value
Description
0
Programming port 0 (default)
1
RS-232C serial port 1
2
RS-422A/485 serial port 2
5
Trajexia Tools port 0 user channel 5
6
Trajexia Tools port 0 user channel 6
7
Trajexia Tools port 0 user channel 7
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
No example.
See also
AXIS
,
S_REF
,
S_REF_OUT
,
SERVO
.
Type
Axis parameter
Syntax
OV_GAIN
I52E-EN-03.book Seite 121 Freitag, 29. Juni 2007 11:55 11