EasyManua.ls Logo

Scanlab RTC 4 - Page 93

Scanlab RTC 4
136 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
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
93
innovators for industry
List Command list_call_cond
Function Conditional subroutine call: During execution of a list, this command causes a jump to a
subroutine at the specified list buffer address [0 7999], if the current
IOvalue
at the
16-bit digital input port meets the following condition:
((IOvalue AND mask_1) = mask_1) AND (((not IOvalue) AND mask_0) = mask_0)
(i.e. the bits specified in
mask_1
must be
1
and the bits specified in
mask_0
must be
0
).
Parameters
mask_1,
mask_0
unsigned 16-bit masks
address
jump address [0 7999] as unsigned 16-bit value
Integration Pascal:
list_call_cond(mask_1, mask_0, address: word);
C:
void list_call_cond(unsigned short mask_1, unsigned short mask_0,
unsigned short address);
Basic:
sub list_call_cond(ByVal mask_1%, ByVal mask_0%, ByVal address%)
Comments The subroutine must be terminated with the command list_return
(see the chapter 5.6 "Structured Programming", page 45).
Also see "Programming Examples", page 46 (sample #(3))
References list_call, list_return
List Command list_jump_cond
Function Conditional list jump: During execution of a list, this command causes a jump to the
specified list buffer address [0 7999], if the current
IOvalue
at the 16-bit digital input
port meets the following condition:
((IOvalue AND mask_1) = mask_1) AND (((not IOvalue) AND mask_0) = mask_0)
(i.e. the bits specified in
mask_1
must be
1
and the bits specified in
mask_0
must be
0
).
Parameters
mask_1,
mask_0
unsigned 16-bit masks
address
jump address [0 7999] as unsigned 16-bit value
Integration Pascal:
list_jump_cond(mask_1, mask_0, address: word);
C:
void list_jump_cond(unsigned short mask_1, unsigned short mask_0,
unsigned short address);
Basic:
sub list_jump_cond(ByVal mask_1%, ByVal mask_0%, ByVal address%)
Comments See the chapter 5.6 "Structured Programming", page 45.
Examples
(Pascal)
wait until bit #3 of the input port turns HIGH (= loop while the bit is LOW):
list_jump_cond(0, $0008, get_input_pointer);
skip the next two list commands if the state of the input port is
xxxx xxxx xxxx 0110
:
list_jump_cond(6, 9, get_input_pointer + 3);
Also see "Programming Examples", page 46.
References set_list_jump

Table of Contents

Related product manuals