Electronic Gearing – Related TML Instructions and Data |
Parameters CACC Maximum acceleration in slave mode when UPGRADE.2=1
GEARMASTER Denominator of gear ratio
MASTERRES Master resolution used by slave(s) Measured in master position units
Variables
APOS_LD Actual load position. Measured in position units. Alternate name: APOS ASPD_LD Actual load speed – measured in speed units APOS_MT Actual motor position. Measured in motor position units. ASPD_MT Actual motor speed. Measured in motor speed units. Alternate name: ASPD Instructions EXTREF 0 Get master position via a communication channel EXTREF 2 Compute master position from pulse & direction or quadrature encoder signals MODE GS Set electronic gear slave mode SGM Set electronic gear master mode RGM Reset electronic gear master mode REG_ON Enable superposed mode REG_OFF Disable superposed mode SETSYNC value Send synchronization messages at the time interval indicated by the 16-bit value. Measured in time units TUM1 Target Update Mode 1 (TUM1). Generates new trajectory starting from the actual values of position and speed reference (i.e. don’t update the reference values with load/motor position and speed) TUM0 Target Update Mode 0 (TUM0). Generates new trajectory starting from the actual values of load/motor position and speed (i.e. updates the reference values with load/motor position and speed) UPD Update motion parameters and start new motion mode STOP Stop the motion SRB Set/reset bits from a TML data Remarks:
Programming Example //Electronic gearing. Master position is received via //communication channel inputs. //Master resolution: 2000 counts/rev
// On slave axis (Axis ID = 1): GEAR = 0.3333; // gear ratio GEARMASTER = 3; //gear ratio denominator GEARSLAVE = 1; //gear ratio numerator EXTREF 0; // master position got via communication channel MASTERRES = 2000; // master resolution REG_ON; //Enable superposition MODE GS; //Set as slave, position mode TUM1; //Set Target Update Mode 1 SRB UPGRADE, 0xFFFF, 0x0004; //UPGRADE.2 = 1 CACC = 0.9549; //Limit maximum acceleration at 3000[rad/s^2] UPD; //execute immediate
// On master axis: SLAVEID = 1; SGM; //Enable Master in Electronic Gearing mode SRB OSR, 0xFFFF, 0x8000; // OSR.15=1 -> Send Position Reference [1]MPOS0 = TPOS; UPD; //execute immediate SETSYNC 20; //Send synchronization messages every 20[ms] See also: |