LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet IP & events

Solved!
Go to solution

I am communicating with a PLC using ethernet IP. Currently I am using poling within the time out event to read the PLC tags but would like to set up an event to respond to a change in a tag value automatically. Does anyone know how to do this?

 

 

0 Kudos
Message 1 of 3
(3,387 Views)
Solution
Accepted by topic author SimonAldred

Unfortunately, you have to keep polling the PLC since the library does not do that for you.  What I recommend is to use another loop for the Ethernet/IP communications and send a User Event when a value changes to let your main loop know.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,350 Views)

Thanks for the advice. I'll give a go.

0 Kudos
Message 3 of 3
(3,342 Views)