Syntax
SGM
|
Set axis as Gear/Cam Master
|
Binary code
Description | Sets the drive/motor in the electronic gearing / camming master operation. When set as master, the drive/motor sends either the load position APOS (if OSR.15 = 0) or the position reference TPOS (if OSR.15 = 1) to the axis or the group of axes specified in the TML parameter SLAVEID. Following a SGM command, the master transmission is enabled. The instruction becomes effective at the next update command UPD. |
Remark: Setting / resetting the master operation does not change the motion mode of the master
Example
// On master axis:
SLAVEID = 31; // send to axis 31
SGM; //Enable Master in Electronic Gearing mode
SRB OSR, 0xFFFF, 0x8000; // OSR.15=1 -> Send Position Reference
UPD; //execute immediate
|