Getting Into World of PLC Part - III

by Aerobot09 in Circuits > Electronics

553 Views, 4 Favorites, 0 Comments

Getting Into World of PLC Part - III

WhatsApp Image 2022-01-22 at 2.19.41 PM.jpeg

Hello again!!! Hope you are doing well. As in the last article we saw about the installation and a couple of basic programs. In this article, we will learn about using ladder PLC programming to display output on PLC in-built display. As always, I will try to explain everything in-depth, since having strong programming basics are crucial. 

Supplies

FLJ0VWEKW6E9Y8A.jpg
FC2WUHLKW6EA1LV.jpg
FTJ219AKW6EA1UY.png
FW7CTAFKW6EA1RW.jpg

Software: Siemens LOGO! Soft Comfort

Hardware:

  1. Siemens LOGO PLC
  2. Siemens power supply
  3. Ethernet cable
  4. Connecting wires

Ladder Logic

Picture2.png
Picture1.png
Picture3.png
Picture4.png
Picture5.png
Picture6.png

To program in any language, its functions and features need to be understood. In PLC programming, elements depicting functions are used. The following elements are some of the basic blocks:

  1. Normally open
  2. Normally closed
  3. Output / Relay coil
  4. Timer On-Delay
  5. Message Texts
  6. Counter

Function Block Diagram

Picture7.png

Function Block Diagram differs in its symbolic representation of the elements when compared with Ladder Logic. But, it isn't that different from it. People widely prefer Ladder Logic and both the types have similar features.

Programming Interaface

Picture14.png
Picture15.png
Picture16.png
Picture17.png
Picture18.png

Here, I've preferred Ladder Logic.

  1. You need to drag and drop elements from “Instruction” onto the “Empty sheet” and make connections respective to your program. 
  2. At this stage keep the highlighted name itself and then click “OK”.
  3. Make connections with the Black Wire (“Left power bus”) by clicking and dragging the “Left power bus” towards the left input to make a connection.
  4. Similarly drag another instruction and make the connection.
  5. To change the properties of the switch, you need to double-click that. This will pop up a dialogue box where you can change the properties. Click “Ok” after properties are changed.
  6. You can then upload the program to PLC or simulate it within the software. 

Accessing the Built-in PLC Display

Picture8.png

“Message Text” block is used to display the text on the display. Its “En” connection needs to be connected to “High / 1” to be able to display text on the screen.

Customizing the Text on PLC

Picture9.png

To display custom text, you need to enter the text in the properties of the block. Within the properties, get to the “Message Text” area. You can write within the green area and can enter symbols from the given options, click “Ok” once completed.

Configuring the Connection of the Logic

Picture10.png
Picture11.png

To configure the connections of the message block, drag an “NO” connection and double click to change its property. Scroll down and select “Message texts”. Now connect the other connection to an output. This part is crucial for displaying text on the PLC display. 

As Observed During Simulation on PLC

Picture12.png

To perform simulation on PLC, select the simulation option and then click on the "Play" option. This will simulate the Ladder Logic and a Pop-Up screen will appear displaying the custom text.

As Observed on Actual PLC

Picture13.jpg

Make the required connections on the PLC, make sure they are correct. Then send the ladder logic to PLC and select "RUN" The output will be similar to the photo.