RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
486
Undelayed
Short List
Command
list_jump_rel_cond
Function Conditional relative list jump: list_jump_rel_cond executes list_jump_rel(
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_rel_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
Jump distance [(–2
23
+1)…(2
23
–1)].
As a signed 32-bit value.
Comments • See list_jump_rel.
• Unlike the rules for preventing endless loops (see list_jump_rel), jumps by
list_jump_rel_cond are allowed even if they are to their own address (
Pos
= 0), for
example, to wait for confirmation of a signal.
• 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_rel_cond(0, $0008, 0);
• Skip the next two list commands if the state of the input port is
xxxx xxxx xxxx 0110
:
list_jump_rel_cond(6, 9, 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_rel