SETPVT Setup PVT mode operation |
Syntax
Binary code
Remark: after SETPVT execution, a copy of value16 is saved in the TML variable PVTMODE.
Example // PVT sequence. Position feedback: 500 lines incremental // encoder (2000 counts/rev) MASTERID = 4081; // Set host address to 255 (255<<4+1) SETPVT 0xC000; //Clear PVT buffer, disable counter check //Don’t change counter & buffer low condition MODE PVT; // Set PVT Mode TUM1;//Start from actual value of position reference CPR; // Relative mode PVTP 400L, 60, 10U, 0;//PVT(0.2[rot], 1800[rpm], 0.01[s]) UPD; //Execute immediate PVTP 400L, 0, 10U, 0;//PVT(0.4[rot], 0[rpm], 0.02[s]) !MC; WAIT!; //wait for completion |