際際滷

際際滷Share a Scribd company logo
HONEYWELL
(ML-50 PLC)
LADDER LOGIC PROGRAMMING ON SOFTMASTER
SHIVAM SINGH
+91-9971457422
shivamsingh0807@gmail.com
Facebook: https://www.facebook.com/shivishrinet
LinkedIn: https://www.linkedin.com/in/shivam-singh-46675439
際際滷share: /ShivamSingh59
SHIVAM SINGH (+91-9971457422) Page | 1
CREATING NEW PROJECT IN SOFTMASTER
 Open SoftMaster and a window will open like shown below.
 Click on Project and select New Project. A window will open like shown below.
 Write the name of your project in Project Name.
 Select ML-50 in PLC Series.
SHIVAM SINGH (+91-9971457422) Page | 2
 Select CPU type as MLM-XBMS if you are working with a modular PLC and
Select CPU type as MLM-XBCH if you are working with compact PLC.
 Select OK and a window will open like shown below.
 This is the project window for ladder logic programming.
HOW TO USE NO, NC AND COIL
 First select a NO, place it at input side and you will get a window like shown below.
 Provide a variable name to it and then click OK. You will get a screen.
SHIVAM SINGH (+91-9971457422) Page | 3
 Give it a physical address like P0000
 Now select a Coil, place it at output side, provide variable name and give physical
address P0020.
 Using above steps, lets create a simple program using a NO and Coil that looks
something like shown below.
 To write a comment double click on the leftmost cell.
 To tell the softmaster where your programming is finished put End Statement at the
end of the program. For that click on F10 that will open a window like shown below.
 Now type END at the instruction and then OK.
SHIVAM SINGH (+91-9971457422) Page | 4
 Now move to Tools and select Start Simulator to check your program.
 We normally use Simulator when we are not working online i.e. with actual PLC and
want to check our program.
 Similarly we can use NC also, that works exactly opposite to NO.
HOW TO CREATE LOGIC GATES USING LADDER LOGIC
 Below shown are the logics for all the logic gates.
SHIVAM SINGH (+91-9971457422) Page | 5
HOW TO CREATE PROGRAM FOR HOLDING & INTERLOCKING
 Below is the programming for holding & interlocking.
 Interlocking is also of two types: Input Interlocking if you are using an input for
interlocking and Output Interlocking if you are using an output for interlocking.
HOW TO USE MEMORY ADDRESSES IN PROGRAMMING
 We use memory addresses in our programming when number of physical addresses
available to us are less than we need for programming.
 Lets create a program for PUSH BUTTON AS TOGGLE SWITCH i.e. when you
press the push button for first time, the output will ON and when press the same push
button again, the output will OFF. Since you have only 2 physical addresses, one for
input and other for output. So, here we use memory addresses to get desired output.
 The number of memory address available in ML-50 is 5000.
SHIVAM SINGH (+91-9971457422) Page | 6
 In the above program we used output interlocking.
HOW TO USE TIMERS IN ML-50
 In ML-50, basically we have five timer: TON, TOFF, TMR, TMON, TRTG.
 TON is on delay timer, TOFF is off delay timer, TMR is retentive timer,
TMON is monostable timer and TRTG is retriggerable timer.
 To use a timer, click on F10 that will open a window screen.
 Now move to the category section and select timer/counter and youll get the timers
in the instruction list section.
 Lets create a program using a TON timer. Follow the steps as shown.
 Click on F10 and select TON timer.
SHIVAM SINGH (+91-9971457422) Page | 7
 Press Enter and Give variable name to the timer and then OK.
 Give timer adress T0000. And then OK
SHIVAM SINGH (+91-9971457422) Page | 8
 Now give the timing value of timer and remember in ML-50 timer understands only in
ms and 10ms=1s and then click on OK.
 Note: There are 255 timers in ML-50.
 Your program will something look like as shown below:
 In same manner as shown above, one can create program for any timer.
 Remember one thing that while using TON timer one must provide holding to its input
so that it work properly.
 Now create program for using TON Timer as TOFF
SHIVAM SINGH (+91-9971457422) Page | 9
HOW TO USE COUNTERS IN ML-50
 In ML-50, basically four counters are available CTU, CTD, CTUD and CTR.
 CTU is up-counter, CTD is down-counter, CTUD is up-down counter and
CTR is reset counter.
 To use a counter in your program follow the steps same as that of timer.
 Lets create program using an up-counter i.e. CTU as shown below.
 For counters we use addressing as C000
SHIVAM SINGH (+91-9971457422) Page | 10
 Your program will look something like shown below:
 In same manner one can use any counter.
HOW TO USE COMPARE BLOCKS
 To use compare blocks like less than, greater than, less than equal to, greater than equal
to etc. go to F10 and follow steps as shown.
 As you can see in the instruction column type the sign for comparison like <=, >=, =, >, <
etc. follow by the address you want to compare like here is the address for timer T000
and then enter its value to compare.
 Lets create program using compare blocks to make process continuous using single
timer.
SHIVAM SINGH (+91-9971457422) Page | 11
HOW TO USE MOVE INSTRUCTION
 To use a MOVE function. Press F10 and follow the steps as shown:
 Type MOV in the instruction column.
