Showing posts with label PLC. Show all posts
Showing posts with label PLC. Show all posts

Monday, September 27, 2021

Traffic Light in NI Multisim using Programmable Logic Devices (PLD)

Traffic Light in Multisim using PLC

Written by Larsha Johnson
9/27/2021

Programmable Logic Devices (PLDs) are integrated circuits that contain a relatively small number of functional elements that provide user-configurable logic functions (AND, OR, etc.)
In Multisim a PLD schematic contains specialized components that define the operation of the individual logic blocks of the PLD.

What is PLC and PLD?

The biggest difference between the two is the control logic. PLC is a fixed logic device (the function is realized by changing the software), and PLD is a variable logic device (the function is realized by changing the internal circuit structure). 

The concepts of PLC and PLD can be practiced through this two-way traffic light example. The main implementation of traffic light signals in to avoid traffic jams and serves the purpose of avoiding vehicular collisions.

The ladder diagram in this blog runs two traffic lights. The ladder diagram is contained in a separate hierarchical block called TrafficLightLogic

There are two different traffic light examples available, look in the sample circuit "blue folder icon" in the Educational version of Multisim that implements a traffic light:


  1. National Instruments\Circuit Design Suite 14.2\samples\Educational Sample Circuits\Ladder Diagrams
  2. National Instruments\Circuit Design Suite 14.2\samples\PLD Sample Circuits

The first choice uses programmable ladder logic with an actual traffic light simulation. For choice two, you can export the sample to program the NI Digital Electronics FPGA Board.

                     TrafficLightPLC.pngTrafficLightSim_snippet.png

Drag n drop these snippets directly into your Multisim workspace :slightly_smiling_face:

*I also attached a short version of the NI Multisim for Education PDF specifically for traffic light designs.


What is an SNIPPET file? Section of programming code saved in XML format; code snippets can be saved from Visual Basic, Visual C#, and Visual J projects; they can be edited using the Code Snippet Editor and managed using the Code Snippets Manager. 


Find the attached files below. Hope this helps!

This topic refers to education-specific features of Multisim.

Saturday, September 18, 2021

Create a Logic Circuit in NI Multisim - Snippet

Ladder Logic in Multisim

Written by Larsha Johnson
9/18/2021

Software

  • Multisim

In Linear Control Systems Lab the topic of programmable logic controllers was introduced. There is a variety of software available on the web to try PLC yourself, in this blog I used NI Multisim 14.2 

๐Ÿ™‹Before arriving to this blog you may have asked yourself...how do I implement a logic circuit using ladders within the Multisim environment? Is there any way to learn about ladder logic using a simulated circuit environment such as Multisim?

The answer:

The Education edition of Multisim lets you capture and simulate Ladder Diagrams. These diagrams are electrically based, as opposed to the binary/digital representations employed by ladder logic. Diagrams of this type are used extensively for industrial motor control circuits.

Ladder Diagrams are able to drive output devices or take input data from regular schematics and embed the instructions on how input states affect output states in either the same schematic or separate hierarchical blocks or subcircuits that contain the Ladder Diagram.

Note: Refer to the Multisim User Guide for a complete description of hierarchical blocks and subcircuits.

๐Ÿ“ŒAn example of how to create this ladder logic in Multisim is as follows:

1. Select Place/Ladder Rungs.
      
The cursor appears with the rung’s left and right terminators attached.

2. Click to place the first rung and continue clicking and placing until you have placed four rungs as shown below. Right-click to stop placing rungs. 


๐Ÿ”To add components to the rungs:
1. Select Place/Component, navigate to the Normally Open Relay Contact
(RELAY_CONTACT_NO) click OK.

Note: This device is found in the Ladder Diagrams Group - Ladder Contacts Family.

2. Drop the relay contact directly onto the first rung.

3. Continue in this manner until all relay contacts have been placed. (X4 must be placed and
then wired separately). 

4. Place the lamps (Group - Indicators; Family - Lamp).

5. Place relay coils M1 and M2 on the third and fourth rungs (Group - Ladder Diagrams;
Family - Ladder Relay Coils). 

6. Place switches J1 and J2.
7. Double-click on each switch, select the Value tab, and change the key for J1 to 1 and the
key for J2 to 2. 

๐Ÿ”To change the controlling device reference for X2 and X4:
1. Double-click on X2 and click the Value tab.
2. Enter M2 in the Controlling Device Reference field and click OK. Repeat for X4. The completed Ladder Diagram appears as shown below.




Embed the circuit file within a PNG image file using a Multisim Snippet and let your peers drag and drop the circuit into Multisim instead. This tutorial explores the new technology and ways to take advantage of it.

๐Ÿ‘Œ Please try our snippet out for yourself and practice designing logic gates own your own.

Sharing Multisim circuit files has never been easier. You can now see a graphical preview of the circuit design before opening, and you no longer need to attach and save files on supported web browsers. This saves you valuable time and increases your productivity.

I sell on Tindie

LabVIEW Multisim API Toolkit - RLC Values Example

Automate your Multisim design in LabVIEW  Written by: Larsha Johnson Date: October 24th, 2021 If you like designing electronic circuits in M...

Popular Post