Monday, April 29, 2013

Control Coding Step Respon In Mathlab

It is tutorial how to making listing step Respon in Software Matlab..
1. Open Mathlab

2. File .
        M file
Inside code   exsample


m=2;
b=5;
k=3;
A=[0 1;-k/m -b/m];
B=[0;1/m];
C=[1 0];
D=0;
state_space=ss(A,B,C,D)
press F5 
a =
        x1    x2
  x1     0     1
  x2  -1.5  -2.5
b =
       u1
  x1    0
  x2  0.5
c =
      x1  x2
  y1   1   0
d =
      u1
  y1   0
>> [A,B,C,D]=ssdata(state_space)
A =
        0    1.0000
  -1.5000   -2.5000

B =
        0
   0.5000
C =
    1     0
D =
    0
>> step(state_space)
you get it

And find transfer function you can make it.

>> tutorial_tf=tf(state_space)
Transfer function:
      0.5
-----------------
s^2 + 2.5 s + 1.5

>> 
read more "Control Coding Step Respon In Mathlab"

Wednesday, April 24, 2013

Control Ladder Diagram automatic door

Before we make the ladder diagram for automatic door first we make the lay out and sensors for the automatic door, please see picture below:

I/O table for automatic door used PLC siemens S7-200 cpu 224:

Input device :
1. Motion sensor Inside address I0.0
2.Motion sensor outside address I0.1
3.Limit switch open address I0.2
4.Limit switch closed address I0.3
5.selector switch automatic mode address I0.4

6.selecor switch manual mode address I0.5
7.push button open manual I0.6
8.push button closed manual I0.7
9.Emergency stop I1.0

Output device:

1.Kontaktor motor closed Q0.0
2.kontaktor motor open Q0.1
2.pilot Lamp emergency Q0.2
3.piloy lamp manual mode Q0.3
4.pilot lamp automatic mode Q0.4

Ladder diagram









read more "Control Ladder Diagram automatic door"