RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
469
innovators for industry
Ctrl Command set_port_default
Function
defines the default output value for the selected output port.
Call
set_port_default( Port, Value )
Parameters
Port
Selection of the output port for which a default
Value
shall be defined as an
unsigned 32-bit value; allowed values:
= 0:
ANALOG OUT1 output port (also see
= 1:
ANALOG OUT2 output port (also see
= 2:
8-bit digital output port (also see
)
= 3:
16-bit digital output port (also see
)
= 4:
2-bit digital output port (also see
)
Value
Desired default value as an unsigned 32-bit value; allowed values:
for
Port
= 0/1: 12-bit values[0 … 4095], higher bits are ignored.
for
Port
= 2: 8-bit values [0 … 255], higher bits are ignored.
for
Port
= 3: 16-bit values [0 … (2
16
–
1)], higher bits are ignored.
for
Port
= 4: 2-bit values [0 … 3], higher bits are ignored.
For
Value
= “–1“ (= 2
32
–
1 = 0xFFFFFFFF), the corresponding default output
functionality is switched off (see comment below).
Comments
• During initialization of the RTC
®
5 (via
output ports are set to “–1“ (= 2
32
–
1).
• If a default value
“–1“ has been specified for an output port, the port will be set to
this default value as soon as processing of a list has ended with
an external stop signal. For a default value of “–1”, the corresponding output port will
not
be addressed (any existing high-impedance state of the digital output ports is
retained).
• Default values (
“–1“) at the output ports 0/1 (ANALOG OUT1 or ANALOG OUT2) will
also be set at the end of pixel output mode (see
).
• After initialization of position- and/or speed-dependent laser control via
, the corresponding default value (for output port 0, 1, 2 or 3,
depending on the selected laser signal parameter
Ctrl
), will also be outputted each
time the laser is switched off after marking or when position- and/or speed-dependent
laser control is set to another
Ctrl
parameter via
vated via
(
Ctrl
= 0) (see
). If the default value is then
defined as “–1”, then the maximum allowable value (4095, 4095, 255 or 65535) will
be outputted.
• If the values for
Port
is invalid, then
set_port_default
will not be executed
(
return code:
RTC5_PARAM_ERROR
).
• The default values for the output ports 0-2 can also be defined via the command
.
RTC
®
4
RTC
®
5 new command
In RTC
®
4 compatibility mode, the RTC
®
5 multiplies the specified
Value
for
Port
= 0/1 by
4 (the RTC
®
4’s analog outputs only handled 10-bit values).
References