WESCL runs as a real-time task, which processes the instructions that have been loaded into the program memory area from the "auto.scl" file after its compilation. The program runs in a continuous loop, which consists of the following major phases:
Begin-of-loop
Read input signals
Execute instructions
Decrement counters
Write output signals
End-of-loop.