reteP Posted August 1, 2013 Report Share Posted August 1, 2013 Hi Lava's, I have an application with pneumatic cylinders. I want used LVOOP, because in the future it will better for reuse code. Each cylinder has 2 sensor and 1 pneumatic valve. Sometimes has 1 or 2< sensors but now i need solve standard construction. Class cylinder has attributes: - origin enum(byDef, bySen) specifies how to init (by default or by sensors) - default (bool) default position cylinder - direction (bool) direction of movement - actual (bool) actual position of cylinder - timelimit (num I32) time to carry out - timeout (bool) time has elapsed - retry (bool) allow retry if was timeout and methods: Create() Destroy() Init() CheckPosition() Move() Retry() I need help with implementation state machine in to class. cylinder_state.pdf class.ZIP Quote Link to comment
reteP Posted August 5, 2013 Author Report Share Posted August 5, 2013 No body help me ???? Quote Link to comment
JamesMc86 Posted August 5, 2013 Report Share Posted August 5, 2013 It is a little unclear what you need. The state diagram you attached appears to just correspond to the different methods in the class. What exactly are you struggling with? Quote Link to comment
reteP Posted August 6, 2013 Author Report Share Posted August 6, 2013 Hi James, I want create universal class for control pneumatic cylinder. My app has 5 cylinder they are work in seqvence. For exaple: i tell in my app "closs gate" and i must chcek position, if is good - move the cylinder, if is not good then chceck time if is timeout and allow retry - execute RETRY and then chceck position. Position corect - move a cylinder to desired position. Seqvence cylinder: Check position -> Move -> Check position then cylinder report task done and app go to the next STATE in state machine. I have methods for this steps and i dont know how to implement in my app. My app has 2 controlls section ( pneumatic & hydraulic ) pneumatic cylinder manipul with part in machine and hydraulic testing this part. PS: so sorry for my english (: HY72100.00_RVS pracovisko kpl..PDF Quote Link to comment
reteP Posted August 7, 2013 Author Report Share Posted August 7, 2013 Hier is UML diagram. Class hierarchy.pdf Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.