You are on page 1of 7

B02-Apoorva Pardhi Experiment no:12

SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,


NAGPUR 2021-22

ENP-255-2 MECHATRONICS LAB REPORT

NAME: APOORVA PARDHI


SECTION: B
ROLL NO: 2
SEMESTER: Vth
BRANCH: ELECTRONICS

EXPERIMENT – 12
B02-Apoorva Pardhi Experiment no:12

EXPERIMENT - 4
AIM: Development of logic of subroutine ladder logic
SOFTWARE USED: LogixPro
Subroutines improve Ladder Logic code re-usability and readability. They do this by allowing you to
break apart your code into manageable pieces. Subroutines can then be used multiple times inside a
program and easily brought into new programs.
Subroutines act as a separate Ladder Logic that can be called whenever needed. Many times you’ll
need to provide it data from the calling routine. To do this, you setup input Tags for the Subroutine
that will receive data from the Calling Routine. Wherever you call the Subroutine you match up the
Tags you want to pass from the Calling Routine to the Tags in the Subroutine that will receive the
data.

LIST OF INPUT/OUTPUT /MEMORY:


Main Ladder:
Sr. No Address Function Input/Output
1 I:1/1 Start Input
2 I:1/0 Stop Input
3 B3:0/0 Cycle Output
4 C5:0/DN Counter Output
5 T4:0/DN Timer Output
6 U3 JSR Output
7 U4 JSR Output
8 U5 JSR Output
Subroutine 3:
Sr.No: Address Function I/O
1 U3 SBR Input
2 I:1/2 NO Switch Input
3 C5:0 CTU Input
4 I:1/3 NC Switch Input
5 O:2/1 Conv Output
6 U3 RET Input
Subroutine 4:
Sr.No: Address Function I/O
1 U4 SBR Input
2 U4 RET Input
3 C5: 0.ACC TOD Input
Subroutine 5:
Sr.No: Address Function I/O
1 U5 SBR Input
2 C5:0/DN NO Input
3 T4:0 TON Input
4 T4:0/DN NO Input
5 U5 RET Input
B02-Apoorva Pardhi Experiment no:12

Ladder Logic:
B02-Apoorva Pardhi Experiment no:12

Ladder description
RUNG 000: In this rung we attached two NO switches and one NC switch and one
OUTPUT coil
RUNG 001: In this rung we attached one NO switch and one JSR instruction
RUNG 002: In this rung we attached one NO switch and one JSR instruction
RUNG 003: In this rung we attached one NO switch and one JSR instruction
RUNG 004: In this rung we attached one NO switches and one REST for counter
RUNG 005: In this rung we attached one NO switches and one REST for counter
B02-Apoorva Pardhi Experiment no:12

Results;
B02-Apoorva Pardhi Experiment no:12
B02-Apoorva Pardhi Experiment no:12

Conclusion :
Successfully implemented program wherein we used 3 different subroutine for 3 different tasks

You might also like