SHIVAM SINGH (+91-9971457422) Page | 12
 Now give the address of the source data location and then destination where one wants to
move data.
 Your logic will be something like shown below:
HOW TO USE ARITHMETIC AND CONVERSION INSTRUCTIONS
 In ML-50, arithmetic instructions like ADD, SUB, DIV, MUL is used if you are working
with Integer and RADD, RSUB, RDIV and RMUL is used if you are working with real
integers.
 In ML-50, conversion instruction like I2R is used to convert integer to real and
similarly  R2I is used to convert real to integer.
 To use arithmetic instructions or conversion instructions, click on F10 and follow the
instructions and follow as shown:
SHIVAM SINGH (+91-9971457422) Page | 13
 Here M000 and M001 are the addresses of the data to be added and M003 is the
address of the location where the added data is going to be saved. Your program will look
something like as shown below:
 Now, lets create a program for scaling using arithmetic instructions and conversion
instructions. The formula for Scaling is
Y={(X-Xmin)(Ymax-Ymin)/(Xmax-Xmin)}+Ymin
Where Y is final output
X is value coming from field
Ymax and Ymin is values provided by the client
Xmax and Xmin is default values set through softmaster
SHIVAM SINGH (+91-9971457422) Page | 14
HOW TO SET IO PARAMETERS BY SYSTEM ARCHITECTURE
 Click on IO PARAMETER option in the project window as shown:
SHIVAM SINGH (+91-9971457422) Page | 15
 Now set the modules in I/O parameter setting as shown
 Click on the slot 0main and Select PLC you are working with.
 Click on the slot 1 or slot 2 and select your DI or DO module accordingly.
SHIVAM SINGH (+91-9971457422) Page | 16
 Click on the slot 3 or slot 4 and select your AI or AO module accordingly.
 Also select the communication module serial or ethernet if you are using it.
 Select AI Module and click on DETAILS. Set the parameters as shown.
SHIVAM SINGH (+91-9971457422) Page | 17
 Now, select AO module and click on DETAILS. Set the parameters as shown
 Click OK and then YES to register global variables as shown below.
 Remember to set I/O parameters according to your system architecture.
HOW TO CREATE MANUAL LOGIC
.
 To create a manual logic always remember to use memory addresses M0000 if you are
working with HMI and word addresses D0000 if you are working with SCADA.
 Below is the program for manual logic for DI/DO.
SHIVAM SINGH (+91-9971457422) Page | 18
 Manual logic for AI/AO with scaling.
 As in AI and AO, addresses are already assigned by the softmaster, we only need to
select them.
SHIVAM SINGH (+91-9971457422) Page | 19

More Related Content

