Presentation is loading. Please wait.

Presentation is loading. Please wait.

Recipe management.

Similar presentations


Presentation on theme: "Recipe management."— Presentation transcript:

1 Recipe management

2 Recipe management (1) EXCEL File PLC‘s Marker range %MW0.0.0.4
PCMCIA FLASH EEPROM EXCEL File Recipe management (1) With the MV4 series it is possible to use up to 32 recipe objects. Every recipe object can have up to 1000 recipes with a maximum of 2000 entries. The recipe entries as well as the names can be edited on the PC. For the larger MV4-5xx the recipe data is stored on the PCMCIA card. In the smaller MV4s the recipes are stored in the project memory. For ervery recipe entry a marker-word/-byte in the PLC is nessesary, e.g. a recipe object with 2 recipes with 10 values per recipe requires 20 marker-words /-bytes. A recipe entry consists of: Names of the recipe entries (e.g. „Sugar“,“Milk“, ....) Values of the recipe variable (e.g. „15“, „5“,....) Make sure that the „Write Protect“ option of the PCMCIA-Card is disabled, when using recipes ! Max. No of recipe objects : Max. No of recipe entries : Max. No of variables in one recipe :

3 Recipe management (2) Select drive of PCMCIA - Card data Filename
When using recipes, it is nessesary to select „Include Recipe Data“ in the download menu. After the download to the PCMCIA card, a file with the extension ".TAB" is created. This file contains all values and names of the different recipe entries in the way shown below : * Recipe entry Variable 1 Variable 2 Variable 3 Variable n Pea soup Fish soup * Vegetable soup * Potatoe soup Vermicelli soup If a "*" is entered in the 1.line, the entire recipe can be edited during the runtime in the MV4 and the modified values will be stored on the PCMCIA card. If a "*" is entered in a different line, this line is changeable and the changed values will be stored. All the other entries are only temporarily changeable; that means the changes of those lines will not be stored. If a "*" is entered in the 1.line and in another line, the entries of this line are only temporarily changeable. The entries of all other lines are changeable and will be stored. This file (".TAB“) can be edited with Microsoft Excel® for setting up all the recipe entries. Recipe entries Recipe variables

4 Information: Recipe management
Info sheet: Recipe management First “define“ and “assign“ the variables with which you like to work in the recipe !!! Define recipe object in standard mode Define number of recipe entries Assign recipe tags/variables Click on recipe icon define and place recipe object with the mouse, then double-click on the object. Dialog: “Recipe“ Select recipe from list Enter Recipe data into the file on the PCMCIA card: After the first download of a project containing a recipe object a file will be created on the PCMCIA - card in the directory DATA with the extension “... .TAB“. Put PCMCIA - card into the PC - Port (Initialized drive) start the recipe editor Load the file “*.tab“ Enter recipe incl. data Save Boot PCMCIA card in the MV4 Important note: For then use of recipes a communication procedure is necessary between the MV4 and the PLC using a handshake mechanism. For that reason the „control“ and „Status“ tags must be assigned to marker arrays in the MV4 configurator. In the PLC program the handshake has to be programmed accordingly (refer to AWB-C GB page 2-38). Page 1/2 Procedure for the “Standard Mode“

5 Information: Rezepturverwaltung
Info sheet: Recipe management Page 2/2 Enter resp. chage recipe values via MV4: 1. Create a recipe tag (Define name and number of entries). 2. Assign the tag to the corresponding recipe object in your mask. 3. According to the number of recipe entries in the “Recipe mask“ you have to define keys for value entry. Select a keyboard type (e.g. Numeric). 4. Eventually define text e.g. “Value_x“ to label the value entry keys in the mask. 5. Download project to the PCMCIA - card and boot the MV4. 6. Via the “Recipe object“ and the key “KB“ (Key Board) enter the names for the defined recipes. 7. Select desired recipe and confirm with “RET“ (Return). 8. Enter the value using the value entry objects and confirm with “RET“. Value is written into the PLC‘s memory Value is saved in the MV4

6 Information: Handshake
Info sheet: Handshake Page 1/2 For the communication in the background of an MV4 project the PLC programm must contain a handshake mechanism. Different functions can be activated simultaneously or with a time gap. In each project GALILEO automatically creates three mesasage tags of the following types: Control - Status - Date / Time The control and status tags each contain 8 data words whose functions are described in excerpts below : Refresh error bits (Bit 7 in 1. Data word) Refresh warning bits (Bit 6 in 1. Data word) Refresh message bits (Bit 5 i 1. Data word) Trigger mask change (Bit 12 in 1. Data word) Number of destination mask (2. Data word) Time Sync (Bit 10 in 1. Data word) Send message with time and date (Bit 11 in 1. Data word) Read a recipe entry (Bit 6 in 3. Data word) Trigger recipe change (Bit 7 in 3. Data word) Transmit PLC-Texts (Bit 11 in 3. Data word) Caution: Those control bits should not be activated statically, because this would lead to an unnecessary load on the communication (refer to AWB-C GB page:2-43).

7 Information: Handshake
Info sheet: Handshake Page 2/2 The principal procedure looks like this: PLC Set control bits Transfer to the MV4 MV4 When the control bits are recognuized, a copy of the values will be mirrored to the status message. Transfer to the PLC Reset the control message when status feedback arrives PLC MV4 PLC Control bits are reset.When both devices have recognized this the handshake is complete. The PLC program could then – for the sample of a mask change initiated by the PLC – look like this: VAR Control_MV4 AT %MW : ARRAY [ ] OF WORD ; Status_MV4 AT %MW : ARRAY [ ] OF WORD ; Mask_number AT %IB : BYTE ; Trigger_mask_change AT %I : BOOL ; END_VAR LD Mask_number BYTE_TO_WORD ST Control_MV4 [ 2 ] LD Trigger_mask_change S Control_MV4 [ 1 ] . 12 LD Control_MV4 [ 1 ] . 12 AND Status_MV4 [ 1 ] . 12 R Control_MV4 [ 1 ] . 12 2. Data word 1. Data word Bit 12

8 Aufgabe: Rezepturverwaltung
Exercise: Recipe management 1 Expand your project with the entry of recipes. First define WORD variables: value1 ... value9 Assign the variables value1 ... value9 to the tag “Recipe_vals_1“. The marker offset address for value1 is %MW Assign the “Control“ tag to %MW Assign the “Status“ tag to %MW Create a new mask for the project. Place a recipe object named “Recipe_1“. Define “7“ recipe entries. Assign the recipe object to the recipe tag „ Recipe_vals_1“. Compile and download the project. Caution: You have to select „Include recipe data“ for teh download !!! Now load the file “recipe_1.TAB“ ininto the recipe editor and enter the values according to the sample below.

9 Aufgabe: Rezepturverwaltung
Exercise: Recipe handling 2 The recipe data shall be edited with the help of value entry objects on the mask. Expand the mask according to the sample below. The recipe entries “Goulash soup“ and „Vegetable soup“ shall be write protected.


Download ppt "Recipe management."

Similar presentations


Ads by Google