EIC 1131 Design - SFC Question

SCADA_Dude

Member
Join Date
Feb 2008
Location
California
Posts
115
I am trying to make use of a sequencial flow chart to esentially serve as my main() program. I really like this elegant approach, but I have a basic implementation question I'd like to ask the more experienced EIC programmers out there.

I have broken my process down into logical steps and defined the transitions. My question is, where to you place functions that must be constantly monitored such as pressure alarms, etc. For these routines, there is no transition - I always want to monitor them.

Is it ok to place them in a seperate program to be run in parallel to the main SFC or is this messy programming? (I kind of think so)

Do I need to find a place to put them in the main SFC? (say on a parallel branch that is always true)

FYI: I'm programming in Unity Pro XL 3, not that is should matter.

Thanks
Kurt
 
That is why there are 5 IEC languages.

Do the polled routines in IL, LD, FBD or ST in a separate task from the SFC.

If you must use SFC for polling I/O then break the loop into logical groups of items ( actions )that must be polled and poll them at intervals in a round robin fashion. This will require that a timer be used to trigger the transition. This way you can carefully control your can times. One can even put an action in the loop twice so that the high speed things are polled twice as often.
 

Similar Topics

Hi, anyone got any experience with TMEIC drives? I need to establish connection with TMEIC drive over Profibus, actually to develop a FB for that...
Replies
3
Views
2,465
Hello, I have a small programming task that I need help solving. I have to: * Create an analog input (4-20v)and a digital output * The analog...
Replies
45
Views
25,127
I was poking through the Stackoverflow PLC Tag when I saw this answer to a question about converting a Real to a DWord and back again. What...
Replies
8
Views
2,908
I am looking for some expert advice. I have always made function blocks both with inputs and outputs and without inputs or outputs. I make the...
Replies
21
Views
6,787
Hello and happy new year! I would like to further understand who needs to design by this standard and is it a requirement for everyone or only...
Replies
3
Views
1,788
Back
Top Bottom