RTC6 boards
Doc. Rev. 1.0.21 en-US
6 Developing RTC6-User Programs
107
6.4.2 List Status
Dependent on the command input and output
statuses, lists receive particular list status values
(compare to Chapter 6.4.3 ”List Execution Status”,
page 108).
By control command read_status, the current list
status values can be queried – separately for both
lists.
• LOAD list status
The LOAD list status LOAD1 or LOAD2 indicates
that the input pointer is currently in this list. In
any case, the LOAD list status of the other list is
not set.
• READY list status
The READY list status READY1 or READY2 is set
when a set_end_of_list is written into the list
during the loading procedure. The
READY list status is reset when the
LOAD list status of the list is newly set.
• BUSY list status
The BUSY list status BUSY1 or BUSY2 indicates
that the output pointer is currently in this list
after list execution (of “List 1” or “List 2”) has
been started. In any case, the BUSY list status of
the other list are then not set. The BUSY list status
of a list is reset when set_end_of_list is executed
(or is alternating set, if automatic list changing
has been previously activated). If a list is opened
for loading while still being processed, its
BUSY list status still remains set.
• USED list status
The USED list status USED1 or USED2 is set when
a set_end_of_list is reached during processing.
The USED list status is reset when the
LOAD list status of the list is set.
Notes
• If the list status is queried during processing of a
subroutine in the protected RTC6 List Memory
area “List 3”, then the status is returned of the list
“List 1” or “List 2” in which the output pointer
most recently resided (typically from where the
subroutine has been originally called).
• If list execution is interrupted (by pause_list,
stop_list or set_wait), then the above-
mentioned status values remain unchanged.
• If list execution is aborted (by stop_execution or
an External Stop), the USED list status is set for
both lists (as by initialization). See also
load_list( ListNo = 3 )
.
• If you want to explicitly set the USED list status
for a list
ListNo
(for example, after abortion by
stop_execution or an External Stop), then load a
set_end_of_list to a free position
Pos
of this list
by set_start_list_pos(
ListNo
,
Pos
) and execute
by execute_list_pos(
ListNo
,
Pos
). If no other
list has been active at this moment, then list
ListNo
has the USED list status afterward.
• When interpreting the status values read back by
read_status, always take into account the
programmed loading or execution processes of
the lists (see command description).