UERecipe_x

The
UERecipe_x
item returns the recipe value for the prompted parameter the
x
th
unacknowledged prompt in the unacknowledged prompts list.
This table shows the input and output formats for this item.
Input Format
Request:
UERecipe_
<RowNumber>
<RowNumber>
is
ASCII - Integer
An array index. When an unacknowledged prompt generates, it adds to an array. If the unacknowledged prompts list is not sorted, then
x
is the row number of the unacknowledged prompt appearing in the unacknowledged prompts list.
The UERecipe_x item requires the
batchsvr.ini
file to contain this setting in the [CLIENT MGR DDE] section:
MaxPromptTableLength = n
where
n
is the maximum number of unacknowledged prompts accessible to this item (the maximum number of entries in the array). And, where 0
£
x
£
MaxPromptTableLength
. If the number of unacknowledged prompts in the unacknowledged prompts list is larger than
n
, then this item will only access the first
n
unacknowledged prompts in a non-sorted unacknowledged prompts list. When an unacknowledged prompt with an index of less than
n
is removed from the unacknowledged prompts list, all subsequent unacknowledged prompts will have their index decreased by one. The default value of
MaxPromptTableLength
is
0
(zero).
Output Format
The UERecipe_x item returns in this format:
<UERecipe_x>
is
<Recipe>
<Recipe>
is
<CreateID>
:
<PathToPhase>
-
<ConnectNum>
where:
Field Name
Format
Description
<CreateID>
ASCII - Integer
Unique identifier assigned by the
FactoryTalk Batch
Server to the batch where this prompt originated.
<PathToPhase>
ASCII - String
Path through the levels of the batch’s recipe to the phase which made the download request then became this prompt.
<ConnectNum>
ASCII - Integer
Number of times this phase has been connected to through DDE while the recipe or subrecipe has been running (this is roughly but not always equal to the number of times the phase ran).
This table is an example of an unacknowledged prompts list containing two unacknowledged prompts:
Time
Batch ID
Recipe
Desc
Unit
Phase
2/24/2022 2:33:45 PM
BATCH_99
12: French_Vanilla
Charge_ Amount
UA_1
P1
2/24/2022 2:34:06 PM
BATCH_100
17:MCLS_FRENCHVANILLA\ P44:1-1
Hold_Time
UA_2
P44
This table shows an example of the return on this request.
Example:
For the recipe associated with the prompt in the first row of the unacknowledged prompts list, a request on
object
.
GetItem(UERecipe_1)
would return:
12:French_Vanilla:1-1
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal