Rockwell Automation 2080-LC20-20QBBR Micro820 20-point Programmable Controllers User Manual User Manual

Page 95

Advertising
background image

Rockwell Automation Publication 2080-UM005A-EN-E - December 2013

87

Using microSD Cards Chapter 9

Quickstart Projects for
Datalog and Recipe
Function Blocks

The following sample quickstart projects provide step-by-step instructions on
how to use the Datalog and Recipe function blocks in Connected Components
Workbench to generate and manage your recipe files and datalogs.

IMPORTANT

RCP Function Block Execution

There are three possible states for Recipe function block: Idle, Busy,

Complete (Complete with Succeed and Complete with Error)

For one Recipe function block execution, the typical status starts from

Idle then Busy and finishes with Complete. To trigger another function

block execution, the status needs to go back to Idle first.

Idle status changes to Busy status only when Enable input signal is in

rising edge. Complete status enters Idle status when Enable input

signal is on Disable status.

RWFlag, CfgId and RcpName input parameters are only sampled at

Enable input parameter's rising edge when a new function block

execution starts. During function block execution, input parameters of

RWFlag, CfgId and RcpName are locked and any changes are ignored.

When the function block execution finishes, the function block status

changes from Busy to Complete. At this stage, if input Enable is False,

function block status changes to Idle after staying as Complete for

exactly one scan time. Otherwise, function block status remains

Complete until input Enable changes to False.

Recipe function block file name supports a maximum of 30 bytes in

length, and only supports upper and lower case letters Aa…Zz,

numbers 0…9 and underscore (_).

The RcpName input parameter does not allow file extension (for

example, .txt) to be added to its value. The recipe data file is written

to the microSD card with the .txt extension.

There are separators in between every data variable in the recipe

data file which is defined during configuration in Connected

Components Workbench. Redundant tab, space, carriage return and

line feed characters are strictly not allowed.

See

Supported Data Types for Datalog and Recipe Function Blocks on

page 82

.

Double quotes are not allowed within a string in a recipe file.

Advertising