nic00

MrPLC Member
  • Content count

    30
  • Joined

  • Last visited

Posts posted by nic00


  1. Not asking anyone to write it at all, just asking for some advice. As the only way i will learn is doing it by myself Thanks for the help all. Ill tell you how it goes

  2. It may be a simple task for you :), although the exam board state that for a pass only 30 lines of code are needed. Ive coded the water mixing part and im on around 1xx lines. Could you link me to the sample code project as ive checked out the "STL forward pause reverse" but dont understand some of the functions

  3. I have been given a project to do (explained below), this is the first major project ive had to do. So far i have coded the water mixing by using multiple timers and ORB'ing them to create an output on the valves. But im stuck on how to proceed further especially the part on spin cycle - Where if vibration is detected slow forward/reverse kicks in until vibration is not detected and the fast forward cycle continues its timer (does not start again). Any advice on how to go about doing this would be most grateful (Im not asking anyone to do it for me, i just want some advice) Inputs Hot Wash Switch – User selected prior to start Cold Wash Switch – User selected prior to start N.B – Normal Wash will be selected if both or none of the above switches are selected Spin Selection Switch - Machine will spin load after wash and rinse cycle Half Load Selection Switch – Machine will half fill with water Start Switch – Starts cycle Drum Empty Sensor – Indicates water has fully emptied the drum Vibration Sensor – If vibration has occurred during spin cycle only, machine needs to slow forward/reverse until sensor goes off Tub Full Sensor – Machine has reached its full water mark Tub Half Full Sensor – Machine has reached its half water mark Door Sensor – Indicates if the door is open or closed Outputs Slow Forward – Motor is to drive slowly forward Slow Reverse – Motor is to drive slowly in reverse Fast forward Spin – Fast spin @ 1000rpm Door Lock – Locks the door Hot water valve – Allows machine to fill with hot water (supplied at correct temp) Cold water valve – Allows machine to fill with cold water Pump on – Empties water from the machine Wash Timings – • Full Hot Wash – Open hot valve for 64 Seconds • Full Normal Wash – Open hot valve for 48 seconds and cold for 16 seconds • Full Cold Wash – Open cold and hot valve for 32 seconds • Half Hot Wash – Open hot valve for 32 seconds • Half Normal Wash – Open hot valve for 24 seconds and cold for 8 seconds • Half Cold Wash – Open cold and hot valve for 16 seconds Once drum has been filled with water the following cycle can start; • Wash cycle for 3 minutes – alternating between slow forward/reverse • On completion of wash cycle, pump turns on and empties drum • Rinse cycle for 2 minutes - starts filling the drum with water dependent on full/half load and will fill twice, after both fills the drum will be emptied using the pump. • On completion of rinse cycle, drum should be empty • Spin Cycle (If selected) for 2minutes – Spins @ 1000rpm for 2 minutes if vibration sensor activates fast forward cancels and slow forward/reverse activates until sensor goes off, fast forward continues its timer. • Once spin cycles completes, door can unlock nic0