Info2
The
INFO2
execute obtains information about a recipe.The format and return for this execute includes:
Execute Format | A FactoryTalk Batch Server supports an execute with this format:[INFO2( <Item>,<UserID><RecipeID> )] | ||
where: | Item | Item name as specified by the client. | |
UserID | User identification associated with this event. | ||
RecipeID | File name of the recipe. | ||
Action | A successful INFO2 execute places the recipe information into the item field. | ||
Return Format | The item populates with this data: <RecList> \crlf | ||
where: | |||
<RecList> | is | <StepList> PARMS \crlf <ParmList> | |
<StepList> | is | <Step> | <Step> <StepList> | |
<Step> | is | <Alias> \t <BindData> \t <BindFlag> \crlf | |
<BindData> | is | <Class> | <UnitBindList> | |
<ParmList> | is | <ParmInfo> | <ParmInfo> <ParmList> | |
<ParmInfo> | is | <Parameter> \t <ResponseType> \t <ParmEdit> \t <EngUnits> \t <MaxValue> \t <MinValue> \t <Default> \t <ERPAlias> \crlf | |
where: | |||
Field Name | Format | Description | |
PARMS | ASCII - String | Keyword to separate the Steps from the parameters in the return result. | |
<Alias> | ASCII - String | Unit alias which requires binding. | |
<BindFlag> | ASCII - Integer | Integer value containing bits indicating what types of late binding are permitted:
Bit1 = PROMPT
Bit2 = FIRST AVAILABLE | |
<Class> | ASCII - String | Unit class the previous step was configured to use. | |
<Parameter> | ASCII - String | Parameter name required to create the batch. | |
<Response Type> | ASCII - Integer | Data type for the response:
| |
<ParmEdit> | ASCII - Integer | 1 = obsolete field used to mark recipe parameters as having values that could be edited or not. It always returns the value "1". | |
<EngUnits> | ASCII - String | Engineering units for the recipe parameter. | |
<MaxValue> | ASCII - String | High range for the recipe parameter. For parameters of type String and Enumeration, this field contains no data. | |
<MinValue> | ASCII - String | Low range for the recipe parameter. For parameters of type String and Enumeration, this field contains no data. | |
<Default> | ASCII - String | Default value for the recipe parameter. | |
<Response Type> | ASCII - Integer | Data type for the response
| |
<ERPAlias> | ASCII - String | R/3 parameter name. Used to map recipe parameters between the FactoryTalk Batch Server and R/3. |
The following table shows an example of the return on this execute.
Example: | An execute string consisting of: [INFO2(RCPINFO,STATION5/operator2,CLS_SWEETCREAM_OP.UOP] Would place this data in the item RCPInfo for the client: MIXER_CLS \t MIXER_CLS \t 0 \crlf PARMS \crlf MILK_AMOUNT \t 1 \t 1 \t KG \t 5000 \t 0 \t 0 \t ERP ALIAS 3 \crlf SUGAR_AMOUNT \t 1 \t 1 \t KG \t 1500 \t 0 \t 0 \t ERP ALIAS 4 \crlf CREAM_AMOUNT \t 1 \t 1 \t KG \t 5000 \t 0 \t 0 \t ERP ALIAS 1 \crlf EGG_AMOUNT \t 1 \t 1 \t KG \t 500 \t 0 \t 0 \t ERP ALIAS 2 \crlf |
Provide Feedback