Syntax |
RCPDownloadEx (filename$[,[recipename$][,[mapname$][, [pointorval$][,ispoint]]]]) |
|
Description |
Downloads the specified Recipe from the specified Recipe Group using the specified Map. |
|
Comments |
The RCPDownloadEx function takes the following parameters: |
|
|
Parameter |
Description |
|
filename$ |
Required string containing the name of the Recipe Group file where the Recipe is located. The Recipe Group file must exist |
|
recipename$ |
Optional string containing the name of the Recipe to be Downloaded. |
|
mapname$ |
Optional string containing the name of the Map to be used when Downloading the Recipe. |
|
pointorval$ |
Optional string containing the Batch Point or Batch ID to be used when Downloading the Recipe. |
|
ispoint |
Optional integer, set to 1 if pointorval$ is a Batch Point. |
|
The value returned is one of the following constants. |
|
|
RCP_SUCCESS |
Function was successful. |
|
RCP_PT_UNAVAIL |
Point in recipe was disabled or does not exist. |
|
RCP_NO_PERMISSION |
Current user has no setpoint permissions for points in recipe. |
|
RCP_VAL_OUTSIDE_RANGE |
Value to be written to point in recipe is outside setpoint range. |
|
RCP_FILER_ERR |
Path or file not found |
|
RCP_OLE_ERR |
OLE error in execution. |
|
RCP_UNKNOWN |
Error not covered in one of the above. |
Example |
RCPDownload ("D:\Bread.rgp", "White", "Line1", "Batch of White Bread", 0) |
R |