Have a motor that is rated a max speed of 1750 rpm. This motor will have a gearhead with a rating of 15 to 1. The max speed of the output of the gearhead will then be 1750/15 = 116.6, or 117rpm.
This will be coupled directly to some drive rollers, and a encoder will be mounted on one of the rollers.
This rate of 0-117rpm, will then be used as a master reference for another motor that will be slaved to it. I downloaded a sample file from AB web site that showed how to use a micrologix plc and determine rate, and it appears to work. I can place a tach on the head of a cordless drill which I am using to turn the encoder, and the value in the lad for the rate and the tach are the same.
How can I take this information and use the encoder that will be mounted on the second motor and set up a PID to then control the speed of the slave motor, which will have a encoder on it as well? The encoder for that motor will be a 0-1000 pulse per revolution encoder as well. What I am wondering is how can the rate value from the first motor be used to determine the speed that the 2nd motor will need to run, and a encoder that will be mounted on the 2nd motor to show the actual rpm from that motor showing that rate that motor is actually turning, both be used in a PID.
Would both the rate values have to be scaled for PID.
Attached a sample piece of code where I used a SCP instruction on the bench to try and scale a analog output based on the rate from the input. Not quite sure how to use a PID instead of the SCP.
I have been reading all of the post that deal with PID, and still a little confused.
Have not ever had a project where I used the PID, and any advice would be appreciated. I hope my explanation is understandable.
Thanks
This will be coupled directly to some drive rollers, and a encoder will be mounted on one of the rollers.
This rate of 0-117rpm, will then be used as a master reference for another motor that will be slaved to it. I downloaded a sample file from AB web site that showed how to use a micrologix plc and determine rate, and it appears to work. I can place a tach on the head of a cordless drill which I am using to turn the encoder, and the value in the lad for the rate and the tach are the same.
How can I take this information and use the encoder that will be mounted on the second motor and set up a PID to then control the speed of the slave motor, which will have a encoder on it as well? The encoder for that motor will be a 0-1000 pulse per revolution encoder as well. What I am wondering is how can the rate value from the first motor be used to determine the speed that the 2nd motor will need to run, and a encoder that will be mounted on the 2nd motor to show the actual rpm from that motor showing that rate that motor is actually turning, both be used in a PID.
Would both the rate values have to be scaled for PID.
Attached a sample piece of code where I used a SCP instruction on the bench to try and scale a analog output based on the rate from the input. Not quite sure how to use a PID instead of the SCP.
I have been reading all of the post that deal with PID, and still a little confused.
Have not ever had a project where I used the PID, and any advice would be appreciated. I hope my explanation is understandable.
Thanks