Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please be discriptive Program the devices using the following symbols, descripti

ID: 3856842 • Letter: P

Question

please be discriptive

Program the devices using the following symbols, descriptions, and addresses: I/O Symbol Description Address

Input L_S NO LS I:0/0

Input S_1 NO MC PB I:0/1

Input S_2 NO MC PB I:0/2

Input S_3 NO SS I:0/3

Input S_4 NO SS I:0/4

Input CP_S NO PS I:0/5

Input FP_S NO PS I:0/6

Input IP_S NO PS I:0/7

Output M_R Motor Relay O:0/0

Output L_1 -Red PL O:0/1

Output L_2-Green PL O:0/2

Output L_3 Blue PL O:0/3

In this lab you will be automating the operation of the conveyor system using advanced instructions. The program is required to operate as follows: - Pushbutton S_1 is used to manually latch (M_R ON) and unlatch (M_R OFF) the conveyor. - The fiber optic sensor FP_S detects the TOTAL parts that go through the line. - The inductive sensor IP_S detects the METAL parts that go through the line. - The limit switch L_S momentarily stops the conveyor (M_R OFF). - The red pilot light L_1 must be ON when the METAL part count is greater or equal than the NONMETAL part count and the TOTAL count is greater than 0. - The green pilot light L_2 must be ON when the METAL part count is less than the NONMETAL part count and the TOTAL count is greater than 0. - The blue pilot light L_3 must flash ON and OFF when the TOTAL count is larger than 0 in intervals given by the following relationship in milliseconds: FLASHING = 1050 – (1000*METAL)/TOTAL - Pushbutton S_2 must reset all counts to 0. - DO NOT use counters for this control process. Instead use ADD and SUBTRACT instructions for the METAL, NONMETAL, and TOTAL counts. - HINT: the value of FLASHING must be calculated as a separate integer value (N7:X) and moved (MOV) to the PRESET values of the flashing timers. 3 Download and Test the program (not possible when working remotely): - Double-Click on the ‘Channel Configuration’ item within the ‘Controller’ folder of the Program Organizer pane on the left. - Select the ‘Channel 1’ tab and enter the correct controller IP address (168.254.224.XX) listed on the RSWho Window. - Enter the appropriate Subnet Mask (255.255.0.0). - Disable the ‘BOOTP Enable’ and ‘DHCP Enable’ options and click OK. - Save the .RSS program file. - From the ‘Comms’ menu select ‘System Comms’. Select the appropriate controller under the ‘AB_ETHIP-1’ driver and click ‘Download’. - Note: do not click ‘Upload’ or your program will be replaced with the one currently in the controller memory. - From the ‘Comms’ menu select Mode > Run. Your program is now running directly on the controller. - With the help of the instructor, test your program by experimenting the different I/O alternatives. - Back on your workstation, select Mode > Program and ‘Go Offline’ from the ‘Comms’ menu.

Explanation / Answer

# apt-get install isc-dhcp-server
# yum install dhcp
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
}

subnet 192.168.0.0 netmask 255.255.0.0 {
}
default-lease-time 600;
max-lease-time 7200;

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
}

subnet 192.168.0.0 netmask 255.255.0.0 {
}
default-lease-time 600;
max-lease-time 7200;

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
option domain-name-servers 10.1.1.1, 8.8.8.8;
}

subnet 192.168.0.0 netmask 255.255.0.0 {
}

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
option routers 10.1.1.1;
}
default-lease-time 600;
max-lease-time 7200;

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
option domain-name-servers 10.1.1.1, 8.8.8.8;
option routers 10.1.1.1;
}

subnet 192.168.0.0 netmask 255.255.0.0 {
}

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
option routers 10.1.1.1;
}
default-lease-time 600;
max-lease-time 7200;

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
option domain-name-servers 10.1.1.1, 8.8.8.8;
option routers 10.1.1.1;
}

subnet 192.168.0.0 netmask 255.255.0.0 {
}

host printer {
hardware ethernet 00:16:d3:b7:8f:86;
fixed-address 10.1.1.100;
}

host web-server {
hardware ethernet 00:17:a4:c2:44:22;
fixed-address 10.1.1.200;
}
host bootp {
hardware ethernet 00:00:2e:55:12:09;
fixed-address 123.123.1.3;
filename "/path/to/tftpboot/bootp.boot";
}

opspec = operspec('rct_airframe1');

% Specify trim condition
% Xe,Ze: known, not steady
opspec.States(1).Known = [1;1];
opspec.States(1).SteadyState = [0;0];
% u,w: known, w steady
opspec.States(3).Known = [1 1];
opspec.States(3).SteadyState = [0 1];
% theta: known, not steady
opspec.States(2).Known = 1;
opspec.States(2).SteadyState = 0;
% q: unknown, steady
opspec.States(4).Known = 0;
opspec.States(4).SteadyState = 1;
% integrator states unknown, not steady
opspec.States(5).SteadyState = 0;
opspec.States(6).SteadyState = 0;

op = findop('rct_airframe1',opspec);
G = linearize('rct_airframe1','rct_airframe1/Airframe Model',op);
G.InputName = 'delta';
G.OutputName = {'az','q'};

bodemag(G), grid
C0 = tunableSS('C',2,1,2); % Second-order controller
C0.D.Value(1) = 0; % Fix D(1) to zero
C0.D.Free(1) = false;
setBlockParam(ST0,'MIMO Controller',C0)
% Tracking
Req1 = TuningGoal.Tracking('az ref','az',1);

% Bandwidth and roll-off
Req2 = TuningGoal.MaxLoopGain('delta fin',tf(25,[1 0]));

% Margins
Req3 = TuningGoal.Margins('delta fin',7,45);

% Disturbance rejection
% Use an FRD model to sketch the desired attenuation profile with a few points
Freqs = [0 0.001 1];
MinAtt = [100 100 40]; % in dB
Req4 = TuningGoal.Rejection('delta fin',frd(db2mag(MinAtt),Freqs));
Req4.Focus = [0 1];

AllReqs = [Req1,Req2,Req3 Req4];
Opt = systuneOptions('RandomStart',3);

rng(0)
[ST,fSoft] = systune(ST0,AllReqs,Opt);