Jump to content

Retrieving all Data


rmoore

Recommended Posts

I am wondering if it is possible to load all of the current values for all analog and digital inputs from a PLC. I have successfully connected to a PLC using:

PLC plc = PLCFactory.GetPLC(ethernet, 0);
 

Is there an easy way to use this PLC object to retrieve all values, or do I need to specifically know information (Address, etc) of each value I would like to read. If I do need to read them individually, how do I determine these parameters?

Thanks in advance

 

Link to comment
Share on other sites

If you only want to read the inputs and the outputs, then you can use the ReadWrite method of the PLC, and send a ReadWriteRequest array with 2 items, one of the inputs and one for the outputs.

In each of them just write address 0, and the total length of the inputs and outputs of the used PLC model.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Confirm to continue.