Hello|
Can anyone kindly tell me how can I have a time for only 0.13MS?
Thanks
Sorry for my later reply, I was out on the road since my post.Does your relay and output have that tight of a resolution?
ThanksThe scantime of the PLC will most likley be higher than 1ms so even If your timer value is smaller the output will be on for longer. If you want some kind of pulse modulation you can buy a special card for this. https://mall.industry.siemens.com/mall/en/WW/Catalog/Product/6ES7138-6CG00-0BA0
ThanksTimers are not really 'timers'. They are delays of the amount you specify plus the time it takes to get around to processing the 'timer' block. 'Timers' will lose time.
If you want to be more precise then use a system clock with sub millisecond resolution.
Interrupts would be better because they don't lose time but that doesn't mean interrupts happen at regular intervals. The interrupts may be off when it is time for an interrupt so the interrupt will be delayed until interrupts are turned back on.
When the relay closes, I get ACII code for 'space' key . As if you've pressed the space bar on a querty keyboard. But because the duration is too long, I get around 16 spaces instead of just one.I don't think you have a cat in hells chance with achieving that with that plc.
The relay is hard wired to the pcb taken from a QUERTY keyboard. When the relay closes, it triggers an ASCII code out via the USB of the pcb, which in turn is connected to a laptop with a software that responds to the said code and does what it is mapped to do when it gets this ASCII code. So in fact the relay does what a human finger does when it presses on a certain QUERTY keyboard.The typical DC relay operates in the 10 ms region. Same goes for SSR relays and contactors.
The regular 24V outputs on an S7-1200 operates within 50 µs to turn on and 200 µs to turn off, but how the make the program actually do that ?
As like others have said, the S7-1200 do not have timers for less than 1 ms. You can add a cyclic interrupts with OB35, but the lowest time setting is 1 ms.
And what is it that must be turned on for 0.13 ms ?
Tell us more about your application, and we can help you better.