Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Automation & Robotics ROBO - 2 4 2 PLC / Pneumatic Interfacing Lab 7 : Allen - Bradley Math and Data Handling Program Objective: To

Automation & Robotics
ROBO-242 PLC/Pneumatic Interfacing
Lab 7: Allen-Bradley Math and Data Handling Program
Objective: To explore the operation of Math and Data Handling instructions.
Upon successful completion of this lab, the learner will be able to:
Use the MOV instruction to place integer data into data memory
Program Math & Compare functions on the AB PLC
Procedure:
In this lab:
Data A is the last 2 digits of the Student number of the oldest group member.
Data B is the last 2 digits of the Student number of the youngest group member.
Write a program to accomplish the following tasks:
When the SW3 is turned ON:
a. Place Data A into integer word 0(N7:0).
b. Place Data B into integer word 1.
When the SW1 is OFF:
a. Press PB1 to place sum of Data A & Data B into integer word 2.
b. Press PB2 to place result of Data A - Data B into integer word 3.
When SW1 is ON:
a. Press PB1 to place quotient of the larger of the Data values divided by the smaller into integer word 4.
b. Press PB2 to place product of Data A and Data B into integer word 5.
Use the data table for Data File S2 to find the actual quotient and remainder results from step 3(a) above.
Use the data table for Data File N7 to change the values in integer words 0 and 1 directly. Replace your larger value with 905, and your smaller value with 416, and verify correct operation of parts 2 and 3. Observe the CPU after the MUL instruction is executed. Explain.
For step 3(a), program will automatically divide larger by smaller Data value. Division must work even if both Data values are the same.
Use Fill File (FLL) instruction to load zero values to all N7 words that were used in your program. Activate it with SW2.
Evaluation:
Minimum: Demonstrate functions from items 1 to 4
Standard: Demonstrate functions from item 5
Expert: Demonstrate functions from items 6 and 7
Ensure that your participation is marked on the Lab Attendance form.
image text in transcribed

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

Step: 3

blur-text-image

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions