Mitsubishi Electronics SW1DNC-GXW2-E Water System User Manual


 
5 - 2
5.1.1 Operations of program
5 CREATING TWO OR MORE PROGRAM BLOCKS
GX Works2
5.1 Created Program
This section explains how to create a program for controlling a tea server system which consists of a tea
pouring operation, water refilling operation and warning indicating operation. This section also explains a
program which works as one Structured Project, and the program operations.
5.1.1 Operations of program
Tea pouring operation
When a user presses the tea pouring button X1 (that is, when X1 turns ON) while the cup detection
X0 is ON, the tea pouring output Y10 turns ON and the tea server pours tea into the cup. The tea
server pours tea while the user is pressing and holding the button, and stops pouring when the user
releases the button.
The tea server does not pour tea when the user presses the tea pouring button X1 if the cup
detection X0 is OFF.
Water refilling operation
When water inside the water refill tank is running low, the lower limit switch X3 turns ON, and the
water refill output Y11 turns ON.
When the water refill output Y11 is ON and the water supply to the tank is sufficient, the upper limit
switch X4 turns ON and the water refill output Y11 turns OFF.
Warning indicating operation
When the tea server performs the water refilling operation 5 times, the tea leaf replacement
indicator lamp Y12 turns ON.
When a user presses the tea leaf replacement check button X2, the tea leaf replacement indicator
lamp Y12 turns OFF.
Water refill output
check
pour
Y10
Y10
Upper limit switch
X4
Y11
Tea leaf
replacement
indicator lamp
Y12
Tea leaf
replacement
check button
X2
Tea pouring
button
X1
Y10
Lower limit switch
X3
Water refill tank
Tea pouring
output
Cup detection
X0