2. Materials and Methods
For this dual–sided shaping machine purpose, the Scotch Yoke mechanism is used for reciprocating the cutting tool, and to accomplish this objective, two connecting rods are welded to the slotted link. It is a reciprocating mechanism that converts rotational motion to reciprocating motion or vice versa. This mechanism is commonly used to control valve actuators in high-pressure gas and oil pipelines. The reason is that the scotch yoke mechanism advantages of higher torque output, fewer moving parts and hence a smoother operation can be used to perform various operations such as cutting and slotting. This process can be automated, and rotary motion can be directly converted into reciprocating motion.
Dual-sided shaper designed for cutting two flat pieces by a tool at one time. The operation of machine is simplified to few simple operations involving a motor and tool head arrangement (i.e., pulley and belt), [24]. The smaller pulley is driven by a motor, and by the use of V-belts, the speed of the motor is reduced and transmitted to the larger pulley. The larger pulley transmits the rotation to the crank that rotates about its axis by increasing the speed to some extent, so the yoke slides inside the slot of the slotted plate[26], [27]. As the crank rotates, the slotted bar reciprocates due to the sliding of the yoke (crank pin). The connecting rod attached to the slotted plate on both sides reciprocates as the crank rotates. The cutting tool is attached at both sides of the connecting rod to carry out the cutting operation, and the feed of the work piece is given for the feed table[26],. Since the cutting tool is placed on both sides, operations can be performed on both sides of the machine, i.e., the return stroke at one end is converted into cutting stroke at the other end, thereby reducing the production time and increasing the metal removal rate[27], [30].
2.4 MATLAB simulation for a dual-sided shaper machine
The simulation of the system is performed on the basis of the design specification stated in section 2.1. The MATLAB simulation code is shown below.
a. MATLAB code, which simulates motion:
%%% MACHINE DYANMICS MINI PROJECT ON DUAL SIDED SHAPER MACHINE BY SCOTCH YOKE MECHANISM
%%% TITTLE: - Determination of Equation of motion for Dual sided shaper machine by using scotch yoke
%%% mechanism
%%% Name:-GALANA ABAY ID NO GSR/9971/12
% MATLAB simulation result BY MATLAB R2018a
% all dimension given below are in millimeter(mm)
r = 300; % the radius of crank its dimension is by mm
a = 1000; % length of connecting rod holding a cutting tool on the positive x-axis
la=-1000;% length of connecting rod holding a cutting tool on the negative x-axis
ls = 942; % the length of slot in which the yoke slides through it
h = 50; % the height of the cutting tool
lt = 1320; % total length of the mechanism from the crank center to the end of the cutting tool
O=[0 0];% the position of point O or the origin crank
for teta = 0:0.3:20.5*pi% rotation of the crank with a 0.3 value gap to 20.5*pi
Xp = r*cos(teta); % x coordinate of point p
Yp = r*sin(teta); % Y coordinate of point p
p=[r*cos(teta) r*sin(teta)]; % x‒y coordinate of point p
% Distance from the end of the cutting tool to the minimum reciprocating distance
N = lt-r*cos(teta);
R = r*sin(teta);
X=[O(1) Xp];
Q=[O(1) Xp];
Y=[O(2) Yp];
T=[O(2) Yp];
% Ploting the line of crank by making the size of line 3 with color of black including points
plot(X,Y,'-ko','LineWidth',3,'MarkerEdgeColor','k','MarkerSize',2)
% ploting the line of crank making the size of line 3 with color of black including points
plot(Q,T,'-co','LineWidth',3','MarkerEdgeColor','k','MarkerSize',2)
% waiting till to plot any other lines or not to cancel the plot before
hold on
% The line of the crank in which it rotates
B_traj = viscircles([0 0],r,'linestyle','--');
% ploting the line of connecting rod making the size of line 3
plot(X,Y,'-bs','LineWidth',3,'MarkerEdgeColor','g', 'MarkerSize',5)
%ploting the line of connecting rode making the size of line 3
plot(Q,T,'-cs','LineWidth',3,'MarkerEdgeColor','g', 'MarkerSize',5)
XE = lt-N;
QE = lt-N;
YE = ls/3;
TE = ls/3;
XF = lt-N;
QF = lt-N;
YF=-ls/3;
TF=-ls/3;
X=[QE QF];
Y=[TE TF];
% ploting the line of slot link in which the yoke slides by making the size of line 3
plot(X,Y,'-ms','LineWidth',3,'MarkerEdgeColor','b', 'MarkerSize',2)
% ploting the line of slot link in which the yoke slides making the size of line 3
plot(Q,T,'-ms','LineWidth',3,'MarkerEdgeColor','b', 'MarkerSize',2)
XD = lt-N;
QD = lt-N;
YD = 0;
TD = 0;
XG = lt + a-N;
QG = lt + la-N;
YG = 0;
TG = 0;
X=[XD XG];
Q=[QD QG];
Y=[YD YG];
T=[TD TG];
% plot the line of cutting tool hold rode by making the size of line 3
plot(X,Y,'-bo','LineWidth',3,'MarkerEdgeColor','y', 'MarkerSize',2)
% ploting the line of cutting tool hold rode making the size of line 3
plot(Q,T,'-bo','LineWidth',3,'MarkerEdgeColor','y', 'MarkerSize',2)
H=[lt + a-N h/2];
V=[lt + la-N h/2];
J=[lt + a-N -h/2];
U=[lt + la-N -h/2];
X=[H(1) J(1)];
Q=[V(1) U(1)];
Y=[H(2) J(2)];
T=[V(2) U(2)];
% plotting the line of cutting tool rode by making the size of line 3
plot(X,Y,'-ks','LineWidth',3,'MarkerEdgeColor','r', 'MarkerSize',2)
% plotting the line of cutting tool rode making the size of line 3
plot(Q,T,'-ks','LineWidth',3,'MarkerEdgeColor','r', 'MarkerSize',2)
X=[lt-1200 lt-1000];% the
Q=[lt-1200 lt-1000];
Y=[30 30];
T=[30 30];
plot(X,Y,Q,T)
X=[lt-1200 lt-1000];
Q=[lt-1200 lt-1000];
Y=[-30 -30];
T=[-30 -30];
% The dimension of the window in which the simulation plot
axis([-2000 3000 − 2000 2000])
grid on
hold off
pause(0.005)
end
b) Motion analysis (position, velocity and acceleration)
As we have seen in the simulation code above, all links and points from the crank to the cutting tool are programmed and coded to have relative motion specifically to perform the shaping operation. The following MATLAB code shows the position, velocity and acceleration of selected points for the crank (point p) and cutting tool (point Q).
%MATLAB CODE FOR MOTION ANALYSIS CODED BY MATLAB R2018a
% The program intended to show the position, velocity and acceleration of the crank and cutting tool.
% All dimensions are in mm
% Note:-All representations of symbols are written in simulation code
r = 300;
a = 1000;
ls = 942;
h = 50;
lt = 1320;
teta = linspace(0,2*pi,50);
t = 0:0.03:10;
teta = 2*pi*t/3;
omega = 2*pi/3;
ang_teta = omega./t;
% Position of crank P, which is only under rotation.
Xp = r*cos(teta);
Yp = r*sin(teta);
r_p = sqrt(Xp.^2 + Yp.^2);
% Position of cutting tool Q, which is under translation only.
XQ = r*cos(teta) + a;
YQ = 0;
r_Q = sqrt(XQ.^2 + YQ.^2);
% The resultant velocity equation of crank p
Vp_x=-r*omega. *sin(teta);
Vp_y = r*omega. *cos(teta);
velo = sqrt(Vp_x.^2 + Vp_y.^2);
Vp = sqrt((-r*omega.*sin(teta)).^2+(r*omega. *cos(teta)).^2);
%Resultant velocity equation of cutting tool Q
VQ_x=-r*omega. *sin(teta);
VQ_y = 0;
velo2 = sqrt(VQ_x.^2 + VQ_y.^2);
VQ = sqrt((-r*omega. *sin(teta)).^2 + 0);
%%%%% The resultant acceleration equation of the crank
ap_x=-r.*ang_teta.*sin(teta)-r.*omega.^2. *cos(teta);
ap_y = r.*ang_teta.*cos(teta)-r.*omega.^2. *sin(teta);
acc = sqrt(ap_x.^2 + ap_y.^2);
ap = sqrt((-r.*ang_teta.*sin(teta)-r.*omega.^2.*cos(teta)).^2+(r.*ang_teta.*cos(teta)-r.*omega.^2. *sin(teta)).^2);
% the resultant acceleration equation of cutting tool Q
aQ_x=-r.*(ang_teta.*sin(teta) + omega.^2. *cos(teta));
aQ_y = 0;
acc2 = sqrt(aQ_x.^2 + aQ_y.^2);
aQ = sqrt((-r.*(ang_teta.*sin(teta) + omega.^2. *cos(teta))).^2 + 0);
plot(t,r_p,t,r_Q,t,Vp,t,VQ,t, ap,t,aQ)
title('Graphical Representation for Motion of crank and cutting tool','FontSize',12)
legend('Position of crank or rp','Position of cutting tool or xQ','Velocity of crank or Vp','Velocity of cutting tool or VQ','Acceleration of crank or ap','Acceleration of cutting tool or aQ')
xlabel('time(s)')
ylabel('motion in (mm, mm/s, mm/s^2)')
xlim([0 10])
ylim([-1 2000])