This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

one question - time relay

Other Parts Discussed in Thread: TINA-TI

I would like to use a time relay in a simple wiring with a jailer. Which element I must take for this out of the library and where I then adjust the hold time. Many thanks already now.

  • Reinhard,

           There are two methods that could be employed:

              1. time-controlled swithces could be used.

              2. "regular" voltage controlled switch controlled by a pulsed source.

     In TINA you can find the switches under the "swithces" menu look for the "time controlled switch". This switch has the following parameters:

            DC state = initial state of the switch, ON or OFF

            assuming an "OFF" DC state:

            ton = time where the switch closes

            toff = time where the switch opens

            Periodic = YES/NO wheter or not you want the switch to repeat the programmed behavior

            Period = time at where the swith repeats the cycle

    Ok, now in a real example. Say you are planning to run a simulation for 10 ms and during this time you want the switch to be initially open,DC state = OFF, then you want the switch to close at t = 2 ms, ton = 2 ms, and reopen at t = 3 ms, toff = 3 ms. Now comes the tricky part, if you want the switch to restart the cycle at t = 5 ms then, assuming you selected periodic = YES, the period = 3 ms: ton + period = 5 ms.

    If time-controlled switches are not available or for more flexibility with the on/off times of the switches, the second approach could be used. It is worth mentioning that the second approach will work in TINA and PSPICE.

    Ok so the switch can be found in the analog libray in pspice under "S" or in TINA under the switch menu and the source is a pulse wise linear source VPWL.  I have attached an example file in TINA describing both methods. Should you have further questions feel free to re-post

     

    Hope this helps,

    -Marcos

     

    time_ctrl_sw.TSC
  • Dear Mr. Marcos,

    Thank you very much for your great information.

    Kindly asking, can we run the voltage controlled switch using a pulse of the following nature:

    On: 2 seconds

    Off: 20 seconds.

    I attached the circuit I am working on and the output is zero.

    Also, regarding the time controlled switch, when goes off, the input terminal of the switch can be considered floating or connected to the ground?

     

    Please help me with these cases...

    Yours truly,

    Mahir


     


     


     

     

  • Mahir,

            It si possible to generate a pulse that has the behavior you described above. The voltage source you want to use is a PWL or piece-wise-linear source where you input time,voltage pairs to generate your desired waveform. Please find attached an schematic containing such a source.

            2. As far as I know, once the switch goes off, the simulator places a resistor of value ROFF between the two terminals.

    I hope this answer your questions. Feel free to reply if you have any more questions.

    -Marcos

    pulsed.TSC
  • Dear Mr. Marcos,

    Thank you for your nice response. Unfortunately, the file is downloaded, but not opened by TINA-TI, So, please, check it for me.

    Also, i am trying to run a voltage-controlled switch on the pulse mentioned previously, and adjusted the switch to the setting attached below, but also the output is zero, So please, can you clarify for me how the setting of the voltage-controlled  switch should be?

    Thanks in advance.

    Mahir

     

  • Mahir,

            What version of TINA-TI are you using? There is a new one available http://focus.ti.com/docs/toolsw/folders/print/tina-ti.html and you should be able to open the schematic there. I had the a problem when trying to open the file in TINA-TI 7. Going back to your circuit, I think you can generate the pulse with a voltage generator as follows

    To adjust the rise, fall times you can change T1 and T2 respectively. V1 and V2 adjust the swing of the signal so you need to adjust those parameters depending on your requirements. For instance if you set up the signal to swing from 0 to 5 i.e. V1 = 5, V2 = 0 you will be able to drive the switch you described above just fine. Also it might be a good idea to have a pull-up network in series with the switch so that when the switch is OFF the voltage at VM1 is pulled up to a defined value, you can acheive this by connecting a say 10G resitor to a battery inseries with the switch. Hope this helps.

    Regards,

    -Marcos