August 29, 2020

Explain 4:1 Multiplexer using an example.

Explain 4:1 Multiplexer using an example.

Application:-Make the 4:1 multiplexer. Write the PLC program for 4:1 multiplexer using ladder diagram language.

Diagram:-



Explanation:-

As shown in the above diagram we can see 4:1 multiplexer. S0 and S1 are the selection input for the multiplexer. So according to selection and input status output will be generated.

We can understand this concept simplified Boolean equation

Y = (S1=1 AND S0=1 AND I3=1) OR (S0=0 AND S1=1 AND I2=1) OR (S1=0AND S0=1 AND I1=1) OR (S0=0 AND S1=0 AND I1=1).


PLC program:-

Write the ladder program for 4:1 multiplexer instruction using ladder diagram language. Here for ladder logic, we can use any supported PLC system like S7-1200, S7-1500 or any other PLC which can support this instruction. In our application, we have used S7-1200 PLC for reference.


Digital Inputs:-

Selection switch 0:-I0.0

Selection switch 1:-I0.1

Input 1:-I1.1

Input 2:-I1.2

Input 3:-I1.3

Input 4:-I1.4

Digital Outputs:-

Output 1:-Q1.0


Network 1:- 4:1 Multiplexer ladder diagram



PLC program Explanation:-

In above network S1and S0 are the selection inputs.

When S1 and S0 are high or 1 and I4 is 1, output Q1.0 will be high.

When S0 is off and S1 is selected and I3 is on, output Q1.0 will be high.

When S1 is off and S0 is selected and I2 is on, output Q1.0 will be high.

When S0 is off and S1 is off and I1 is on, output Q1.0 will be high.

July 26, 2020

Explain MOD (modulo) instruction in the PLC.

Explain MOD (modulo) instruction in the PLC.

Application:-Understand the concept of MOD instruction in the PLC. Write the PLC program using ladder diagram language to understand the concept.

Diagram:-






Explanation:-

The MOD instruction is used to divide the stored value in source A by the value stored in source B. After division, it stores the remainder in the destination.

For example Source value is 7 and source B value is 2

Then the remainder is Source A /Source B=7/2=1 (Remainder value).

PLC program:-

Write the ladder program for MOD instruction using ladder diagram language. Here for ladder logic we can use any supported PLC system like S7-1200, S7-1500 or any other PLC which can support this instruction. In our application, we have used S7-1200 PLC for reference.

M Memory:-

Source A:-MW10

Source B:-MW12

Remainder:-MW14











PLC program Explanation:-

In network 1, we have used MOD instruction. In this Source, A is divided by source b and the remainder will be stored into MW14 register.





Division of two operands using an example.

Division of two operands using an example.

Application:-DIV instruction in the PLC. Write PLC program for explanation using ladder diagram language.

Components:-Programmable logic controller, HMI panel, Ethernet cable, 24 V DC power source.

Diagram:-






Explanation:-

The subtraction DIV instruction is used for subtraction of two values for any data records to understand this instruction take one example. Consider one RTD sensor, it is giving data of temperature to the programmable logic controller in a standard format and this data is 250 degree (room temperature) so you need to calculate this value and need to divide by a factor of 10 so you will get the actual temperature.

This is a simple example for an explanation. We can use this concept in any application or any data calculation.

 

PLC program:-

Write the ladder program for DIV instruction using ladder diagram language. Here for ladder logic, we can use any supported PLC system like S7-1200, S7-1500, or any other PLC which can support this instruction. In our application, we have used S7-1200 PLC for reference.

M Memory:-

RTD reading:-MW10

Factor:-MW12

Actual value:-MW14


















PLC program Explanation:-

In-network 1 we have taken DIV instruction for our example. RTD sensor is reading data in the MW10 and factor entered in the MW12. Once DIV instruction will be executed, it will show results in the MW14.

Here RTD reading is 250 degree and factor is 10 so it will show 25 (250/10) in the actual temperature.