RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
320
innovators for industry
Undelayed
Short
List Command
list_jump_pos_cond
Function
Conditional (absolute) list jump
: This command executes the command
(
Pos
), if the current
IOvalue
at the EXTENSION 1 connector’s 16-bit digital
input port 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
). Otherwise, the
directly following list command will be immediately executed.
Call
list_jump_pos_cond( Mask1, Mask0, Pos )
Parameters
Mask1,
Mask0
16-bit masks as unsigned 32-bit values
(only the least significant 16 bits are evaluated)
Pos
absolute jump address [0 … (2
20
–1)] as an unsigned 32-bit value
Comments
• See
.
• Unlike the rules for preventing endless loops (see
), jumps via
list_jump_pos_cond
are allowed even if they are to their own address (
Pos
= list posi-
tion of the jump command), e.g. to wait for confirmation of a signal.
• The command is synonymous with the
command.
• Also see
"Conditional Command Execution", page 213
.
Examples
(Pascal)
• wait until bit #3 of the input port turns HIGH (= loop while the bit is
LOW
):
list_jump_pos_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_pos_cond(6, 9, get_input_p 3);
• Also see
"Programming Examples", page 214
.
RTC
®
4
RTC
®
5 new command
References