Pego,
You can flame or slam me all you want; it really dosnt matter. I'm fully aware of my capabilities and limitations. I just hope DeHulk is also.
The point is that it appears to be an elevator in a building or shallow mine that people ride on; so it needs to be said. This could be serious safety issue that shouldnt be addressed by one with little or no expierance without some proper/professional guidence.
There are usually two applications for encoders on elevators. 1) for closed loop motor control. 2) for positioning feedback on the car. The pdf DeHulk posted leads me to belive that he's using the encoder to position the car in the hoistway.
The distance indicates high speed, (300fpm - 500fpm). It's likely that the cable will slack on return and cause bounce. He would be far better off to install a quadrature encoder on the governor shaft like everybody else, (including the Sears Tower). If by chance he can get away with the pull-out encoder then at the very least there needs to be a safety switch to detect a broken or slack cable that would shut down the elevator, or cause it to return in a safe manner to mabey the lowest floor, or something like that.
DeHulk,
Can the encode give the exact postion or do i need to do calculations in STEP7 to ?
You have to setup a counter in the Step 7 that would reset to a spicific known value at the top and bottom of the hoistway. Your floor positions, slowdowns, and leveling values would be stored in the PLC, and the count would be compaired to thoes values to initiate the approprate actions. (1st slowdwon, 2nd slowdown, 3rd slowdown etc... up & down leveling, door zone & relevel etc..) A virtual cam setup so to speek.
How do i configure the Stroke ->type ? wich values ? The total lengt is 50m !
You could enter them by hand, or setup some code to "learn" & store them. Then run the car up the hoistway, stop at each position and initiate an input that would cause that positions value to store in the approprate memory location.
To start with; Imagine your using conventional cams and draw all the cams on a board or paper to represent all the necessary cams in the hoistway from top to bottom of the hoistway. The top and bottom of each cam will be assigned a value based on it's vertical position in the hoistway. So if the count is between thoes values, then that cam would be active.
You should have a seperate redundent device that would prevent the car from moving away from the floor with the doors open in the event that the encoder fails and somehow causes a miss read/count.
You've got a lot of complicated programming in front of you. Whatever you do, please just make sure that you consider all the possabilities for failure and account for them. No matter how robust your encoder may seem, if it's all your relying on and it fails, there will be catostrophic results possably involving the loss of life and/or limb.