SETPVT        Setup PVT mode operation

Syntax                        

SETPVT value16

SETup PVT mode operation

 

Operandsvalue16: 16-bit integer immediate value

PlaceTMLOnline

Binary code

DescriptionSets the PVT mode operation as specified by the value16. Value16 has the following significance:

SETPVTdescription

       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