RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
392
innovators for industry
Ctrl Command release_rtc
Function
releases the specified RTC
®
5 for use by other applications (user programs)
Call
NoOfReleasedCard = release_rtc( CardNo )
Parameter
CardNo
(DLL-internal) number of the RTC
®
5 board as an unsigned 32-bit value
Result
The returned (unsigned 32-bit) value is
CardNo
if the application was still in possession of
access rights for this board. Otherwise, 0 is returned.
Comments
• After the application releases a board with
release_rtc
, it no longer has access rights
for this board. The board can then be subsequently acquired by the same or another
application via
or
• If a board released via
release_rtc
was the active board, then (other than multi-board
commands) only those non-multi-board commands not requiring explicit access rights
will be subsequently available. Another board will not be automatically selected as the
active board. Activation of another board (for which access rights are assigned to the
application) can be achieved via the
command.
• The
release_rtc
command does not cause a reset of the RTC
®
5 board. Board resets can
only be initiated via the command
.
• The
release_rtc
command is also available without explicit access rights for a particular
RTC
®
5 board, but the command then has no effect (return value 0).
• The
release_rtc
command also has no effect (return value 0) if
CardNo
exceeds the
number of RTC
®
5 boards found during initialization (see
or if
CardNo
= 0 (real boards begin at 1).
•
release_rtc
is not available as a multi-board command.
RTC
®
4
RTC
®
5 new command
References
Ctrl Command release_wait
Function
resumes execution of a list that was interrupted by a
command
Call
release_wait()
Comments
• The command
release_wait
is only executed if the RTC
®
5 is actually in a wait state
(hence if a wait marker was previously reached and execution was halted; the PAUSED
status is then set, the BUSY status is
not
set). Otherwise, the command is ignored
(
return code
RTC5_BUSY
).
•
release_wait
resets the PAUSED status and newly sets the BUSY status (both queriable
with
"List Execution Status", page 73
).
• The command
release_wait
resets to zero the wait_word that receives the wait marker
number during an interrupt.
• If a home jump (defined with
or
) was executed via
release_wait
will lead to a corresponding home return (the INTERNAL-
BUSY status is set while the home return is executed).
• The wait status can be queried via
RTC
®
4
RTC
®
5 essentially unchanged functionality, however:
the RTC
®
5 also provides a PAUSED status that will be set with
and reset with
release_wait
.
References