XPS Unified Programmer’s Manual
7.2.1.376 XYPTLoadToMemory
Name
XYPTLoadToMemory – Load some lines of PT trajectory to the controller memory.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks trajectory data (data length must >0 and ≤400): (-3) or (-17)
- Checks group type (must be a XY group): (-8)
- Checks group name: (-19)
- Not available in this configuration (PrecisionPlatform firmware only): (-24)
Description
This function loads some lines of PT trajectory into XPS controller memory. Each
trajectory element must be separated by a comma. The trajectory lines are separated
between them by a “\n” (LF) character. To verify or to execute the PT trajectory loaded
in memory, use the string “FromMemory” instead of a file name.
NOTE
All of the PT functions, when called with the string “FromMemory” instead of a
FileName, will perform the same operation as the PT trajectory in RAM as it does
from a disk.
Example:
XYPTLoadToMemory(socketId,myGroup,”dT1,dX11,dX12\n…dTn,dXn1,dXn2\n
”)
XYPTVerification (socketId,myGroup,FromMemory)
XYPTExecution(socketId,myGroup,FromMemory,1).
Prototype
int XYPTLoadToMemory(
int SocketID,
char GroupName[250],
char TrajectoryData[400]
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
GroupName char * Group name.
TrajectoryData char * Trajectory data lines.
Output parameters
None.
549 EDH0373En1023 — 01/18