Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Laboratory 2.2-Basic Word Logic Operation Using Structured Programing The objective of this laboratory is to realize the combinational logic functions Laboratory 2.1 in a word

image text in transcribed
image text in transcribed
image text in transcribed
Laboratory 2.2-Basic Word Logic Operation Using Structured Programing The objective of this laboratory is to realize the combinational logic functions Laboratory 2.1 in a word logic operations using structured programming, used To create a subroutine (SUB), perform the following steps illustrated in Fig In file 2 (main file), lift-click on the program control, and enter subroutine instruction, document AND LOGIC, and repeats for the jum subroutines as shown. LAD 2: JSR Jump to SBR U:3 AND LOGIC Jump to SBR U:4 OR LOGIC 001 Jump to SBR U:5 XOR LOGIC 002 JSR 003 Jump to SBR U:6 XNOR LOGIC 004 End SBR 3: JSA 000Subroutine U:3 B3:0/0 AND LOGIC Enter the and logic rung Subroutine 001 RET Return U:3 AND LOGIC End FIGURE 2.63 (a) Subroutines strugt Fundamentals of PLC Logic Programming 85 Go to file 3, left-click on program control, and enter subroutine instruction, then enter return instruction, repeats for file 4,5, and 6 as shown. Enter the logic rung for every files between subroutine and return from . in subroutine. Requirements: a. Reprogram the required rungs shown in Fig, 264a to c as program structures 0 using three subroutines. The subroutines implement the logics AND, OR, and XOR operations. Using N7:1, N7:2, and N7:3 for TAG VALUEL, TAG VALUE2, and TAG VALUE RESULT b. Download the program to the PLC and go on line. c. Explain the advantage of the interlock switches between the word logics d. Add a fourth subroutine for the logic XNOR using TAG_IN XNOR e. Report your laboratory results in the format used in the Table shown in Fig. 265 for the programmed logic operations. 1:1/3 -AND Blitwise AND Source N7:1 Tag IN AND Tag IN OR Tag IN XOR Tag IN XNOR Source B N72 Dest N7-3 Binary 1:1/3 OR- Bitwise Inclusive OR N7:1 Source B N72 N7-3 Tag.IN OR Tag IN AND Tag IN XOR Tag. IN XNOR N72/ oooo oooo oooo o1 1 o Dest 1:1/2 1:1/0 Bitwise Exclusive OR N7:1 Tag IN XOR Tag IN AND Tag IN OR Tag IN XNOR Source 8 N72 N7:1/ ooo o ooooooooo1 o1 N72 oooo ooooooooo1 1Dest N73/ oooo oooo oooo o o11 Binary 2.64 (a) Laboratory 2.2 rung 1: (b) laboratory 2.2 rung 2: (c) laboratory 2.2 rung 3. 86 Chapter Two N7:2 N7:3 N7:1 15h 25h 1Ah 11h N7:2 N7:3 N7:1 15h 25h 5Bh 1Ah 11h N7:3 N7:1 15h 25h 58h N7:2 30h 1Ah 11h N7:1 15h 25h N7:2 N7:3 1Ah 11h Fiount 2.65 (o) Logic AND result: (o) Logic OR result: (o) Loglc XOR result: () Lophs n Laboratory 2.3- Laboratory 2.2-Basic Word Logic Operation Using Structured Programing The objective of this laboratory is to realize the combinational logic functions Laboratory 2.1 in a word logic operations using structured programming, used To create a subroutine (SUB), perform the following steps illustrated in Fig In file 2 (main file), lift-click on the program control, and enter subroutine instruction, document AND LOGIC, and repeats for the jum subroutines as shown. LAD 2: JSR Jump to SBR U:3 AND LOGIC Jump to SBR U:4 OR LOGIC 001 Jump to SBR U:5 XOR LOGIC 002 JSR 003 Jump to SBR U:6 XNOR LOGIC 004 End SBR 3: JSA 000Subroutine U:3 B3:0/0 AND LOGIC Enter the and logic rung Subroutine 001 RET Return U:3 AND LOGIC End FIGURE 2.63 (a) Subroutines strugt Fundamentals of PLC Logic Programming 85 Go to file 3, left-click on program control, and enter subroutine instruction, then enter return instruction, repeats for file 4,5, and 6 as shown. Enter the logic rung for every files between subroutine and return from . in subroutine. Requirements: a. Reprogram the required rungs shown in Fig, 264a to c as program structures 0 using three subroutines. The subroutines implement the logics AND, OR, and XOR operations. Using N7:1, N7:2, and N7:3 for TAG VALUEL, TAG VALUE2, and TAG VALUE RESULT b. Download the program to the PLC and go on line. c. Explain the advantage of the interlock switches between the word logics d. Add a fourth subroutine for the logic XNOR using TAG_IN XNOR e. Report your laboratory results in the format used in the Table shown in Fig. 265 for the programmed logic operations. 1:1/3 -AND Blitwise AND Source N7:1 Tag IN AND Tag IN OR Tag IN XOR Tag IN XNOR Source B N72 Dest N7-3 Binary 1:1/3 OR- Bitwise Inclusive OR N7:1 Source B N72 N7-3 Tag.IN OR Tag IN AND Tag IN XOR Tag. IN XNOR N72/ oooo oooo oooo o1 1 o Dest 1:1/2 1:1/0 Bitwise Exclusive OR N7:1 Tag IN XOR Tag IN AND Tag IN OR Tag IN XNOR Source 8 N72 N7:1/ ooo o ooooooooo1 o1 N72 oooo ooooooooo1 1Dest N73/ oooo oooo oooo o o11 Binary 2.64 (a) Laboratory 2.2 rung 1: (b) laboratory 2.2 rung 2: (c) laboratory 2.2 rung 3. 86 Chapter Two N7:2 N7:3 N7:1 15h 25h 1Ah 11h N7:2 N7:3 N7:1 15h 25h 5Bh 1Ah 11h N7:3 N7:1 15h 25h 58h N7:2 30h 1Ah 11h N7:1 15h 25h N7:2 N7:3 1Ah 11h Fiount 2.65 (o) Logic AND result: (o) Logic OR result: (o) Loglc XOR result: () Lophs n Laboratory 2.3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions

Question

What does it mean to persuade someone?

Answered: 1 week ago

Question

Do not come to the conclusion too quickly

Answered: 1 week ago