Elevator Simulator

struggling but am here know to move the jmpsubroutines to the first page or page 2 also have latched and unlatched bit control for floors, wornvator button outputs activated. limit switch settings set. car stops in between floors. door opens for five seconds and closes.
 

Attachments

  • LadderRungs.jpg
    LadderRungs.jpg
    50.6 KB · Views: 10
I suggest you integrate a simulator into the PLC code, that will keep track of the location (I:5) and any proximity sensors (doors are closed; doors are open; etc.) based on the outputs.
  • If the elevator is moving up, increase the value in I:5 by 1 every scan cycle (or every 0.1s)
  • If the elevator is moving down, decrease the value in I:5 by 1 every scan cycle (or every 0.1s)
  • if the door is opening, increase the door-open position by 1 every scan cycle (or every 0.1s), but do not increase to more than 20
  • if the door is closing, decrease the door-open position by 1 every scan cycle (or every 0.1s), but do not decrease to less than 0
  • if the door-open position is 20, then write a value of 1 to the door-is-open input bit, else write a value of 0
  • if the door-open position is 0, the write a value of 1 to the door-is-closed input bit, else write a value of 0
That should be enough to test your code.
 

Similar Topics

M
Hi, guys I wonder if anyone of you have a ladder diagram for elevator simulator in logixpro. I'm student and just stat to learn abou PLC. I...
Replies
7
Views
22,414
Hi, I am working on a project in codesys using only ladder logic and SFC. Now the elevator can go to different floors, doesn't go without doors...
Replies
3
Views
313
Hi, I’m not familiar with servo motion control yet, so please let me ask advice. I am currently designing an architecture for a material handling...
Replies
5
Views
480
when the elevator is at level 1 and someone gets in and wants to go to floor 2 he presses the button and the door closes and should then check to...
Replies
0
Views
282
Hey guys , I have included a couple attachments here , one of what I was supposed to come up with a program and the program I came up with. Does...
Replies
16
Views
3,818
Back
Top Bottom