GiveMeData Ask one axis to return a 16/32 bit data from memory TakeData Answer to GiveMeData request |
Syntax
Operands VAR: 16/32-bit TML data: register, parameter, variable or user variable 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
The dimension of the requested data is specified in the binary code through the VT bit: 0 – 16-bit, 1 – 32-bit. The data is identified by its memory address and type:
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. |