Hello all,
I am trying to synchronize the speed of two motors so that once an operator sets them both where they want they can push a button that syncs them. Thus giving them one place to change the speed of the entire machine and both will follow at the same ratio they were when the sync button was pushed. The HMI input is 0-100 in BCD. So for example if motor A is at 100 and motor B is at 75 then the ratio would be 0.75. So I wrote some code to do the math and store that ratio, then multiply that ratio by the main motors set speed constantly. The problem is it doesn't work. I can not get this software to do anything with decimal points involved. I tried using non decimal numbers and it follows correctly. So any help would be appreciated.
c43 is in there to stop that rung from functioning during testing. V4200 gets zero loaded into it every time
Thank you.
I am trying to synchronize the speed of two motors so that once an operator sets them both where they want they can push a button that syncs them. Thus giving them one place to change the speed of the entire machine and both will follow at the same ratio they were when the sync button was pushed. The HMI input is 0-100 in BCD. So for example if motor A is at 100 and motor B is at 75 then the ratio would be 0.75. So I wrote some code to do the math and store that ratio, then multiply that ratio by the main motors set speed constantly. The problem is it doesn't work. I can not get this software to do anything with decimal points involved. I tried using non decimal numbers and it follows correctly. So any help would be appreciated.
c43 is in there to stop that rung from functioning during testing. V4200 gets zero loaded into it every time
Thank you.