Scanlab RTC 5 PC Interface Board Installation And Operation Manual page 527

Table of Contents

Advertisement

Undelayed
switch_ioport
Short
List Command
Function
executes a relative list jump
determined at runtime by the current value (IOvalue) at the EXTENSION 1 connector's
16-bit digital input port. You can specify which of the 16-bit digital input port's bits should
be evaluated for this purpose.
Call
switch_ioport( MaskBits, ShiftBits )
Parameters
MaskBits
ShiftBits
Comments
• With invalid values of MaskBits or ShiftBits and with (MaskBits + ShiftBits) > 16,
the command is replaced by a
RTC5_PARAM_ERROR).
• The following applies: Mask = ((1 << MaskBits) – 1) << ShiftBits and
SwitchNo = (Mask & IOvalue) >> ShiftBits. Here, a list_jump_rel( Pos ) with
Pos = (SwitchNo + 1) list positions will then be executed.
• The jump distance is at least 1. This prevents infinite loops when no signal is present.
Jumps to the same address (Pos = 0) aren't possible with switch_ioport, but can be
simulated via
• The maximum jump distance is 2
• Also see list_jump_rel.
• Also see section
Execution", page
®
®
RTC
4 RTC
5 new command
Version info
Last change with version DLL 517, OUT 516
References
list_jump_rel,
®
RTC
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
list_jump_rel
Number of contiguous bits (as an unsigned 32-bit value) of the 16-bit
digital input port to be evaluated for determining the jump distance;
allowed range: [1 ... 16]
Position of the least significant to-be-evaluated bit of the 16-bit digital
input port (as an unsigned 32-bit value); allowed range: [0 ... 15]
list_nop (get_last_error
list_jump_rel
( –1 ) as the directly subsequent command.
16
list positions.
"16-Bit Digital Input and Output", page 49
213.
list_jump_rel_cond
( Pos ) whose jump distance Pos (>1) is
return code
and
"Conditional Command
527

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RTC 5 PC Interface Board and is the answer not in the manual?

Subscribe to Our Youtube Channel

Related Products for Scanlab RTC 5 PC Interface Board

Table of Contents

Save PDF