PLC

Step-by-Step Procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software

  • Creating a ladder diagram from logic is a fundamental aspect of programming Programmable Logic Controllers (PLCs). 
  • let’s break down the process of creating a ladder diagram from the Boolean logic expression

A=UV+XY

  • Using Schneider Electric EcoStruxure Machine Expert Basic software, including compiling the program and simulating it.

Here’s a step-by-step guide using Schneider Electric’s EcoStruxure Machine Expert Basic software:

  • In the expression A=UV+XYU, V, X, and Y are inputs
  • UV and XY represent two logical AND operations.
  • The overall expression represents another logical OR operation between UV and XY.
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 1
  • Launch the EcoStruxure Machine Expert Basic software on your computer.
  • Select the controller type with Model.
  • Start a new project or open an existing one where you want to create the ladder diagram.
  • In the software, navigate to the ladder diagram editor.
Step-by-Step Procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 9
  • In the ladder diagram editor, find the toolbox containing various elements such as contacts, coils, etc.
  • Drag and drop these elements onto the ladder diagram workspace.
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 4
  • Place input contacts for U,V,X, and Y onto the workspace.
  • Create two logical AND operations:

For UV: Connect contactsU(%I0.0) and V(%I0.1) in series.

For XY: Connect contacts X(%I0.2) and Y(%I0.3) in series.

  • Create a final logical OR operation by connecting the outputs of the UV and XY are OR operations in parallel.
  • Connect the final output to a coil or output contact representing A(%Q0.0).

 The Digital inputs and outputs are listed below.

  • Digital inputs: U, V, X, Y (connected to %I0.0, %I0.1, %I0.2, %I0.3 respectively)
  • Digital output: A (connected to %Q0.0)
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 6
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 5
  • Compile the ladder logic program within the EcoStruxure Machine Expert Basic software.
  • Ensure there’s no physical PLC connected, as the simulation will be conducted entirely within the software environment.
  • Download the compiled program to the software’s virtual environment.
  • Before starting the simulation, activate the simulation mode within the software.
  • This mode enables the software to simulate the behavior of the PLC and execute the ladder logic program without any physical hardware.
  • Within the simulation environment, initiate the “start controller” or “run mode” function.
  • This action instructs the software to execute the ladder logic program as if it were running on a physical PLC.
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 7

A truth table shows all possible combinations of inputs along with their corresponding outputs.

For the expression A=UV+XY, where U, V, X, and Y are inputs and A(%Q0.0) is the output, the truth table would look like this:

Input U (%I0.0)Input V (%I0.1)Input X (%I0.2)Input Y (%I0.3)Output A (%Q0.0)
00000
00010
00100
10000
01000
00111
11001
11111
10100
01010
11101
01111
10111
11011
  • Input various combinations of U, V, X, and Y into the simulation environment.
  • Observe the behavior of the ladder logic program and verify that the output.
  • For the output A(%Q0.0) to be ON, either UV or XY (or both) should be activated. This is because they are connected in parallel, and if any of them is closed (activated), the current will flow through to the output coil.
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 8
Step-by-Step  procedure for Creating a Ladder Diagram from Logic with Schneider Electric EcoStruxure Machine Expert Basic Software 9
  • Turning ON both  U and V or both  X and Y will activate the outputA.
  • If only one of the pairs, eitherU and V or X and Y, is activated, the output A will still turn ON due to the OR logic gate configuration.
  • Output A(%Q0.0) matches the expected results based on the truth table.
  • Monitor the simulation status within the software interface to ensure that it is running without errors.
  • Check simulated data, such as input and output status, program execution status, etc., to confirm proper operation.

Click here to know more about PLC Learning Articles

Sundareswaran Iyalunaidu

With over 24 years of dedicated experience, I am a seasoned professional specializing in the commissioning, maintenance, and installation of Electrical, Instrumentation and Control systems. My expertise extends across a spectrum of industries, including Power stations, Oil and Gas, Aluminium, Utilities, Steel and Continuous process industries. Tweet me @sundareshinfohe

Related Articles

Back to top button