Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xxBXSD opened this issue Jun 6, 2021 · 0 comments

Comments

@xxBXSD
Copy link

xxBXSD commented Jun 6, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant