Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- import snap7
- from snap7.util import *
- import struct
- plc = snap7.client.Client()
- plc.connect("172.19.9.180",0,0)
- x = 0
- area = 0x84
- start = x
- length = 8
- bit = 0
- while x < len(700)
- byte = plc.read_area(area,32,x[0],length)
- print "Test: ", get_real(byte,bit)
- x+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement