You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,
i am using python 3.7.2 and trying to read some tag from micrologix 1400 PLC, now when i am trying to execute below code i am getting error as "from scanlist import Scanlist
ModuleNotFoundError: No module named 'scanlist'"
import time
from pycomm_scanlist import Scanlist
def handle_tag_change(sender, eargs=None):
"""Handle a tag value change."""
print("{} CHANGED FROM {} TO {}".format(sender.tag_name, sender.last_value, sender.value))
Hi ,
i am using python 3.7.2 and trying to read some tag from micrologix 1400 PLC, now when i am trying to execute below code i am getting error as "from scanlist import Scanlist
ModuleNotFoundError: No module named 'scanlist'"
import time
from pycomm_scanlist import Scanlist
def handle_tag_change(sender, eargs=None):
"""Handle a tag value change."""
print("{} CHANGED FROM {} TO {}".format(sender.tag_name, sender.last_value, sender.value))
micro_scan_list = Scanlist("192.168.0.5", plc_type="Micro1400", change_handler=handle_tag_change)
micro_scan_list.add("ST11:0")
micro_scan_list.add("ST11:1")
micro_scan_list.add("ST11:2")
micro_scan_list.add("ST11:3")
micro_scan_list.print_tag_names()
while True:
micro_scan_list.scan()
time.sleep(5)
can someone help on this please?
The text was updated successfully, but these errors were encountered: