You are on page 1of 8

PROJECT OVERVIEW

ABOUT THE TOPIC


Assume we have to build an automatic stir machine with two
motors (called P1 and P2) to pump liquid into a tank in order to stir
it.
This machine can operate in three different modes as follow:
Automatic mode:
When the tank are full (reached High Limit HI_LS), both motors
will stop and activate an agitator (denoted A1) that will stir the liquid
inside the tank for a given time (45 minutes in default and can be
modified). After reached the given time, the agitator will stop and
another delay time will be activated to stabilize the liquid before
opening the valve (called V1) to put the liquid out of the tank. As the
liquid being pumped out, eventually it will run into the Low Limit
(LO_LS). At that time, the valve will be stopped and reset the process
to the beginning leads to P1 and P2s reactivation.
Manual mode:
Can turn ON/OFF anything, but the motors cannot run when the
liquid is at the High Limit and on the contrary, the agitator and valve
cannot run when reached Low Limit.
Service mode:
Can turn ON/OFF anything with no restrictions.
Below is the sample design of this machine:

STATE/OUTPUT DIAGRAM
For Manual mode (Mode 1)
State/Output tables and Diagram for the two motors only:
P1

P2

ST 0

ST 1

If not HI_LS, both motor 1 (P1) and motor 2 (P2) can run in State 1.

State/Output tables and Diagram for the agitator and valve:


A1

V1

ST 0

ST 1

If not HI_LS, both agitator (A1) and valve (P2) can run in State 1.

For Automatic mode (Mode 2)


State/Output tables and Diagram for the two motors only:
P1

P2

ST 0

ST 1

Both motor 1 and 2 (P1 and P2) run first in State 1. After

completed the given time but still not HI_LS then jump back to State
1. When reached HI_LS then both motors will stop.

State/Output tables and Diagram for the agitator and valve:


A1

V1

ST 0

ST 1

ST 2

If reached HI_LS then agitator run in State 1. After reached given


time, agitator stop in State 0. After the delay time, the valve will
open in State 2.

For Service mode (Mode 3)


State/Output tables and Diagram for the two motors only:
P1

P2

ST 0

ST 1

Both motor 1 (P1) and motor 2 (P2) can run in State 1.

State/Output tables and Diagram for the agitator and valve:


A1

V1

ST 0

ST 1

Both agitator (A1) and valve (P2) can run in State 1.

PROCESSES
FUNCTION CODE
For motors P1 and P2:

For the agitators A1:

For the valve V1:

SYSTEM CODE USING ST LANGUAGE


Condition code for automatic mode:

Set limitations and water level code:

BUILD OPERATOR SCREEN


Operator screen in Unity Pro:

Operator screen in Intouch:

PROJECT RESULTS
CONCLUSION
After finished the items address configuration process with
ArchestrA System Management Console and ArchestrA IDE, the
simulated system works perfectly with all required functions and
devices in Unity Pro and Intouch. In details, we can control each
device individually in the manual mode but the motors cant active
when the water level reached high limit and the agitator as well as
the valve are disabled when there are no water inside the tank or
already at the low limit. Automatic mode can works like the
requirement and the user can modify the preferred working time for
devices. Service mode with absolutely no restriction for maintenance
works is also available.
Some limitations still remain, however. For example: The user
have to input mode for each of the four devices manually before
entering the operation, which is pretty uncomfortable. A single mode

input screen applies for all devices is necessary. One more thing to
consider for improvement is that currently there are no time input
for each motors. Despite the intention about making both motor run
at one time is to accelerate the speed of water flow pumped inside
the tank, but in reality it may discomfort the user, even cause
overload.

You might also like