
246
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
Chapter 12 Using microSD Cards
Recipe Directory Structure
Recipe Configuration and Retrieval
You can retrieve recipe files from the microSD card using a card reader or by uploading and
downloading the recipe sets through the Connected Components Workbench software.
Recipe Function (RCP) Block
The RCP function block allows a user program to read variable values from an existing recipe
data file that is in the recipe folder of the microSD card and update run-time global or local
variable values in the controller. The RCP function block also allows the user program to write
run-time global or local variable values from smaller controller into the recipe data file in the
microSD card.
On first execution of RCP, it creates the RECIPE folder under the current project
directory on the microSD card.
It also creates 10 subdirectories for each recipe set with a name following the CfgID
input value (1…10). If the CfgID value is 1, then the subfolder Rcp_Id01 is created.
Recipe files are then created/written into the folder, with file names that correspond
to the input value of RcpName parameter for the RCP function block, as configured in
the Connected Components Workbench software. Each Recipe set can contain up to
50 recipe files or variations. Filenames for recipe files should not exceed 30
characters.
Table 61 - RCP Input and Output Parameters
Parameter
Parameter
Type
Data Type
Description
Enable
INPUT
BOOL
Recipe read/write function enable. If Rising Edge (Enable
is triggered from “low” to “high”), starts recipe function
block and the precondition is that last operation is
completed.
RWFlag
INPUT
BOOL
TRUE:
Recipe write data variables to recipe files into the
microSD card.
FALSE:
Recipe reads saved data variables from the microSD card
and update these variables accordingly.
CfgId
INPUT
USINT
Recipe set number (1…10).
RcpName
INPUT
STRING
Recipe data filename (maximum 30 characters).
Status
OUTPUT
USINT
Current state of Recipe function block.
ErrorID
OUTPUT
UDINT
Detailed error ID information if RCP read/write fails.
RCP
Enable
RWFlag
CfgId
Status
ErrorID
RcpName