Hamad Bin Khalifa University
Run with:
@app.route('/api/plc/var', methods=['GET']) def get_var(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) value = loop.run_until_complete(read_plc_var()) return jsonify({"value": value}) codesys virtual control for linux sl
if == ' main ': app.run(host='0.0.0.0', port=5000) Run with: @app
Run with:
@app.route('/api/plc/var', methods=['GET']) def get_var(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) value = loop.run_until_complete(read_plc_var()) return jsonify({"value": value})
if == ' main ': app.run(host='0.0.0.0', port=5000)
Copyright ©2025 All rights reserved to Hamad Bin Khalifa University.