Jump to content

Recommended Posts

Posted
if any one can help?? im busy with a project the requires me to use a flow meter(15-300l/min,4-20ma) im controlling a hydraulic cylinder and it has a flow meter on the forward action i have 4-20mA FX3U-4AD-ADP Analog Card i have to move the hydraulic cylinder when it stops it must save the data value and them when i move the hydraulic cylinder it needs to add to the Saved Data and then if stopped it needs to save the data again im not sure on how to store and retrieve the data
Posted
Probably the best way is to use an index register (depending on what plc you are using V or Z) and increment the register number each time you need to take a reading.
Posted
You need a time reference to store the data, like once a second while it's running and then somewhere to move it to when finished. Index registers are fine or you could use an array to store the data and increment the array position once a second whilst the cylinder is moving using the incremented second counter as the array position. That way the last populated position in the array is your overall runtime and the division number for average flow rate, just dimension the array larger than your longest cycle time!

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.   Restore formatting

  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...