cpppo icon indicating copy to clipboard operation
cpppo copied to clipboard

Can we have a simple example of writing a single register to a ControlLogix please

Open xxBXSD opened this issue 4 years ago • 0 comments

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

xxBXSD avatar Jun 06 '21 04:06 xxBXSD