Project - programming with ladder logic

Assignment Help Other Engineering
Reference no: EM131397261

Introduction to Cyber-Physical System Security Mini Project: Programming with Ladder Logic

Introduction - This three part project will focus on Ladder Logic programming using Schneider Electric SoMachine Basic.

Part 1 - Construct three different Ladder Logic programs, each building upon the previous one:

A. Construct a program that will simulate a push button activated LED.

1. When Input 0 is activated, Output 1 should activate.

2. When input 0 is deactivated, Output 1 should deactivate.

3. Inversely, when Input 1 is activated, Output 0 should deactivate.

4. When input 1 is deactivated, Output 0 should activate.

B. Construct a program that simulates an LED powered by an On-Off loop.

1. When input 0 is activated, Output 0 should activate for 5 seconds, then deactivate for 5 seconds.

C. Construct a program that simulates the same On-Off power loop, except the amount of time for the loop should be dictated by the Analog Inputs.

1. The "On" portion (Analog 0) should be 3 seconds.

2. The "Off" portion (Analog 1) should be 1.5 seconds.

For your convenience the following can be used as a reference for how the above elements are referred in

SoMachine Basic:

Input 0 = %I0.0

Input 1 = %I0.1

Output 0 = %Q0.0

Output 1 = %Q0.1

Timer 0 Preset = %TM0.P

Timer 0 Finished = %TM0.Q

Analog Input 0 = %IW0.0

Analog Input 1 = %IW0.1

Part 2 - You are the Industrial Controls Systems Engineer at a Soft Drink Processing Plant. Having heard of recent attacks at similar plants that prevent the operators from shutting down their machinery when instructed, you were immediately suspicious when you saw your ladder logic program had been recently updated by someone other than you. You open the program to find it has been thoroughly tampered with to the point that a shutdown could not occur if instructed. Left alone, this would cause the machines to continue to operate nonstop, leading to soft drink spilling out and getting the floor all sticky, and possibly even irreversible machine damage.

The shutdown process, when functional, occurs in a series of checkpoints to ensure smooth and gradual cessation of the machinery. While an Emergency Shutdown button does exist, it is limited to life threatening situations, as such a sudden shutdown can damage machinery. The process should work as follows:

1. When the operator presses the Shutdown Button (Input 0), a 5 second timer begins before the first checkpoint (Output 0) is activated and the rest of the process can continue.

a. After this point the shutdown process can be canceled (Output 1) by the operator pressing the Cancel Shutdown Button (Input 1). This cancellation cannot occur unless the Shutdown Button (Input 0) has been activated.

2. For the process to continue, the pressure inside of the machines needs to be high enough such that the piping system doesn't get damaged. The operator needs to set the pressure of the machines to above the Pressure Checkpoint (Constant Word 0) using Analog Input 0. Then, the operator activates the Confirm Pressure Change button (Input 2) to register the change in the system. This will activate the second checkpoint (Output 2).

3. Finally, the operator confirms the shutdown process by pressing The Confirm Shutdown button (Input 3), resulting in the activation of the third and final checkpoint (Output 3), and the full shutdown of the system (Output 5).

4. In the case of an emergency, the Emergency Shutdown button (Input 4) can be pressed to activate the immediate shutdown procedure (Output 4) and result in subsequent shutdown (Output 5).

You are allowed to alter the code to any extent you wish, provided you adhere to these previous specifications for the Shutdown Process. You should assume that any rung of the ladder logic program, with the exception of the Shutdown Rung, can have no, one, or several problem(s) in them which you need to fix. Do not alter the Shutdown Rung, as this Rung is used to grade your code. Failure to adhere to this instruction will result in a deduction of points. It is clearly labeled with a comment, so it will be obvious which one it is.

For your convenience the following can be used as a reference for how the above elements are referred in SoMachine Basic:

Constant Word 0 = %KW0

Current Pressure = %MW0

Set Pressure = %IW0.0

Part 3 - Many times in industrial control systems, devices such as Programmable Logic Controllers (PLCs) are commonly used to directly interact with sensors and actuators, and perform local automatic control. PLCs are often placed at relatively exposed locations in the field and are thus vulnerable to tampering by a nearby attacker. In particular, the attacker could attempt to manipulate firmware or logic to change the behaviour of the PLC.

Ladder logic bombs, i.e. malware written in ladder logic can be inserted by an attacker into existing control logic on a PLC, and either persistently change the behaviour, or wait for specific trigger signals to activate malicious behaviour. For example, the LLB could lay dormant until a certain sequence of control actions is performed, or a certain point of time is reached. Then, the LLB could replace legitimate sensor readings that are being reported by the PLC to the ICS with manipulated values.

