Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
support.sampyo | 61e7c3d4b7 |
|
@ -37,12 +37,12 @@
|
|||
"working-time": {
|
||||
"step0": 5,
|
||||
"step1": 10,
|
||||
"step2": 6,
|
||||
"step3": 9,
|
||||
"step2": 0.5,
|
||||
"step3": 4,
|
||||
"step4": 20,
|
||||
"step5": 20,
|
||||
"step6": 7,
|
||||
"step7": 12,
|
||||
"step6": 0.5,
|
||||
"step7": 15,
|
||||
"step8": 10,
|
||||
"step9": 140
|
||||
}
|
||||
|
|
|
@ -7,5 +7,5 @@ spec:
|
|||
virtualEnv: base # 사용할 가상환경 이름입니다.
|
||||
package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.)
|
||||
stackbase:
|
||||
tagName: v0.0.50 # Stackbase(gitea)에 릴리즈 태그명 입니다.
|
||||
tagName: v0.0.51 # Stackbase(gitea)에 릴리즈 태그명 입니다.
|
||||
repoName: sampyo-dio # Stackbase(gitea)에 저장될 저장소 이릅니다.
|
||||
|
|
19
main.py
19
main.py
|
@ -218,11 +218,12 @@ def Command_Read():
|
|||
|
||||
# Step 4. Mesure the weight
|
||||
# Target valve status: [Motor: Off, Vent: Off, Pure: Off, Enter: Off, Main: Off]
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='Off')
|
||||
time.sleep(0.5)
|
||||
Valve_MainWater(chip=output_lines, status=status, action='Off')
|
||||
|
||||
time.sleep(0.5)
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='Off')
|
||||
time.sleep(step4_duration)
|
||||
|
||||
|
||||
end = Measure_Weight(client=client)
|
||||
time.sleep(1)
|
||||
|
||||
|
@ -232,10 +233,10 @@ def Command_Read():
|
|||
|
||||
# Step 5. Drain the mixed water and add pure water.
|
||||
# Target valve status: [Motor: Off, Vent: On, Pure: On, Enter: On, Main: Off]
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='On')
|
||||
time.sleep(0.5)
|
||||
Valve_Vent(chip=output_lines, status=status, action='On')
|
||||
time.sleep(0.5)
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='On')
|
||||
time.sleep(0.5)
|
||||
# Valve_PureWater(chip=output_lines, status=status, action='On', duration=pure_duration)
|
||||
Valve_PureWater(chip=output_lines, status=status, action='On')
|
||||
time.sleep(step5_duration)
|
||||
|
@ -247,19 +248,19 @@ def Command_Read():
|
|||
|
||||
# Step 7. Input pure water and clean
|
||||
# Target valve status: [Motor: On, Vent: Off, Pure: On, Enter: On, Main: Off]
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='On')
|
||||
time.sleep(0.5)
|
||||
Valve_Vent(chip=output_lines, status=status, action='Off')
|
||||
time.sleep(0.5)
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='On')
|
||||
time.sleep(0.5)
|
||||
Motor(chip=output_lines, status=status, action='On')
|
||||
time.sleep(step7_duration)
|
||||
|
||||
# Step 8. Drain pure Water
|
||||
# Target valve status: [Motor: On, Vent: On, Pure: Off, Enter: Off, Main: Off]
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='Off')
|
||||
time.sleep(0.5)
|
||||
Valve_Vent(chip=output_lines, status=status, action='On')
|
||||
time.sleep(0.5)
|
||||
Valve_EnterWater(chip=output_lines, status=status, action='Off')
|
||||
time.sleep(0.5)
|
||||
Valve_PureWater(chip=output_lines, status=status, action='Off')
|
||||
time.sleep(step8_duration)
|
||||
|
||||
|
|
Loading…
Reference in New Issue