EasyManua.ls Logo

Scanlab RTC 5 PC Interface Board - set_io_cond_list

Scanlab RTC 5 PC Interface Board
622 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
435
innovators for industry
Undelayed
Short
List Command
set_io_cond_list
Function sets the bits of the 16-bit digital output port on the EXTENSION 1 connector that are set
in the parameter
MaskSet
, if the current
IOvalue
at the 16-bit digital input port on the
EXTENSION 1 connector meets the following condition:
((IOvalue AND Mask1) = Mask1) AND (((not IOvalue) AND Mask0) = Mask0)
(i.e. if the bits specified in
Mask1
are
1
and the bits specified in
Mask0
are
0
).
Call
set_io_cond_list( Mask1, Mask0, MaskSet )
Parameters
Mask1,
Mask0,
MaskSet
16-bit masks as unsigned 32-bit values
(only the least significant 16 bits are evaluated)
Comments The command sets only those bits of the digital output port that are set in the
parameter
MaskSet
and leaves the other bits unchanged.
Also see section "16-Bit Digital Input and Output", page 49 and "Conditional Command
Execution", page 213.
Examples
(Pascal)
set bit #4 of the output port (DIGITAL OUT4), if bit #0 of the input port (DIGITAL IN0)
is set and bits #1 to #3 (DIGITAL IN1…3) of the input port are not set:
set_io_cond_list($0001, $000E, $0010)
always set bit #15 of the output port (and leave the other bits unchanged):
set_io_cond_list(0, 0, $8000)
RTC
®
4
RTC
®
5 unchanged functionality
References clear_io_cond_list, write_io_port, write_io_port_mask, get_io_status, read_io_port

Table of Contents

Related product manuals