innovators for industry
RTC
®
4 PC Interface Board
Rev. 1.3 e
106
Ctrl Command set_input_pointer
Function sets the list input pointer to the specified address in the RTC
®
4 list buffer. The next list
command will be stored at this address. Also see chapter 5.6 "Structured Programming",
page 45.
Parameter
pointer
list input pointer [0 … 7999] as unsigned 16-bit value
Integration Pascal:
procedure set_input_pointer(pointer: word);
C:
void set_input_pointer(unsigned short pointer);
Basic:
sub set_input_pointer(ByVal pointer%)
Comments • This command can be used alternatively instead of the set_start_list commands.
• CAUTION: If the end of the list buffer is reached, the list input pointer is reset to zero.
Make sure not to overwrite any commands still needed by your application.
References execute_at_pointer, get_input_pointer
List Command set_io_cond_list
Function set the bits of the 16-bit digital output port that are set (=1) in
mask_set
,
if the current
IOvalue
at the digital input port meets the following condition:
((IOvalue AND mask_1) = mask_1) AND (((not IOvalue) AND mask_0) = mask_0)
(i.e. the
IOvalue
’s bits specified in
mask_1
must be
1
and the
IOvalue
’s bits specified in
mask_0
must be
0
).
Parameters
mask_1,
mask_0,
mask_set
unsigned 16-bit masks
Integration Pascal:
procedure set_io_cond_list(mask_1, mask_0, mask_set: word);
C:
void set_io_cond_list(unsigned short mask_1, unsigned short mask_0,
unsigned short mask_set);
Basic:
sub set_io_cond_list(ByVal mask_1%, ByVal mask_0%, ByVal mask_set%)
Comments • The command affects only those bits of the output port that are set (=1) in the param-
eter
mask_set
.
Examples
(Pascal)
• set bit #4 of the output port (DIGITAL_OUT4), if bit #0 of the input port (DIGITAL_IN0)
is HIGH and bits #1 to #3 (DIGTAL_IN1…3) of the input port are LOW:
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)
References clear_io_cond_list, get_io_status