Sequencing

Wash Cycle

hard

Runs Fill, Mix, and Drain actuators in order with pause, resume, and reset controls.

What it teaches

Combine state, retentive phase timers, and real actuator outputs. Pause saves elapsed time but turns every actuator off; Resume continues the same phase.

Inputs and outputs

TagTypeDefaultDescription
In_StartBOOLStarts a new cycle from Idle
In_PauseBOOLPauses the active phase
In_ResumeBOOLContinues a paused phase
In_ResetBOOLAborts the cycle and returns to Idle
Cfg_FillTimeDINT2000Fill duration in milliseconds
Cfg_MixTimeDINT3000Mix duration in milliseconds
Cfg_DrainTimeDINT2500Drain duration in milliseconds
Out_FillValveBOOLOpens during the active Fill phase
Out_MixerBOOLRuns during the active Mix phase
Out_DrainValveBOOLOpens during the active Drain phase
Sts_StateDINT0=Idle, 1=Fill, 2=Mix, 3=Drain
Sts_PausedBOOL1 while phase timing and actuators are paused

Required behavior