RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
123
innovators for industry
List Command
write_da_2_list
Function
see
Integration
Pascal:
procedure write_da_2_list(value: word);
C:
void write_da_2_list(unsigned short value);
Basic:
sub write_da_2_list(ByVal value%)
Ctrl Command write_da_x
Function
writes a 10-bit value to one of the analog output ports of the RTC
®
4 or the
RTC
®
4 I/O Extension Board
Parameters
x
[1, 2]
ANALOG OUT1 / ANALOG OUT2 ports on the RTC
®
4 board
[3, 4, 5, 6] ANALOG OUT ports on the RTC
®
4 I/O Extension Board (optional)
value
output value for the DA converter as unsigned 16-bit value.
Allowed range: [0 … 1023].
If a value > 1023 is specified, the output value is set to 1023.
Integration
Pascal:
procedure write_da_x(x, value: word);
C:
void write_da_x(unsigned short x, unsigned short value);
Basic:
sub write_da_x(ByVal x%, ByVal value%)
Comments
• For the ANALOG OUT1 / ANALOG OUT2 ports, the commands
can be used alternatively (without parameter
x
).
• Note that the output range of the ANALOG OUT1 port can be either 0 V … 2.56 V or
0 V … 10 V (see
), whereas the output range of the ANALOG OUT2 port is
always 0 V … 10 V. Also see the supplement manual
List Command
write_da_x_list
Function
same as
(see above), but a list command
Integration
Pascal:
procedure write_da_x_list(x, value: word);
C:
void write_da_x_list(unsigned short x, unsigned short value);
Basic:
sub write_da_x_list(ByVal x%, ByVal value%)
Ctrl Command write_io_port
Function
writes a value to the 16-bit digital output port on the “EXTENSION 1” connector
Parameter
value
output value as unsigned 16-bit value (DIGITAL_OUT0 … DIGITAL_OUT15)
Integration
Pascal:
procedure write_io_port(value: word);
C:
void write_io_port(unsigned short value);
Basic:
sub write_io_port(ByVal value%)
Comments
• Use the commands
and
to set/clear individual bits
of the 16-bit digital output port, depending on the state of the
input
port.
References
,