Hi everyone,
I need a bit of help Please! I have a carousel with an encoder fitted. The A&B pulses go to the robot for line tracking. I have wired the C or rev pulse to a S7 200 PLC which has an Analog output module connected to the VFD that turns the carousel. I want to set a constant speed and then close the loop with the encoder to maintain the speed there is some chain slippage etc.
I thought I would use an interupt routine to see the C pulse and then start a timer to work out the period betwwen pulses which should give me the actual frequency and I can correct the setpoint frequency.
Sounds so simple in theory. I was wondering if anyone had done interrupts on a S7 200,I haven't yet and if anyone has done something similar with frequency.
The C pulse is adaquate as it is on the gearbox output so isn't very fast and the PLC will see the pulse, I might even get away without using an interrupt. Just trying to get as much ammo as possible before I tackle the job. Cheers in advance for any help.
I need a bit of help Please! I have a carousel with an encoder fitted. The A&B pulses go to the robot for line tracking. I have wired the C or rev pulse to a S7 200 PLC which has an Analog output module connected to the VFD that turns the carousel. I want to set a constant speed and then close the loop with the encoder to maintain the speed there is some chain slippage etc.
I thought I would use an interupt routine to see the C pulse and then start a timer to work out the period betwwen pulses which should give me the actual frequency and I can correct the setpoint frequency.
Sounds so simple in theory. I was wondering if anyone had done interrupts on a S7 200,I haven't yet and if anyone has done something similar with frequency.
The C pulse is adaquate as it is on the gearbox output so isn't very fast and the PLC will see the pulse, I might even get away without using an interrupt. Just trying to get as much ammo as possible before I tackle the job. Cheers in advance for any help.