This lab will use some common basic ladder instructions and show some common problems that people make when using these instructions. The lab itself is of a basic level.
Create a new project use set the controller to be 1769-L35E and version 17
In the MainProgram Main Routine create code that looks like
a. Download to PLC and try to toggle MyInput_1 and _2, whathappens?
a. Myoutput_1 is activate on
b. What happens with MyOutput_1 when MyInput_1 is one and MyInput_2 is 0?
b. Myoutput_1 is not activate off
c. What happens with MyOutput_1 when both Inputs are 1?
c. Myoutput_1 is activate on
d. What happens with MyOutput_1 when MyInput_1 is 0 and MyInput_2 is 1? What is the reason?
d. Myoutput_1 is activate on,because the Scan reading program.
e. Modify the code so either MyInput_1 or MyInput_2 activates the output
Create the following code
a. Toggle MyInput_1 and MyInput_2 to verify function.
a. Output 2 keeps 0.
b. Toggle the output directly
b. If toggle latch ON keeps off because my input 2 keeps unlatch On
c. If toggle latch ON, and thereis not Unlatch active, then My Output_2 is oN.
Use timer to activate an output after a time delay. Use a MOV instruction to change the preset of the timer.
Part D Not used
Create logic that uses a bit to turn on and off an output. First time the input is activated the output should turn on, second time the output should turn off (Toggle Function)
Create logic to count up a tagwith one every time the bit “MyInput_1” (From previous Labs) is changed from 0 to 1. Use “MyInput_2” to count down the tag with 1 every time it is changed from 0 to 1.
When the Tag reaches 10 activate “MyOutput_1”
This lab will use the file created in Lab 1 and add a few I/O modules to it. If Emulator was used to complete Lab 1 change the Processor to be 1769-L35e
Add Local I/Omodules to the program created in Lab 1
1x Digital Input – 1769-IQ16
1x Digital Output – 1769-OB16
1x Analog Input – 1769-IF4
1x Analog Output – 1766-OF4
After the modules are added find them in the Tag database. Locate the inputs and outputs on each module.
Add Remote I/O on Ethernet of type Point I/O. The I/O’s that should be added are:
1x Digital Input (4ch)
1x Digital Output(4ch)
1x Analog Input (2ch Current)
1x Analog Output (2Ch Current)
Find the modules in the Tag database. How does it differ from Local I/O?
Download program the program given to you by the instructor to the Emulator or CompactLogix processor. The program contains of 3 tasks.
Name | Type | Period | Priority | Main Function |
CT_1 | Continuous | N/A | N/A | Count up |
PT_1 |Periodic | 10000 | 10 | Reset |
PT_2 | Periodic | 21500 | 9 | Hold |
The program has a Dint that is counted up every scan. Once every 10 seconds, the Dint is reset 0. Every 21.5seconds, the program will look like it stooped, due to a higher priority task.
Lab 3 – Create a UDT for Alarms
This lab you will create a UDT that handles an Alarm. The UDT should contain all functions that are neededfor each alarm.
Functions of the Alarm
* Time Delayed
* Should have different states if it is Acknowledged or not
* Should be possible to see if the condition for the alarm is active before the alarm triggers a fault
1. Create UDT. Create the UDT, Try to consider all functions that you might need to have for an alarm.
2. Create an Array of 10 elements of the newly createdUDT
3. Create an Alarm with a 10 seconds delay. Use a Boolean tag called MyInput_1 to activate the alarm
4. Create a second alarm with a 2 seconds delay. Use a Boolean tag called MyInput_2 to activate the alarm
5. Download and test.
Lab 4 - Create Alarm handling AOI
This lab will show some basic examples of how AOIs can be used in PLC code to simplify programming