GiveMeData        Ask one axis to return a 16/32 bit data from memory

TakeData        Answer to GiveMeData request

Syntax                        

?VAR

Ask one axis to return a 16/32 bit value from memory

Answer to GiveMeData request

 

Operands        VAR: 16/32-bit TML data: register, parameter, variable or user variable

PlaceOnline

Remark: The online instructions are intended only for host/master usage and cannot reside in a TML program. Therefore their syntax is fictive, the only goal being to identify these commands.

In the Command interpreter, you can check the value of any TML data, by sending a GiveMeData request with syntax ?VAR. The value returned with the TakeData answer, is displayed. The same syntax may be used in the Binary Code Viewer to “emulate” a GiveMeData request and a TakeData answer

Binary code

GiveMeData

DescriptionThrough GiveMeData command an external device can request data from one drive/motor. The requested data can be:
A TML data from the RAM memory for data (dm)
A memory location from the RAM memory for TML programs (pm)
A memory location from the EEPROM SPI-connected memory (spi)

The dimension of the requested data is specified in the binary code through the VT bit: 016-bit, 1 – 32-bit. The data is identified by its memory address and type:

TypeMem

In the expeditor address, bit H – the host bit – must be set to 1 only if the host sends the GiveMeData request via serial RS-232 link. For details, see serial communication protocol description.  

The answer to a GiveMeData command is a TakeData message including the expeditor Axis ID, the address of the data returned and its value.

Remark: The GiveMeData and TakeData commands must be used only for data exchanges between 2 devices. In a multi-axis CAN bus network, the GiveMeData command must be sent to a single axis. If this command is sent to a group of drives, the TakeData answers from different drives will have all the same identifier and therefore can’t be correctly identified.