

from pycomm.ab_comm.slc import Driver as SlcDriver
import logging
import sys, getopt

tag_name0 = sys.argv[1]
tag_value0 = sys.argv[2]
tag_name1 = sys.argv[3]
tag_value1 = sys.argv[4]

c = SlcDriver()
if c.open('192.168.0.232'):
    	try:
        	c.write_tag(tag_name0, int(tag_value0))
        	c.write_tag(tag_name1, int(tag_value1))
		print c.read_tag('T4:2.PRE')
		print c.read_tag('T4:3.PRE')
		print c.read_tag('T4:5.PRE')
		print c.read_tag('F8:100')
		print c.read_tag('F8:101')
		print c.read_tag('B3:35/0')
    	except Exception as e:
        	print e
        	pass
c.close()


176e6cdb70c3f9d345bbb153c3a49583ea6f737d


from pycomm.ab_comm.slc import Driver as SlcDriver
import logging
import sys, getopt

tag_name0 = sys.argv[1]
tag_value0 = sys.argv[2]
tag_name1 = sys.argv[3]
tag_value1 = sys.argv[4]

c = SlcDriver()
if c.open('192.168.0.232'):
    	try:
        	c.write_tag(tag_name0, int(tag_value0))
        	c.write_tag(tag_name1, int(tag_value1))
		print c.read_tag('T4:2.PRE')
		print c.read_tag('T4:3.PRE')
		print c.read_tag('T4:5.PRE')
		print c.read_tag('F8:100')
		print c.read_tag('F8:101')
		print c.read_tag('B3:35/0')
    	except Exception as e:
        	print e
        	pass
c.close()

