Jump to content
rmoore

Retrieving all Data

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

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...