How does a 4-level elevator work in a SFC ?

JungleKidd

Member
Join Date
Jan 2018
Location
Indonesia
Posts
1
Hello, I'm trying to make a 4-level elevator work in SFC, but I feel kinda lost. Could anybody help me with at least the first 2 level SFC? Thank you
 
lf you go in downloads (Allen Bradely and maybe in others)on the tool bar above there are some examples, for elevators (LogicPro simulator code). They are most probable in ladder, but it will give you some idea of the code required.
But please note, that unless it was written by by Lance01, DO NOTE take it for granted that it will work as it should.
 
Q: How does 4 level elevator work in SFC?

A: Just like it will when properly hard wired.
 
Make a start sequence, like close doors etc.
then a split in four buttons, so you will get 4 separate programs for each button.
below them, move the cab to the wanted position, below open the doors and wait
loop back to above, and wait until a button is pressed.

show please what you have made.
 
Selamat. Isteriku dari Indonesia, dan saya jalan di Ambon, Komodo, Bali dan Jakarta di Agustus 2017.

I don't think you can program it solely in SFC. SFC allows designing an overall logic flow (based upon input conditions), but I don't think it allows setting outputs. For that, you must put other PLC code within each SFC block, which can be ST, LD, FBD, or CFC, and you can use different type code in each SFC block.
 
Slightly off topic. I was at the ground floor of a building and wanted to go to the second floor. There were four elevators and no buttons so I kept looking around and found a screen on the wall beside the first elevator. It had numbers on it so I touched number 2 and a few seconds later an elevator door opens up and a female announcer came on but I didn't pay attention till I got in the elevator. It said something like "ground floor going to third" and a screen inside the elevator displayed the number 3. So I wondered out loud why is it going to 3 when I clicked 2 and there were no button on the screen to touch and no physical buttons in the elevators so I could only get off at floor 3.
As you must've experienced or figured out, the elevator takes it assignment from the ground floor screen and I got in the wrong elevator that assigned to someone else who selected the 3rd floor. I was supposed to pay attention to the announcement and I think there was also a display above the elevator, not entirely sure. But until I spend more time playing with it I have to say it is typically crappy/ridged system that I encounter more and more as more tasks are being automated. Life is going to get very difficult for the next 20 years or so.
 
To go further off topic (on a Friday),

Kalabdel's experience could be a programming glitch where the selection (floor 2) counts from 0 and actual destination (floor 3) counts from 1, though wonder how that could slip thru testing. I have seen commercial software which mixes that up, particularly in error messages. At least the system didn't force you to watch advertisements, as done in the U.S. with a captive audience at gas pumps and urinals. Some genius might go even further and make the elevator go slow to force the captives to watch the full ad. Marketers are getting desperate since people record TV shows to skip ads, learned to ignore the first paid Google search returns, and filter out ads slipped among Facebook posts.

BTW, when I program, I usually count array indices from 1, to match physical channels 1,2,... Microsoft mandated in .net that array indices count from 0 (in VB6, one could define). I still loop arrays from 1 (as humans count). I sometimes use the 0th element to store "meta info" about the array.
 
Now that you mention it, when the way down there were two choices G and GR and I had to think a for a bit as to which is ground (because I have lots of time, patience and the mental clarity to spend on such things) and I clicked "G" and "ground floor" was announce which turned out to be the floor I wanted. I have no clue what GR stands.
 

Similar Topics

So, I'm really just trying to get some experience by practicing with arrays. I'm using studio 5000 v33. I have one rung with an XIC bit that's...
Replies
5
Views
122
I tried researching but I still don't quite get it. As far as I understood, it's used after a function is called in STL and then if the function...
Replies
1
Views
127
Today I was trying to install firmware update to new out of the box CompactLogix processor. CompactFLASH dialog box did not show any revisions...
Replies
10
Views
222
Hello Friends I am trying to connect to a Zebra printer. I can print the label with hyperterminal both by RS232 and TCP/IP. Now, I am trying to...
Replies
7
Views
223
My PLC (S7-1200) and HMI (KTP-1200 Basic) has been delivered on-site to the customer. To be able to do "off-line" updates to the code, I am using...
Replies
4
Views
198
Back
Top Bottom