Building on the Part 1 construct a Logic Bomb like program wherein after an input is activated for a number of times, say 5, all the outputs are activated irrespective of the previous conditions. For this, add a couple more outputs and modify the program as required to implement the logic bomb.

Attachment:- Assignment File.rar

Reference no: EM131397261

Questions Cloud

Create a spreadsheet listing at least five steganography : Do an Internet search to find current steganography tools. Create a spreadsheet listing at least five steganography tools and their features.
Engineering ceramic material failure from life : 1. Identify an engineering CERAMIC material failure from your life. Failure must happen frequently in daily life of everyone.
Proportion first and then solve : If a person drives 4,000 miles in 8 months, how many miles will that person drive every 2 years? Set up a proportion first and then solve.
Determine two emerging trends in the external environment : HSA 599- Determine two emerging trends in external environment that prompted General Electric Healthcare to develop a new strategy for production and marketing of a low costElectroencephalography machine in bottom of the pyramid markets.
Project - programming with ladder logic : CS 8803: Introduction to Cyber-Physical System Security Mini Project: Programming with Ladder Logic. Construct three different Ladder Logic programs, each building upon the previous one: Construct a program that will simulate a push button activated ..
What was the second estimate : One specialist estimated a procedure at $350. A second specialist estimated the same procedure for 20% less. What was the second estimate?
Are the employees of your organization non-union or union : Are the employees of your organization non-union or union? Do you feel unions are still needed or do you feel unions have outlasted their usefulness thus jeopardizing the competitive aspect of U.S. economy?
Null and alternative hypothesis in a criminal trial : 1) What would be the null and alternative hypothesis in a criminal trial? 2) What is the 'burden of proof' for the prosecutor in a criminal trial?  How is this related to an 'alpha' value in hypothesis testing?
What does given suggest about using linear rule for all data : Verify that when using only the X values greater than 7 you get b1 = 0.009 and b0 = 4.8. What does this suggest about using a linear rule for all of the data.

Reviews

len1397261

2/17/2017 2:58:56 AM

This three part project will focus on Ladder Logic programming using Schneider Electric SoMachine Basic. You should not have to change the configuration of the SoMachine Basic simulation. You should only need to access the “Programming” tab to complete the project. Don’t alter the Shutdown Rung, as this Rung is used to grade your code. Failure to adhere to this instruction will result in a deduction of points. It is clearly labeled with a comment, so it will be obvious which one it is.

Write a Review

Other Engineering Questions & Answers

  Compute the stresses in laminate coordinates

Compute the stresses in laminate coordinates at top and bottom of each lamina in Example 6.1 (p. 178) when the laminate is subjected to ?0x = 765(10-6 ) mm/mm, ?0y = -280(10-6 ) mm/mm, κxy = 34.2(10-6 )1/mm and all remaining strains and curvatures ..

  Why lifelong learning is necessary in engineering discipline

Explain why lifelong learning is necessary in engineering disciplines. Finally, identify and describe at least one professional society that would be beneficial to you.

  New keynesian model with technology shocks

Discuss the real output and in ation expressions verbally - New Keynesian model with technology shocks

  Environmental issue

CEE 357 Winter 2014. Independent writing assignment. Choose any current environmental issue on which a civil/environmental engineer might reasonably work.

  Relationship between time and frequency in signals

Discuss what is meant by the phrase "periodic signals are not be found in practice."

  Reading assignments - read and have a good understanding of

reading assignments - read and have a good understanding of mil-std-499 and mil-std-499a. be sure that you have

  Estimate the value of the overdrive voltage

A two-stage CMOS op amp resembling that in Fig. is found to have a slew rate of 60 V/μs and a unity-gain bandwidth ft of 60 MHz. Estimate the value of the overdrive voltage at which the input-stage transistors are operating.

  Describe how values that were assigned to the output to led

Explain the process you used in this lab to arrive at the final design of both the hardware portion and the software portion to achieve the design objectives.

  Create an image of the pacman character

Create an image of the Pacman character. Start by entering the coordinates for the Pacman image shown below. You will not draw the points. These are just to help you create the vectors for the Pacman figure.

  Define the fundamental responsibilities and key

write a six to eight page paper in which younbsp1.define the fundamental responsibilities and key characteristics of

  The theorist contributes to nursing today

1. Presentation must have references from a reliable source (i.e., .gov, .org, .edu) or text - at least 3, 2. Research information must be accurate

  Determine the magnitude and the point

A concrete foundation mat in the shape of a regular hexagon with 3-m sides supports four column loads as shown. Determine the magnitude and the point of application of the resultant of the four loads.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd