RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
559
innovators for industry
Ctrl Command write_io_port
Function
writes a value to the 16-bit digital output port on the EXTENSION 1 connector.
Call
write_io_port( Value )
Parameter
Value
16-bit output value (DIGITAL OUT0 … DIGITAL OUT15) as an unsigned 32-bit
value (only the least significant 16 bits are evaluated).
Comments
• Use the commands
to set/clear individual bits
of the 16-bit digital output port, depending on the state of the
input
port.
commands also allow
changing selectable bits of the16-bit digital output port as desired.
• Also see section
"16-Bit Digital Output Port", page 203
RTC
®
4
RTC
®
5 unchanged functionality
References
,
,
,
Delayed Short
List Command
write_io_port_list
Function
same as
(see above), but a list command
Call
write_io_port_list( Value )
Parameter
Value
16-bit output value (DIGITAL OUT0 … DIGITAL OUT15) as an unsigned 32-bit
value (only the least significant 16 bits are evaluated).
Comments
• See
.
RTC
®
4
RTC
®
5 unchanged functionality
Ctrl Command write_io_port_mask
Function
writes those bits of
Value
specified by the
Mask
parameter to the 16-bit digital output port
on the EXTENSION 1 connector.
Call
write_io_port_mask( Value, Mask )
Parameters
Value
16-bit output value (DIGITAL OUT0 … DIGITAL OUT15) as an unsigned 32-bit
value (only the least significant 16 bits are evaluated)
Mask
16-bit mask (for DIGITAL OUT0 … DIGITAL OUT15) as an unsigned 32-bit
value (only the least significant 16 bits are evaluated)
Comments
• The
Mask
parameter determines
which
bits of the 16-bit digital output port are to be
altered, the
Value
parameter determines
how
they are altered. All bits of the 16-bit
digital output port that weren’t set in
Mask
will remain unaltered, i.e. they will be
outputted again as previously.
• For
Mask
= 0xFFFF,
write_io_port_mask
behaves like
• Also see section
"16-Bit Digital Output Port", page 203
RTC
®
4
RTC
®
5 new command
Version info
Available beginning with version DLL 517, OUT 516, RBF 512
References