Start-Stop Fan by Temp

A state machine solution

I think this can easily be modelled in a 5 states FSM?
Yes, it will be longer but it's just VERY clear what's going on in each step and it's easy to make it safe (delays are active even when RUN is off).

In Psudo code:

Code:
State 10:
# Idle state
  if RUN:
    if TEMP_1 =< 29: 
      State=20
    else
      State=40

State 20:
# Fan low
  if (TEMP_Aux > 140) or (not RUN):
    State=30

State 30:
# Stop fan, 60s delay
  TimerOn 60s:
    State=10

State 40:
# Fan high
  if (TEMP_1 =< 29) or (not RUN): 
    State=50

State 50:
# Stop fan, 30s delay
  TimerOn 30s:
    State=10

*** Outputs section:
  if State==20: 
     Fan LOW
  if State==40: 
     Fan HIGH
(of course, you'll have to handle the state changes via integer var/register, or state bits).
 

Similar Topics

Hello I am trying to make a program work with a sqo instruction .The process has 5 steps ,and a starting step of zero.There should be 8 sec...
Replies
17
Views
1,033
Good morning to everyone on the forum and happy new year. I'm trying to use the following functions in sysmac studio, because I need to enable one...
Replies
1
Views
319
Good Morning , I would like to start a Powerflex 525 with a N.O. Start Pushbutton , and when the N.O. Start Pushbutton is released I would...
Replies
3
Views
1,617
Hello, I am trying to detect when the PLC changes from STOP to START mode. This can be considered an edge case scenario, but I would to analyze...
Replies
4
Views
1,547
Hello Everyone! It has been a while since I used the method of drawing a state diagram, converting that to Boolean algebra, and translating that...
Replies
13
Views
2,958
Back
Top Bottom