cpppo
cpppo copied to clipboard
Can we have a simple example of writing a single register to a ControlLogix please
Hi, I am using the following code to read data from a CLX PLC, But I can't find a simple example to write data! I have found many complicated examples of writing multiple items with confusing code that I can't understand! I just need to write a value of 1 to a BOOL. Please Please HELP?
Python3.7
def Read_EIP(t_name, ethip_port): portLink = "route_path = [{'link':1,'port':0}]" # Open the communications port source = proxy(ethip_port) for read_data in source.read(t_name, portLink): # Read the data rd = read_data
return rd