Hi All,
I'm fresh to PLC programming with a Java/C++ background. I'm using S7 SCL to write software to communicate with a large number of wireless sensors through a serial transceiver connected to an S7-300 PLC.
The wireless sensors are slow. I need to create pauses (0.5 - 1.0 seconds) in the program flow between attempts to query them. In other languages, I would typically just be able to tell the program to "wait(1000)" in a loop. Not so here.
I tried to use an S5 timer in conjunction with a "while" loop to create the desired effect, however, this overruns the acceptable scan cycle time.
What's the best way to tackle this?
Thanks!
- theNoob
I'm fresh to PLC programming with a Java/C++ background. I'm using S7 SCL to write software to communicate with a large number of wireless sensors through a serial transceiver connected to an S7-300 PLC.
The wireless sensors are slow. I need to create pauses (0.5 - 1.0 seconds) in the program flow between attempts to query them. In other languages, I would typically just be able to tell the program to "wait(1000)" in a loop. Not so here.
I tried to use an S5 timer in conjunction with a "while" loop to create the desired effect, however, this overruns the acceptable scan cycle time.
What's the best way to tackle this?
Thanks!
- theNoob