RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
484
Undelayed
Short List
Command
list_jump_pos_cond
Function Conditional absolute list jump: list_jump_pos_cond executes list_jump_pos(
Pos
), if the
current
IOvalue
at the EXTENSION 1 socket connector’s 16-bit digital input port meets the
following condition:
((IOvalue AND Mask1) = Mask1) AND (((not IOvalue) AND Mask0) = Mask0)
(= if the bits specified in
Mask1
are
1
and the bits specified in
Mask0
are
0
).
Otherwise, the directly following list command is immediately executed.
Call
list_jump_pos_cond( Mask1, Mask0, Pos )
Parameters
Mask1
16-bit mask. As an unsigned 32-bit value.
Only the lower 16 bits are evaluated.
Mask0
See
Mask1
.
Pos
Absolute jump address [0…(2
23
–1)].
As an unsigned 32-bit value.
Comments • See list_jump_pos.
• Unlike the rules for preventing endless loops (see list_jump_pos), jumps by
list_jump_pos_cond are allowed even if they are to their own address (
Pos
= list
position of the Jump Command), for example, to wait for confirmation of a signal.
• list_jump_pos_cond is synonymous with list_jump_cond.
• See also Chapter 9.3.2 ”Conditional Command Execution”, page 295.
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_pointer + 3);
• See also Section ”Example Code (Pascal)”, page 296.
RTC4RTC6 New command.
RTC5RTC6 Unchanged functionality.
Version info Available as of DLL 600, OUT 600, RBF 600.
References list_jump_pos