Electronic Camming – Related TML Instructions and Data |
Parameters CSPD Maximum speed in slave mode when UPGRADE.2=1
CAMX Cam input correction factor. Cam input X (TML variable CAMINPUT) is: X = CAMINPUT = MPOS0 * CAMX where MPOS0 = MREF - CAMOFF CAMY Cam output correction factor. Cam table output Y is: Y = f(X) * CAMY
ACR Auxiliary Control Register – includes several TML programming options. When ACR.12 = 0, the camming is relative. When ACR.12 = 1, the camming is absolute. When ACR.2 = 0, the external reference is quadrature encoder. When ACR.2 = 1, the external reference is pulse & direction 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.
Instructions EXTREF 0 Get master position via a communication channel EXTREF 2 Compute master position from pulse & direction or quadrature encoder signals MODE CS Set electronic camming slave mode SGM Set electronic gearing/camming master mode RGM Reset electronic gearing/camming master mode SETSYNC value Send synchronization messages at the time interval indicated by the 16-bit value. Measured in time units INITCAM LoadAddress, RunAddress Copy a cam table from EEPROM starting with LoadAddress to RAM starting with RunAddress. Both values are unsigned integers 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 camming slave. Master position is read from 2nd // encoder inputs. Master resolution : 2000 counts/rev
CAMSTART = 0xF000; //Initialize CAM table start address EXTREF 2; // master position read from P&D or 2nd encoder CAMOFF = 200; //Cam offset from master CAMX = 0.5; //Cam input correction factor CAMY = 1.5; //Cam output correction factor MASTERRES = 2000; // master resolution MODE CS; //Set electronic camming slave mode TUM1; //Set Target Update Mode 1 SRB ACR, 0xEFFF, 0x0000; //Camming mode: Relative UPD; //execute immediate See also: |