changeset 3812 | 92e528718733 |
parent 3775 | 5780e7c13fd8 |
3811:fcd2826f5c9e | 3812:92e528718733 |
---|---|
115 |
115 |
116 if session.keep: |
116 if session.keep: |
117 click.echo("Press Ctrl+C to quit") |
117 click.echo("Press Ctrl+C to quit") |
118 try: |
118 try: |
119 while True: |
119 while True: |
120 time.sleep(1) |
120 session.controller.UpdateMethodsFromPLCStatus() |
121 time.sleep(0.5) |
|
121 except KeyboardInterrupt: |
122 except KeyboardInterrupt: |
122 pass |
123 pass |
123 |
124 |
124 session.controller.finish() |
125 session.controller.finish() |
125 |
126 |