Cover SEB SIMOTION Easy Basics Collection of standardized SIMOTION basic functions FAQ April 2011 Service & Support Answers for industry.
1 Preface 1 Preface The SEB is a collection of simple, standardized basic functions that application engineers should use when generating SIMOTION projects. Benefits when using the SEB: Shorter engineering and service times Similar look & feel of the function blocks Industry and engineer standards are used Supported by the various PM Application Centers Continuously updated Essentially open source code so that you can adapt the functions to your requirements Functions can be simply imported via script User manuals in English and German Simple to learn & get to know using application examples 2 Source of the SEB The content of the SEB can be downloaded or requested from the Siemens intranet via the following web site: www.siemens.com/intranet/apc Choose the link Standard-Applications Selection. Followed by - Application search by keywords: Simotion Easy Basics or - Full text search: SEB. In case you don t have access to the Siemens intranet, please contact your Siemens sales department or the following e-mail address: mailto:applications.erlf.aud@siemens.com 2 FAQ_SEB_en V1.0.1
3 Contents of the SEB 3.1 Overview The SEB basically consists of the following parts: Source code as libraries or units Presentation slides of the available functionalities (English / German) User manuals (English / German) Script for guided integration of the functionalities Example application for SIMOTION D demonstration case Feedback sheets (English / German) Change log (change history) 3.2 Functionalities 3.2.1 AlarmS User-defined messages SIMOTION provides the possibility to generate user-defined alarms and messages. By means of the AlarmS method it is possible to trigger the alarms and messages and to display them on an HMI. Besides this basic functionality, the function block offers the following enhancements: Classification of the alarms into categories Messages are interrogated using a global state Different ways of acknowledging the actual error (acknowledgement compulsory / mandatory) 3.2.2 BitError User-defined messages The bit signaling technique allows the user to initiate messages independently of the connected HMI. In this case, individual bits are set in a WORD array. The connected HMI can access these individual bits. The editing of the alarms and messages takes place within the engineering system of the HMI. Moreover the function block provides the following functionalities: Classification of the alarms into categories Messages are interrogated using a global state Different ways of acknowledging the actual error (acknowledgement compulsory / mandatory) 3.2.3 DP-Slave Diagnostics Information about the various bus nodes is provided from the DP slave diagnostic function. The bus nodes are addressed using the diagnostics address (determined from the PROFIBUS address). Diagnostics information about configured/connected PROFIBUS slaves Interrogation and evaluation of PROFIBUS errors I DT MC PM Page 3/8
3.2.4 TechF System messages The concept to handle alarms and references of the technological objects (TO) in SIMOTION is based on a central alarm handling. All of the alarms initiated from the TOs cause the Technological Fault Task to be started. A fault and / or object-specific message handling of the user application can be started from this task. Determines the object type of the technological object that issued the alarm/message Standard function for acknowledgement of notes and alarms independent of the TO type Chronological fault buffer Fault-specific handling 3.2.5 LBasic Library with basic functions The library LBASIC sums up basic functionalities, which are often needed when creating a SIMOTION project. AnalogIO Handling of analog I/O assemblies (TB30 / ET stations) The function blocks can be used for conversion of input and output values of analog assemblies. Scaling Overflow, underflow Average Average determination The function block calculates the average of max eight integer input values, whereas the minimum and the maximum input value are not integrated into the averaging. FindZero Zero point calculation With the help of these functionalities numerical zero points of polynomials of up to 5 th grade can be determined relatively fast and convergent. The following methods are available: Bisection method Secant method CalcPoly Polynomial calculation Via this collection of functions the coefficients of polynomials can be determined Calc-Vect Vector analysis Coefficients of polynomials (1 st to 5 th grade) can be determined if the boundary conditions are defined Determination of the slave position, velocity, acceleration and jerk belonging to the master position The unit contains basic functions of the vector analysis: Basic calculation methods, value scale Scalar product, vector product Coordinate transformation 4 FAQ_SEB_en V1.0.1
ClockMem Clock memory Interception points calculation The clock memory is a function block that has eight Boolean outputs that change their binary state according to permanently set frequencies periodically in the pulse - pause ratio (mark-space ratio of 1:1). Similar to the SIMATIC Step7 clock bit memory CompHyst Hysteresis comparison blocks The functions blocks compare input signals with each other and offer the following additional functions: Switching threshold, hysteresis ConvTime System time conversion Interpol Interpolation The unit contains conversion functions for the system time: Conversion of a SIMOTION data type DATE_AND_TIME into a serial time (UTC time) Conversion of a serial time (UTC time) into the SIMOTION data type DATE_AND_TIME Conversion of a SIMOTION data type TIME into separate values for days, hours, minutes, seconds and milliseconds Conversion of a SIMOTION data type DATE into separate values for years, month and days Conversion an ASCII string (date / time) into the SIMOTION data type DATE_AND_TIME The function block interpolates a straight line by two / eight points with limitations. Counter Elapsed hour / ring / event counter The Unit contains functionalities for: Elapsed hour counter Event counter with floating frequency control per time slot Level triggered ring counter with set function DateTime Date / time synchronization The unit covers et al. the date and time synchronization between SIMOTION and a connected HMI. Setting the system time and the system date from SIMOTION platforms via HMI Synchronizing the time and the date of a connected HMI to a SIMOTION platform Synchronizing the time and the date of a SIMOTION platform to a connected HMI Synchronizing the real time clock of several SIMOTION platforms with one another I DT MC PM Page 5/8
DefSig Determination of signs The function returns +1.0, 0.0 or -1.0 depending on the assigned LREAL value. Elements I / PI / D / ramp / T1 - elements The unit contains the following functionalities: Differentiating element General transfer element of 2 nd order Differentiating element with specification of interval length Ti Controllable integrating element with limitation and setting function PI element Linear ramp with separate steepness,enabling and transparent mode T1 element with setting function Horner Efficient runtime calculation of polynomials Latch Latch The functional value of an n th grade (order) polynomial at the position x is calculated. Runtime efficient zero point determination using the Horner technique The unit contains the following functionalities: D-Flip-Flop Sampling of signals LogicWrd Parity check / prioritization / bit detection The unit contains the following functionalities: MultiPlx Demultiplexer Random Random generator Redund Redundancy Parity detection and determination of the number of bits that have been set via signals of the data type WORD Prioritization of 4 binary signals, cascadable Detection of high signals out of 4 binary input signals Detection of a high signal out of 9 binary input signals Cascadable demultiplexer for 8 values The function generates random numbers between 0 and 1. At first, the function should be initialized - the same initial value generates the same random array. The unit comprises the following safety functions: Function block to read two redundant binary inputs to increase the security (including error display time) Function block for activation of an control element by observation of the response contact (including error display time) 6 FAQ_SEB_en V1.0.1
Special Measuring / comparing / observing The unit contains basic functions for measurement and monitoring like: Setpoint / actual value comparison with tolerance Acceleration measurement with enabling Monitoring an input for admissible changes Path measurement (milometer) Distance pulse generator UnitData Global unit data handling SIMOTION allows users to save, download or initialize data sets that they have individually created. Data set comprises not retentive or retentive variables of a unit defined in the interface or in the implementation area of this unit. The data can be permanently saved e.g. on the SIMOTION storage device and read in later, if required. Saving, loading, importing, exporting, initializing of individually configured data sets Non retentive or retentive data storage possible Format binary or ASCII HMITrace Real time trace with HMI The function block provides the cycle synchronous tracing of signals, which can be displayed as graphs at the HMI (WinCC flexible). The block takes care of the tracing and preparation of the data, which is stored in an array. Cycle synchronous tracing of signals in the runtime system of SIMOTION Transfer of the data to the HMI (WinCC flexible) 3.2.6 LTpCam Library for cam handling The units of this library contain functionalities for creation, utilization and display of cam profiles. CreaCam Cam profile creation This functionality provides the possibility to generate complex cam profiles from n segments with (n+1) points in runtime mode. Segmented cam profiles can be generated easily Calculation of cam segments according to the boundary conditions (straight line, polynomial 3 rd 7 th order, sinusoidal, cycloid) HMICam Cam profile representation with HMI The position profile of a cam disk can be displayed on the HMI without PG Cam values can be determined without the need of system functions MeasCorr Print mark correction With this block, it is possible to measure the actual position of an axis using an external signal (measuring probe). The measured value is compared with a I DT MC PM Page 7/8
setpoint value. If there is a setpoint actual value deviation, then this difference is corrected using a superimposed corrective axis motion. The following functionalities are available: Evaluation of the probe Dynamic measuring range adaptation automatically Correction of the position deviation via superimposed motion at the axis 3.2.7 LTpTCtrl Library for temperature control Closed-loop temperature control functions can be configured in SIMOTION using the TO temperature channel. This covers the actual value sensing (actual value acquisition) through the closed-loop control up to generating the actuating signal - all of the basic functions of closed-loop temperature control including the identification of the temperature control loops and calculating the resulting channel parameters. The function block simplifies the handling of the technological object. It provides the user with an interface that allows him to parameterize a temperature channel and control it. The FB handles the internal coordination with the technological object. The following functionalities are available: The technology object is evaluated and controlled (open-loop) temperature channel Control loop identification routine (self-tuning) The controller parameters are calculated The associated I/Os are evaluated and controlled Actual value monitoring with tolerance bandwidths 3.2.8 LFile Library for file access: SIMOTION Windows system The library provides standard SIMOTION functions for the access to files of a PC. The functions itself do not access files. A special PC application, connected via TCP/IP protocol, is telecommanded by the functions and executes the actual file access. Server / client application for file access PC application (Windows system) operates as server and provides functions to process files Creating, opening, closing, reading, writing, copying, shifting, renaming and deleting of files 8 FAQ_SEB_en V1.0.1