un Recipe Component Ivan Prieto Barreiro BEICS 17032017
un. Recipe Component Ivan Prieto Barreiro – BE/ICS 17/03/2017 Document reference 1
Summary • Recipe Concepts • Recipe Types, Classes and Instances • Recipe Buffers: DS – PLC Communication • Recipe Activation Sequence 17/03/2017 un. Recipe Component 2
Recipe Concepts • Manage (apply, store, reload) a set of values (set-points, thresholds) for a set of CPC object parameters. • Optimize communications between DS – PLC • Based on the concepts of recipe type, class and instance 17/03/2017 un. Recipe Component 3
Recipe Types, Classes and Instances Recipe Type Defines the device types and device elements that can be included in a recipe (class/instance) 17/03/2017 un. Recipe Component 4
Recipe Types, Classes and Instances Recipe Type Defines the device types and device elements that can be included in a recipe (class/instance) Recipe Class 1 0. . * Data structure for the recipe instances: • • List of devices List of datapoints for each device 17/03/2017 un. Recipe Component 5
Recipe Types, Classes and Instances Recipe Type Defines the device types and device elements that can be included in a recipe (class/instance) Recipe Class 1 0. . * Data structure for the recipe instances: • • List of devices List of datapoints for each device 1 Recipe Instance 0. . * Instances of a recipe class, defines the value for each datapoint 17/03/2017 un. Recipe Component 6
Recipe Buffers: DS – PLC Communication DS -> PLC 1. 2. 3. 4. 5. Header (Word): Initiates and drives the recipe activation Man. Reg Addresses (Word): Addresses of Manual Registers used in the recipe Man. Reg Values (Word): Manual Register values for addresses defined in 2) Request Addresses (Word): Addresses for the values used in the recipe Request Values (Float): Recipe values for the addresses defined in 4) PLC -> DS 1. Recipe Status (Word): Used by the PLC to acknowledge the recipe activation steps 17/03/2017 un. Recipe Component 7
Recipe Buffers: DS – PLC Communication Siemens only 17/03/2017 un. Recipe Component 8
Recipe Buffers: DS – PLC Communication Data organized in structures: • MODBUS protocol limitation to 240 bytes of data 17/03/2017 un. Recipe Component 9
Recipe Activation Sequence Win. CC OA Sent value = 1 PLC 1 – Send header buffer 2 – Copy header to status 3 – Send status buffer Rcp status = 1 Err Detail = 0 4 – Check status buffer 5 – Send recipe buffers (Man. Reg. Addr, Man. Reg. Val, Req. Addr, Req. Val) Sent value = 2 6 – Send header buffer 7 – Check Recipe ID 8 – Send status buffer Rcp status = 2 Err Detail = 0 9 – Check status buffer Sent value = 3 10 – Send header buffer (Activate recipe) 11 – Activate recipe 12 – Send status buffer Rcp status = 3 Err Detail = 0 13 – Check online values 17/03/2017 un. Recipe Component 10
- Slides: 11