XPS Unified Programmer’s Manual
7.2.2.68 ZygoWriteWord
Name
ZygoWriteWord – Write data to a word register of ZMI Measuring board.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
Description
This function changes a word register data (max 16-bits) to a ZMI Measuring board.
Example
Write 0x0020 to Control Register 1 on Axis 1:
ZygoWriteWord(AXIS1, A, 20)
ZMI Measuring board Response:
OK
Prototype
int ZygoWriteWord(
int SocketID,
char * AxisNum,
char * Register,
char * Data,
char * Response
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
AxisNum char * “AXIS1” or “AXIS2”.
Register char * Register value in hexadecimal.
Data char * Data value in hexadecimal in max-16bits.
Output parameters
Response char * Response returned by the ZMI Measuring board.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
• 0: No error.
• -2: TCP timeout.
• -1000: Zygo command execution failed.
• -1001: The controller is not connected to Zygo TCP server. Run
ZygoStartInterferometer API.
• Zygo errors: Refer to section 8.9: “Error List”.
669 EDH0373En1023 — 01/18