1. ISE 716 Prafulla Kumar Shahi
Semester Project Phase I 16-Apr-15
List of input/output parameters and internal relays/timers:
Parameter Address
Input
Emergency Stop Local 2:I Data[1].0
Start Local 2:I Data[1].1
Door Local 2:I Data[1].2
Flip-table Local 2:I Data[1].3
Present in shower Local 2:I Data[1].4
Dropping door Local 2:I Data[1].5
Reset Local 2:I Data[1].6
Output
Springing Process X1 Local 2:O Data[0].0
T-Shirt removing process X2 Local 2:O Data[0].1
Trouser removing process X3Local 2:O Data[0].2
Shower ready process X4 Local 2:O Data[0].3
Triumphant Music play X5 Local 2:O Data[0].4
Trouser dressing process X6 Local 2:O Data[0].5
Body Flipping process X7 Local 2:O Data[0].6
T-Shirt dressing process X8 Local 2:O Data[0].7
Emergency Stop Light Local 2:O Data[0].8
Reset Whole System Light Local 2:O Data[0].9
Internal relays Name
Present_shower_relay
Reset_PB_relay
Start_PB_relay
Flip_table_relay
ESRelay
Dropping_door_relay
Door_relay
Timers Name Time (ms)
Door timer Door_timer 1000
Flip table Flip_table 1000
Shower time Shower_ready 15000
Completion of shower Triumphant_music 3000
Dressing trouser Trouser_dressing 1000
Body flipping (internal timer)Body_flipping 1000
Dressing T-shirt Tshirt_dressing 3000
Counter Max count
Count 5
2. ISE 716 Prafulla Kumar Shahi
Semester Project Phase I 16-Apr-15
Objective:
To develop the ladder logic diagram for Calvin’s Automation machine.
NOTE: Logic of push-button and trigger inputs:
- Since the Start and Reset buttons are push-buttons, I have used internal relays to simulate a push-button.
This would mean that the buttons have to go off and come on again in order for the input to be registered
again. In some rungs, I have used a 0-1 transition to give an output of 1, for example in rung 10. In some
rungs I have used a 0-1 transition to give an output of 0, for example in rung 16.
- The other inputs in the system are mostly trigger inputs, similar to a push-button. I have used a similar logic
to simulate their inputs. Again, the buttons have to go off and come on again in order for the inputs to be
registered again.
Assumptions and operational Logic:
- I have made a few changes to the logic in order for the simulation to run a little more smoothly.
- At each step as the actuator goes ON, the previous step actuator goes OFF. Similarly, as the timer for each
step finishes, the output for that step goes OFF.
- As Calvin comes out of the trouser removal process, he has to actually move to the shower for the shower
ready process X4 (output 3) to start. For this, there are two different methods, one is to have an open loop
feedback where a timer will trigger the next event. Another method is to have a closed loop feedback where
the next position is sensed by an additional sensor which triggers the next event. I have added a sensor
“Present in Shower” (input 4), which when turned on, serves as a trigger input for the Shower ready process.
It also turns OFF the previous “Trouser removal process” (output 2).
- Similarly, I have added a timer of 1000 ms in the “Body Flipping process” as an open feedback of the position.
After 1000 ms, I have assumed that the machine will have flipped Calvin to the desired new position. This
timer serves a trigger input for the T-Shirt dressing process. It also switches OFF the previous “Trouser
dressing” process.
- Below I have highlighted the series of steps:
1. Initially give the start at input 1. Springing process X1 (output 0) starts.
2. Then give the Door Y1 at input 2. 1 second later t-shirt removing process (output 1) comes ON.
Output 0 goes OFF.
3. Then give the flip-table Y2 at input 3. 1 second later trouser removing process (output 2) comes ON.
Output 1 goes OFF.
4. Then give the Present in shower at input 4. The shower ready process (output 3) comes ON for 15
sec. Output 2 goes OFF.
5. After this the triumphant music plays (output 4) for 3 sec and output 3 goes OFF.
6. Then give the dropping-door at input 5. The trouser dressing process (output 5) comes ON. Output 4
goes OFF.
7. One second later body flipping process output 6 comes ON and the output 5 goes OFF. After 1 sec,
the process is completed and the output 6 goes OFF.
8. After this, the T-shirt dressing process (output 7) comes ON for 3 sec and then goes OFF. The counter
then increments by 1.
- At any time, if the Emergency stop (input 0) is pressed, the Emergency Stop light 8 comes ON and all processes
are stopped.
- If the counter reaches 5, the output light 9 comes ON asking to reset the system.
- Anytime the Reset button (input 6) is pressed, all processes come to their default initial position, i.e. stopped
position and all timers and counters get reset. The emergency light, if ON, goes OFF.
3. ISE 716 Prafulla Kumar Shahi
Semester Project Phase I 16-Apr-15
- As Emergency stop is no longer ON after Reset button is pressed, I have used the Emergency stop like a virtual
push-button. It may not be so in its physical application. To stop the system again in Emergency stop mode,
press the Emergency stop button (input 0) so as to bring a 0-1 transition of input 0.
- To start the system after one run or after pressing the Reset button, press the Start button (input 1) so as to
bring a 0-1 transition of input 1.
- All inputs have to be transitioned from 0-1 in order to be trigger their following events.
Running the ladder logic:
1. The Emulator is to be placed in Slot 1.
2. 1756-MODULE simulator_card is to be placed in Slot 2.
3. On starting simulation in test mode, all lights are off. Press the Start button to start the simulation and apply
different inputs depending on the situation to get different outputs.
4. Press the Emergency Stop to stop all processes and reset button to remove the emergency stop.