BlackBamba
Member
Hello all,
been reading in the forum for a few years I guess, but a first time poster.
I'm in the midst of converting parts of my own system to state machine design. It's a plc controling a production line. This thing is working but I want to reduce the number of possible errors (I did have "race condition" on some occasions) and make debugging easier. I also have quite a bit of output sets/resets (lots of sequences...) that I now try to consolidate into pos coils (with a seal-in when necessary).
I ran into this dilemma:
A device has 6 states, each associated with one of the bits S100,S200,S300,S400,S500,S600. The bits are mutually exclusive of course.
The natural progression of the states is from S100 to S600 oridinally. Then looping back to S200.
Suppose I have an actuator AA starting on S400 and turning off on S600.
S100 is the OFF state of the device (all outputs including AA are off).
I'm trying to decide what is the better CONVENTION for my project: to use just the states in which a the output should be toggled (as in rung 1); or to plot the complete "truth table" onto the rung (rung 2). This FSM is fairly simple but others FSMs in the project have many more states, 20-30 would be normal.
Would love to hear opinions on this matter.
been reading in the forum for a few years I guess, but a first time poster.
I'm in the midst of converting parts of my own system to state machine design. It's a plc controling a production line. This thing is working but I want to reduce the number of possible errors (I did have "race condition" on some occasions) and make debugging easier. I also have quite a bit of output sets/resets (lots of sequences...) that I now try to consolidate into pos coils (with a seal-in when necessary).
I ran into this dilemma:
A device has 6 states, each associated with one of the bits S100,S200,S300,S400,S500,S600. The bits are mutually exclusive of course.
The natural progression of the states is from S100 to S600 oridinally. Then looping back to S200.
Suppose I have an actuator AA starting on S400 and turning off on S600.
S100 is the OFF state of the device (all outputs including AA are off).
I'm trying to decide what is the better CONVENTION for my project: to use just the states in which a the output should be toggled (as in rung 1); or to plot the complete "truth table" onto the rung (rung 2). This FSM is fairly simple but others FSMs in the project have many more states, 20-30 would be normal.
Would love to hear opinions on this matter.