Rockwell Automation Publication 2080-UM002M-EN-E - April 2022 237
Chapter 11 Using microSD Cards
Table 48 - 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.
Table 49 - RCP Function Block Status
Status Code Description
0 Recipe Idle status.
1 Recipe Busy status.
2 Recipe Complete Succeed status.
3 Recipe Complete Error status.
Table 50 - RCP Function Block Errors
Error ID Error Name Description
0 RCP_ERR_NONE No error.
1 RCP_ERR_NO_SDCARD microSD card is absent.
2 RCP_ERR_DATAFILE_FULL
Recipe files exceed maximum number of files per recipe set
folder.
3 RCP_ERR_DATAFILE_ACCESS Error to access recipe data file in microSD card.
4 RCP_ERR_CFG_ABSENT Recipe configuration file is absent.
5 RCP_ERR_CFG_ID Configure ID is absent in recipe configuration file.
6 RCP_ERR_RESOURCE_BUSY
The Recipe operation resource linked to this Recipe ID is used
by another function block operation.
7 RCP_ERR_CFG_FORMAT Recipe configuration file format is invalid.
8 RCP_ERR_RESERVED Reserved.
9 RCP_ERR_UNKNOWN Unspecified error has occurred.
10 RCP_ERR_DATAFILE_NAME Recipe data file name is invalid.
11 RCP_ERR_DATAFOLDER_INVALID Recipe dataset folder is invalid.
12 RCP_ERR_DATAFILE_ABSENT Recipe data file is absent.
13 RCP_ERR_DATAFILE_FORMAT Recipe data file contents are wrong.
14 RCP_ERR_DATAFILE_SIZE Recipe data file size is too big (>4K).
IMPORTANT
File access error will be returned during RCP function block execution
when card is full.