Ladder logic on Soft-Master Honeywell PLC ML50

  • 1. HONEYWELL (ML-50 PLC) LADDER LOGIC PROGRAMMING ON SOFTMASTER SHIVAM SINGH +91-9971457422 shivamsingh0807@gmail.com Facebook: https://www.facebook.com/shivishrinet LinkedIn: https://www.linkedin.com/in/shivam-singh-46675439 際際滷share: /ShivamSingh59
  • 2. SHIVAM SINGH (+91-9971457422) Page | 1 CREATING NEW PROJECT IN SOFTMASTER Open SoftMaster and a window will open like shown below. Click on Project and select New Project. A window will open like shown below. Write the name of your project in Project Name. Select ML-50 in PLC Series.
  • 3. SHIVAM SINGH (+91-9971457422) Page | 2 Select CPU type as MLM-XBMS if you are working with a modular PLC and Select CPU type as MLM-XBCH if you are working with compact PLC. Select OK and a window will open like shown below. This is the project window for ladder logic programming. HOW TO USE NO, NC AND COIL First select a NO, place it at input side and you will get a window like shown below. Provide a variable name to it and then click OK. You will get a screen.
  • 4. SHIVAM SINGH (+91-9971457422) Page | 3 Give it a physical address like P0000 Now select a Coil, place it at output side, provide variable name and give physical address P0020. Using above steps, lets create a simple program using a NO and Coil that looks something like shown below. To write a comment double click on the leftmost cell. To tell the softmaster where your programming is finished put End Statement at the end of the program. For that click on F10 that will open a window like shown below. Now type END at the instruction and then OK.
  • 5. SHIVAM SINGH (+91-9971457422) Page | 4 Now move to Tools and select Start Simulator to check your program. We normally use Simulator when we are not working online i.e. with actual PLC and want to check our program. Similarly we can use NC also, that works exactly opposite to NO. HOW TO CREATE LOGIC GATES USING LADDER LOGIC Below shown are the logics for all the logic gates.
  • 6. SHIVAM SINGH (+91-9971457422) Page | 5 HOW TO CREATE PROGRAM FOR HOLDING & INTERLOCKING Below is the programming for holding & interlocking. Interlocking is also of two types: Input Interlocking if you are using an input for interlocking and Output Interlocking if you are using an output for interlocking. HOW TO USE MEMORY ADDRESSES IN PROGRAMMING We use memory addresses in our programming when number of physical addresses available to us are less than we need for programming. Lets create a program for PUSH BUTTON AS TOGGLE SWITCH i.e. when you press the push button for first time, the output will ON and when press the same push button again, the output will OFF. Since you have only 2 physical addresses, one for input and other for output. So, here we use memory addresses to get desired output. The number of memory address available in ML-50 is 5000.
  • 7. SHIVAM SINGH (+91-9971457422) Page | 6 In the above program we used output interlocking. HOW TO USE TIMERS IN ML-50 In ML-50, basically we have five timer: TON, TOFF, TMR, TMON, TRTG. TON is on delay timer, TOFF is off delay timer, TMR is retentive timer, TMON is monostable timer and TRTG is retriggerable timer. To use a timer, click on F10 that will open a window screen. Now move to the category section and select timer/counter and youll get the timers in the instruction list section. Lets create a program using a TON timer. Follow the steps as shown. Click on F10 and select TON timer.
  • 8. SHIVAM SINGH (+91-9971457422) Page | 7 Press Enter and Give variable name to the timer and then OK. Give timer adress T0000. And then OK
  • 9. SHIVAM SINGH (+91-9971457422) Page | 8 Now give the timing value of timer and remember in ML-50 timer understands only in ms and 10ms=1s and then click on OK. Note: There are 255 timers in ML-50. Your program will something look like as shown below: In same manner as shown above, one can create program for any timer. Remember one thing that while using TON timer one must provide holding to its input so that it work properly. Now create program for using TON Timer as TOFF
  • 10. SHIVAM SINGH (+91-9971457422) Page | 9 HOW TO USE COUNTERS IN ML-50 In ML-50, basically four counters are available CTU, CTD, CTUD and CTR. CTU is up-counter, CTD is down-counter, CTUD is up-down counter and CTR is reset counter. To use a counter in your program follow the steps same as that of timer. Lets create program using an up-counter i.e. CTU as shown below. For counters we use addressing as C000
  • 11. SHIVAM SINGH (+91-9971457422) Page | 10 Your program will look something like shown below: In same manner one can use any counter. HOW TO USE COMPARE BLOCKS To use compare blocks like less than, greater than, less than equal to, greater than equal to etc. go to F10 and follow steps as shown. As you can see in the instruction column type the sign for comparison like <=, >=, =, >, < etc. follow by the address you want to compare like here is the address for timer T000 and then enter its value to compare. Lets create program using compare blocks to make process continuous using single timer.
  • 12. SHIVAM SINGH (+91-9971457422) Page | 11 HOW TO USE MOVE INSTRUCTION To use a MOVE function. Press F10 and follow the steps as shown: Type MOV in the instruction column.
  • 13. SHIVAM SINGH (+91-9971457422) Page | 12 Now give the address of the source data location and then destination where one wants to move data. Your logic will be something like shown below: HOW TO USE ARITHMETIC AND CONVERSION INSTRUCTIONS In ML-50, arithmetic instructions like ADD, SUB, DIV, MUL is used if you are working with Integer and RADD, RSUB, RDIV and RMUL is used if you are working with real integers. In ML-50, conversion instruction like I2R is used to convert integer to real and similarly R2I is used to convert real to integer. To use arithmetic instructions or conversion instructions, click on F10 and follow the instructions and follow as shown:
  • 14. SHIVAM SINGH (+91-9971457422) Page | 13 Here M000 and M001 are the addresses of the data to be added and M003 is the address of the location where the added data is going to be saved. Your program will look something like as shown below: Now, lets create a program for scaling using arithmetic instructions and conversion instructions. The formula for Scaling is Y={(X-Xmin)(Ymax-Ymin)/(Xmax-Xmin)}+Ymin Where Y is final output X is value coming from field Ymax and Ymin is values provided by the client Xmax and Xmin is default values set through softmaster
  • 15. SHIVAM SINGH (+91-9971457422) Page | 14 HOW TO SET IO PARAMETERS BY SYSTEM ARCHITECTURE Click on IO PARAMETER option in the project window as shown:
  • 16. SHIVAM SINGH (+91-9971457422) Page | 15 Now set the modules in I/O parameter setting as shown Click on the slot 0main and Select PLC you are working with. Click on the slot 1 or slot 2 and select your DI or DO module accordingly.
  • 17. SHIVAM SINGH (+91-9971457422) Page | 16 Click on the slot 3 or slot 4 and select your AI or AO module accordingly. Also select the communication module serial or ethernet if you are using it. Select AI Module and click on DETAILS. Set the parameters as shown.
  • 18. SHIVAM SINGH (+91-9971457422) Page | 17 Now, select AO module and click on DETAILS. Set the parameters as shown Click OK and then YES to register global variables as shown below. Remember to set I/O parameters according to your system architecture. HOW TO CREATE MANUAL LOGIC . To create a manual logic always remember to use memory addresses M0000 if you are working with HMI and word addresses D0000 if you are working with SCADA. Below is the program for manual logic for DI/DO.
  • 19. SHIVAM SINGH (+91-9971457422) Page | 18 Manual logic for AI/AO with scaling. As in AI and AO, addresses are already assigned by the softmaster, we only need to select them.