SEND                Send to the host the content of a variable

Syntax                        

SEND VAR16

SEND the content of VAR16

SEND VAR32

SEND the content of VAR32

 

OperandsVAR16: integer variable

VAR32: long/fixed variable

PlaceTML

Binary code

SEND

DescriptionWhen the instruction is encountered, the content of VAR16/VAR32 is sent using “Take Data 2” message type. The instruction uses a 9-bit short address for the destination variable. Bit value X specifies the destination address range:

Addressrange

 

Execution        The value of VAR16/VAR32 is sent using “Take Data 2” message.

 

Example

MASTERID = 33; // Set host ID / address = 2

//Send SRH & SRL if motion complete or pos. trigger 1 bits change

SRH_MASK = 0x0002;

SRL_MASK = 0x0400;

MER_MASK = 0xFFFF; // send MER on any bit change

SEND CAPPOS; // Send to host contents of variable CAPPOS