RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
322
Undelayed
Short
List Command
list_jump_rel_cond
Function Conditional (relative) list jump: This command executes the command
list_jump_rel(
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_rel_cond( Mask1, Mask0, Pos )
Parameters
Mask1,
Mask0
16-bit masks as unsigned 32-bit values
(only the least significant 16 bits are evaluated)
Pos
Jump distance [(–2
20
+1) … (2
20
–1)] as a signed 32-bit value
Comments • See list_jump_rel.
• Unlike the rules for preventing endless loops (see list_jump_rel), jumps via
list_jump_pos_cond are allowed even if they are to their own address (
Pos
= 0), e.g.
to wait for confirmation of a signal.
• 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_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);
• Also see "Programming Examples", page 214.
RTC
®
4
RTC
®
5 new command
References list_jump_rel
Normal
List Command
list_nop
Function inserts a null operation (no operation) into the list buffer
Call
list_nop()
Comments • The list_nop command works like long_delay(1). It switches off the “laser active” laser
control signals after a LaserOff delay and waits for a possible scanner delay. Even if no
delays need to be waited for, execution of the command requires 10 µs.
• The command serves as a placeholder for rejected list commands (get_last_error return
code:
RTC5_IGNORED
).
• When this command immediately follows a short list command, it ensures that the
subsequent list command only executes in the next 10 µs clock period (the short list
command’s “effective“ execution time is then 10 µs).
RTC
®
4
RTC
®
5 essentially unchanged functionality, but switches off the “laser active” laser control signals
(see above).
References long_delay, list_continue