Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- from fc6a import FC6AMaint
- # blink status lED remotely
- #https://github.com/Makerspace-Bangor/fc6a/blob/main/src/fc6a.py
- plc = FC6AMaint("192.168.1.50")
- m = 8010
- try:
- while True:
- plc.write_bit(m, True)
- sleep(1)
- plc.write_bit(m, False)
- sleep(1)
- finally:
- plc.write_bit("8010", False)
- plc.close()
Advertisement
Add Comment
Please, Sign In to add comment