encoders
Kalle, I appreciate very mutch your answer.
Why detector swichs have to be on elevator. I thinq I can do on reverse, with the detector´s fix on the struture and the metal on the elevator.
Another question I had thinq is about the minimum number of detectors swichs. If it is a vertical conveyor with 10 floor, then usually we need 10 + 2 detector´s , one for each floor and two for emergency. But in fact, I thinq it´s possible to do that with only 4 detector´s. Two for emergency stops just above floor 1 and 10, and only one to stop in each floor. Ok , you say to me , "How will you diferentiate eache floor ?" Well, I if the plc has memorize the destany floor and counts the number of changes made by the detector then the system will know where it has to stop ! I must remember here that the conveyor usually works in sequence (1,2,3,4,5,6,7,8,9,10). The other detector I´ll use attach to one "carreto" that is mounted on the motor, and will count the number of changes like one encoder. The precision give by this solution on this elevator is 1,3 mm, wich I thinq is enougth to control the up and down ramps.
My only doubt in this solution is to find a trigger function to interrupt plc scan. As I say before is my first time with encoders and I never use interrupt or trigger functions before. I work with momentum modicon plc wich have a minimum of 5,5 ms of input change ON/OFF/ON , and the total scan is 200 ms or even more.
PS - If fails the current, the position of the elevator will be memorize on a holding (4..... on momentum) register. In this case maybe I will need another detector to let the system know where is the elevator, or maybe I can use one of the emergency stop detector to do that.
Thanq you for all answers.