CompareAreaModels

The
COMPAREAREAMODELS
execute compares the current area model to an updated area model.
The format and return for this execute includes:
Execute Format
A
FactoryTalk Batch
Server supports an execute with this format:
[COMPAREAREAMODELS (
Item,UserID,AreaModelName
)]
where:
Item
The item name, as specified by the client.
UserID
User identification associated with this event.
AreaModelName
Name of the updated area model .cfg file.
Action
A successful COMPAREAREAMODELS request compares the two area models and logs any differences. The request also indicates if the specified area model name is considered legal for an online area model change.
Return Format
The item populates with this data:
SUCCESS:
<CompareResult>_\t<LogFile>
| FAIL:
<message>
where:
Field
Format
Description
<CompareResult>
ASCII – Integer
1=Same
2=Different: Valid for Online Area Model Change
3=Different: Not Valid for Online Area Model Change
<LogFile>
ASCII - String
The log file details the differences between the two area models compared.
The following table shows an example of the return on this execute.
Example:
An execute string consisting of:
COMPAREAREAMODELS (Item, STATION7,
ice_cream1_updated.cfg)
Could return:
SUCCESS:2 \t
\\BTCHSYSCMPTR001\batchctl\SampleDemo1\logs\COMPARE.ICE_CREAM1_UPDATED.2017-08-07_T1655050887.LOG
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal