EXTREF                Set external reference type

Syntax                        

EXTREF value

Set EXTernal REFerence type

Operandsvalue: type of reference 0, 1 or 2

PlaceTMLOnline

Binary code

EXTREF

DescriptionSets the external reference type depending on the parameter value:
value = 0: online – the reference is sent via a communication channel in one of the variables EREFP, EREFS, EREFT, EREFV function of the control mode
value = 1: analogue – the reference is read from a dedicated analogue input
value = 2: digital – the reference is provided as pulse & direction or encoder like signals

 

Example        

EXTREF 1;        // the external reference is read from the analogue

// input dedicated for this purpose