Preet

MrPLC Member
  • Content count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Preet

  • Rank
    Sparky

Profile Information

  • Country India
  1. This is what I got from ABB Control Builder Help file about RS flip flop: How to Use the Function Block The RS bistable flip-flop, is a latch where the R1 input dominates. If the Set and R1 signals are both True, the output Q1 is False. Specified in the IEC 61131 standard This is what I got from S7 Help file about RS flip flop: Description The Reset_Set Flip Flop instruction executes instructions such as Set (S) or Reset ® only when the RLO is 1. An RLO of 0 does not affect these instructions, the address specified in the instruction is not changed. Reset_Set Flip Flop is reset when the signal state at input R is 1 and the signal state at input S is 0. If input R is 0 and input S is 1, the flip flop is set. If the RLO at both inputs is 1, the flip flop is set. The Reset_Set Flip Flop instruction is affected by the Master Control Relay (MCR). For more detailed information about how the MCR functions, refer to MCR on/off. I guess both the explanations are different from each other.Can anyone tell me the exact definition of RS block according to IEC standards. Thanks Preet
  2. Hi All, I have created structured data types for my application because this gives a clear explanation of the variables used.For this I have lot of UDTs in my program.I have tried to create a FB in SCL.But the compiler doesn't allow this.The declared variable already exists in symbol table also and I have defined the structured variable in the IN_OUT field.But still the complier is not able to identify this variable.I will paste a part of my code and the error which is coming. FUNCTION_BLOCK FB600 VAR_IN_OUT CSData:CSData; END_VAR CS.Par.DiaBlade := 380.0; (* [mm] Actual blade diameter *) CS.Par.DiaCorr := 32.54; (* [mm] Reduction to blade diameter = (Blade overlap) + (Material Dimension) *) CS.Par.NMax := 980.0; (* [rpm] Max motor speed *) CS.Par.TorqNom := 2467.8; (* [Nm] Nominal motor torque *) CS.Par.GearRatio := 1.0; (* Gear ratio (Motor speed / output speed) *) CS.Par.JTot := 15.2; (* [Kgm2] Total inertia including motor *) END_FUNCTION_BLOCK The red colour ones are my structured variable. Can anybody throw a light on this. Thanx Preet
  3. RS flip Flop declaration in SCL

    Hi All, I have to use RS flip flop in my SCL code.Can anyone tell me how to declare that....or the syntax to use it. Thnx Preet
  4. Hi, For a boolean logic e.g. AND gate, editor allows to expand the input pins to n numbers.But the Floating Point Functions like ADD,MUL etc doesn't allow to expand the IN pins.Does S7 not at all supports expandible parameter concept ? In ABB control Builder , such blocks are available. Can anyone throw light on this . Thanx in advance. Preet
  5. Acceleration time mm/s2 ?

    Are you asking what does [mm/s2 ] means ?? or the setting in FM ?
  6. SCL Compiled code

    Hello All, I have created an FB the code of which is written in SCL.After compilation, I got the FB but the simulation is not as per my requirement.When I try to monitor the SCL code, all I can see is the STL version of the SCL code which is very difficult for me to read as I am not accustomed for it.Is there any other way of monitoring it? Does the SCL source after compilation get automatically stored as STL for monitoring? Plz let me know Thanx in advance Preet
  7. Scan Cycle Monitoring

    Hi Jesper, Thanks for replying.But #OB1_SCAN_1 is a byte.How to go ahead wid comparison.This will sound very basic .But I am new to S7. Preet
  8. SCL Source file : How to call "R_Trig "

    Hi, Thanks for replying.I do agree with you.It really sucks to write code in SCL even for complex logics coz debugging is really horrible. Nywayz I made a FB for R_Trig and wrote the code in SCL Q :=NOT(Old_Clk) AND Clk ; Old_Clk:= Clk; Nyhow it is working.But yeah better to avoid that . Thanks Preet
  9. Scan Cycle Monitoring

    Hi all, Is there any FB/FC to monitor the scan time.Actually my application needs a variable which is set initially "1 "and then in the next scan cycle it has to be made "0".Means only for the first scan I need the execution. Thanks in advance Preet
  10. More STL conversion problems

    SD T1 is which type of timer ? or if it is something else.Plz clarify. Preet
  11. Hi, I am writing a SCL Source file for a FB.Actually I need to use a R_Trig(Rising edge trigger).But I don't know how to call it in SCL source file and use it.Will somebody help me. Thanks in advance Preet
  12. All blocks and hardware configuration disappear

    Hi, Normally copying a project from a machine and putting in a diff machine e.g. ur notebook is just a normal coying operation.The only thing is the location where u r putting the project n the browsing path while opening the project from S7 Editor. Please check again if you have done that correctly. Preet
  13. Import WinCC graphics

    Hi, You can copy all the graphics from the location : C:\Program Files\Siemes\WinCC\WinCCProjects\Project1\GraCS and paste it to C:\Program Files\Siemes\WinCC\WinCCProjects\Project2\GraCS I think this will solve your problem. Preet