EasyManua.ls Logo

Scanlab RTC6 PCIe Board - Conditional Command Execution

Scanlab RTC6 PCIe Board
1004 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...
RTC6 boards
Doc. Rev. 1.0.21 en-US
9 Programming Peripheral Interfaces
295
innovators for industry
9.3.2 Conditional Command
Execution
The so-called conditional commands allow the
execution of individual list commands to be made
dependent on external control signals.
The conditional commands read out the current value
at the 16-bit digital input port at the EXTENSION 1
socket connector, see Section ”16-Bit Digital
Input Port and 16-Bit Digital Output Port”, page 78,
and their execution depend on the read out value:
Conditional Jumps
list_jump_pos_cond (synonymous with
list_jump_cond) and list_jump_rel_cond result
in either a jump within a RTC6 List Memory area
or no jump. The thereby specified jump addresses
must fulfill the same conditions as with
list_jump_pos and list_jump_rel
Variable-distance jump
switch_ioport executes a relative list jump
Conditional Calls of Non-Indexed Subroutines
list_call_cond and list_call_abs_cond either call
or do not call a non-indexed subroutine at a
specified memory address
Conditional Calls of Indexed Subroutines
sub_call_cond and sub_call_abs_cond either
call or do not call – depending on the queried
value – an indexed subroutine with a specified
index
Conditional output of peripheral signals
set_io_cond_list and clear_io_cond_list
associate the output value of the 16-bit digital
output port at the EXTENSION 1
socket connector, see Section ”16-Bit Digital
Input Port and 16-Bit Digital Output Port”,
page 78, directly with the signals at the digital
input port: individual bits of the output port are
set or cleared
Conditional execution of any desired
list commands:
if_cond and if_not_cond have no effect if the
condition for the queried value is fulfilled or not.
Otherwise, they result in skipping the next
list command. In this way, all list commands can
be executed conditionally.
Example: the command sequence
if_cond(…)
list_call(…)
is functionally identical to
list_call_cond(…)
.
The execution of any desired list command can also
be made dependent on the current value at the 2-bit
digital input port of the LASER Connector. For this,
if_pin_cond and if_not_pin_co
nd are available.
The
se are functionally similar to the commands
if_cond and if_not_cond. Reliable functioning of
these conditional commands requires that the signals
at the 2-bit digital input port remain unchanged for
at least 10 µs.
A condition for the 16-bit digital input port of the
EXTENSION 1 socket connector can be defined by the
control command set_pause_list_cond. If this
condition is met, a currently executed list is paused by
an automatically set pause_list. The list can only be
resumed by restart_list. The condition is checked
once per 10 µs clock cycle. A conditional pause_list
takes precedence over a simultaneously present
/STOP signal. set_pause_list_not_cond does the
same as set_pause_list_cond, if the specified
condition is not fulfilled.

Table of Contents