Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 21 of 41

E-terminals Programming manual: 11 Recipes

Pages 170 to 177 of 335, from E-terminals Programming manual

The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Beijer Electronics AB E200

Page 170

Recipes

11 Recipes The chapter is not valid for E50. This chapter describes the function recipe handling. The recipes function means that all dynamic data in a block, that is signals and their values, can be saved to in the run-time mode. The operator can then down-load the file to the PLC system. The PLC system then starts to work with the loaded values. By using the recipe handling function a large amount of parameter settings can easily be reused. The user creates a recipe library containing files with different parameter settings. This function makes time-critical production more efficient. For example when you often shift between similar products e.g. when producing a unit in different colors. The recipe files can be created from the terminal, from the PLC system or from a PC with the software HMI Tools. Recipe files are stored in the terminal. To use recipes, the functions for storing, loading and erasing recipes must be linked to function keys, see the chapter Function keys. The diagram below shows the principle for managing recipes. The personal computer is used to program the terminal. The personal computer is used for example as back-up for production recipes or to create new recipes via the program File Transfer in HMI Tools.

The recipe block can access values from the PLC system which via the terminal are stored as a recipe.

Create new recipe files with the Save recipe function. Recipe file Memory cell 100 Memory cell 102 Data register 0 Data register 1 Data register 102 Data register 103

1 0 25 100 12 1123 Load the recipe in the PLC system with the Load recipe function.

The Load recipe function can be defined in any block, for example a block that is used to start running.

159

Page 171

Recipes

11.1 Calculate the recipe size Use the following equation to calculate how much the recipe will occupy the project memory. S = 90 + Σ (2 ∗ IOGi + 28) S = number of bytes. If S calculated will be less than 360, S will be set to 360. Σ = the number of IO-series IOGi = the number of IO in each IO-series Example Our recipe has the following series data register 0-109, 200-499 and memory cell 0-99. Our recipe consists of 3 I/O series. The calculation will be: Calculate the sums of the different series: 1104 = (2 * 110 + 28) + (2 * 300 + 28) + (2 * 100 + 28) Then calculate the sum: S = 90+ 1104 S = 1194 bytes

160

Page 172

Recipes

11.2 Creating a recipe with the terminal Which block or blocks are to be used to save the recipes is decided when the application is programmed. All those signals that are to be included in the recipe are defined in the block that will be saved as a recipe. All dynamic values in the block are stored in the recipe file. All digital and all analog objects except trend objects can be used as recipe parameters. A jump is made in run-time mode to the block which contains the recipe parameters. Enter the required values in the dynamic object and press the function key which is linked to Save recipe. The name of the file is given in the entry field shown. The recipe file is stored in the terminal.

161

Page 173

Recipes

11.3 Transferring a recipe to the PLC system The recipe is transferred to the PLC system in run-time mode with the Load recipe function. This means that the signals and their values stored in the file are transferred to the PLC system. When the function key for Load recipe is pressed a list of available recipe files to choose from is shown. Select one and press [ENTER]. The PLC system will then run with the down-loaded values.

11.4 Erasing a recipe Any named recipe can be erased in run-time mode from the terminal memory with the Delete recipe function. Press the function key connected to Delete recipe. Available recipe files to choose from are now shown. Select the file to be erased and press [ENTER]. Confirm the erasure by pressing [ENTER] or abort by pressing [PREV].

162

Page 174

Recipes

11.5 Using recipes in a personal computer With the program File Transfer, in the program group HMI Tools, recipes can be transferred between the terminal and a personal computer. This means that the personal computer can be used for making safety copies of files in the terminal. New recipes can be created in the personal computer and be transferred to the terminal. The files are stored in the .SKV format in the personal computer which can be brought up in Excel. Files can be edited in Excel and then used in the plant again. Note! The file must end with the instruction END.

For further information we refer to the manual for HMI Tools.

163

Page 175

Recipes

11.6 Loading and saving recipes via the PLC program By using a control block in the PLC system you can load, save and delete recipe files in the terminal. The files created by the PLC program are compatible with the recipe files saved in the terminal. This means that recipe files saved by the PLC program can be loaded in the terminal and vice versa. Terminal

PLC system

Recipe file 1 Register

Value n n+1 n+2 . . .

123 53447 0 n+m

76789

Save recipe Load recipe Delete recipe Names of recipe files

Recipe registers

Recipe file x Register

Value n n+1 n+2 . . .

89 7699 1 n+m

76789

Register 0 1 . . .

Value n n+1 n+2 . .

123 53447 0 n+m . .

265346

PLC program

Data

MOV MOV

. Ctrl reg 0 . Ctrl reg 1

Ctrl

Control block . Ctrl reg 7 .

In the Setup menu, System signals you define the first register in the control block. This register and the seven following registers are used as control registers. The control block is described in the following table.

164

Page 176

Recipes

Register

Content

Description

Ctrl reg 0

Command

Command register set by the PLC Available commands: 0: No command 1: Save recipe to the terminal. 2: Read recipe from the terminal. 3: Delete recipe from the terminal.

Ctrl reg 1

Result code

Handshake register set by the terminal. 0: Ready for new command. 1: OK. 2: Recipe file write error. 3: Recipe file not found.

Ctrl reg 2

File name char. 1-2

Ctrl reg 3

File name char. 3-4

Ctrl reg 4

File name char. 5-6

Ctrl reg 5

File name char. 7-8

Ctrl reg 6

Start data register

The number of the first data register to be read/ written to/from recipe file. (n in the figure below)

Ctrl reg 7

Number of registers

Number of registers to read/write to/from recipe file. (m in the figure below).

Recipe file name in the terminal.

To perform commands, the following handshake procedure must be carried out: 1. The handshake register must be 0. If it is not, make sure that the command register is set to 0. 2. Write the command in the command register. 3. Wait for completion or error code in the handshake register. 4. Set the command register to 0. After this, the terminal will set the handshake register to 0.

165

Page 177

Recipes Example The PLC wants to save D100 to D149 as recipe name “RECIPE1” when M0 is activated. The control block starts at D10. The PLC program should be as follows. M0 0

=

K 0

D11

ASC RECIPE 1

D12

K 100

D16

MOV

MOV

K 50 K 1

D10

MOV

K 0

D10

RST

M0

MOV

M0 34

=

K 1

D11

D17

Limitations Recipe created in the PLC system can include maximum 1000 registers. Only data registers can be used. The following characters can not be used in recipe names: ! ? < > ( ) + / * = ° % # : . [space] , -

166