In the PPNC program, we use the “% n” adjustment in plc OverridePLC as Coord  .DesTimeBase = Sys.ServoPeriod * RapidOverrideInput / 100.
How to adjust the "feed override" with External Time-Base ?
Is there a reason you would want to mix feedrate override with external time base? The whole point of external time base would be to go at the same speed an the encoder. I'd assume you'd want to slow down the motor that is the time base master, not the slave coordinate system.
Normally feedrate override is accomplished by changing Coord[x].DesTimeBase so that Coord[x].TimeBase changes based on Coord[x].TimeBaseSlew. When using external time base, Coord[x].DesTimeBase will still change from %n, but it will have no affect on Coord[x].TimeBase as it is set based on encoder velocity.
We can probably still make this happen if an extra ECT entry is used to multiply in Coord[x].DesTimeBase. Although this would probably require a RTI PLC or servo algorithm to repeated values from Coord[x].DesTimeBase to Sys.Idata where the ECT can actually point. This strategy would ignore Coord[x].TimeBaseSlew.
(03-28-2019, 09:12 AM)Eric Hotchkiss Wrote: Is there a reason you would want to mix feedrate override with external time base? The whole point of external time base would be to go at the same speed an the encoder. I'd assume you'd want to slow down the motor that is the time base master, not the slave coordinate system.
Enctable.pEnc=Enctable.PrevEnc and changing Enctable.ScaleFactor with varOverraid?
If you declare the table EncTable , you will not be able to write.