Entering timer values

L

Thread Starter

Luiz Rodriguez

How does one enter preset timer values from an operator input field using the Siemens TOUCH PANEL 170B?
I am using the Siemens PLC 315.
My application requires the opertor to enter different cycle times from the Touch Panel.
 
S

Sharad Maheshwari

Dear Pal,

You could create a TAG directly as TIMER with the free timers available in the CPU in your case CPU 315 from ( T 0 .... T 127).

If you are using data blocks then just take a help on STEP7. It will tell you the timer structure for various time range options. Using this you could key in any value in the OP and in the PLC adjust the value to the TIMER structure. Easy to do. This option gives you infinte number of TIMERS in the PLC system. You could configure the standard Clock of the PLC system in the PLC hardware which gives you variuos clock pulses option. Using this the time could be accumulated.

Regards
Sharad Maheshwari
e-mail: [email protected]
 
C

Chris Jansen

-> Define timer value as integer in TP170.
e.g. DB30.DBW10. Set upper limit of input
field to 999. Set lower limit to 1.
-> In S7:
L DB30.DBW10
ITB // Integer to Binary
L W#16#2000 // Bit Unit = Sec *
OW
SE T 110
U T 110


* L W#16#1000 // Bit Unit = 1/10 Sec

Best regards

Chris Jansen
www.jansen-automation.be
 
Forget timers!!!!!!

Use a Counter that counts up or down every Second.
I love the Siemens Stuff but their timers are the worst.

PLCLOGIC
 
Top