Home

User Manual Converting Library

image

Contents

1. sjulod xeeJq e qe Jequinu AUS 1X3 sui jueunsn pe eseud u pue 104 euin s n eys jo peeds essiosqy anno Xqweiqg yeysbulpuimzes peedsyeysbuipuim ea el sw jueunsn pe eseud u pue 104 eum oi s m Ayoojen peedseui ovo Jejeureip 5 a el O sm Sseuyolui q Jejeuireip Ox 12 y 1 Jp pue 104 nion Buts NT sseuxoiui gam Sseuypotu MO138 GNIMNN 10 3AO8V ONIMNN sepuimsoedhy SSANMOIHL 8 2 9 S v L 1 00 8 9002 80 51 G NOILOWIS ue dsuojouny Wd OW LG 1 SNIWIIS 20 90 80 9102 0 0 jenuelw penesei siuBu Iv 6102 sueuiers 109 143 2015 08 06 Version 2 0 0 Application description Winding functions SIEMENS Converting Library ea uone nopeo peseq
2. ab er EL J feels EE 10 1 5 Data types Enumeration types and structures 11 1 6 Abbreviations of the units eesseeene enne 11 2 M IRR 12 2 1 FCTaskldentification Determining the cycle time 12 2 2 Scaling 14 2 2 1 FOScalingDWDRL n e e 14 2 2 2 EC ScalingBbDWND siint echan 15 2 2 3 F GScalingRLbWD cin en DR etm EMO PREIS 16 2 2 4 2 6 Scaling xcu Dental Cru 17 2 2 5 meses 18 2 3 FCLinear Linear interpolation eee 19 24 FBPolygonA FBPolygonB Non linear characteristic 21 2 5 FBRFG Basic ramp function 24 2 6 FBRFGJerkLimit Ramp function generator with rounding off 31 2 7 FCCalculateDistance essen 39 2 8 FCEvaluateModulo sse nennen 43 3 Drive futlctloris serve eem eed e p RR RR ex ME 46 3 1 FBFrictionMeasurement Friction characteristic 46 3 2 FBEnablelnterface Activate 49 4 Closed loop control functions esee 54 4 1 FBPT1 element 54 4 2 1 nennen nennen 58
3. 9 o MOT38 em EN ejeuipipeninguonouJje uolsua IN 10928 je101 PHN 2918 ucpoeip JeputlMOedA 3AO8V QNIM3H aT Iw lw zexdw isn pyipqazes Aysueqzes Lu IsN PYIPAG 0001 Tewovureiqze 1 peedseul 2 adh enieuielo eid san AU L IN Em pests quM 1010W emau jo IONFZEI Braue amp XIJf Z 1 OWE Juil pend mad Tem y kanu emeuijojueuou 01 jespueyyirzes enieujejqeueA Tejpueui erueur jo lt 8 uweze 4 x Xe cseuJ 5Jpueui pue ONE Jj kanu erau jo Tea 40 9 4 4 d ssew m Gm ane Sn XI4PZEd Wpwqew JoWfee4
4. eked a ne ena ABS 141 6 General information on the application 141 Version 2 0 0 2015 08 06 5 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Si E M E N S General Notes User Manual 6 1 Scope of supply id epa Eee ERE eda 141 6 2 Ghanges author e ie d eda 141 7 21055 tue SL LM ELSE D 142 8 References Avi ne ha o eid 142 9 ne i ee Ettore tpe eb xta i erred 143 Version 2 0 0 2015 08 06 6 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Introduction Converting Library Application description Introduction The Converting Library is intended to provide SIMOTION users with help when engineering and programming converting machinery The Converter Library provides standards that can be adapted depending on the particular machine and application These standards cover the typical basic functions of a converting machine The functions are available as open source The appropriate interfaces are provided to make adaptations depending on the specific machine and application These interfaces are described in detail in the following documentation Changes to standard functions that go beyond this should only b
5. 4 9 xoeqpeeJ yeusBuipuim Buunsee Nze4 epojvueiqioeres peedsyeusBuipuim owl Buruejegzei peedseui uonejnoje2JejeureiqgJ uejdsuonoun4 20 90 80 9102 0 O0 ZA iqr jenuelw penesei siuBu y GLO sueuiers 146uAdo5 110 143 2015 08 06 Version 2 0 0 Application description Winding functions SIEMENS Converting Library pal 35774 Tha THY gt pares sl lt a gt ov zl Tra v gt PIOU 8 jeuBis 100 NI YYA payes jas Jejeureiq MI aneres 195 zv v enwer peuoeaJ MEd J8 euJel N7 anen wei aawer peur wnwxew pauoeei aawe payloads SruJo 3nHL SS3N OIHLL MEI BARS euiS Jejeureig 195 ni anea awer N7 saweg
6. 01 onsuejoeJeuo uoisue 1222 Jede epo uolsua uni 2 9 26 92 91 800221711 Wd OW LA I 5 eDeg NOILOWIS 44 4 90p 90 80 S8L0Z 0 0 Mesq p m s 9102 Ov sueuiers 126 143 2015 08 06 Version 2 0 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library 5 4 FCRLC Residual length calculation The residual length of a roll can be calculated using this block Block name FCRLC Task The length of residual material on a roll can be calculated by entering the appropriate roll parameters Integration in the run time system The function can be called in any task Graphic representation of the block REAL webThickness REAL REAL actualDiameter REAL targetDiameter REAL offset Block parameters Input parameters Name Datatype Initial value Description webThickness REAL 0 0001 LU Thickness of the material on the roll 0 000001 1 actualDiameter REAL LU Actual diameter of the roll targetDiameter REAL LU Tar
7. Version 2 0 0 2015 08 06 129 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Block parameters Input parameters Name Data Initial Description type value enable BOOL FALSE TRUE enable Function Block False Disable 0 rewind 1 unwind windingMode INT 0 9 hint distinguish dependent on line speed sign actualDiameter REAL 0 0 LU actual diameter value targetDiameter REAL 0 0 LU target diameter value offset REAL 0 0 LU offset rest length to target diameter minDiameter REAL 0 0 LU Minimum diameter allowed maxDiameter REAL 0 0 LU Maximum diameter allowed webThickness REAL 0 0 LU Web thickness for rest length calculation LU min actual velocity of line actLineVelocity REAL 0 0 has to be positive hint use ABS actLineAcceleration REAL 0 0 LU min actual acceleration of line VE EXAMS negAccelLimitLine REAL 0 0 LU min Deesieraton limit of line has to be negative L in k limit of li posAccelEndJerkLimitLine REAL 0 0 LS TES er imit oline has to be negative or zero L in k limit of li negAccelStartJerkLimitLine REAL 0 0 Dr Ed ser imit of ine has to be negative or zero X negAccelEndJerkLimitLine REAL 0 0 Le IS h
8. Name Data type Initial value Description x REAL 0 0 Input quantity diffTime REAL 0 0 ms Differentiating time constant Specification of the task in which the block is called IPO_ SERVO_SYNCHRONOUS_TASK eTaskName taskMode Type SYNCHRONOUS _ IPO_SYNCHRONOUS_TASK TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Output parameters Name Data type Initial value Description FALSE No error xdi BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000_8000 warning errorlD gt 16 0000_8000 error y REAL 0 0 Output quantity Version 2 0 0 2015 08 06 62 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Closed loop control functions Converting Library Functionality Output quantity y changes as a function of the rate of change of input quantity x multiplied by the differential time constant diffTime Discrete values are calculated using the following algorithm diffTi Y Xn x 4 T Yn Value of Y in sampling interval Y Xn Value of X in sampling interval n Xn 1 Value of X in sampling interval n 1 Note The higher the diffTime TA the lower the amplitude change at y from one sampling instant to the next sampling instant TA is the sampling time in which the function block is processed diffTime is i
9. Output value in REAL 2 maxValue 2 maxValue Functionality The function converts a DWord x using a normalization value base and the maximum reference value maxValue into a real value FCScalingDWDRL In so doing the output value is limited between the values 2 maxValue and 2 Max Value FCScaling DWDRL bas maxValue Version 2 0 0 2015 08 06 14 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SI E M E N S Application MEE Converting Library 2 2 2 FCScalingRLDWD Block name FCScalingRLDWD Task The block converts a REAL value into a DWORD Integration in the run time system The function can be called in any task Graphic representation of the block FCScalingRLDWD REAL FCScalingRLDWD DWORD REAL maxValue REAL base Block parameters Input parameters Name Datatype Initial value Description x REAL Input value as REAL 2 maxValue 2 maxValue Maximum value Val REAL maxValue FCScalingRLDWD 0 if maxValue 0 base REAL 2147483647 0 Normalization value Output parameters Name Datatype Initial value Description FCScalingRLDWD DWORD Output value as DWORD Functionality The function converts a real value x into a DWord FCScalingLRLDWD using a normalization value base and the maximum refere
10. Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Drive functions Converting Library Name Data type Initial value Description A mene ease ascen e bon P MSN 1 ee 7 Functionality The Function Block activates and deactivates interfaces on a SIMOTION axis The input parameter axis transfers the name of the axis on which the interfaces should be activated Following input parameters de or activate the interfaces motionln Velocity controls the MotionIn interface with velocity Reference controls the MotionIn interface with position reference additive Torque controls the additive torque and torqueLimitNegative torqueLimitPositive are controlling the lower and upper torque limits The interfaces are getting activated deactivated in the following sequence 1 Interface for velocity position runvelocitybasedmotionin runPositionBasedMotionln move System variable axis defaultmotionin velocity axis defaultmotionin position 2 Interface for additive torque enableaxisadditivetorque disableaxisadditivetorque System variable axis defaultadditivetorque 3 Interface for negative torque limit enableaxistorquelimitnegative disableaxistorquelimitnegative System variable axis defaulttorquelimitnegative
11. REAL initial Velocity FCCalculateDistance RetCalculate DistanceType REAL initialAccel REAL negativeAccelLimit REAL positiveAccelEndJerkLimit REAL negativeAccelStartJerkLimit REAL negativeAccelEndJerkLimit Block parameters Input parameters Name Data Type Initial value Description initial Velocity REAL 0 0 t actual velocity of the axis initialVelocity gt LU 2 actual acceleration of the axis if initialAccel REAL 0 0 initialVelocity 0 0 then initialAccel must be equal 0 0 LU 2 maximum deceleration negativeAccelLimit REAL 0 0 negativeAccelLimit lt 0 0 and the absolute value must be greater than or equal to initialAccel 0 0 LU t3 jerk to decrease the acceleration positiveAccelEndJerkLimit REAL positiveAccelEndJerkLimit lt 0 0 Version 2 0 0 2015 08 06 39 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Name Data Type Initial value Description LU t3 jerk to increase the acceleration negativeAccelStartJerkLimit REAL 0 0 positiveAccelEndJerkLimit lt 0 0 m LU t3 jerk to reduce the deceleration negativeAccelEndJerkLimit REAL 0 0 negativeAccelEndJerkLimit gt 0 0 Output parameters Name Data Type Initial value Description E Return structure of the function with eturn str
12. Version 2 0 0 2015 08 06 133 143 SI E M E N S Application description Winding functions Converting Library 5 7 Block name Task 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin FBThicknessAverage High resolution thickness calculation The function block calculates a floating average value based on the cyclically calculated material thickness values of the diameter calculator FBDiameterCalculation to increase the precision and stability of the value FBThicknessAverage The block is used as extension for the FBWinder winder block or the FBDiameterCalculation diameter calculator Both of these blocks offer several calculation modes for calculating the diameter whereby the DIAM CALC INTEGRAL and DIAM CALC POSITION position modes not only calculate the diameter but also the actual material thickness The FBThicknessAverage block improves the precision of the material thickness calculation by generating a floating average value extension of the measurement interval in order to make the value more suitable for instance to calculate the remaining length Integration in the run time system The function block can be called in any task Graphic representation of the block FBThicknessAverage BOOL enable BOOL BOOL hold BOOL BOOL newValue errorlD DWORD REAL materialThicknessPartial thickness BOOL Valid REAL materialThicknesslnitial mate
13. eau IV UWEZE eNOyY WEZE enieujejqeueA MER eiueujejqeueA lt Lan qu eneui jo jueuiou ejqeueA 8 ZUNE IE Idee euin uwureiqeel y utiNureiQee Alisueqzel sseui EEE EP eAiovureip 8 Z 9 9 4 L 520 6006 ER Jo NOILOWIS Wd OW LG 1 SNAWAIS 90p 90 80 S8L0Z 0 0 Hesg p m s 9102 ov sueuiers 121 143 2015 08 06 Version 2 0 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS PWincing functions Converting Library 5 3 FBTaperCharacteristic Tension taper characteristic Block name FBTaperCharacteristic Task This function block calculates a reduction factor for the tension setpoint as a function of the diameter Integration in the run time system The function block can be called in any task Graphic representation of the block FBTaperCharacteristic BOOL BOOL eTaperChar 4 tensionTaperMode BOOL ModeType REAL diamActVal errorlD DWORD tensionTaper REAL sTensionTaper sTensionTaperConfig sTensionTaper ConfigType ConfigType Block parameters Input parameters Name Data type Initial value Description FALSE The block is
14. g Library V2 0 Manual Convertin SI E M E N S Application E Converting Library 2 6 FBRFGJerkLimit Ramp function generator with rounding off Ramp function generator with ramp up and ramp down times that can be set and rounding off Block name FBRFGUJerkLimit Task Depending on the entered integration values and the specified setpoint function block FBRFGJerkLimit calculates an appropriate output value In so doing the acceleration and deceleration times are taken into account as well as a selected rounding off There is a special input for a fast stop The status of the ramp function generator is output via additional outputs Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer Version 2 0 0 2015 08 06 31 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Graphic representation of the block FBRFGJerkLimit BOOL BOOL BOOL BOOL BOOL BOOL REAL REAL REAL REAL REAL REAL eTaskNameType enable mode enableRounding hold zeroRounding nominalValue rampupTime rampdownTime fastRampdownTime roundingTime taskMode errorlD setpointReached setpointZero accelerating decelerating BOOL BOOL DWORD BOOL BOOL BOOL BOOL REAL
15. An error has occurred refer to error identification RD 00_0000 dentification refer to error messages D lt 164000 8000 warning D gt 16420000 8000 error essValid buffer is filled with measured values alThickness ated material thickness if FB is active materialThicknesslnitial if not Version 2 0 0 2015 08 06 135 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin g Library V2 0 0 2015 08 06 doc SIEMENS Converting Library Application description Winding functions Functionality The following equation shows the block functionality Ad L k o 2uitd d MT AD smt Ad lap 2 t k 7 2 2Z d k 2 t AD M k MT Material thickness calculated from FBThicknessAverage updated after the specified number of winder revolutions floating average value Material thickness calculated by FBWinder std Number of winder revolutions of the thickness or diameter calculation t Number of winding revolutions for the thickness calculation by the FBThicknessAverage block k Ratio t d Figure 5 4 gt diameter wee Bo ad ha gt te d d d d d winder revolutions Version 2 0 0 2015 08 06 136 143 Copyright Siemens AG 2015 All rights reserve
16. Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Block parameters Input parameters Name Datatype Initial value Description FALSE Deactivates the block m BOOL FALSE TRUE Activates the block If the block has been de activated the calculated control and tension torques are set to 0 FALSE Only the moment of inertia calculation is active torqueOn BOOL FALSE e Moment of inertia and torque calculation are Functions are only active if run TRUE Task in which the FB is called SERVO SYNCHRONOUS TASK eTask _ Servo Synchronous Task taskMode NameT SYNCHRONO IPO SYNCHRONOUS TASK Ipo Synchronous Task ame type US_TASK IPO SYNCHRONOUS TASK 2 Ipo Synchronous Task 2 TIMER INTERRUPT TASK in a Timer Interrupt Task Winder type eWindin REWIND _ UNWIND FROM ABOVE Unwinder from the top typeOfWinder ModeT s FROM UNWIND FROM BELOW Unwinder from the bottom YP ABOVE REWIND FROM ABOVE Winder from the top REWIND FROM BELOW Winder from the bottom r TU TU Winder shaft speed for friction windingShaftSpeed REAL 0 0 characteristic lineSpeed REAL 0 0 LUb s Web speed lineAcceleration REAL 0 0 LUb s Web acceleration diamActVal REAL 0 0 LUb Actual diameter tensionSetpoint REAL 0 0
17. g Library V2 0 SIEMENS Appendix Glossary Converting Library 7 8 Glossary Table 7 1 Abbreviation Meaning FB Function block FUP Function diagram IN Input parameter IN OUT Input output parameter RFG Ramp function generator LAD Ladder diagram LU Length unit NRM Normalization value MCC Motion Control Chart graphic programming language OUT Output parameter SCOUT SIMOTION Controlling with optimized Usability Toolbox Engineering System for the family of SIMOTION products ST Structured Text text based programming language TO Technology object TU Time unit WHKL Tension taper characteristic References This list is in no way complete and only reflects a selection of suitable references Table 8 1 Subject area Title Winder Standard winder application with SIMOTION 2 Winder Axial winder for the T400 technology module 3 T400 FM458 1 Simadyn D SIMATIC TDC Function blocks Version 2 0 0 2015 08 06 142 143 SIEMENS em Contact partner Converting Library 9 Contact partner Application Center Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Siemens AG Digital Factory DF FA PMA APC Frauenauracher Str 80 91056 Erlangen Germany Fax 49 0 9131 98 1297 mailto tech team motioncontrol siemens com Version 2 0 0 2015 08 06
18. 19S fev H fisa lea L 10 10128 eS Jo dx 1ejeureip s n7 s ni ApoB s peeds yeys SdH peeds yeys Buipuiw 1ejeureip ueiqies Uweze xejvureiqze epojqureigioejes peedseur1uiWze4 peedseui peedsjepurMulWee4 peadsyeysbuipuim 8 2 9 S L 61 00 81 9007 80 G P MPOw NOILOWIS uonenojeogjejeurerqg J Wd OW 1 1 OV SN3W3IS 20 90 80 9102 0 0 penesei siuBu Iv 102 sueuiers 111 143 2015 08 06 Version 2 0 0 Application description Winding functions SIEMENS Converting Library 1901 feAjoyweip y a n O Z jeusexearo sav go imi eq 2 Y NX Jeuaeju 10 uonoejes Sw
19. 4 Interface for positive torque limit enableaxistorquelimitpositive disableaxistorquelimitpositive System variable axis defaulttorquelimitpositive While calling the commands the respective system variables are set to zero once Exception is the activation of the MotionInPosition where the actual position is set Is enable set to FALSE all interfaces become deactivated As long as the function block is enabled the interfaces will always be activated and deactivated according to the respective inputs If an error occurs the output erroris set to TRUE and the identification is shown on output errorID 2015 08 06 51 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS HP Drive functions Converting Library Graphic representation of the function Figure 3 1 Graphic representation of the function enable busy lt lt interface gt gt 6 lt lt interface 7 active itai itai itd i Interface will be activated ta is the required activation time N Le Interface will be deactivated as the command is reset td is the required deactivation time Co Interface will be activated as the command is set once again ta is the required activation time gt Interface will be deactivated as the function block enable is switched off td is the required deactivation time The output busy is set to FALSE
20. Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Si E M S General Notes User Manual We reserve the right to make technical changes to this product Copyright Reproduction transmission or use of this document or its contents is not permitted without express written authority Offenders will be liable for damages All rights including rights created by patent grant or registration or a utility model or design are reserved Version 2 0 0 2015 08 06 2 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g_Library_V2 0 Manual_Convertin SI E M E N S General Notes User Manual General Notes Note The standard applications are not binding and do not claim to be complete regarding the circuits shown equipping and any eventuality The standard applications do not represent customer specific solutions They are only intended to pro vide support for typical applications You are responsible in ensuring that the de scribed products are correctly used These standard applications do not relieve you of the responsibility in safely and professionally using installing operating and servicing equipment When using these standard applications you recognize that Siemens cannot be made liable for any damage claims beyond the liability clause described We reserve the right to make changes to these standard applications at any time without
21. Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEM ENS Application description Tools Converting Library DX x OF REAL Name Data type Initial value Description x REAL 0 0 Actual input value of the FB Output parameters Name Data type Initial value Description FALSE No error ub BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000 8000 warning errorlD gt 16 0000_8000 error y REAL 0 0 Interpolated output value of the FB Input Output parameters Name Data type Initial value Description FBPolygonA ARRAY Abscissa grid points monotonically steadily increasing O from a value perspective 2 LCONLIB MAX IDX 1 LCONLIB MAX I FBPolygonB Abscissa grid points monotonically steadily increasing from a value perspective 2 LCONLIB MAX IDX B 1 DX x OF REAL ARRAY FBPolygonA Ordinate grid points 2 LCONLIB MAX IDX A 1 Val 0 _ IDX ordinateValue GONLIB_MAX 1 FBPolygonB DX OF REAL Ordinate grid points 2 LCONLIB MAX IDX 1 ARRAY FBPolygonA ofdinateEaetor O Ordinate weighting factor 2 LCONLIB MAX IDX 1 LCONLIB MAX I FBPolygonB Ordinate weighting factor 2 LCONLIB MAX IDX B 1 Functionality Input mode specifies a mode for the f
22. Time constant of the D component the value is internally limited to cycle time as lower limit value ms Time constant of the actual value smoothing this is internally limited to the cycle time as lower limit filterTime REALE o value The smoothing is deactivated if values 0 0 are parameterized Upper limit value of the control output This must Uppereimi E 109 9 be greater than owerLimit lowerLimit REAL 0 0 Lower limit value of the control output intSetValue REAL 0 0 Integrator setting value holdIntChannel BOOL FALSE TRUE component is frozen BOOL FALSE TRUE component is set to the initial value sPidDate sPidDataType Refer to the data type description sPidDataType Execution level in which the block is called IPO SERVO SYNCHRONOUS TASK eTaskName taskMode SYNCHRONOUS IPO SYNCHRONOUS TASK yp TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Output parameter Name Data type Initial value Description FALSE No error TRUE An error has occurred refer to error airot BOOL FALSE identification All outputs have the initial values errors can be reset using the reset function or rising edge at the enable input Error identification refer to error messages errorlD DWORD 1640000 0000 errorlD lt 164000 8000 warning errorlD gt 1620000 8000 error busy BOOL FALSE TRUE Block is active A BOOL TRUE Controller output has reached the upper limit upperLimitReached F
23. II FCRLC actualDiameter targ etDiameter 2 t offset 4 webThickness Figure 5 2 Graphic representation of the function R di BEER ION d2 ZA J n p Amount of material between actual and target diameter Table 5 11 Winder mode Actual diameter Target diameter Winder 91 lt d2 d2 full roll Unwinder d2 gt d1 d1 empty roll Version 2 0 0 2015 08 06 128 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library 5 5 FBCalcTargetDiamStopCondition Block name FBCalcTargetDiamStopCondition Task The function block calculates the rest length to a specified target diameter and the necessary stopping time Integration in the run time system The function can be called in any task Graphic representation of the block FBCalcTargetDiamStopCondition BOOL enable busy BOOL INT windingMode error BOOL REAL actualDiameter errorID DWORD stop BOOL REAL targetDiameter stopDistance REAL REAL offset stopTime REAL REAL minDiameter restLengthToTarget REAL REAL maxDiameter REAL webThickness REAL actLineVelocity REAL actLineAcceleration REAL negAccelLimitLine REAL posAccelEndJerkLimitLine REAL negAccelStartJerkLimitLine REAL negAccelEndJerkLimitLine
24. Setting value rampUpTime REAL 0 0 ms Ramp up time cycle time MaxTU rampDownTime REAL 0 0 ms Braking time constant cycle time MaxTD FALSE A setting value is not accepted transferred BOOL FALSE d e S TRUE A setting value is accepted transferred FALSE Normal sequence foll BOOL FALSE on TRUE Output is set the same as the input Version 2 0 0 2015 08 06 25 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Name Data type Initial value Description FALSE Normal sequence BOOL FALSE increase OO S TRUE Higher FALSE Normal sequence decrease BOOL FALSE TRUE Lower 6 Specification of the task in which the block is called SERVO_SYNCHRONOUS_TASK SYNCHRONOUS a x taskMode M Bie IPO SYNCHRONOUS TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Output parameters Name Data type Initial value Description FALSE No error SET BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 0 errorID lt 164000 8000 warning gt 1620000 8000 error Y REAL 0 0 Output quantity ya REAL 0 0 s Acceleration value FALSE Setpoint calculation active Reach BOOL FALSE Setp intReached p 5 TRUE Setpoint input x reached upperLimit FALSE Upper limit
25. With reset TRUE the output averageValue is set to the input value x Version 2 0 0 2015 08 06 76 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin SIEMENS Closed loop control functions Converting Library 4 10 FBPIDController PID controller with actual value smoothing and optional D component in the actual value branch Block name FBPidController Task The function block has the following functionality e PID controller e Actual value smoothing with PT1 element e Scaling of the actual value signal e Proportional integral and derivative action component e Optional derivative action component in the actual value arm e Anti windup integrator If the controller output is limited then the integrator is frozen when the limit is reached e Pre control signal e Deadband filter for the system deviation e Output scaling e Output limiting The block can be used as higher level controller e g for closed loop tension control or closed loop dancer roll control Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO_2 or Timer Version 2 0 0 2015 08 06 77 143 Application description Closed loop control functions SIEMENS Converting Library Graphic representation of the block FBPidController Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015
26. output lowerLimitHeached is set to TRUE If the lower limit value is greater or equal to the upper limit value output y is set to the upper limit value upperLimit Graphic representation Figure 4 7 lower upper Limit Limit upperLimitReached ol y gt lowerLimitReached Error messages If upperLimitReached and lowerLimitReached are both at TRUE the lower limit lowerLimit is greater than upper limit upperLimit Version 2 0 0 2015 08 06 68 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library 4 6 FBLevelControl Limit value monitor Block name Task Integration in the run time system Graphic representation of the block FBLevelControl FBLevelControl This function block monitors an input value to identify whether it violates exceeds falls below the parameterized limit values The monitoring is only activated as long as the block is active The function block must be called in a cyclic task Background Servo IPO IPO 2 or Timer BOOL REAL REAL REAL REAL REAL REAL TIME alarmHigh warningHigh warningLow alarmLow hyst delayTime busy alarmUpperLimit warningUpperLimit warningLowerLimit alarmLowerLimit BOOL BOOL BOOL BOOL BOOL Version 2
27. parameterizable limits and hysteresis FCDeadBand LConlib fConvTools Dead band element FCDeadZone LConlib fConvTools Dead zone element FBAverageValue LConlib fConvTools Floating average value generator FBPidController LConlib fConvTools PID controller FBTechnologyController LconLib fConvTools Technology controller FBWinder LConlib fWinder Center winder function block FBDiameterCalculation LConlib fWinderTools Diameter calculator for axial winder FBTorquePrecontrol LConlib fWinderTools Calculating the moment of inertia and the torque pre control for an axial winder FBTaperCharacteristic LConlib fWinderTools Tension taper characteristic for the tension setpoint FCRLC LConlib fWinderTools Calculating the material length on a roll FCRDC LConLib fWinderTools Calculating the target diameter of a roll FBThicknessAverage LConLib fWinderTools Calculation of the material thickness with increased resolution external option block for FBWinder FBDiameterCalculation FBSetUnits LConlib fWinderTools Sets the units for the winder blocks Limit Min Max System function Limiting Minimum Maximum determination getAxisStoppingData System function Function to calculate the braking distance and the braking time when specifying the velocity acceleration and jerk at the start of braking _
28. warning errorlD gt 1620000 8000 error y REAL 0 0 Filtered output value Functionality A value x is entered into the function block This value is filtered using the smoothing time smoothing Time and output at output y To precisely calculate the internal steps the sampling time in which the block is processed is internally determined Further it is possible to permanently set the output to the value of the input setValue by setting the input set Interconnection possibility In order to generate a HOLD output y should be connected to the input setValue using a variable This means that when setting set to TRUE the output value is maintained until set is again set to FALSE If the smoothing time smoothingTime is set to zero the filter is de activated and the output value is equal to the input value 6396 of the input value is reached at the output after the smoothing time smoothingTime 95 of the input value is reached at the output after three times 300 of the smoothing time smoothing Time The proportional gain internally set is 1 and cannot be varied For an appropriately high smoothingTime TA smoothingTime TA gt 10 the transfer function corresponds to the following characteristic Y t X 1 e smoothinglme ith n TA Version 2 0 0 2015 08 06 55 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V
29. 0 0 2015 08 06 69 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Block parameters Input parameters Name Data type Initial value Description FALSE Function is de activated BOOL FALSE me 58 S TRUE Function is activated X REAL 0 0 Input value to be monitored alarmHigh REAL 100 0 Upper limit value alarm warningHigh REAL 80 0 Upper limit value warning warningLow REAL 80 0 Lower limit value warning alarmLow REAL 100 0 Lower limit value alarm Hysteresis h REAL k yst s This value is always taken into account as absolute value delayTime TIME T43s s Delay Time to set outputs Output parameters Name Data type Initial value Description FALSE Function is de activated BOOL FALSE b sy PS 3 TRUE Function is activated x Alarm upper limit value exceeded L BOOL FALSE cju CE 99 rX gt rAH the message is reset with rx rAH rHy warningUpper Warning upper limit value exceeded Limit BOOL FALSE rX gt the message is reset with rx lt rHy warningLower Warning lower limit value exceeded BOOL FALSE Limit 58 P rX rWL the message is reset with rx gt rWL rHy aicimilewerbimit BOOL FALSE Alarm lower limit value exceeded rX rAL the message is reset with
30. 0 2015 08 06 43 143 SI E M E N S Application description Tools Converting Library Functionality The block calculates the position difference between two block calls and corrects the calculated value taking into account the modulo length The evaluation is realized by comparing the actual and last position value referred to the modulo length In order that the block correctly operates it must be ensured that a modulo length is run through in not less than 2 sampling cycles as otherwise reliable detection is not possible Fig 2 10 Fall 1 Fall 2 Fall 3 360 0 360 0 360 0 H 1 0 1 moduloLength n 1 n n 1 n n n 1 Value n gt Value n 1 no modulo overflow no modulo correction FCEvaluateModulo Value n Value 1 Value n lt Value n 1 modulo overflow in positive direction FCEvaluateModulo Value n Value n 1 moduloLength Value n gt Value n 1 modulo overflow in negative direction FCEvaluateModulo Value n Value n 1 moduloLength 2 58 58 z3 IW 921 o9 2 Eg os 59 Case 1 as 55 oS Case 2 Case 3 Version 2 0 0 2015 08 06 44 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Tools Converting Library In the
31. 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Closed loop control functions Converting Library Graphic representation of the function enable busy RFGLim y RFGLimReached actualValue setpointValue RFGSetpointValue RFGSetpointReached Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and errorlD lt gt 16 0000 0000 Description 1640000 0000 No warning Invalid parameter internal limitation 1640208 4002 derivTime Tcycle integTime Tcycle 2 Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 16840000 0000 No error 1640208 8001 The function block is called in an incorrect task Invalid parameter sTechnologyControllerConfig r32Upperlimit lt sTechnologyControllerConfig r32Lowerlimit sTechnologyControllerConfig r32SetNominalValue lt 0 0 1640208 8005 Version 2 0 0 2015 08 06 91 143 Application description Closed loop control functions SIEMENS Converting Library Function diagram dyennooyazes peuoeeylulodieso4H enjeAulogieso4H H
32. 4 3 FBDIF Differentiating element 62 4 4 FBDT1 BDT tte deeper ce tento recentes 64 4 5 FBLIM Limiter with feedback 67 4 6 FBLevelControl Limit value monitor sse 69 4 7 FCDeadBand Dead band 71 4 8 FCDeadZone Dead zone element 73 4 9 FBAverageValue Average value generator 75 4 10 FBPIDGonttoller t tetendit 77 4 11 FBTechnologyController Technology controller 85 5 Winding furictiOns deni 93 5 1 FBDiameterCalculation Diameter calculator 93 5 2 FBTorquePrecontrol Torque 114 5 3 FBTaperCharacteristic Tension taper characteristic 122 5 4 FCRLC Residual length calculation 127 5 5 FBCalcTargetDiamStopCondition 129 5 6 FCRDC Target diameter calculation 132 5 7 FBThicknessAverage High resolution thickness calculation 134 5 8 FBSetUnits Setting conversion 138 Appendix
33. If the task is known then the cycle time can be determined By mapping the cycle time in the Time Format in the TaskStartInfo this time must be interrogated using the system variables and precisely calculated The precise cycle time of the task is output at FCTaskldentification output in the REAL format This function can only work when called in a time synchronous Ipo dependent task 0 0 is output when called in another task In systems where the cycle time of the IPO task shorter is than 1 0ms the cycle time of the TIMER INTERRUPT TASK can not be identified In this case the function returns with 0 0 Version 2 0 0 2015 08 06 13 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application Ed Converting Library 2 2 Scaling functions 2 2 1 FCScalingDWDRL Block name FCScalingDWDRL Task Converting a DWORD into an REAL value Integration in the run time system The function can be called in any task Graphic representation of the block FCScalingDWDRL DWORD FCScalingDWDRL REAL Block parameters Input parameters Name Data type Initial value Description x DWORD Input value as DWORD maxValue REAL 2147483647 0 Maximum value Normalization value REAL base FCScalingDWDRL 0 if base 0 Output parameters Name Data type Initial value Description FCScalingDWDRL REAL
34. REAL Version 2 0 0 2015 08 06 32 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Block parameters Input parameters Name Data type Initial value Description FALSE FB de activated BOOL FALSE isi S9 TRUE FB activated FALSE No calculation bl BOOL FALSE PUDE TRUE The output values are calculated FALSE Emergency Stop BOOL TRUE mode Se Y TRUE Normal sequence FALSE Without rounding off leR BOOL TRUE enaseFio nding 09 E TRUE With rounding off TRUE Ramping will be hold with respect to jerk limiting Acceleration will be ramped to zero The input x is hold BOOL FALSE ineffective FALSE Normal sequence TRUE Rounding at zero crossing Zero BOOL FALSE FALSE No rounding at zero crossing x REAL 0 0 Setpoint always positive Nominal Value nominalValue REAL 1000 0 Internally the absolute value is always taken from this input value s Ramp up time REAL 1 0 Internally limited to between 0 001 1000 0 s Ramp down time rampdownTime REAL 1 0 P Internally limited to between 0 001 1000 0 s Fast stop ramp down time fastR Ti REAL 0 Internally limited to between 0 001 1000 0 so 5 Rounding off time roundingTime REAL 0 5 9 Internally limited to bet
35. amp PA49 UISSO N 1 4eAjoyuieip re Ajovureip sqy Sseuxolu gewisnfpyzeJ LP GL Z NOILVIOdH3INI 0001 sseuyo1yLqemisnipyzey qeMZE IEAJOYWEIP ai ni 4 NOLLVIOdH3INI inl 80 im e vo 2 po 2 2 NOILVTOdH3ANI 19S Buunseayzel suonnio e Jo jenoy anea pares gt jes Ssoeuxpolu gewisn pyze Sseusptu 195 Jejeureip pawr Jejeureip 2 9 21 00 81 9002 80 8 peurpoui Wd OW Ld SNSWAIS NOILOWIS 4 4 20 90 80 9102 0 O0 ZA jenuelw penesei 5 y GLO sueuiers 112 143 2015 08 06 Version 2 0 0 o otc eg og 05 2 co se 5 lt SIEMENS Converting Library 5 qoMpeie nojeo x junoguoinjoney Buunseayzes q panes
36. examples the modulo length is 360 Table 2 3 valueLast valueAct Raw value deltaPos deltaNeg Result 130 330 200 200 160 160 330 130 200 160 200 160 330 150 180 180 180 180 330 330 0 0 0 0 150 330 180 180 180 180 330 170 160 200 160 160 170 330 160 160 200 160 Error messages The block does not generate any error messages If the input parameters are incorrect then the difference is calculated without taking the modulo into consideration Version 2 0 0 2015 08 06 45 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SIEMENS functions Converting Library 3 Drive functions 3 1 FBFrictionMeasurement Friction characteristic The friction characteristic is measured in SIMOTION Block name FBFrictionMeasurement Task The function block runs up to the speeds stored in the input array and stores the corresponding average of the actual moments in the output array E g the stored friction characteristic can be in the winder function block Integration in the run time system The function block must be called in a cyclic task Background Servo IPO IPO 2 or Timer Graphic representation of the block FBFrictionMeasurement BOOL done BOOL BOOL busy BOOL DRIVEAXIS i commandAborted BOOL UINT measurements BOOL REAL measurementDelayTime DWORD sLConDynamics dynamics Type UINT frictionCurveEntryNum UINT ARRAY
37. function upperLimit x1 nominalValue nominalValue rampup rampdown x2 4 rampup rampdown Time Time nominal Value x3 NE lowerLimit MEE D Example 1 followup 1 with lowerLimit upperLimit and lowerLimit x upperLimit as well as x1 1 5 2 x4 0 0 x3 1 5 upperLimit 2 0 lowerLimit 2 0 rampupTime gt rampdownTime Figure 2 4 1 increase 1 1 decrease o 1L 4 A upperLimit __________________ _ ________ s gt t lowerLimit ANS IT SE Example 2 Motor potentiometer function with increase and decrease and with lowerLimit lt upperLimit Version 2 0 0 2015 08 06 29 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Figure 2 5 1 seto 1 followup o 1 decrease o upperLimit X lowerLimit Example 3 Setting the integrator with owerlimit lt upperLimit Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Description 1620000 0000 No error 1640106 8001 The function block is called in an incorrect task Version 2 0 0 2015 08 06 30 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved
38. linearized using the characteristic sDiamConfig Configuration data of the diameter calculator u16DiamExtCurve Number of grid points for the polygon calculation 2 EntryNum LCONLIB MAX IDX A 1 Abscissa values for the diameter characteristic to linearize the r32DiamExtCurveAbscissa external diameter signal maximum LCONLIB MAX IDX A1 x y points LU Ordinate values for the diameter characteristic to linearize r82DiamExtCurveOrdinate the external diameter signal maximum LCONLIB MAX IDX A1 X y points 0 0 2015 08 06 doc DIAM CALC INTEGRAL These integral diameter calculation techniques are also based on the division of the web quantity by the angular quantity However quantities v and w integrated over a number of roll revolutions that can be specified sDiamConfig r32MeasuringRevolutionCount This is to minimize the disturbing effect of processing just individual values The following applies Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin s R 9 win D 2 5 p If the number of revolutions of the winding shaft specified by parameter sDiamConfig r32MeasuringRevolutionCount is reached then the integrators are reset The calculated diameter value is then further processed In order that the associated quantities are divided at the same instant of detection it is also possible to slightly delay the web velocity signal v using a PT1 eleme
39. operates internally with an increased accuracy so that even for small setpoint actual value differences it still integrates However it should be carefully noted that the sampling time is sufficiently low referred to the ramp up or ramp down time rampupTime and are internally limited rampupTime gt T4 rampdownTime gt T4 Table 2 2 Truth table ramp function generator stop set follow yan Yn Mode Comment up 0 0 0 Yn 1 Stop y is constant 0 Step setValue Sets output to setValue is any setValue value fixed or variable 0 1 Ta rampu Yn 1 Yan Normal rampupTime for x gt pTime operation y y20 V x y TA rampd yox y lt 0 ownTime rampdownTime for x gt lt 0 lt y 0 0 0 TA Yn 1 yan Approach the rampupTime rampupTi upper limit rampdownTime as me value before dependent on yupperLimit the starting initial rampdow position nTime 0 Yn 1 Yan Approach the rampupTime rampdow lower limit rampdownTime as nTime value before dependent on Ta y lowerLimit the starting initial position me 1 any Version 2 0 0 2015 08 06 28 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Tools Converting Library Graphic representation of the function Transfer Function Figure 2 3 Transfer
40. or restart e Case 3 Block is reset as long as reset TRUE Error FALSE e Case 4 Block is reset and reset FALSE output busy TRUE outValue is activated e Case 5 Block is deactivated with enable FALSE while busy TRUE Busy changes to FALSE outValue 0 0 e Case 8 Block is deactivated with enable FALSE while error TRUE Error changes to FALSE Version 2 0 0 2015 08 06 83 143 Application description Closed loop control functions SIEMENS Converting Library Function diagram SnieAmop papes yy Wao aneao paupea aneao anjeainod FEVOSNIEANOZEA 40 poze aui jAuap apopouo 504 jauueup 00309 Joao aud MO IV MO31NI qurqaaddn qure Jeuueu Jeuueujupes 04 Jeuueu 3309 puegpea aui Auap jauueup 00309 30 504 Jesu Oen BA 40 Janea Py TCA anjeAjuiodyas 5 6L90 8L 8002 250 Wd OW La 97 SNIWIIS afed NOILOWIS 4aljo quo pr dQ 4 uejdsuorzun 4 90P 90 80 SLOZ 0 0 Hesg penesei 9102 ov sueuers 1u6uAdoo 84 143 2015 08 06 Version 2 0 0 SIEMENS Closed loop control functions Converting Library 4 11 FBTechnologyController Technology co
41. reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and errorlD lt gt 1630000 0000 Description 1640000 0000 No warning 1680203 4015 The table of entered values is not monotonically steadily increasing gt no matching value found friction characteristic 16 0203 4018 The table of entered values is not monotonically steadily increasing gt 2 values identical friction characteristic Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 1630000 0000 No error 1640203 8001 The function block is called in an incorrect task 1640203 8005 One or several configuration data are not plausible or lie outside the specified limits sMomentConfig r32GearRatio lt 0 0 sMomentConfig r32Density 0 0 sMomentConfig r32DiamMin lt 0 0 sMomentConfig r32DiamMax sMomentConfig r32DiamMax sMomentConfig r32Width lt 0 0 sMomentConfig r32fillFactor lt 0 0 sMomentConfig r32JFix 0 0 sMomentConfig r32JMandrel lt 0 0 sMomentConfig r32JMot 0 0 1640203 8006 The diameter actual value is not plausible sMomentConfig r32DiamActVal lt 0 0 sMomentConfig r32DiamActVa
42. ro v gt Jo jequinu enjoy ra v jS La 9 el med anes eulis ea el 21 00 81 anjen q mil 0 S 2 7Qq 1 2S 9002 80 9 Wd OW 1 1 9Y 5 esed 40 Suonnjo ei jo Jejoureip 10 SUOnnjo e jo n1 anea q wei peyuiun noui Bunuiew uonenjeA e 10126 Sur 10 suonnjo ei eus jo sequin uone no eo 104 10 99 9S su queujsnipe eseud u pue 10 Durouejeg SdH yeys peeds 70 S 5 sueipes oju s poeds yeys 1 5 jueunsnIpe eseud u pue A 10 euin Burouejeg 0 S s n1 oui 5 peeds jeulwou S1 10 eJ6e1u IWHO3LNI 91VO NOLLONIS jeogyoeqpesse yjbuepoweul y9
43. rx gt rAL rHy Functionality This function block monitors an input value xto identify whether it violates exceeds falls below parameterized limit values as long as it is active with run TRUE If the block is functioning then this can be identified using the busy output When the warningHigh value is exceeded output warningUpperLimit is set after delayTime The same applies when the alarmHigh value is exceeded with the associated output alarmUpperLimit If the input value drops below the limit value warningHigh or alarmHigh minus the hysteresis value hyst the particular output is again reset The same applies for the lower limit monitoring with the limits warningLow and alarmLow as well as the associated outputs warningLowerLimit and alarmLowerLimit However in this case the hysteresis hyst is added to the limit value Warnings are not reset as a result of alarms Version 2 0 0 2015 08 06 70 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Closed loop control functions Converting Library 4 7 FCDeadBand Dead band element Settable dead band that sets the value range symmetrical around the zero point to zero Block name FCDeadBand Task The function generates a dead band whose values cannot be reached All values in this value range symmetrical around the zero point are set to zero Integration in the run time
44. table entries entryNum Input Value abscissalnput ordinateOutput mode Mode without ordinate factors Values of Abscissa abscissaValues Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and lt gt 16 0000_0000 Description 1640000 0000 No warning 16 0105 4005 The table of entered values is not monotonically steadily increasing gt no matching value found 1640105 4008 The table of entered values is not monotonically steadily increasing gt 2 values are identical Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 1640105 8003 The number of grid points that have been entered is too small 1640105 8004 The number of grid points that have been entered is too large Version 2 0 0 2015 08 06 23 143 SI E M E N S Application description Tools Converting Library 2 5 FBRFG Basic ramp function generator Basic ramp function generator without rounding off Block name FBRFG Task The basic ramp function generator is a ramp function generator to limit the rate of change of input quantity x The output quantity of the FBRFG can be limited The following quantities can be independently set and changed during operation e Ramp up and ramp down times e Output limiting upper Limit and lo
45. the configured material thickness the maximum change is as follows ADiameter 2 Material thickness Measurement revolutions max Latch diameter interpolated interpolated and smoothed winder revolutions in 2n 3n n number of revolutions per calculated raw value This interpolation mode is not available for the diameter calculation modes DIAM_THICKNESS_ADDITION DIAM_CALC DIAM_EXT Note With the calculation modes DIAM_CALC_INTEGRAL and DIAM CALC POSITION with the interpolation modes INTERPOLATION_1 and INTERPOLATION 2 after holding the diameter calculator and with the web thickness precisely entered the actual diameter is no longer reached For these modes the thickness should be manipulated in a specific fashion using the factor sDiamConfigType r32AdjustWebThickness in order to correct the diameter value The output diamChangeLimited will be set if the change rate is limited Version 2 0 0 2015 08 06 107 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and errorlD lt gt 1630000 0000 Description 1640000 0000 No warning 1640201 4002 The latchDiamCalc variable contains a value that lies ou
46. ttt ERE RUE Version 2 0 0 2015 08 06 72 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Closed loop control functions Converting Library 4 8 FCDeadZone Dead zone element Settable dead zone that sets the value range symmetrical around the zero point to zero Block name FCDeadZone Task The function generates a dead zone whose values cannot be reached All values in the value range symmetrical around the zero point are set to zero Integration in the run time system The function can be called in any task Graphic representation of the block FCDeadZone FCDeadZone REAL REAL REAL zoneBorder Block parameters Input parameters Name Datatype Initial value Description x REAL 0 0 Input value which should be checked zoneBorder REAL 0 0 Limit value for dead zone Output parameters Name Datatype Initial value Description FCDeadZone REAL Checked output value Version 2 0 0 2015 08 06 73 143 SI E M E N S Application description Closed loop control functions Converting Library Functionality If the input value x lies in the range of the dead band zoneBorder x zoneBorder the output value FCDeadZone is set to zero If the input value lies at below zoneBorder or at above zone
47. upperLimit and owerLimit lt y lt upperLimit However other settings are also possible that are explained in the following For the setting with lowerLimit 2 upperLimit the following applies Limit upperLimit is dominant with respect to limit lowerLimit Behavior of the integrator at the limit If output y reaches one of the set limits lowerLimit or upperLimit during the control sequence the integrator value is held Output value y is then kept constant until the integrator value leaves the limit due to a change of the input quantities If the integrator is at the limit and the limit value is changed the integrator behaves differently depending on the direction in which the limit value was changed If the absolute value of a limit value is increased and if the control logic specifies that the ramp function generator should run in the same direction then the integrator integrates from the previously defined value according to the selected ramp up time until the output again reaches the limit value If the absolute value of a limit value is reduced the integrator integrates from the previously held value according to the selected ramp down time until the output again reaches the limit value Version 2 0 0 2015 08 06 27 143 SIEMENS Application description Tools 0 2015 08 06 doc g Library V2 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin Converting Library The integrator
48. value not reached BOOL FALSE Reached TRUE Upper limit value reached lowerLimit FALSE Lower limit value not reached BOOL FALSE Reached 99 s TRUE Lower limit value reached Functionality The function block includes an integrator with two integration time constants that can be set independently of one another Output Y changes according to the following algorithm Yn Y 4 YA The acceleration value Y4 is separately calculated for the up ramp and down ramp and is output An up ramp is when the output value Y moves away from zero A down ramp is when the output value Y approaches zero For the acceleration value when ramping up the following applies nominalValue f rY gt 0 YA TA rampupTime pine _ rampupTime nominalValue f rY 0 For the acceleration value when ramping down the following applies YA TA rampdownTime YA TA rampDownTime no minalValue fiir Y gt 0 nominalValue f rY lt 0 Version 2 0 0 2015 08 06 26 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin SI E M E N S Application description Tools Converting Library is the sampling time in which the function block is processed The changeover between ramp up time and ramp down time is realized when the direction changes or at the zero crossover of the transfer function Depending on the logical states of control inputs set followup increas
49. 0 2015 08 06 87 143 SIEMENS Closed loop control functions 0 2015 08 06 doc g Library V2 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin Converting Library Data types and structures Name of the structure Contents Configuration data of the PID controller sPidData Type Declared in LConLib fConvTools sTechnologyController Configuration data of the technology controller ConfigType Declared in LConLib fConvTools sPidDataType The following type declaration applies yo Element Data type Description TRUE P component is activated IN boEnPChannel BOOL Pre assignment TRUE TRUE component is activated IN boEnlChannel BOOL Pre assignment TRUE IN boEnDChannel BOOL TRUE D component is activated Pre assignment FALSE TRUE D component is effective in the actual value branch after smoothing and not in the IN boControlMode BOOL System deviation Only active if the D component is activated Pre assignment FALSE Width of the deadband for r32DeadBand IN r32DeadBand REAL 0 0 the deadband is deactivated Pre assignment 0 0 Scaling factor of the actual value quantity IN r32ActValueFactor REAL Pre assignment 1 0 Offset of the actual value quantity IN r32ActValueOffset REAL Pre assignment 0 0 Scaling factor of the output quantity IN r32OutValueFactor REAL Pre assignment 1 0 IN r320utValueOffset REAL al eee Ob th
50. 08 06 doc g Library V2 0 BOOL BOOL BOOL BOOL REAL setpointValue errorlD DWORD REAL actualValue upperLimitReached BOOL REAL preControl lowerLimitReached BOOL REAL propGain deviationValue REAL REAL integTime pOutValue REAL REAL derivTime iOutValue REAL REAL filterTime dOutValue REAL REAL upperLimit outValue REAL REAL REAL BOOL BOOL sPidDataType eTaskName Type lowerLimit intSetValue holdIntChannel setlntChannel sPidData taskMode Version 2 0 0 2015 08 06 78 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Block parameters Input parameter Name Data type Initial value Description TRUE Controller active outputs are calculated enable BOOL FALSE FALSE Controller inactive all outputs are set to the initial values res t BOOL FALSE TRUE The outputs are set to the initial values and the integrator to the starting value setpointValue REAL 0 0 Setpoint signal actualValue REAL 0 0 Actual value signal preControl REAL 0 0 Pre control signal propGain REAL 2 0 Controller gain ms Time constant of the component is internally integTime REAL 999 0 limited to cycle time 2 as the lower limit value derivTime REAL 40 ms
51. 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SIEMENS Closed loop control functions Converting Library 4 2 FBINT Integrator Function block with integrating behavior setting value function and output limiting Block name FBINT Task The function block represents an integrator with upper and lower limiting Further the output can be set to a defined output value Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer Graphic representation of the block BOOL BOOL REAL DWORD REAL setValue REAL REAL upperLimit upperLimitReached BOOL REAL lowerLimit lowerLimitReached BOOL REAL integralTime eTaskNameType taskMode Version 2 0 0 2015 08 06 58 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Block parameters Input parameters Name Data type Initial value Description FALSE Normal integrator function t BOOL FALSE ii TRUE Output is set value x REAL 0 0 Input quantity integration value setValue REAL 0 0 Setpoint input for the setting function upperLimit REAL 1 0 Upper integration limit lowerLimit REAL 0 0 Lower integration limit i
52. 143 143
53. 15 08 06 97 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Calculating the raw diameter value The following structure parameters must always be made available independent of the selected calculation mode and the input parameters with which the FB is directly supplied Table 5 2 Structure parameters Name latchDiamCalc Description LU Retain variable old previous diameter sDiamConfig r32MinLineSpeed LU s velocity limit of line velocity for activation of the diameter calculator If lineSpeed r32MinLineSpeed the diameter is hold r s velocity limit of winder speed for activation of the diameter calculator If windingShaftSpeed lt r32MinWindingShaftSpeed the diameter s hold r32DiamMax LU Maximum diameter value r32DiamMin LU Minimum diameter value LU Thickness of the web used for the limit of diameter rising HEN and used in calculation mode DIAM_THICKNESS_ ADDITION Factor to adjust rampupTime rampdownTime of the ramp r32AdjustWebThickness function generator NES ms Layer jump smoothing cue n The layer jumps are smoothed with this smoothing factor dependent on diamActVal r32SelectIntegration Direction Integration direction of
54. 15 08 06 doc g Library V2 0 SIEMENS PWincing functions Converting Library Table 5 10 Calculation types of the winding hardness characteristic taper Calculation mode Description TAP CHAR NO TAPER 1 0 is assigned for the reduction factor for the tension setpoint tensionTaper 1 0 TAP_CHAR_LINEAR From a starting diameter that has to be entered r32TensionTaperDiameterStart the reduction factor is linearly reduced to the maximum diameter r32TensionTaperDiameterMax with a reduction of r32TensionTaperRatio diamActVal lt r32TensionTaperDiameterStart tensionTaper 1 0 r32TensionTaperDiameterStart lt diamActVal lt r32TensionTaperDiameterMax r32TensionTaperRatio diamActVal r32TensionT aperDiameter Start J 100 diamActVal gt r32TensionTaperDiameterMax tensionTaper 1 r32TensionTaperDiameterMax r32TensionT aperDiameterS tart tensionT aper 1 r32T ensiontaperRatio 100 0 TAP CHAR HYPERBOLIC 1 From a starting diameter that has to be entered r32TensionTaperDiameterStart the reduction factor is reduced as hyperbolic function with r32TensionTaperRatio to the maximum diameter r32TensionTaperDiameterMax In this case the reduction is at a maximum when the maximum diameter has been reached diamActVal lt r32TensionTaperDiameterStart tensionTaper 1 0 r32TensionTaperDiameterStart lt diamActVal lt r32TensionTaperDiameterMax r32TensionTaperRatio diamActVal r3
55. 1527 n1 anen mes Med Jeus 1 00 81 9002 80 91 Wd OIN LG OV SN3W3IS G NOILONIS uone nojeoJejeureiqg J uejdsuonounJ 90 80 9102 0 0 ZA penesei 5 6102 sueuiers 113 143 2015 08 06 Version 2 0 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library 5 2 FBTorquePrecontrol Torque pre control Block name FBTorquePrecontrol Task This block calculates the variable and total moment of inertia the mass of the roll being wound and the torque compensation to compensate for the inertia Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer Graphic representation of the block FBTorquePrecontrol BOOL BOOL BOOL torqueOn BOOL eTaskNameType taskMode errorID DWORD eWindingMode typeOfWinder totallnertia REAL Type REAL windingShaftSpeed REAL REAL lineSpeed preCtriMotor REAL REAL lineAcceleration totalTorquePreCtrl REAL REAL diamActVal variablelnertia REAL REAL tensionSetpoint maxlnertia REAL tensionTorque REAL sMomentConfig sMomentConfig sMomentConfig Type Type Version 2 0 0 2015 08 06 114 143
56. 2 Tension setpoint Input Output Parameters Name Data type Initial value Description sNioment Configuration data of the torque pre control calculation sMomentConfig E Details on this structure are provided in the description of 9 yp the type definitions Output parameters Name Datatype Initial value Description FALSE Function block deactivated ROOL FALSE TRUE Function block active FALSE No error ace BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000 8000 warning errorlD gt 16 0000_8000 error gt Fm REAL 0 0 mLUb Total moment of inertia referred to the motor shaft mass REAL 0 0 m Mass of the web preCtrlMotor REAL 0 0 M Torque precontrol Version 2 0 0 2015 08 06 115 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SI E M E N S Application description Winding functions Converting Library Name Datatype Initial value Description M Total precontrol torque based on motor shaft totalTorquePreCtrl REAL 0 0 Torque limitation variablelnertia REAL 0 0 mLUb Variable moment of inertia referred to the motor shaft mLUb Max moment of inertia at max Diameter vM referred to the motor shaft tensionTorque REAL 0 0 M Tension torque Not
57. 2 0 SI E M E N S Application description Closed loop control functions Converting Library The discrete values are calculated using the following algorithm TA Yn 5 X Y 1 smoothingTime Yn Value of Y in sampling interval n Value of Y in sampling interval n 1 Xn Value of X in sampling interval n Note The higher the smoothingTime TA the lower the amplitude change at Y from one sampling instant to the next sampling instant TA is the sampling time in which the function block is processed smoothingTime is internally limited T gt TA Graphic representation of the function Figure 4 1 HOLD function feedback from output y to setValue x 100 3 x smoothingTime t smoothingTime 50 Version 2 0 0 2015 08 06 56 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin g Library V2 0 0 2015 08 06 doc SI E M E N S Application description Closed loop control functions Converting Library Figure 4 2 Setting function a fixed value is present at input setValue x 100 3 x smoothingTime t smoothingTime set smoothing Time Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 16840000 0000 No error 1640101 8001 The function block is called in an incorrect task Version 2 0 0 2015 08 06 57
58. 2015 08 06 doc g Library V2 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin SI E M E N S Application description Winding functions Converting Library The diameter calculator either sets the normalization value to 1 0 ramp function generator is operational or to 0 0 ramp function generator is inhibited The other two ramp function generator input parameters TD and TU are calculated by changing over the above specified formula AD EE 2 Table 5 9 Interpolation modes Interpolation mode Description INTERPOLATION 1 In this mode the differential quotient AD At is calculated over the increase in thickness of the wound roll AD r32AdjustWebThickness r32WebThickness co At 2 AD 2 r32AdjustWebThickness r32WebThickness lineSpeed At z diamActVal The ramp function generator input parameters 7D and TU are calculated as follows NRM 7 diamActVal TU TD 2 r32AdjustWebThickness r32WebThickness lineSpeed This interpolation mode is available for all diameter calculation types INTERPOLATION 2 Tu or Tp are calculated as in the first mode however under the following conditions e or Tp is the time interval between two reset pulses of the integrators The value of Ta is obtained from the sum of the cycle times for the duration of the integration is the change in diameter AdiamActVal in this time interval The value of AdiamActVal is o
59. 2TensionTaperDiameter Start 100 diamActVal r32TensionTaperDiameter Max r32TensionTaperDiameter Max r32TensionTaperDiameter Start tensionTaper diamActVal gt r32TensionTaperDiameterMax tensionTaper 1 r32Tensiontaperratio 100 0 TAP_CHAR_HYPERBOLIC_2 From a starting diameter that has to be entered r32TensionTaperDiameterStart the reduction factor is reduced as hyperbolic function with r32TensionTaperRatio to the maximum diameter r32TensionTaperDiameterMax this case the full reduction is never reached The characteristic is only approached diamActVal lt r32TensionTaperDiameterStart tensionTaper 1 0 diamActVal gt r32TensionTaperDiameterStart r32TensionTaperRatio 132TensionT aperDiameterStart tensionTaper 1 1 100 diamActVal TAP CHAR TABLE The reduction factor is determined by entering a characteristic In this characteristic a diameter is assigned a tension reduction The characteristic is saved in the data structures arTensionTaperCurveAbscissa and arTensionTaperCurveOrdinate The characteristic is linearly interpolated between the two points on the characteristic Version 2 0 0 2015 08 06 124 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS P Wincing functions Converting Library Figure 5 1 Characteristic types 100 NO_TAPER LINEAR HYPERBOLIC_1 HYPERBOLIC_2 TABL
60. A d 1st diameter output 4 A 2nd diameter output 4 3rd diameter output 4th diameter output a Example 2 r32MeasuringRevolutionCount 4 r32DiameterOutputRate r32FirstDiameterOutput r32MeasuringRevolutionCount r32FirstDiameterOutput re 5th diameter output r32DiameterOutputRate effective averaging 05 1st diameter output 18 2nd diameter output 55 a 3 5 3rd diameter output 4 4th diameter output 4 5th diameter output 6th diameter output Version 2 0 0 2015 08 06 103 143 SIEMENS P Wincing functions Converting Library Example 3 r32MeasuringRevolutionCount 5 r32DiameterOutputRate r32FirstDiameterOutput r32MeasuringRevolutionCount r32FirstDiameterOutput 4 r32DiameterOutputRate effective averaging 1st diameter output 3 ry 2nd diameter output 5 0 0 2015 08 06 doc 3rd diameter output 4 2 4th diameter output Post processing the raw diameter value Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin Limiting the raw diameter value After the calculation using one of the five above mentioned calculating modes the raw diameter is limited to the minimum diameter and maximum diameter values r32DiamMin lt diamActRHaw Val lt r32DiamMax r32DiamMin r32DiamMax sDiam
61. ALSE the integrator is limited bwerlinitReached BOOL FALSE TRUE Controller output has reached the lower limit the integrator is held deviationValue REAL 0 0 System deviation after the deadband filter Version 2 0 0 2015 08 06 79 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Name Data type Initial value Description pOutValue REAL 0 0 P component output unlimited iOutValue REAL 0 0 component output unlimited REAL D component output unlimited if not in the actual dOutValue 0 0 value branch outValue REAL 0 0 Controller output limited and scaled Data types and structures Name of the structure Configuration data of the PID controller Contents sPidDataType Declared in LConLib fConvTools sPidDataType The following type declaration applies yo Element Data type Description IN BOOL TRUE component is activated Pre assignment TRUE TRUE component is activated IN boEnlChannel BOOL Pre assignment TRUE TRUE D component is activated IN boEnD Channel POOL Pre assignment FALSE TRUE D component is effective in the actual value branch after smoothing and not in the IN boControlMode BOOL system deviation Only active if the D com
62. Application description Closed loop control functions Converting Library When the setting function is active setting value setValue is transferred to DT1 output Y the output of the smoothing element is obtained as follows smoothingTime diffTime In this case the internal limits for smoothing Time1 and diffTime apply For diffTime 0 the output quantities remain unchanged as long as set TRUE YPT Xy setValuey for diffTime 0 Caution Overcontrol limits reached can occur when the setting function is both active as well as also inactive Graphic representation of the function Figure 4 5 Block diagram smoothing diff setValue Time Time x Y y gt YPT Figure 4 6 Transfer function y1 x diffTime Viste hingTi STORENG Y1 t2 T1 0 37 x diffTime smoothingTime lt gt t smoothing Time Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Description 1680000 0000 No error 1640104 8001 The function block is called in an incorrect task Version 2 0 0 2015 08 06 66 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Closed loop control functions Converting Library 4 5 FBLIM Limiter with feedback signal Limiter with settable limit
63. Border input x is output as output value The dead zone symmetrical around the zero point can be set using the response value zoneBorder Algorithm X for X lt TH Y20 for TH X TH X for X gt 4TH with the secondary condition TH gt 0 For TH 0 for all the following applies X Y X Input quantity TH Response threshold for the dead zone Y Output quantity Graphic representation of the function 0 0 2015 08 06 doc Figure 4 9 Transfer function Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Converting Li Version 2 0 0 2015 08 06 74 143 Copyright Siemens AG 2015 All rights reserved g Library V2 0 0 2015 08 06 doc Manual Convertin SIEMENS Closed loop control functions Converting Library 4 9 FBAverageValue Average value generator Floating average value generator Block name FBAverageValue Task The function calculates the floating average value for the values entered at the input Integration in the run time system The function block must be called in a cyclic task Background Servo IPO IPO 2 or Timer Graphic representation of the block FBAverageValue busy BOOL BOOL BOOL averageValue REAL REAL maxValueReached BOOL INT sizeOfArray Version 2 0 0 2015 08 06 75 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application de
64. Config Keeping the limited raw diameter value constant It only makes sense to further process the raw diameter value if both the web velocity as well as the winder shaft speed ineSpeed windingShaftSpeed exceed their specific minimum values sDiamConfig r32MinLineSpeed sDiamConfig r32MinWinderSpeed lineSpeed gt r32MinLineSpeed windingShaftSpeed gt r32MinWinderSpeed If one of these conditions is not fulfilled then internally the diameter is held it is not changed The same result i e the diameter is kept constant is obtained when the input signal holdDiam at the function block is active Saving the limiting raw diameter value The raw diameter value is formed and retentively saved at each FB call in the calculation modes DIAM_THICKNESS_ADDITION DIAM_CALC and DIAM_EXT refer to the atchDiamCalc parameter In the integrating calculation modes Version 2 0 0 2015 08 06 104 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library DIAM CALC INTEGRAL as well as DIAM CALC POSITION the raw diameter value is only saved at the end of the integration or end of the calculation This means when the specified number of winding shaft revolutions has been reached Further processing the latchDiamCalc value The further processing of the atchDiamCalc value essentially comprises smooth
65. E r32TensionTaper Ratio L K r32TensionTaper r32TensionTaper DiameterStart DiameterMax Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and errorlD lt gt 16 0000 0000 Description 1640000 0000 No warning 1640205 4015 The table of entered values is not monotonically steadily increasing gt no matching value found if tensionTaperMode TAP CHAR TABLE 1640205 4018 The table of entered values is not monotonically steadily increasing gt 2 values identical if tensionTaperMode TAP CHAR TABLE Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 ErrorlD Description 16 0000_0000 Noerror 1640205 8005 Invalid input parameter diamActVal lt 0 0 sTensionTaperConfig r32UpperLimitTaper sTensionTaperConfig r32LowerLimitTaper sTensionTaperConfig r32LowerLimitTaper 0 0 For TAP CHAR LINEAR TAP CHAR HYPERBOLIC 1 TAP CHAR HYPERBOLIC 2 sTensionTaperConfig r32TensionTaperDiameterStart 0 0 sTensionTaperConfig r32TensionTaperDiameterMax lt sTensionTaperConfig r32TensionTaperDiameterStart sTensionTaperConfig r32TensionTaperRatio lt 0 0 sTensionTaperConfig r32TensionTaperRatio gt 100 0 1640205 8013 The number of grid points th
66. EAL LU Calculated target diameter of the roll Version 2 0 0 2015 08 06 132 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library Note The calculations made in this function block are in principle independent of the physical units The output parameter units are defined by the input parameters The internal calculations do not perform any conversions LU Length units e g m Functionality The function uses the input parameters to calculate the target diameter FCRDC of a roll The calculation relies on the material thickness webThickness the actual roll diameter actualDiameter and the material length to be wound or unwound length The winding mode is defined using the windingMode input The material thickness webThickness is internally limited MIN THICKNESS MAX THICKNESS In case of a too high material length input the function result is zero Winder FCRDC 2 actualDiameter E webThickne ss length 4 n Unwinder FCRDC 2 oe ss length Figure 5 3 Graphic representation of the function di Amount of material between actual and target diameter Table 5 12 Winder mode Actual diameter Target diameter Winder d1 lt d2 d2 full roll Unwinder d2 gt d1 d1 empty roll
67. EAL This is internally limited to the cycle time as lower limit ms time constant for component IN r32IntegTime REAL This is internally limited to the cycle time 2 as lower limit ms time constant for D component IN r32DerivTime REAL This is internally limited to the cycle time as lower limit ms time constant for actual value smoothing This is internally limited to the cycle time as ie rer Merdamp REAL lower limit If r32FilterTime 0 0 then smoothing is deactivated IN r32IntSetValue REAL LU TU Z integrator setting value PID controller configuration data refer to the IN sPidData sPidDataType type description IN r32UpperLimit REAL LU TU Z controller output upper limit value IN r32LowerLimit REAL LU TU Z controller output lower limit value Must be less than r32UpperLimit Functionality The block is enabled using the enable input as a consequence the setpoint ramp function generator and the limiting ramp function generator are started with their respective ramp up times and the PID controller is activated In addition for a rising edge the setpoint ramp function generator is set to the actual value that is present actualValue This guarantees a jerk free and smooth transition into the tension controlled mode When the edge at the enable input falls the limiting ramp function generator is ramped back to zero and therefore the controller ou
68. MaterialType USER DEFINED and with sMomentConfig r32Density lt gt 0 0 Moment of inertia of the wound material relating to the motor shaft 5 2 D i32 Variablelnertia r32Mass r32DiamMin 8 r32GearRatio Total moment of inertia with variable moment of inertia for torque precontrol relating to the motor shaft r32Totallnertia r32Variablelnertia r32JMot r32JFix r32GearRat io Version 2 0 0 2015 08 06 117 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS PWincing functions Converting Library Maximum moment of inertia at max diameter relating to the motor shaft a r32 Density 132Width diamMax 32DiamMin 4 MASS max _132DiamMax gt r32DiamMin 8 nT pt ced RE 132GearRat io Angular acceleration of the roll variableInertiamax mass lineAcceleration r32GearRatio diamActVal a 2 Pre control torque 1 M r32Totallnertia a prel Pre control torque 2 Ad At 2 r32Totallnertia r32GearRatio lineSpeed 1 1 diamActValu diamActValn 1 1000 M pre2 M prea r32DndtAdjust M pre2 Speed dependent frictional torque of the winder M frict M fian This frictional torque is internally determined using the function block FBPolygonA The user is responsible for providing valid and sensible values in the appropriate data fields If the factor sMomentConfigStruc r32Fri
69. S Lj 5 do ao no aL ni AS nm WHN a0 x A Na Ody ww A 9Jululodies ejeapids 4 6 1 Aueqee1 22 N SUIZEI LXee1 eui dndueywiqzes enjeAjenioe eui dqdweyieszes enjeAjulodjes 8 2 9 L 92 19 91 600Z 10 S Wd OW LA 1 OV 15 eDeg NOILOWIS JejouuooABojouuoe g4 uejd uonoun4 90 80 8102 0 O ZA ueJqri jenueyy peniesei 51 Iv 5102 Ov 1uDuAdoo 92 143 2015 08 06 Version 2 0 0 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SI E M E N S Application description Winding functions Converting Library 5 Winding functions The description of the function block FBWinder can be found in a sperate document https support industry siemens com cs de en view 35818687 5 1 FBDiameterCalculation Diameter calculator Function block to calculate the actual diameter of an axial winder Block name FBDiameterCalculation Task This function block calculates the actual diameter of the roll based on the behavior of the winding drive and
70. Smoothing time constant SmoothingTime REAL 09 is internally limited SamplingTime T1Max diffTime REAL 0 0 ms Differentiating time constant is internally limited 0 0 TDMax Version 2 0 0 2015 08 06 64 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Name Data type Initial value Description Specification of the task in which the block is called TN _ SERVO SYNCHRONOUS TASK taskMode SYNCHRONOUS _ IPO_SYNCHRONOUS_ TASK yp TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Output parameters Name Data type Initial value Description FALSE No error error BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000_8000 warning errorlD gt 16 0000_8000 error y REAL 0 0 Output quantity DT1 ypt REAL 0 0 Output quantity smoothing element Functionality Setting function not active set FALSE Input quantity x is dynamically delayed and the smoothing time constant smoothingTime is entered at a differentiating element and at block output YPT The output quantity Y of the complete DT1 element is multiplied with the same relationship of the rated of change of YPT difference q
71. U is in Leading axis LU is in meters feet unitLineAxisVelocity M MIN FT MIN unitLineAxisAcceleration M S2 FT S2 unitWinderAxisVelocity RPM RPM Version 2 0 0 2015 08 06 140 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SIEMENS Appendix General information on the application Converting Library Appendix 6 General information on the application 6 1 Scope of supply The package Converting Library comprising e SIMOTION library as XML Export e Documentation 6 2 Changes author Table 6 1 Changes author Version Date change Author 1 0 01 10 2006 Freddy M ller 1 1 01 05 2008 Freddy M ller 1 1 1 05 06 2008 user defined units of measurement Andreas Werner 1 2 29 07 2009 Peter Tabori New blocks simplifications 1 2 1 23 07 2010 Peter Tabori New blocks Simplifications Changelog in the library 1 2 2 23 09 2011 Peter Tabori Simplifications Changelog in the library 1 2 3 26 01 2012 Peter Tabori Bugfix in FCTaskldentification Changelog in the library 1 3 0 02 04 2013 Thomas Richter New winder control mode Constant v Control 2 0 0 06 08 2015 Thomas Richter New Function Block FBCalcTargetDiamStopCondition FBWinder description removed Update FBDiameterCalculation Version 2 0 0 2015 08 06 141 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc
72. anged while enable TRUE taskMode eTaskName Type IPO_ SYNCHRONO US_ TASK Task in which the FB is called SERVO SYNCHRONOUS TASK Servo Synchronous Task SYNCHRONOUS TASK Ipo Synchronous Task IPO SYNCHRONOUS TASK 2 Ipo Synchronous Task 2 TIMER INTERRUPT TASK in a Timer Interrupt Task diamSetVal REAL 0 0 LU Setting value of the diameter calculator Assumption when TRUE as long as the block is deactivated lineSpeed LREAL 0 0 LU s Web machine velocity Generally the web velocity is the setpoint velocity of the machine and the velocity with which the main drive moves the material web In exceptional cases or with a deep understanding of control technology it is possible to use the actual value from a tachometer measuring the web speed etc windingShaftSpeed LREAL 0 0 r s Speed of the winder shaft The winder motor is fed from a variable speed drive that has an actual value encoder that has sufficient resolution This actual value signal is converted to the roll shaft and is used to calculate the diameter Version 2 0 0 2015 08 06 95 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Name Datatype Initial value Description Inc Value of the counter var
73. as the physical units of smaller length units and conversion of velocities conversions are made into LU s or rev s Functionality The diameter calculator determines the actual diameter value diamActVal of the roll being wound or unwound using the input quantities Web velocity and position e Shaft speed of the mandrel or angle e Web thickness Calculation modes The function block implements the following calculation modes Table 5 1 Diameter calculation types Calculation mode DIAM THICKNESS ADDITION Description Integrates the web thickness Calculates the diameter based on the ratio DIAM CALC between the web velocity and winder velocity or Speed speed DIAM EXT Senses the diameter using a sensor DIAM CALC INTEGRAL Calculates the diameter from the ratio between the winder angle and web length by integrating the winding speed and the web velocity DIAM CALC POSITION Calculates the diameter using the ratio between the winder angle and web length by measuring the winder position angle and the web length Parameter selectDiamMode specifies the calculation modes At the first run through or after a reset the specified mode is accepted and is issued at output parameter diamModelnUse for the user The diameter is calculated in two steps e The raw diameter value is calculated e The raw diameter value is post conditioned limited verified and smoothed Version 2 0 0 20
74. as to be positive or zero Output parameters Name Data Initial Description type value TRUE Function Block calculates values BOOL pusy 99 FALSE Funciton Block idle TRUE error occured BOOL R FALSE no error errorlD DWORD Error identification TRUE target reached BOOL stop 29 FALSE target not reached stopDistance REAL 3 LU distance to stop line with actual velocity and dynamics stopTime REAL s time to decelerate line to velocity 0 restLengthToTarget REAL LU rest length to target diameter Version 2 0 0 2015 08 06 130 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Functionality The function block combines internal the the LConLib functions FCRLC and FCCalculateDistance With a rising edge at the input enable a plausibility check of the input parameter will be started Faults will be displayed at the outputs error and Rest length calculation The rest length calculation is parameterized with the inputs webThickness actualDiameter targetDiameter and offset The specified target diameter is limited with minDiameter and maxDiameter The calculated rest length is output at the FB output restLengthToTarget NOTE The rest length calculation is continued even there is fault active TRUE Stopping distance calculation The st
75. at has been entered is too small if tensionTaperMode TAP CHAR TABLE 1640205 8014 The number of grid points that has been entered is too high if tensionTaperMode TAP CHAR TABLE Version 2 0 0 2015 08 06 125 143 Application description Winding functions SIEMENS Converting Library Function diagram Jede uolsua 001 19401 Jede 221 Jede jyurqieddpyzei 001 001 sanen 01 9 essiosqe uononpai uoisue essiosqyoAnoJede uorsue BnzuoB jod uononpeiuorsue 318VL HVHO dYL PAIoyumip 14DIgio12uiiqq4ado uo1sua c g4 E 001 ounysady p uoisu c g4 OrIOgH3dAH HVHO ITEA xp 1 uo Ju xpjy4212UDiqq42dv u01802 7 4 pAPyumip 001 _ Ui gaajauniquady Jc 4 jpAJoyumip onpy 4adp puoisua c 4 I HVHO uorsue je nou Jejeureip uei eny V uyejsJejeureiquede uorsue 221 7194 Jejoureip Xe uorsue 1221 uolsua 221 zc 1e uononpe uorsue dVL
76. brary Name Data type Initial value Description Axis configuration of the acceleration corresponding to TO lineAxis eUnitLine NOT DEFINED unitLineAxis Axis NOT _ M S2 m s Acceleration Acceleration DEFINED MM S2 mm s Type FT S2 ft s INCH S2 inch s DEG S2 PRINT 3607s 1m s Axis configuration of the velocity corresponding to TO winderAxis itWi NOT DEFINED unitWinderaxis 767 8 Velocit AXIS DEFINED ids SIM auci VelocityType RPS U s DEG MIN min DEG S Is Input Output parameter The parameters included in this structure are used as output parameters and are automatically assigned by the system Name Data type Initial value Description sConversion Structure with conversion factors sConvC Constants Details on this structure are provided in the description of Type the type definitions Output Parameter Name Data type Initial value Description FALSE No error Error BOOL FALSE TRUE An error has occurred refer to error identification In case of error error TRUE the output tensionTaper is set to 1 0 Error identification refer to error messages errorID DWORD 1680000 0000 errorlD lt 1654000 8000 warning errorlD gt 1620000 8000 error Functionality Using the input parameters the velocity and the acceleration of the leading axis lineAxis as well as the velocity of the winder axis winderAxis are specified corresponding to the particular TO parameterizati
77. btained from the difference between the actual and previous raw diameter value These values could be immediately fed to the ramp function generator However by setting NRM to 1 0 m or 0 0 m we switch the complete ramp function generator in or out and must therefore execute the following calculation Y 4 NRM A Ty r32AdjustWebThickness AdiamActVal l Tr and therefore fya r32AdjustWebThickness AdiamActVal Tr is now obtained from the sum of the cycle times for the duration of the integration This corresponds to the value from AdiamActVal from the difference between the actual and previous raw diameter value This means that the values for Ty and Tp can be precisely calculated This interpolation mode is not available for the diameter calculation mode DIAM_THICKNESS_ADDITION DIAM_CALC DIAM_EXT Version 2 0 0 2015 08 06 106 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Interpolation mode Description INTERPOLATION 3 In this mode the interpolation is numerically realized using the FCLinear block The interpolation is realized referred to the parameterized measurement interval between two measuring points based on the calculated diameter change at the measuring point The calculated diameter change is limited by
78. ctVal REAL 0 0 LU Actual diameter value FALSE Diameter calculator is enabled iamlsHol BOOL FALSE 99 5 TRUE Diameter calculator is in the stop condition diamActUpperLimit TRUE Upper limit of the actual diameter value Reached BOOL FALSE reached diamActLowerLimit BOOL FALSE TRUE Lower limit of the actual diameter value Reached reached diamRawUpperLimit TRUE Upper limit of the actual raw diameter value is Reached BOOL FALSE reached diamRawLowerLimit BOOL FALSE TRUE Lower limit of the actual raw diameter value is Reached reached diamSetUpperLimit BOOL FALSE TRUE Upper limit of the diameter setpoint is reached Reached diamSetLowerLimit BOOL FALSE TRUE Lower limit of the diameter setpoint is reached Reached diamChangeLimited BOOL FALSE TRUE Diameter change rate is limited Version 2 0 0 2015 08 06 96 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Note In principle the calculations made in this function block are independent of any physical units The input parameter determines the units of the output parameters The internal calculations carry out specific related conversions LU Length unit e g m TU Time unit of the ine winderAxis Inc Position signal of the winding and the material web axis V Web velocity derived from LU min n Speed e g rpm As far
79. ctionAdjust is set to 0 0 FBPolygonA is not called and therefore a frictional torque is not added Finally depending on the winder type the pre control torque of the motor the sum of all pre control torques and the tension torque are calculated Version 2 0 0 2015 08 06 118 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library The winding mode is always defined assuming a positive line speed If the leading value becomes negative the winding mode will be inverted automatically a rewinder becomes an unwinder and vice versa The same applies for winding from above and from below This inversion is automatic Rewinding from above M preCiriMoor E M pra M M pic M z M ensiontigue M jotatTorgu PreCtrl M a reCtriMoor x M Peery Rewinding from below M preCiriMoor M M po M ji tensionTrque M Trane M sotatTorgePreCerl M a rectriMoor Unwinding from above M preCtriMoor pra M prea M frict M tensionTrque M tension Trque M totalTorque PreCtrl M preCtriMoor E M tensionTrque Unwinding from below M preCtriMoor M M pra M frict M rensionTrque M tension Trque M totalTorque PreCtrl M preCtriMoor M tension Trque Version 2 0 0 2015 08 06 119 143 Copyright Siemens AG 2015 All rights
80. cur These must be compensated This also applies to unwinders Friction compensation The torque setpoint is generated depending on the shaft speed of the winder In order to quickly compensate for disturbances and to implement the closed loop control in the first place for a replacing speed control the torque to be provided from the drive must be specified as accurately as possible Depending on the control type this is either realized additively after the speed controller or by dynamically adjusting the torque limits In both cases starting from the weight of the wound material the appropriate torque must be calculated using its moment of inertia wound material and transferred to the drive As an alternative to the method integrated in this block the integrated friction characteristic of the drive system SINAMICS can also be used 55 Note The precise setting of the compensation is especially important for indirect 55 tension control This is so that torque generating current emulates as far as EIS possible the material tension 55 gE Calculations Bg The function block FBTorquePrecontrol calculates the following physical quantities 92 Weight of the wound material 59 CR EE r32Mass r32Density r32Width diamActVal r32DiamMin 4 The material density can either be pre assigned by selecting the material selected using sMomentConfig eMaterialType USER DEFINED or specified as value sMomentConfig e
81. d Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS PWincing functions Converting Library Graphic representation of the function The following diagram represents the logical connection with FBWinder The trigger to accept the value can be generated from the value change of the variables latchDiamCalc or sWinderConfig r32CalculatedW ebThickness FBWinder FBThicknessAverage FCRLC sWinderConfig materialThickness r32CalculatedWebThickness gt Partial materialThickness 8 webThickness diameter actualDiameter targetDiameter restLength Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and lt gt 16 0000_0000 Table 5 13 Warnings Description 1640000 0000 No warning 16 0209 4002 Array size is limited increase diameterMeasuringRevCount AND OR decrease thicknessMeasuringCount AND OR Change LCONLIB THICKNESS MAX SAMPLES constant value Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Table 5 14 Error messages Description 1620000 0000 No error 1640209 8005 Invalid configuration data thicknessMeasuringRevCount diameterMeasuringRevCount Or diameterMeasuringRevCount 0 0 Version 2 0 0 2015 08 06 137 143 Cop
82. e In principle the calculations made in this function block are independent of any physical units The input parameter determines the units of the output parameters The internal calculations do not carry out any conversions LU Length units e g m LUb Basis length unit m or ft TU Time unit of the line winderAxis Z Tension force e g N m Mass weight e g kg is defined by the units of density specific gravity e g kg m J mLUb Moment of inertia e g kgm M mLUb s Torque e g Nm kgm s Functionality The block determines the following The variable moment of inertia for Kp adaptation of the speed and tension controller e The pre controlled torque for Av At and AD At The torque pre control outputs the following torque setpoints to pre control the winder drive e A torque setpoint as a function of the acceleration setpoint of the machine system ramp function generator and the instantaneous diameter actual value Version 2 0 0 2015 08 06 116 143 SI E M E N S Application description Winding functions Converting Library Atorque setpoint as a function of An At of the winder motor Note This pre control is especially required if e g thick material is to be wound onto a thin sleeve i e mandrel after a flying roll change As a result of the diameter of the wound material that quickly increases for the same consistent machine velocity AD At values of 20 x 1 s can oc
83. e and decrease the operating mode is specified by a control logic The output quantity can be limited using inputs upperLimit and lowerLimit When the set limits are reached through Y binary outputs upperLimitReached or lowerLimitReached are set to TRUE Binary output setpointHeached goes TRUE if y x Ramp up time and ramp down times The ramp up time rampupTime is the time in which the absolute value of the output quantity increases by nominalValue The ramp down rampdownTime is the time in which the absolute value of the output quantity decreases by nominalValue The ramp up time and ramp down time can be selected to be different The lower T rampupTime or T rampDownTime the lower the amplitude change at y from one sampling instant to the next For the control inputs the following sequence of priority applies set before followup before increase and decrease Table 2 1 Function of the control inputs set 1 Setting value setValue is loaded into the integrator non integrating followup 1 Output y integrating to setpoint X tracking Increase 1 Output y integrating torques upperLimit tracking decrease 1 Output y integrating torques lowerLimit tracking Operating modes and control of the ramp function generator The combination of commands at the control inputs and the possible operating modes can be taken from the truth tables Standard ramp function generator operation involves lowerLimit lt 0 lt
84. e made in exceptional cases as this is not in line with the level of standardization that we wish to achieve here Only functions that are not covered by the standard applications are described in this documentation Additional information is provided in the corresponding application examples Additional software packages e SIMOTION Rotary Knife e SIMOTION Flying Saw e SIMOTION Traversing Drive e SIMOTION Splice Control e SIMOTION Winder e SIMOTION Web Accumulator e SIMOTION Easy Basics e SIMOTION Messagehandling e SIMOTION Axis Function Block All of the software packages are available through the application database of the Application Centers Version 2 0 0 2015 08 06 7 143 Application description Introduction SIEMENS Converting Library 0 2015 08 06 doc g Library V2 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin 1 1 Functional scope Table 1 1 Function Library Source Description FCTaskldentification LConlib fConvTools Cycle time identification FCScalingDWDRL LConlib fConvTools Converting and scaling function to convert a DWORD value into an REAL format FCScalingRLDWD LConlib fConvTools Converting and scaling function to convert an REAL value into a DWORD format FCScalingWDRL LConlib fConvTools Converting and scaling function to convert a WORD value into an REAL format FCScalingRLWD LConlib fConvTools Conv
85. e ourputquaniity Pre assignment 0 0 sTechnologyControllerConfigType The following type definition applies yo Element Data type Description IN r32X1 REAL x coordinate for Kp adaptation for Kp1 Kp value for r32X1 IN r32Kp1 REAL If the Kp adaptation is deactivated then this parameter is used as Kp value coordinate for Kp2 IN r32X2 REAL If r32X1 r32X2 then the Kp adaptation is deactivated second Kp value assigned corresponding to IN r32Kp2 REAL T32X2 OUT r32EffectiveKp REAL effective controller gain after Kp adaptation ms ramp up time of the controller output limiting IN r32LimRampUpTime REAL This is internally limited to the cycle time as lower value IN r32LimRampDownTime REAL ms ramp down time of the controller output limiting Version 2 0 0 2015 08 06 88 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Closed loop control functions Converting Library yo Element Data type Description This is internally limited to the cycle time as lower limit Z LU setpoint RFG reference value IN r32SetNominalValue REAL for ramp up ramp down time ms setpoint RFG ramp up time IN r32SetRampUpTime REAL This is internally limited to the cycle time as lower limit ms setpoint RFG ramp down time IN r32SetRampDownTime R
86. elocity interface has priority over the position interface additiveTorque BOOL FALSE TRUE Interface for additive torque is activated FALSE interface for additive torque is deactivated Technology data block is mandatory No messages are output if the command is not allowed torqueLimitNegative BOOL FALSE TRUE interface for negative torque limit is activated FALSE interface for negative torque limit is deactivated Technology data block is mandatory No messages are output if the command is not allowed torqueLimitPositive BOOL FALSE TRUE interface for positive torque limit is activated FALSE interface for positive torque limit is deactivated Technology data block is mandatory No messages are output if the command is not allowed dynamics sLConDynamic sType Axis dynamics from config structure Output parameters Name busy Data type BOOL Initial value FALSE Description FALSE no processing active TRUE at least one interface is active or being activated deactivated or enable TRUE error BOOL FALSE FALSE No error TRUE An error has occurred refer to error identification All interfaces will be deactivated errorID DWORD 16580000 0000 Error identification refer to error messages errorlD lt 164000 8000 warning gt 1620000 8000 error Version 2 0 0 2015 08 06 50 143
87. ens I DT in writing For questions regarding this application please contact us at the following e mail address mailto applications erlf aud siemens com Applicable conditions Alternative 1 internal business If nothing else has been negotiated then the General Conditions for the Supply of Products and Services in Siemens Internal Business valid at the time of sale are applicable Version 2 0 0 2015 08 06 3 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Si E M E N S General Notes User Manual Alternative 2 domestic business of Siemens AG If nothing else has been negotiated then the General License Conditions for Software for Automation and Drives for Customers with a Seat or Registered Office in Germany valid at the time of sale are applicable Alternative 3 direct export business of Siemens AG If nothing else has been negotiated then the General License Conditions for Software Products for Automation and Drives for Customers with a Seat or Registered Office outside Germany valid at the time of sale are applicable Alternative 4 conditions of the particular regional office for the regional office business If nothing else has been negotiated then the General License Conditions for Software Products for Automation and Drives for Customers with a Seat or Registered Office outside of Germany valid at the time of sale a
88. ent Table 5 4 Parameter list V n diameter calculation Name Description sDiamConfig Structure for the diameter calculator configuration data ms Symmetrizing time This parameter correlates between the velocity and speed It compensates the offset in time of lagging speed n of the winding shaft with respect to the machine velocity v r32LineBalancingTime ms Symmetrizing time r32WindingShaft This parameter correlates between the velocity and speed It BalancingTime compensates the offset in time of lagging machine velocity v with respect to the speed n of the winding shaft Version 2 0 0 2015 08 06 99 143 SI E M E N S Application description Winding functions Converting Library DIAM EXT In this particular mode the diameter is externally sensed using an analog sensor The numerical sensor value is assigned to parameter diamExtVal In the diameter calculator this value forms the abscissa value of a characteristic block refer to FBPolygonA The user should parameterize this characteristic block so that its output value ordinateOutput is the actual diameter By setting the DiamConfig parameter u16DiamExtCurveEntryNum to zero the functionblock FBPolygonA won t be calculated and the value assigned to diamExtVal will be taken as diameter Table 5 5 Parameter list external diameter Name Description External diameter value when required can be scaled and amy
89. er the delay time measurementDelayTime the actual torque is saved in the array frictionCurveOrdinate In order to have the actual torque in the TO axis the technology data block must be activated Parameter frictionCurveEntryNum specifies how many values are to be taken The average value is calculated over several cycles The number of measurements involved in generating the average value can be defined using the input measurements In this case the input is limited to 50 measurements Output busy is set to True during the measurement After all of the velocities or speeds have been approached and the measurement completed the done output is set to TRUE If an error occurs during the measurement this is displayed at the error output and the associated If at the input the abort signal abort is set to TRUE the measurement is interrupted and the axis stopped For errors involving the system commands enableAxis move Stop disableAxis and when the measurement is interrupted aborted by abort the commandAborted output is set After the friction characteristic measurement has been successfully completed the values are in the array frictionCurveAbscissa The units of the velocity or speed in the array frictionCurveOrdinate should correspond to the units of the TO axis If possible RPM should also be plotted because FB Torque Pre Control calculates the friction torque with these units Error messages are indicated by the status
90. erting and scaling function to convert an REAL value into a WORD format FCScaling LConlib fConvTools Scaling function FCLinear LConlib fConvTools Linear interpolation between two points FBPolygonA LConlib fConvTools Characteristic block Type A FBPolygonB LConlib fConvTools Characteristic block Type B FBRFG LConlib fConvTools Basic ramp function generator FBRFGJerkLimit LConlib fConvTools Ramp function generator with jerk limiting FCCalculateDistance LConlib fConvTools Calculation of breaking distance and time FCEvaluateModulo LConlib fConvTools Calculation of the position difference between two sampling values of a modulo axis FBFrictionMeasurement LConlib fConvTools Function to plot a motor friction characteristic FBEnablelnterface LConlib fConvTools Axis interface activation FBPT1 LConlib fConvTools PT1 filter FBINT LConlib fConvTools Integrating element FBDIF LConlib fConvTools Differentiating element FBDT1 LConlib fConvTools 071 filter FBLIM LConlib fConvTools Limit value monitor with feedback 2015 08 06 8 143 Application description Introduction SIEMENS Converting Library Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Function Library Source Description FBLevelControl LConlib fConvTools Limit value monitor with
91. eter configuration data r32MeasuringRevolution Number of winding shaft revolutions that define the Count measuring and calculation interval Number of winding shaft revolutions after which the first S2FirstDiameterOutput calculated diameter is output Number of winding shaft revolutions after which the next r32DiameterOutputRate calculated diameter is output f64WindingShaftF eedback Inc rev Number of increments that correspond to 1 rev Scal reALineFeedbackScal Inc LU Number of increments that correspond to 1 LU Inc Number of increments for the modulo length of the 64LineM dlength LineFeedback Signals r64ShaftModLength Inc Number of increments for the modulo length of the WindingShaftFeedback Signals Floating diameter calculation in modes DIAM_CALC_INTEGRAL DIAM_CALC_POSITION The floating diameter calculation can be configured by the following configuration parameter e r32MeasuringRevolutionCount e r32FirstDiameterOutput e r32DiameterOutputRate After rising edge of input enable resp after a change of the diameter calculation mode the first calculated diameter will be output after the number of revolutions configured in r32FirstDiameterOutput After the first diameter output the calculated diameter will be refreshed cylic after the number of revolutions configured in r32DiameterOutputRate The calculated diameter will be averaged over t
92. frictionCurveOrdinate LCONLIB MAX I torque DX_A OF REAL maximum LCONLIB_MAX_IDX_A 1 x y points Output parameters Name Data type Initial value Description FALSE A friction characteristic is not generated done BOOL FALSE TRUE Measurement completed friction characteristic generated FALSE A measurement is not made busy BOOL FALSE TRUE A measurement is made FALSE M i d CommandAborted BOOL FALSE S easurement was not interrupte TRUE Measurement was prematurely interrupted FALSE No error error BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000 8000 warning errorlD gt 16 0000_8000 error Version 2 0 0 2015 08 06 47 143 SIEMENS functions Converting Library Functionality 0 0 2015 08 06 doc Note Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin Errors Dependent on a request entered via the request input the function block measures the friction characteristic of the axis axis If the axis is inactive then it is enabled and after the measurement has been completed it is inhibited again for an active axis this remains active With the measurement the velocities or speeds that should be approached one after the other are entered via the array frictionCurveAbscissa At each velocity or speed level that is reached constant move and aft
93. gative torque limit interface The return value of the command disableAxisTorqueLimitNegative is not 0 16 0109_8108 Error while activating the positive torque limit interface The return value of the command _enableAxisTorqueLimitPositive is not 0 16 0109_8109 Error while deactivating the positive torque limit interface The return value of the command _disableaxistorquelimitpositive is not 0 16 0109_810A Error while deactivating the negative torque limit interface The return value of the command disableaxistorquelimitnegative is not 0 16 0109_810B Error while deactivating the additive torque interface The return value of the command disableAxisadditiveTorque is not 0 16 0109_8101 Error while deactivating the Motionln interface The return value of the command move is not 0 1680109 C013 Time monitoring watchdog when switching the interfaces An interface was not able to be activated or deactivated within one second Version 2 0 0 2015 08 06 53 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SIEMENS Closed loop control functions Converting Library 4 Closed loop control functions 4 1 FBPT1 PT1 element PT1 filter that can be set Block name FBPT1 Task This function block has the function of a PT1 filter The input value is output filtered The filter effect can be influenced by the entered smoothing time Further it is possible to set
94. get diameter to be reached offset REAL 0 0 LU Offset to the calculated residual length Output parameters Name Datatype Initial value Description FCRLC REAL LU Calculated residual length of the roll Version 2 0 0 2015 08 06 127 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library Note The calculations made in this function block are in principle independent of the physical units The output parameter units are defined by the input parameters The internal calculations do not perform any conversions LU Length units e g m Functionality Depending on the roll parameters that have been entered the function calculates the residual length FCRLC To do this the following data is required the thickness of the material on the roll webThickness the actual diameter actualDiameter and the diameter to be reached targetDiameter In this case the target diameter represents the end of the roll or the diameter to be reached Depending on whether the target diameter is greater than or less than the actual diameter the length of the material on the roll or the length of the material still to be wound is output The thickness of the material web webThickness is limited using the internal constants MIN THICKNESS and MAX THICKNESS
95. he number of revolutions configured in r32MeasuringRevolutionCount as long as the the parameterized number of revolutions has been passed already The averaging of a specific number or revolutions is determinded by the depth array length of an internal ring buffer Inside the ring buffer the position deltas of line and winder axis will be entered The buffer depth is calculated based on the following formula r32MeasuringRevolutionCount buffer depth r32DiameterOutputRate Is the result of the calculation a non natural number the value will be rounded to next natural number N 1 2 3 Therby the the effective averaging over a specific number of revolutions can differ to the configured value in r32MeasuringRevolutionCount compare example 3 The following sketeches show the interacting of the configuration parameter In the function block a modulo cycle from 0 to 360 is recreated The configuration of the technology object is independend of that Version 2 0 0 2015 08 06 102 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Example 1 r32MeasuringRevolutionCount 4 r32DiameterOutputRate 1 r32FirstDiameterOutput 2 r32MeasuringRevolutionCount r32FirstDiameterOutput r32DiameterOutputRate effective averaging 2
96. he position of the web and the roll being wound or unwound In this case the position is fed back into the FB via the input parameter lineFeedback and windingShaftFeedback there in the FB the difference to the previous cycle is measured Overflows are intercepted using modulo limits that should be entered Positions are evaluated and weighted using the scaling factors sDiamConfig r64LineFeedbackScal and sDiamConfig r64WindingShaftFeedbackScal sDiamConfig r64LineFeedbackScal corresponds to 1 LU sDiamConfig r64WindingShaftFeedbackScal corresponds to 1 rev s R y with p 2 5 9 If the number revolutions of the winding shaft specified by parameter sDiamConfig r32MeasuringRevolutionCount is reached the differential value is reset and the calculated diameter value is further processed In order to be able to identify overflows the change of the feedback signal per cycle must be less than half of the difference of the modulo limits AFeedback In addition every measuring interval the actual material thickness r82CalculatedWebThickness is calculated e g for a rest length calculation Version 2 0 0 2015 08 06 101 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS P Wincing functions Converting Library Table 5 7 Parameter list position based diameter calculation Name Description sDiamConfig Structure for diam
97. iable of the web lineFeedback LREAL 0 0 position of the web e Inc Value of the counter variable of the winder shaft wi dingshaftkeedback position angle of the winder shaft diamExtVal REAL 0 0 External diameter value can be scaled by the characteristics if necessary Input output parameters All parameters that are contained in sDiamConfig are input parameters Name Datatype Initial value Description latchDiamCalc REAL 0 0 LU Retain variable the calculated diameter is saved sDiam Structure for diameter calculator configuration data sDiamConfig Config Details about this structure are provided in the Type description of the type definitions Output Parameters Name Datatype Initial value Description FALSE Function block is deactivated values will not be evaluated BOOL FALSE TRUE Function block is activated FALSE No error error BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000 8000 warning gt 16 0000 8000 error diamModelnUse Actual diameter calculation mode ModeType LU Calculated value of the web thickness icul WebThick REAL only for DIAM CALC INTEGRAL and 0 0 DIAM_CALC_POSITION mode Otherwise the output is set to 0 0 diamA
98. inate point 1 pointX2 REAL 0 0 X Coordinate point 2 pointY2 REAL 0 0 Y Coordinate point 2 Output parameters Name Datatype Initial value Description FCLinear REAL Output point Y Version 2 0 0 2015 08 06 19 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin SI E M E N S Application description Tools Converting Library Functionality Using the straight lines entered this function determines the matching Y coordinate of the coordinate X present at input x The straight line is defined by point 1 pointX1 pointY 1 and point 2 pointX2 pointY2 The interpolated Y coordinate is provided as return value of the function with FCLinear The input point x is limited by the coordinates pointX1 and pointX2 The calculation is continued with pointX1 or pointX2 If the coordinates pointX1 and pointX2 are equal 0 0 is displayed at output FCLinear and no interpolation is carried out X point X1 point X2 point X1 FCLinear pointY2 pointY1 pointY1 Graphic representation of the function Figure 2 1 Graphic representation of the function 2 FCLinear pointY1 pointX1 X pointX1 Version 2 0 0 2015 08 06 20 143 Copyright Siemens AG 2015 All rights reserved Manual Conve
99. ing using an interpolator with a PT1 element connected at its output Interpolation modes The following interpolation modes are implemented in the function block Table 5 8 Interpolation modes Interpolation mode Description NO INTERPOLATION No interpolation Interpolation with ramp function generator available in every INTERPOLATION 1 calculation mode The material thickness is required for the plausibility check INTERPOLATION 2 Interpolation with ramp function generator only available in the modes DIAM CALC INTEGRAL and DIAM CALC POSITION Interpolation without ramp function generator only available in the calculation modes DIAM CALC INTEGRAL and DIAM CALC POSITION The material thickness is required for the plausibility check INTERPOLATION 3 The interpolation mode is selected using the sDiamConfig elnterpolationMode parameter Each time it is called if used the ramp function generator executes the following iteration Yk YA The value for the acceleration is thereby obtained NRM Y T i A m when braking and NRM Y4 Ty Ta when accelerating task cycle time When considered from the physical perspective the acceleration values correspond to the diameter changes per unit time The following applies NRM AD m as the diameter decreases NRM AD Ty Ar as the diameter increases Version 2 0 0 2015 08 06 105 143 0
100. interface parameters of each function or function block are described in this document in the respective sections Additionally to the interface parameter some of the function blocks using a configuration structure for parameterization and a diagnostic structure for feedback reason These structures are defined as sub structures of the sWinderConfig and sWinderDiag structures and are described in the FBWinder documentation 1 6 Abbreviations of the units The abbreviations of the units used for the speed and positioning axes are shown in the following table in order to ensure consistency for the metric as well as the Anglo American dimension system LU stands for a length unit TU stands for a time unit Table 1 2 Abbreviations of the units Measurement Units Metric Anglo American quantity Length LU e g m Meter e g ft feet Length basis unit LUb m meters ft feet Velocity LU TU e g mm min e g inch min Acceleration LU TU e g m s e g ft s Speed rpTU o TU e g rev min e g rpm Mass weight m kg Ib Density m LUb kg m Ib ft Moment of inertia J mLUb kgm Ibft Torque mLUb s kgm 52 lbf ft Ibft s Tension force 2 mLUb s m s lbf Ib ft s Version 2 0 0 2015 08 06 11 143 Copyright Siemens AG 2015 All rights reserved g Library V2 0 0 2015 08 06 doc Manual Convertin SI E M E N S Application MEE Converting Library 2 Tools 2 1 FCTaskldentificat
101. ion Determining the cycle time Identifies the task and outputs the associated cycle time Block name FCTaskldentification Task The function identifies the type of task in which this is called determines the actual cycle time and outputs this Integration in the run time system The function must be called in a synchronous task Servo IPO IPO 2 or Timer Graphic representation of the block FCTaskldentification taskMode FCTaskldentification REAL eTaskNameType Block parameters Input parameters Name Data type Initial value Description Calling task SERVO SYNCHRONOUS TASK STaskName Servo Synchronous Task taskEnum SYNCHRONOUS Ipo Synchronous Task IPO SYNCHRONOUS TASK 2 Ipo Synchronous Task 2 TIMER INTERRUPT TASK in a Timer Interrupt Task Output parameters Name Data type Initial value Description ms The actual real cycle time of the task in the REAL format If the function outputs a 0 the task is not time synchronous and lpo dependent FCTaskldentification REAL Version 2 0 0 2015 08 06 12 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Functionality Using the input parameter taskMode of type eTaskNameType the function determines the actual task in which the FC is called
102. it Version 2 0 0 2015 08 06 60 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Table 4 2 Truth table for lowerLimit upperLimit upper lower Set Condition Y Limit Limit Mode Reached Reached lowerLimit Integrator limited Yn 1 X TA integralTime lt Yn 0 0 by upper Limit upperLimit Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Description 16840000 0000 No error 1640102 8001 The function block is called in an incorrect task Version 2 0 0 2015 08 06 61 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Application description Closed loop control functions SIEMENS Converting Library 4 3 FBDIF Differentiating element Differentiating element Block name FBDIF Task Function block with differentiating behavior Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer Graphic representation of the block REAL REAL diffTime eTaskNameType taskMode Block parameters Input parameters
103. l sMomentConfig r32DiamMin 1640203 8013 The number of grid points that have been entered is too small friction characteristic 1640203 8014 The number of grid points that have been entered is too high friction characteristic Version 2 0 0 2015 08 06 120 143 Application description Winding functions SIEMENS Converting Library Function diagram Jejeureip penoy anbio uolsua JOJOWPIQeId WI enbioruorsue t 1009195 001509110108 BUTEOS isnfpyuoisua 1261 a PHN LAAN Jede 001509 194e 1urodies 0015091 jujodjaguo sue MO14d GNIMNN Toe Pujeos jueunsn pyuonou 4262 uorsue 210 PaM essiosqyoAmn 2uorjou 18 anbio uoisuej uoisuej Dn enbio juoisua Wl JOU Lady AOVOWIQS10 3AO8V ANIMNN anbio nuc Inn Peds 1epuiw peedgyeusbuipuim uioeagenbio JOJON jeo yeys uo peseq uoisue enbioi eio PUN Loudyy JopoWQed jo jequinN
104. line drive One of 5 modes can be selected for the calculation The result of the diameter calculation is subject to a plausibility check Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO_2 or Timer Version 2 0 0 2015 08 06 93 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Graphic representation of the block FBDiameterCalculation BOOL BOOL BOOL enable BOOL BOOL reset errorID DWORD BOOL SetDiam diamModelnUse eDiamMode Type BOOL holdDiam calculatedWebThickness REAL eWinding Mode typeOfWinder diamActVal REAL Type eDiamMode selectDiamMode diamlsHold BOOL Type eTaskName taskMode diamActUpperLimitReached BOOL Type REAL diamSetVal diamActLowerLimitReached BOOL LREAL lineSpeed diamRawUpperLimitReached BOOL LREAL windingShaftSpeed diamRawLowerLimitReached BOOL LREAL lineFeedback diamSetUpperLimitReached BOOL LREAL windingShaftFeedback diamSetLowerLimitReached BOOL REAL diamExtVal diamChangeLimited BOOL sDiamConfigType sDiamConfig sDiamConfigType REAL LatchDiamCalc REAL Version 2 0 0 2015 08 06 94 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Block parameters Input paramete
105. meterization of the inputs a ramp function is calculated Various options can be set by selecting the inputs If mode is at False the ramp is braked using a special entered deceleration time fastRampdownTime and without jerk limiting This means that the ramp can be effectively decelerated for an Emergency Stop this is also possible while accelerating If mode is at True then the drive is braked normally with the entered deceleration time rampdownTime The acceleration is always calculated with the entered acceleration time rampupTime independent of mode In order to calculate the acceleration and deceleration stages with reference to the entered nominalValue then the sampling time must be specified using the taskMode input In order to reach the setpoint x the appropriate interval values are output at y and the actual acceleration is output at ya If input enableRounding is set to TRUE the ramp is calculated with jerk limiting The rounding off is determined by the rounding off time roundingTime The zero crossing when the input x changes direction can be parameterized with or without rounding As soon as the output value is zero this is displayed using the setpointZero output Further when accelerating output acceleration is set when decelerating output deceleration is set and for a constant value setpointReached is set If the block is in the enable mode then output busy is set to TRUE If the hold input is set to TRUE the ram
106. nInVelocity additiveTorque torqueLimitNegative torqueLimitPositive dynamics FBEnablelnterface errorld motionInPositionActive motionInVelocityActive additiveTorqueActive torqueLimitNegativeActive torqueLimitPositiveActive BOOL BOOL DWORD BOOL BOOL BOOL BOOL BOOL Version 2 0 0 2015 08 06 49 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Drive functions Converting Library Block parameters Input parameters Name axis Data type DRIVEAXIS Initial value Description Technology object axis enable BOOL FALSE TRUE the function block is active interfaces will be activated deactivated accordingly TRUE gt FALSE all interfaces will be deactivated FALSE function block inactive movingMode enumMoving Mode SPEED CONTROLLED Mode selection for axis control Only relevant if the axis is a positioning axis motionInPosition BOOL FALSE TRUE position interface is activated FALSE position interface is deactivated The position interface is only on available for positioning axes The velocity interface has priority over the position interface No messages are output if the command is not allowed motionInVelocity BOOL FALSE TRUE velocity interface is activated FALSE velocity interface is deactivated The v
107. nable mode accelerating decelerating setpoint Zero Figure 2 9 With or without zero rounding Xy 0 0 0 0 ety Version 2 0 0 2015 08 06 37 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 16 0000_0000 Error TRUE Description 1680000 0000 No error 164010E 8001 The function block is called in an incorrect task 16 010 8005 Invalid input parameter nominalValue 0 0 Version 2 0 0 2015 08 06 38 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application Converting Library 2 7 FCCalculateDistance Calculates the braking distance and time taking into consideration the dynamic parameters of the motion sequence Block name FCCalculateDistance Task This block calculates the braking distance and the associated time for the axis to brake down to standstill zero speed taking into account the actual motion vector velocity acceleration jerk Integration in the run time system The function can be called in any task Graphic representation of the block FCCalculateDistance
108. nce value max Value In so doing input value x is limited between the values 2 maxValue and 2 maxValue FCScalingRLDWD base max Value Version 2 0 0 2015 08 06 15 143 0 2015 08 06 doc g Library V2 0 Copyright Siemens AG 2015 All rights reserved Manual Convertin SI E M E N S Application description Tools Converting Library 2 2 3 FCScalingRLWD Block name FCScalingRLWD Task This block converts a REAL value into a WORD value Integration in the run time system The function can be called in any task Graphic representation of the block FCScalingRLWD REAL FCScalingRLWD WORD REAL maxValue REAL base Block parameters Input parameters Name Datatype Initial value Description x REAL Input value as REAL 2 maxValue 2 maxValue Maximum value maxvaue REAL FCScalingRLWD 0 if maxValue 0 base REAL 16384 0 Normalization value Output parameters Name Data type Initial value Description FCScalingRLWD WORD Output value as WORD Functionality This function converts a real value x into a word value FCScalingRLWD using a normalization value base and the maximum reference value maxValue In so doing input value x is limited between the values 2 maxValue and 2 maxValue FCScaling RLWD f base max Value Version 2 0 0 2015 08 06 16 143 0_2015 08 06 g Librar
109. not processed Ta BOOL FALSE TRUE THEIDIGON is processed If the block is de activated run FALSE the output tensionTaper is set to 1 0 Tension taper characteristic mode _ TAP CHAR NO TAPER No characteristic tensionTaper eTaperChar CHAR TAP CHAR LINEAR Linear characteristic Mode ModeType NO TAP CHAR HYPERBOLIC 1 Hyperbolic char 1 TAPER TAP CHAR HYPERBOLIC 2 Hyperbolic char 2 TAP CHAR TABLE Characteristic defined by a table diamActVal REAL 0 0 LU Actual diameter value Version 2 0 0 2015 08 06 122 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS P Wincing functions Converting Library Input Output Parameters busy Name Data type Initial value Description sTension Structure with configuration data of the tension taper sTensionTaper y characteristic TaperConfig 6 j i Config T Details on this structure are provided in the description ype of the type definitions Output parameters Name Data type Initial value Description FALSE function block inactive FALSE The output tensionTaper is set to 1 0 actual errors are BOOL deleted TRUE function block active error FALSE No error TRUE An error has occurred refer to error BOOL FALSE identification In case of error error TRUE the output tensionTaper is set to 1 0 errorlD Error identification refer to er
110. nt In addition in every measuring interval the actual material thickness r32CalculatedWebThickness is calculated e g for a rest length calculation Version 2 0 0 2015 08 06 100 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library Table 5 6 Parameter list integral diameter calculation Name Description sDiamConfig Structure for the configuration data of the diameter calculator ms Symmetrizing time This parameter correlates between the velocity and speed It compensates the offset in time of lagging speed n of the winding shaft with respect to the machine velocity v rg2LineBalancingTime ms Symmetrizing time r32WindingShaft This parameter correlates between the velocity and speed It BalancingTime compensates the offset in time of lagging machine velocity v with respect to the speed n of the winding shaft r32MeasuringRevolution Number of winding shaft revolutions that define the Count measuring and calculation interval Number of winding shaft revolutions after which the first S2FirstDiameterOutput calculated diameter is output Number of winding shaft revolutions after which the next 192DiameterOutpitRate calculated diameter is output DIAM_CALC_POSITION This diameter calculation technique directly intervenes at t
111. ntValue corresponding to the following equation deviation Value actualValue r32ActValueFactor r32ActValueOffset eT setpointValue The result is the system deviation deviation Value after the deadband and is then multiplied with the proportional coefficient propGain that can be set The result is transferred to the integrator and optionally to the D component The settable integral time integTime as well as the time constant of the D component derivTime optional define the controller behavior Table 4 3 Calculating the control components Component Calculation P component pOutValue n deviationValue n component pOutValue n pOutValue n 1 T ois iOutValue n iOutValue n 1 2 inteeTi integTime Sampling time The integrator includes anti windup functionality i e if the controller output is limited the integrator cannot continue to integrate in the same direction The inputs setintChannel and holdintchannel can be used to set the integrator intSetValue or manually hold it The integrator is set to zero using reset or with a rising edge for enable D if Bolus dOutValue n pOutValue n pOutValue n 1 derivTime T cycle Toae Sampling time The controller output is first scaled and is then limited Version 2 0 0 2015 08 06 81 143 Copyright Siemens AG 2015 All rights reserved Manual Conve
112. ntegralTime REAL 5 0 ms Integration time TI sampling time 1000 IPO Specification of the task in which the block is called P SERVO_SYNCHRONOUS_TASK TaskN YNCHRON T taskMode TR yes ONOUS ibo SYNCHRONOUS TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Output parameters Name Data type Initial value Description FALSE No error BOOL FALSE PROA 99 S TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000_8000 warning errorlD gt 16 0000_8000 error y REAL 0 0 Output quantity integration value upperLimit FALSE Upper limit not reached BOOL FALSE Reached TRUE Upper limit reached lowerLimit FALSE Lower limit not reached Reached peer FALSE TRUE Lower limit reached Functionality The function block integrates input quantity x with integration time integralTime The result is output at y The integrator is limited by the upper limit upperLimit and the lower limit lowerLimit If the integrator reaches one of the limits then this is connected to the output and saved as internal buffer value Further when the particular limit at the output is reached this is indicated using upperLimitReached and lowerLimitReached Using the setting function which is activated with set True the output can be set to a pre defined value setValue If setis reset then starting from the setting value the integrator continues to i
113. ntegrate in the direction specified using input value x integralTime is internally limited with TA lt integralTime x 1000 Version 2 0 0 2015 08 06 59 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Closed loop control functions Converting Library The discrete values TA is the sampling time in which the function block is processed are calculated using the following algorithm TA Yn integralTime Yn Value of Y in sampling interval n Yn 1 Value of Y in sampling interval n 1 X Value of X in sampling interval n Graphic representation of the function Figure 4 3 Block diagram IntegralTime lower upper Limit Limit setValue upperLimitReached PE EN lowerLimitReached Table 4 1 Truth table for LL lt LU upper lower Mode Set Condition y Limit Limit Reached Reached lowerLimit lt 0 Integrating 0 Yn 1 X TA IntegralTime Yn 0 upperLimit 0 Yn 1 X TA integralTime upper 1 0 Integrator at the gt upperLimit Limit upper limit 0 yn X TA integralTime lower 0 1 Integrator at the lowerLimit Limit lower limit 1 lowerLimit setValue set 0 0 Setting upperLimit Value 1 setValue upperLimit upper 1 0 Integrator at the Limit upper limit 1 setValue lowerLimit lower 0 1 Integrator at the Limit lower lim
114. nternally limited diffTime gt 0 Graphic representation of the function Figure 4 4 Block diagram diffTime Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Description 16840000 0000 No error 1640103 8001 The function block is called in an incorrect task Version 2 0 0 2015 08 06 63 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Closed loop control functions Converting Library 4 4 FBDT1 DT1 filter Function block with DT1 behavior Block name FBDT1 Task Function block with differentiating behavior and smoothing The DT1 output can be set Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer Graphic representation of the block BOOL BOOL REAL DWORD REAL setValue REAL REAL smoothingTime REAL REAL diffTime eTaskNameType taskMode Block parameters Input parameters Name Data type Initial value Description FALSE Setting value has no influence on the output quantity of the DT1 element set BOOL FALSE TRUE Output value Y is set to the value of input SV and the output of the DT1 element corresponds to the equation below x REAL 0 0 Input quantity setValue REAL 0 0 Setting value ms
115. ntroller Technology controller based on a PID controller for use as tension or dancer roll position controller in closed loop winder or material web controls Block name FBTechnologyController Task The function block includes the following functionality e Setpoint ramp function generator with setting function e PID controller e Ramp function as controller output limiting e Kp adaptation Dcomponent can be optionally switched in in the actual value branch Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin Version 2 0 0 2015 08 06 85 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library BOOL BOOL REAL REAL REAL REAL BOOL BOOL eTaskNameType sTechnology ControllerConfig Type Block parameters Input parameters Graphic representation of the block FBTechnologyController enable openLoopCtrl setpointValue actualValue preControl adaptionValue holdintChannel taskMode sSsTechnologyControllerConfig BOOL BOOL errorID DWORD upperLimReached BOOL lowerLimReached BOOL RFGLimReached BOOL RFGSetp
116. o four segments for jerk limited stopping of an axis In this case a certain initial velocity and initial acceleration are used as basis nthe first segment S2 the initial acceleration initialAcceleration is decreased with the specified jerk positiveAccelEndJerkLimit The velocity increase is taken into account n the second segment S3 it is checked as to whether the maximum deceleration is reached with the specified jerk negativeAccelStartJerkLimit The maximum deceleration is calculated nthe third segment SD the axis is braked with maximum deceleration negativeAccelLimit n the fourth segment S4 the actual acceleration is reduced with the specified jerk negativeAccelEndJerkLimit Starting from the parameterization of the block not all of the segments are always taken into account in the calculation An overview of the use is given in the following table If a return parameter is zero then the corresponding segment is deactivated da dv ds dt S2 pos pos T2 53 neg neg pos T3 SD neg pos TD S4 pos neg pos T4 Description of the elements in the table a Acceleration v Velocity s Distance t time d in the designations specifies that only changes to the values are taken into account not the absolute results The sign indicates an increase or decrease of the corresponding value Based on the input parameters the segmen
117. of REAL frictionCurveAbcissa ARRAY of REAL ARRAY of REAL frictionCurveOrdinate ARRAY of REAL Version 2 0 0 2015 08 06 46 143 Copyright Siemens AG 2015 All rights reserved 0 2015 08 06 doc g Library V2 0 Manual Convertin SIEMENS Application description Drive functions Converting Library Block parameters Input parameters Name Data type Initial value Description execute BOOL FALSE FALSE gt TRUE starts the friction measurement FALSE gt TRUE Sequence interrupt and axis abort BOOL FALSE stopped DRIVEAXIS TO NIL Axis for which the friction characteristic should be measured min speed axis UINT 50 of values to generate the average value 0 measurementDelayTi ms Delay time before starting the measurement at REAL 100 me each speed level dynamics Axis dynmics from config structure Input Output parameters Name Data type Initial value Description Number of grid points Input frictionCurveEntryNum UINT 0 2 lt frictionCurveEntryNum lt LCONLIB MAX IDX A1 rpTU TU Abscissa values for the friction ARRAY 0 characteristic speed velocity frictionCurveAbscissa LCONLIB MAX I maximum LCONLIB MAX IDX A 1 x y points DX A OF REAL corresponds to the configured units of the winder axis rev TU or TU ARRAY 0 M Ordinate values for the friction characteristic
118. of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 1640000 0000 No error 1640108 C001 Non compatible TO at the axis input 1640108 C002 Technology data block is not activated 1640108 8100 Error when enabling the axis 1640108 8101 Error for a motion command 1640108 8103 Error when stopping the axis 1650108 8104 Error when inhibiting the axis 1640108 C000 Internal program error Version 2 0 0 2015 08 06 48 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Drive functions Converting Library 3 2 FBEnablelnterface Activate Interfaces Function block for selective switching of the axis position speed or torque interfaces Name of function block FBEnablelnterface Task The function block activates or deactivates the cyclical interface for position velocity and torque The interfaces are necessary e g for controlling of an axis winder or a drive with overlaid tension control Integration into the runtime system The function block must be called in a cyclic task Background Servo IPO IPO 2 or Timer Graphic presentation of the block DRIVEAXIS BOOL EnumMovingMode BOOL BOOL BOOL BOOL BOOL sLConDynamics Type axis enable movingMode motionInPosition motio
119. ointReached BOOL RFGSetpointValue REAL outValue REAL sTechnology ControllerConfig Type Name Data type Initial value Description FALSE gt TRUE Ramp function generators are started PID controller is active if not in the openLoop mode enable BOOL FALSE TRUE FALSE Setpoint is integrated to the actual value the controller output is limited and then FB deactivated FALSE PID controller is active openLoopCtrl BOOL FALSE TRUE PID controller and RFG limiting are inactive Only the setpoint RFG is used setpointValue REAL 0 0 Z LU 96 Setpoint signal actualValue REAL 0 0 Z LU 96 Actual value signal preControl REAL 0 0 rpTU or pre control signal adaptionValue REAL 0 0 Signal adaptation The units depend on the interconnection holdintChannel BOOL FALSE TRUE component is frozen BOOL FALSE TRUE set component Version 2 0 0 2015 08 06 86 143 Copyright Siemens AG 2015 All rights reserved 0 2015 08 06 doc g Library V2 0 Manual Convertin SIEMENS Application description Closed loop control functions Converting Library Specification of the task in which the block is called eTaskName IPO_ SERVO_SYNCHRONOUS_TASK taskMode SYNCHRONO SYNCHRONOUS TASK yp US TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Input output parameters Name Data ty
120. on This is realized using three enumeration types these are orientated to the units of the physical quantity metric and Anglo American imperial units can be selected The conversion factors of structure sConvC to convert into the required units are automatically assigned by the system starting from the FB parameterization This means that the user does not have to change them Parameterization for printing machines is available with the DEG Sx PRINT option This is orientated to the requirement that 36095 corresponds to 1m s If one of the input parameters is incorrect or is not available an error error is generated including an error number errorID Version 2 0 0 2015 08 06 139 143 Application description Winding functions SIEMENS Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Converting Library Note LU LUb Length unit e g m ft etc Basis length unit m or ft TU Time units of the particular axis under certain circumstances different for lineAxis and winderAxis Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Description 1630000 0000 No error 1640206 8005 The requested dimension unit has not been implemented Instead standard conversion factors are used Input parameter Leading axis L
121. opping distance stopDistance and stopping time stopTime is being calculated dependent on the actual line speed and the active dynamics As soon the calculated stopping distance is smaller than the calculated rest length the FB output stop comes TRUE NOTICE The line axis need to be stopped by the user in case stop TRUE With a falling edge at enable all ouput parameters will be reset Version 2 0 0 2015 08 06 131 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 Application description Winding functions SIEMENS Converting Library 5 6 FCRDC Target diameter calculation Calculating the target diameter of a roll Block name FCRDC Task With the input of the parameters the target diameter of a roll can be calculated Integration in the run time system The function can be called in any task Graphic representation of the block REAL webThickness REAL REAL actualDiameter REAL length eWindingMode Type windingMode Block parameters Input parameters Name Data type Initial value Description webThickness REAL 0 0001 LU Material thickness 0 000001 1 actualDiameter REAL 0 0 LU Actual roll diameter length REAL 0 0 LU target length to be wound unwound REWIND _ windingMode a FROM _ Winding mode Winder or unwinder yp ABOVE Output parameters Name Data type Initial value Description FCRDC R
122. p function generator is stopped held and the actual acceleration is ramped down to zero As long as hold is TRUE setpoint x is ignored and output ya is set to zero Version 2 0 0 2015 08 06 34 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application Converting Library Graphic representation of the function Figure 2 6 With rounding off enableRounding TRUE y nominalValue 4 t rampupTime rampdownTime Enable accelerating decelerating setpoint Zero setpoint Reached Version 2 0 0 2015 08 06 35 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application Converting Library Figure 2 7 Without rounding off enableRounding FALSE y nominal Value c gt rampdown t rampupTime Time enable setpoint Zero Version 2 0 0 2015 08 06 36 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application E Converting Library Figure 2 8 With rounding off and Emergency Stop function mode FALSE y nominalValu gt fastRampDownTime fastRampdownTime lt gt t 4 rampupTime rampdownTime 4 e
123. pe Initial value Description sTechnology sTechnology Configuration data of the technology controller Details on Controller Controller this structure are provided in the description of the type Config ConfigType definitions Output parameters Name Data type Initial value Description FALSE The function block is deactivated busy BOOL FALSE TRUE The function block is activated The controller output or the ramped setpoint in case of openLoopCtrl TRUE is not zero FALSE No error BOOL FALSE gei 9o gt TRUE An error has occurred refer to error identification Error identification refer to error messages errorID DWORD 1680000 0000 errorlD lt 164000 8000 warning errorlD gt 1620000 8000 error upperLimReached BOOL FALSE TRUE Output is limited upper limit lowerLimReached BOOL FALSE TRUE Output is limited lower limit RFGLimReached BOOL FALSE TRUE Output ramp function generator has reached the limit 2 10096 RFGSetpoint BOOL FALSE TRUE Setpoint has been reached the ramp function Reached generator output corresponds to the setpoint Z LU 96 Setpoint after the ramp function RFGSetpointValue REAL 0 0 generator outValue REAL 0 0 LU TU or Z controller output after scaling and limiting The units are dependent on the interconnection Note The calculations in this function block are independent of the physical units LU Length unit e g m Z Tension force e g N Version 2 0
124. ponent is activated Pre assignment FALSE Width of the deadband for r32DeadBand IN r32DeadBand REAL 0 0 the deadband is deactivated Pre assignment 0 0 IN star REAL Scaling factor of the actual value quantity Pre assignment 1 0 IN r32ActValueOffset REAL Offset of the actual value quantity Pre assignment 0 0 IN REAL Scaling factor of the output quantity Pre assignment 1 0 IN r32OutValueOffset REAL output quantity Pre assignment 0 0 Version 2 0 0 2015 08 06 80 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Closed loop control functions Converting Library Functionality The function block is used to implement a universal PID controller that can be switched over to the P controller or controller modes The D component can either be calculated in the actual value branch or in the system deviation The integrator can be set using the inputs intSetValue setting value and setintChannel In addition the instantaneous value of the integrator can be held using holdintChannel P controller Internally the component is limited based on the controller output limits anti windup The integrator is set to zero at switch on All of the block parameters can be changed in operation The scaled and smoothed actual value actualValue is subtracted from the setpoint setpoi
125. prior notice If there are any deviations between the recommendations provided in these standard applications and other Siemens publications e g Catalogs then the contents of the other documents have priority Warranty liability and support We do not accept any liability for the information contained in this document Any claims against us based on whatever legal reason resulting from the use of the examples information programs engineering and performance data etc described in this standard application shall be excluded Such an exclusion shall not apply in the case of mandatory liability e g under the German Product Liability Act Produkthaftungsgesetz in case of intent gross negligence or injury of life body or health guarantee for the quality of a product fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract wesentliche Vertragspflichten However claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract unless caused by intent or gross negligence or based on mandatory liability for injury of life body or health The above provisions does not imply a change in the burden of proof to your detriment Copyright 2015 Siemens DT It is not permissible to transfer or copy these standard applications or excerpts of them without first having prior authorization from Siem
126. r is used as closed control loop When switching on the controller with enable TRUE the limits are ramped to 100 using the parameterized ramp up time r32LimRampUpTime The output limit r82UpperLimit and r32LowerLimit is therefore completely effective When switching off enable FALSE the controller limits are ramped back to 096 r32LimRampDownTime to permit bumpless transition into the non controlled mode The controller is deactivated once zero has been reached The times are internally limited to the cycle time Controller function Controller setpoint is provided via the setValue the actual value via the actValue input The setpoint channel includes a settable setpoint ramp function generator via which the setpoint is routed the effective setpoint can be monitored at output RFGSetValue The control algorithm used corresponds to that described in block FBPidController Kp adaptation A linear adaptation is carried out as Kp adaptation The interpolation straight line is defined by the value tuple r32X1 r32Kp1 and r32X2 r32Kp2 1st case adaptionValue r32X1 or r32X1 r32X2 r32EffectiveKp r32Kp1 2nd case r32X1 lt adaptionValue lt r32X2 adaptionValue r32XY r32Kp2 r32Kpl r32EffectiveKp r32Kpl4 r32X2 r32X1 3rd case adaption Value gt r32X2 r32EffectiveKp r32Kp2 r32Kp1 is used as effective Kp if the Kp adaptation is deactivated 2015 08 06 90 143 Copyright Siemens AG
127. re applicable Qualified personnel In the sense of this documentation qualified personnel are those who are knowledgeable and qualified to mount install commission operate and service maintain the products which are to be used He or she must have the appropriate qualifications to carry out these activities e g e Trained and authorized to energize and de energize ground and tag circuits and equipment according to applicable safety standards e Trained or instructed according to the latest safety standards in the care and use of the appropriate safety equipment e Trained in rendering first aid There is no explicit warning information in this documentation However reference is made to warning information and instructions in the Operating Instructions for the particular product Reference regarding export codes AL N ECCN N Version 2 0 0 2015 08 06 4 143 Copyright Siemens AG 2015 All rights reserved g Library V2 0 0 2015 08 06 doc Manual Convertin Si E M E S General Notes User Manual Table of Contents Contents icc eed teer a d e nece on i 5 Application description eene nennen nennen nnne nnn nnne nnn 7 1 Introductionis hi etie datae ted e t de ed eis 7 1 1 Functional Scope 3 5 ioter eere ides 8 1 2 Possible applications nnn 10 1 3 FLAWS t a idet edt 10 14 SOIDWAIGS
128. readDriveParameter _readDriveMultiParameter _writeDriveParameter _writeDriveMultiParameter lt System function gt Function to read write drive parameters _readDriveFaults lt System function gt Reading the actual fault buffer entries of the drive 2015 08 06 9 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Introduction Converting Library 1 2 Possible applications The Converting Library can be used for the widest range of applications e g e Foil machines e Printing machines e Coating machines e Paper finishing machines e Wire drawing machines e Textile machines e Post printing machines 1 3 Hardware The functions of the Converting Library are available for the following hardware platforms e SIMOTION C2xx e SIMOTION D4xx 1 4 Software The following software versions are required to implement the standard functions contained in this library e SIMOTION SCOUT from V4 2 e SIMOTION kernel from V4 2 e SIMOTION technology packages from V4 2 Version 2 0 0 2015 08 06 10 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved g Library V2 0 Manual Convertin SIEMENS Application description Introduction Converting Library 1 5 Data types Enumeration types and structures The
129. rialThickness REAL REAL diameterMeasuring RevCount REAL thicknessMeasuring RevCount Version 2 0 0 2015 08 06 134 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Library Block parameters Input parameters Name enable Data type BOOL Initial value FALSE Description TRUE Block is active A rising edge resets the block and fills the elements of the ring buffer with materialThicknessInitial FALSE Block inactive output materialThickness materialThicknessinitial hold BOOL FALSE TRUE Block does not accept any new values e g if the winder is stopped or the machine velocity is changed newValue BOOL FALSE Rising edge The value in materialThicknessPartial is written into the ring buffer materialThicknessPartial REAL 0 0 Actual material thickness calculated by the diameter calculator materialThicknesslnitial REAL 0 0 Initial value of the material thickness calculation diameterMesuringRevCount REAL 1 0 Number of winder revolutions of the diameter calculation thicknessMeasuringRevCount REAL 1 0 Number of winder revolutions of the material thickness calculation Output parameters Name type nitial value Description FB is active F No error
130. ror messages DWORD 16 0000_0000 errorlD lt 16 000_8000 warning errorlD gt 16 0000 8000 error tensionTaper REAL 1 0 Taper adjustment factor Note In principle the calculations made in this function block are independent of any physical units The input parameter determines the units of the output parameters The internal calculations do not carry out any conversions LU Length units e g m Percentage e g 100 Functionality The tension taper characteristic is used to define with which tension the material should be wound onto the roll as a function of the roll diameter It only makes sense to use the tension taper characteristic while actually winding in order to wind the inner layers tightly For dancer roll controls the tension taper characteristic can be used to reduce the pressure setpoint for the dancer roll support In this case the output of the characteristic must be multiplied with the tension setpoint and made available at the analog output The block is activated using the run input Depending on the mode selected at input tensionTaperMode the tension reduction factor is calculated as a function of the diameter present diamActVal and output in tensionTaper The way in which the reduction factor is processed depends on the mode that has been selected Version 2 0 0 2015 08 06 123 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 20
131. rs Name run Data type BOOL Initial value TRUE Description FALSE function block is deactivated The block sets the output signals to secure values and executes a limitation of the output value diamActVal The limitation is done between sDiamConfid diamMin and sDiamConfig diamMax TRUE function block is activated enable BOOL FALSE FALSE The diameter calculator is deactivated acts like holdDiam TRUE The diameter calculator is activated The calculation mode is assumed and internal stored with a rising edge reset BOOL FALSE TRUE Resets all of the variables in the FB also filter setDiam BOOL FALSE TRUE Sets the diameter to a specified value The value is specified in sDiamConfig diamSetVal holdDiam BOOL FALSE TRUE Holds the actual diameter typeOfWinder eWinding ModeType REWIND_ FROM_ ABOVE Winder type REWIND_FROM_ABOVE REWIND_FROM_BELOW UNWIND_FROM_ABOVE UNWIND_FROM_BELOW Only used with selectDiamMode DIAM_THICKNESS_ADDITION selectDiamMode eDiam ModeType DIAM_ CALC Selects the diameter calculation mode DIAM_CALC V N calculation DIAM_CALC_INTEGRAL Integrating up from the winding speed and web velocity DIAM_CALC_POSITION Measures the position of the winding angle and material web DIAM_THICKNESS_ ADDITION The material thickness is continually added DIAM_EXT The external diameter value is used Can not be ch
132. rtin 0 2015 08 06 doc g Library V2 0 Application description Tools SIEMENS Converting Library 2 4 FBPolygonA FBPolygonB Non linear characteristic This block determines a value from a non linear characteristic that is entered Block name FBPolygonA FBPolygonB Task The function block implements the function of a non linear characteristic by linearly interpolating between two table values entered using the input quantities Integration in the run time system The function block can be called in any task Graphic representation of the block FBPolygonA FBPolygonB ePolygonMode Type UINT BOOL DWORD REAL REAL ARRAY OF REAL abscissaValue ARRAY OF REAL ARRAY OF REAL ordinateValue ARRAY OF REAL ARRAY OF REAL ordinateFactor ARRAY OF REAL Block parameters Input parameters Name Data type Initial value Description The individual weighting is enabled NO POLYGON No Polygon calculation y x mode ePolygonMode Type ORDINATE_ FACTORS_ NEGLECTED ORDINATE_FACTORS_USED Weighting successful interpolated with the product ordinateValue ordinateFactor ORDINATE_FACTORS_NEGLECTED No weighting interpolated with ordinateValue entryNum UINT FBPolygonA Number of grid points 1 LCONLIB_ LCONLIB_MAX_IDX_A 1 21 FBPolygonB Number of grid points 1 LCONLIB_ LCONLIB MAX IDX B 1 181 Version 2 0 0 2015 08 06 21 143 Copyright
133. rtin 0 2015 08 06 doc g Library V2 0 SIEMENS Closec io p control functions Converting Library Warnings Warnings are indicated by the status of the outputs error and errorlD error FALSE and errorlD lt gt 1630000 0000 Description 1640000 0000 No warning Invalid parameter it is internally limited 1640110 4002 derivTime lt integTime Tcycle 2 Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 1640000 0000 No error 1620110 8001 The function block is called in an incorrect task Invalid parameter 16 0110_8005 Er m upperlimit lowerlimit Version 2 0 0 2015 08 06 82 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Signal diagram Fig 4 10 A enable 1 IN reset 1 IN busy 1 QUT o 1 OUT o outValue OUT 1 Case2 Case3 Case4 Case5 Case 6 Case7 8 e Case 1 6 Blocked is switched in with enable TRUE Output busy TRUE outValue is activated e Case 2 7 The error has been detected error TRUE busy FALSE outValue 0 0 up to reset TRUE
134. s Block name FBLIM Task Function block for limiting with settable upper and lower limits If a limit is reached this is displayed Integration in the run time system The function block can be called in any task Graphic representation of the block upperLimit upperLimitReached lowerLimit lowerLimitReached Block parameters Input parameters Name Datatype Initial value Description x REAL 0 0 Input quantity to be limited upperLimit REAL 0 0 Upper limit value lowerLimit REAL 0 0 Lower limit value Output parameters Name Datatype Initial value Description y REAL 0 0 Limited output quantity owerLimit upperLimit FALSE limi h upperLimitReached BOOL TRUE SE Upper limit n t reached TRUE Upper limit reached FALSE Lower limit not reached lowerLimitReached BOOL TRUE TRUE Lower limit reached Version 2 0 0 2015 08 06 67 143 0 0 2015 08 06 doc Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin SI E M E N S Application description Closed loop control functions Converting Library Functionality The function block transfers input quantity x to its output y The input quantity is limited dependent on upperLimit and lowerLimit If the input quantity reaches upper limit upperLimit output upperLimitReached is set to TRUE If the input quantity reaches lower limit value lowerLimit
135. scription Closed loop control functions Converting Library Block parameters Input parameters Name Datatype Initial value Description FALSE Function block is not active run BOOL FALSE TRUE Function block is active and calculates an average value reset BOOL FALSE TRUE Resets the calculation x REAL 0 0 Actual input value sizeOfArray INT 0 Size of the field to save the value 1 50 Output parameters Name Datatype Initial value Description FALSE FB does not calculate any values BOOL FALSE pusy 59 S TRUE FB calculates values averageValue REAL 0 0 Calculated average value maxValueReached BOOL FALSE AOE sizeOfArray Values are in the array Functionality The function block calculates the average value averageValue of several values that are entered and saved Each time the block is called the value x currently present is saved in a field sizeOfArray The larger the field the more the average value moves If the field size is very small changes and fluctuations can be immediately identified in the average value which is present at the output average Value The function block is activated via the input run and calculates values from that instant Similar to that for reset the field size is accepted and the associated field counter is reset The Output maxValueReached is set if sizeOfArray Values are in the array
136. system The function can be called in any task Graphic representation of the block FCDeadBand FCDeadBand REAL REAL REAL bandBorder Block parameters Input parameters Name Datatype Initial value Description X REAL 0 0 Input value that should be checked bandBorder REAL 0 0 Limit value for dead band Output parameters Name Datatype Initial value Description FCDeadBand REAL Checked output value Version 2 0 0 2015 08 06 71 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Closed loop control functions Converting Library Functionality If the input value x is located in the dead band range bandBorder x banaBorder the output value is set to zero However if it is at or below banaBorder at output input bandBorder is output If the input value is at or above bandBorder x bandBorder is set to as output value The dead band symmetrical around the zero point can be set using response value B Algorithm X B for X lt B Y 0 for B lt X lt B X B for X B with the secondary condition B gt 0 For B lt 0 all IN OUTSIN X Input quantity B Response threshold for the dead band Y Output quantity Graphic representation of the function Figure 4 8 Transfer function __ LZ tt
137. the output to a specific value Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO_2 or Timer Graphic representation of the block BOOL REAL REAL setValue REAL smoothingTime eTaskNameType taskMode Block parameters Input parameters Name Data type Initial value Description x REAL 0 0 Input value to be filtered ms Smoothing time SmoothingTime REAL 100 0 Internal limiting in the standard mode at least one cycle time setValue REAL 0 0 Value to be set for 5 TRUE FALSE Normal operation of the filter BOOL FALSE sel oQ 3 TRUE Sets the output to the value SV Version 2 0 0 2015 08 06 54 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Name Data type Initial value Description Specification of the task in which the block is called eTaskName IPO_ SERVO_SYNCHRONOUS_TASK taskMode SYNCHRONOUS _ IPO SYNCHRONOUS TASK TASK IPO SYNCHRONOUS TASK 2 TIMER INTERRUPT TASK Output parameters Name Data type Initial value Description FALSE No error error BOOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorID DWORD 1620000 0000 errorlD lt 16 000 8000
138. the ramp function generator DONTCARE Can integrate in both directions INCREASING Only increasing away from 0 0 DECREASING Only decreasing in direction of 0 0 Version 2 0 0 2015 08 06 98 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Winding functions Converting Library DIAM THICKNESS ADDITION This mode calculates the diameter by continually adding the web thickness that is added or removed from the roll at each sampling time The diameter change is 2 x web thickness h x speed of the mandrel n Starting from an initial diameter the actual diameter value is formed from this change through numerical integration Depending on the winder type e TypeOfWinder the material thickness is either added or subtracted Table 5 3 Parameter list material thickness integration Name Description sDiamConfig Structure for the diameter calculator configuration data Winder type UNWIND FROM ABOVE eTypeOfWinder UNWIND FROM BELOW REWIND FROM ABOVE REWIND FROM BELOW DIAM CALC The diameter is obtained by dividing the web quantity by the angular quantity whereby the following applies y v R a with D m n In order that the associated quantities are divided at the same instant of detection it is also possible to slightly delay the web velocity v and or the winder speed n using a PT1 elem
139. tion in the run time system The function can be called in any task Graphic representation of the block FCScaling REAL REAL REAL maxValue REAL Block parameters Input parameters Name Data type Initial value Description x REAL 0 0 Input value as WORD maxValue REAL 0 0 Maximum value Normalization value REAL 16384 Dase ore FCScaling 0 if base 0 Output parameters Name Data type Initial value Description FCScaling REAL Output value in REAL Functionality This function scales a word value x using a normalization value base and the maximum reference value maxValue FCScaling maxValue base Version 2 0 0 2015 08 06 18 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Tools Converting Library 2 3 FCLinear Linear interpolation Block name FCLinear Task This function interpolates a point from a specified straight line Integration in the run time system The function can be called in any task Graphic representation of the block REAL FCLinear REAL REAL pointX1 REAL pointY 1 REAL pointX2 REAL pointY2 Block parameters Input parameters Name Datatype Initial value Description x REAL 0 0 Input point X pointX1 REAL 0 0 X Coordinate point 1 pointY 1 REAL 0 0 Y Coord
140. tput is limited This results in a bumpless controller shutdown As soon as the outValue output is zero and enable FALSE the block is deactivated and the output busy is set to FALSE The setpoint is internally ramped to the actual value during the switch off phase If the input openLoopCtrl TRUE then the block operates in the open control circuit mode As a consequence the setpoint channel remains active and the controller or the output limits remain inactive The output busy stays TRUE as long as the setpoint ramp output is not zero The input actualValue is 0 0 Version 2 0 0 2015 08 06 89 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Closed loop control functions Converting Library Setpoint ramp The setpoint ramp function generator is used to avoid setpoint steps in the setpoint channel The setpoint ramp function generator is configured using parameter r32SetRampDownTime r32SetRampUpTime and r32SetNominalValue whereby r32SetNominalValue defines the reference value for the ramp up or ramp down time The function is always active if enable TRUE If FALSE enable FALSE and busy TRUE switch off phase then the setpoint is internally set to the actual value The ramp times are internally limited to the cycle time Limit ramp The limit ramp is only active if the technology controlle
141. ts are taken into consideration as follows initialVelocity gt 0 0 lt 0 initialAccel initialAccel initialAccel gt 0 0 lt 0 gt 0 0 lt 0 52 1 0 0 1 0 53 1 1 1 1 0 SD 1 1 1 0 0 54 1 1 1 1 0 Error dependent on initialVelocity and negativeAccelLimit 2015 08 06 41 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application E Converting Library Graphic representation of the function The following diagram shows the motion phases relevant for the calculation starting from a positive initial velocity and acceleration In this example all 4 segments are required for the calculation Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 1640000 0000 No Error 164010F 8005 Invalid input parameter The specification of the input parameter was not maintained as described negativeAccelLimit gt 0 0 positiveAccelEndJerkLimit 0 0 negativeAccelStartJerkLimit 0 0 negativeAccelEndJerkLimit 0 0 initialVelocity lt 0 0 initial Velocity 0 0 and initialAccel lt 0 0 ABS initialAccel gt ABS negativeAccelLimit and initialAccel lt 0 0 If the input parameters lie in a
142. tside the specified limits It is probable that either no diameter has been set or an incorrect diameter has been entered 16420201 4015 The table of entered values is not monotonically steadily increasing gt a matching value is not found if selectDiamMode DIAM EXT 1640201 4018 The table of entered values is not monotonically steadily increasing gt 2 values identical if selectDiamMode DIAM EXT Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE errorlD lt gt 1630000 0000 Description 1630000 0000 No error 1630201 8001 The function block is called in an incorrect task 1640201 8005 One or several configuration data are either not plausible or incorrect r32DiamMin lt 0 0 r32DiamMax lt r32DiamMin r32WebThickness lt 0 0 r32AdjustWebThickness lt 0 0 16 0201_8007 Dimension units are incorrect or are not defined DIAM_CALC_POSITION sDiamConfig r64WindingShaftFeedbackScal lt 0 0 sDiamConfig r64LineFeedbackScal lt 0 0 1640201 8013 The specified number of grid points is too low if selectDiamMode DIAM EXT 1640201 8014 The specified number of grid points is too high if selectDiamMode DIAM EXT Version 2 0 0 2015 08 06 108 143 Application description Winding functions SIEMENS Converting Library Function diagrams ea el O 01 q
143. ucture of the function wi 46080 subsequently described elements DistanceType FALSE No error boError BOOL FALSE TRUE An error has occurred refer to error identification DWORD Error identification refer to error messages b32ErrorID 1620000 0000 b32errorlD lt 1654000 8000 warning b32errorlID gt 1620000 8000 error r82GrossDistance REAL 0 0 Calculated braking distance r3a2GrossTime REAL 0 0 Calculated braking time Data types and structures Name of the structure sRetCalculateDistanceType This structure includes the output parameter of the FCCalculateDistance function Declared in LConLib fConvTools Contents sRetCalculateDistance The following type definition applies Element Data type Description FALSE No error OUT boError BOOL TRUE An error has occurred refer to error identification Error identification refer to error messages OUT b32ErrorlD DWORD b32errorlD lt 168000 8000 warning b32errorlD gt 1620000 8000 error OUT r32GrossDistance REAL The gross needed tor axis stop with given inputs OUT r32GrossTime REAL The gross time need for axis stop Version 2 0 0 2015 08 06 40 143 SI E M E N S Application description Tools Converting Library Functionality Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 The motion profile is sub divided int
144. unction block to calculate the interpolating value y this is determined using the input x For the mode NO POLYGON there is no calculation and the Output Value is the same like the Input Value In mode ORDINATE FACTORS USED the factors in the field ordinateFactors are included in the calculation ordinate Value ordinateFactor For the mode ORDINATE FACTORS NEGLECTED no weighting is applied and only the values from ordinate Value are used A maximum of either 21 default FBPolygonA or 181 default FBPolygonB abscissa grid points are evaluated that are specified to be monotonically steadily increasing from a value perspective using a field abscissaValue i lt abscissaValue i 1 otherwise an error is output and ordinateOutput keeps the last value The values of the two arrays ordinate Value and ordinateFactor correspond to the abscissa via indices 0 lt i lt LCONLIB_MAX_IDX_x 1 This block is available in two versions FBPolygonA with 21 grid points and FBPolygonB with 181 grid points Version 2 0 0 2015 08 06 22 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application Converting Library Graphic representation of the function Figure 2 2 Block diagram ordinateFactors Ordiante Value Factors i Ordinate Values of ordinateValues Polygon Polygon Number of
145. uotient with differential time constant diffTime Smoothing Time defines the gradient of the down ramp of the output quantity This specifies the time after which the transfer function after smoothing and differentiation has dropped to 37 of X diffTime smoothing Time For a sufficiently high smoothing Time TA smoothingTime gt 10 the transfer function corresponds to a characteristic of Y t 2 X diffTime smoothingTime e smoothing Tine mitt n TA The discrete values are calculated using the algorithm diffTime Yl 1 smoothingTime TA YPT YPT 44 Xn YPT 4 smoothing Time YPTn Value of YPT in sampling interval n Yn Value of Y in sampling interval n Xn Value of X in sampling interval n YPTn 1 Value of Y2 in sampling interval n 1 The higher the smoothingTime the lower the amplitude change at Y and at YPT from one sampling instant to the next sampling instant TA is the sampling time in which the function block is processed The higher the diffTime TA the higher the amplitude change at Y from one sampling instant to the next sampling instant DiffTime and smoothingTime are internally limited 0 lt diffTime lt MaxTD TA lt smoothing Time lt MaxT1 Setting function active set TRUE Version 2 0 0 2015 08 06 65 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS
146. valid value range then it is not possible to stop the axis with limited jerk using the specified dynamic parameters Version 2 0 0 2015 08 06 42 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application description Tools Converting Library 2 8 FCEvaluateModulo Calculates the difference between two sampling values of a signal with overflow property Block name FCEvaluateModulo Task The block calculates the difference of an input signal between two calls taking into account the overflow behavior e g to determine the position difference of modulo axes Integration in the run time system The function can be called in any task Graphic representation of the block FCEvaluateModulo FCEvaluateModulo LREAL valueAct LREAL LREAL valueLast LREAL moduloLength Block parameters Input parameters Name Data type Initial value Description valueAct LREAL 0 0 actual sampling value n valueLast LREAL 0 0 previous sampling value 1 modulo length corresponds to POSAXIS activeconfigdata Modulo Length For moduloLength lt 0 0 the calculation is made without modulo correction moduloLength LREAL 0 0 Output parameters Name Data type Initial value Description FCEvaluateModulo LREAL calculated difference Version 2 0
147. ween 0 001 1000 0 Specification of the task in which the block is called eTaskName _ SERVO SYNCHRONOUS TASK taskMode Type SYNCHRONOUS IPO SYNCHRONOUS TASK yp TASK IPO SYNCHRONOUS 2 TIMER INTERRUPT TASK Output parameters Name Data type Initial value Description FALSE It is not calculated b BOOL FALSE pod TRUE FB calculates an Output Value FALSE No error ene ROOL FALSE TRUE An error has occurred refer to error identification Error identification refer to error messages errorlD DWORD 16 0000_0000 errorlD lt 16 000_8000 warning errorlD gt 16 0000_8000 error Setpoint FALSE Setpoint not reached BOOL FALSE Reached TRUE Setpoint reached FALSE Calculated setpoint is not zero tpointZ BOOL FALSE umb TRUE Calculated setpoint is zero Version 2 0 0 2015 08 06 33 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin g Library V2 0 0 2015 08 06 doc SIEMENS Application description Tools Converting Library Name Data type Initial value Description FALSE Is not accelerated lerati BOOL FALSE acce erating S TRUE Is accelerated FALSE Is not decelerated decelerating BOOL FALSE TRUE Is decelerated y REAL 0 0 Calculated output value ya REAL 0 0 1 sec Actual acceleration deceleration Functionality The function block is active with the input run at TRUE and the calculation can be started or stopped with enable Depending on the para
148. wer Limit e Setting value Flexible ramp function generator function e Integrating tracking setpoint x e The ramp function generator output can be set to the initial value load setValue into the supply integrator 0 0 2015 08 06 doc e The ramp function generator output can be increased and decreased integrating Integration in the run time system The function block must be called in a synchronous task Servo IPO IPO 2 or Timer Copyright Siemens AG 2015 All rights reserved E g Library V2 0 Manual Convertin Version 2 0 0 2015 08 06 24 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Tools Converting Library Graphic representation of the block REAL REAL REAL REAL REAL REAL REAL BOOL BOOL BOOL BOOL eTaskNameType Block parameters Input parameters nominalValue upperLimit lowerLimit setValue rampUpTime rampDownTime set followUp increase decrease taskMode BOOL errorlD DWORD REAL ya REAL setpointReached BOOL upperLimitReached BOOL lowerLimitReached BOOL Name Data type Initial value Description x REAL 0 0 Input quantity nominalValue REAL 1 0 Normalization value upperLimit REAL 0 0 Upper limit value lowerLimit REAL 0 0 Lower limit value setValue REAL 0 0
149. when all interfaces are inactive ll And 7 The sequence for activation deactivation is the same for all velocity position additive torque and torque limit interfaces Note For activation of the motion Interface the current values of UserDefaultDynamics are taken and can not be changed later For changing the dynamic values during run without calling the command again it is recommended to raise the userDefaultDynamics and control the dynamic of the axis with plusLimitsOfDynamics minusLimitsOfDynamics Version 2 0 0 2015 08 06 52 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Drive functions Converting Library Errors Error messages are indicated by the status of the outputs error and errorlD error TRUE and errorlD lt gt 1630000 0000 Description 1630000 0000 No error 16420109 810C Error while activating the MotionIn interface with position reference The return value of the command runPositionBasedMotionin is not O 1640109 8105 Error while activating the MotionIn interface with velocity reference The return value of the command _runVelocityBasedMotionin is not 0 16560109 8106 Error while activating the additive torque interface The return value of the command disableAxisAdditiveTorque is not 0 1640109 8107 Error while activating the ne
150. y V2 0 SIEMENS Application description Converting Library 2 2 4 FCScalingWDRL Block name FCScalingWDRL Task This block converts a WORD value into a REAL value Integration in the run time system The function can be called in any task Graphic representation of the block FCScalingWDRL WORD FCScalingWDRL REAL maxValue REAL base Block parameters Input parameters Copyright Siemens AG 2015 All rights reserved Manual Convertin Name Data type Initial value Description x WORD Input value as WORD maxValue REAL Maximum value Normalization value REAL 16384 gase S FCScalingWDRL 0 if base 0 Output parameters Name Data type Initial value Description FCScalingWDRL REAL Output value in REAL 2 maxValue 2 maxValue Functionality This function converts a word value x into a Real value FCScalingWDRL using a normalization value base and the maximum reference value maxValue In so doing the output value is limited between the values 2 maxValue and 2 maxValue FCScaling WDRL maxValue base Version 2 0 0 2015 08 06 17 43 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SI E M E N S Application xard Converting Library 2 2 5 FCScaling Block name FCScaling Task This block scales a real value Integra
151. yright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS P Wincing functions Converting Library 5 8 FBSetUnits Setting conversion factors Block name FBSetUnits Task Sets the internal conversion factors corresponding to the parameterized axis configuration Integration in the run time system The function block can be called in any task Graphic representation of the block FBSetUnits unitLineAxisVelocity eUnitLineAxis BOOL VelocityType eUnitLineAxis unitLineAxisAcceleration DWORD AccelerationType eUnitWinder unitWinderAxisVelocity AxisVelocityType sConversion sConv0 sConversion ConstantsType ConstantsType Block parameters Input parameters The input parameters are used to specify the axis units according to the selected TO parameterization Name Data type Initial value Description Axis configuration of the velocity corresponding to TO lineAxis NOT DEFINED M MIN m min 5 MM MIN mm min unitLineAxis NOT_ M_S m s Velocity Velocity Typa DEFINED MM_S mm s FT_MIN ft min INCH_MIN inch min FT_S ft s INCH_S inch s DEG S PRINT 360 s 1m s Version 2 0 0 2015 08 06 138 143 Copyright Siemens AG 2015 All rights reserved Manual Convertin 0 2015 08 06 doc g Library V2 0 SIEMENS Application description Winding functions Converting Li

Download Pdf Manuals

image

Related Search

Related Contents

Breville 800GRXL Toaster User Manual  Epson Stylus Pro 4880 - Manual del usuario    Phototherapy Unit LED - SN Medical College, Agra    User Manual - Sab Satellite  CoPool - Fraunhofer-Institut für Techno  User Manual - AL-KO  Sentinel User Manual  Piano di sicurezza sezioni 1,2,3  

Copyright © All rights reserved.
Failed to retrieve file