Page 2
Original instructions. No part of this document may be reproduced or copied without the prior written approval of Newport Corporation. This document is provided for information only, and product specifications are subject to change without notice. Any change will be reflected in future publishings.
3.1.2 Installing the 64 bit (x64) Windows Platform ............4 Variables Equivalent for Programming Langages ............5 How to Use XPS .NET Assembly from Visual Studio C#? ..........6 3.3.1 Add Reference to Newport XPS .NET Assembly ..........6 3.3.2 C# Code Sources ....................
Page 4
6.5.6 ZYGO Axis Error Status List ................40 6.5.7 ZYGO Axis Status List ..................41 XPS Functions Description ..............42 Input Tests Common to all XPS Functions ..............42 XPS Functions Lists ....................... 43 7.2.1 Standard Functions ....................43 7.2.1.1 CleanCoreDumpFolder ................
Page 14
XPS Unified Programmer’s Manual Lists and Tables for XPS Functions ..........670 Event Triggers List ....................... 670 Actions List ........................672 Gathering Data Types ....................673 External Gathering Data Types ..................675 Positioner Error List ..................... 676 Positioner Hardware Status List ................... 677 Positioner Driver Status List ..................
Programmer’s Manual Universal High-Performance Motion Controller/Driver Note This XPS Programmer's Manual describes all the functions available for the XPS family of controllers. NOTE Not all below described functions are available for XPS standard controller. If you are interested in a function that is described but not available for your controller, please contact Newport.
The function call is blocked until a reply is sent by the XPS, or until the timeout value is reached. Running several processes in parallel (for instance getting the position while a stage is moving), several sockets can be used in parallel.
When developing your application, refer to the programming environment documentation to make the installed .NET assembly visible. To communicate with the XPS controller you will need to: • Use the OpenInstrument method to connect to the controller • Communicate with the controller using any of its API e.g. FirmwareVersionGet •...
The .NET assembly is in the controller in “/Public/Drivers” folder, refer to the controller user’s manual for more details. Download the “Newport.XPS.CommandInterface_x86.exe” to your computer. Once downloaded, run it. The .NET assembly “Newport.XPS.CommandInterface.dll” is installed in the GAC for x86 platforms in “C:\Windows\Microsoft.NET\assembly\GAC_32\Newport.XPS.CommandInterface\” folder and is ready for use.
XPS Unified Programmer’s Manual Variables Equivalent for Programming Langages The table below describes a simple of a prototype model for different languages: int FunctionName (double inputParam, double * outputParam) Prototype int FunctionName(int SocketID, double inputParam, double * outputParam) VBasic Long FunctionName(ByVal SocketID As Long, ByVal inputParam As...
XPS Unified Programmer’s Manual How to Use XPS .NET Assembly from Visual Studio C#? Refer to Microsoft for more information on how to load and use a .NET assembly depending on your Visual Studio version. 3.3.1 Add Reference to Newport XPS .NET Assembly In your project add Newport.XPS.CommandInterface.dll in References from Windows...
Select CommandInterfaceXPS and XPS constructor from a .Net Constructor Node (refer to Connectivity panel): 3.4.2 LabVIEW Code Sources The instance of “XPS” object is created after configuration of .Net Constructor Node: Open XPS connection (Use a .Net Invoke Node to select the XPS method “OpenInstrument”): EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Call “XPS” functions (Use a .Net Invoke Node to select a XPS method): Close XPS connection (Use a .Net Invoke Node to select the XPS method “CloseInstrument”): Close .NET Reference: How to Use XPS .NET Assembly from IronPython?
Page 23
XPS Unified Programmer’s Manual Create an Instance # Create XPS interface myXPS = XPS() Open XPS Connection def XPS_Open (address, port): # Create XPS interface myXPS = XPS() # Open a socket timeout = 1000 result = myXPS.OpenInstrument(address, port, timeout) if result == 0: print 'Open ', address, ":", port, "...
XPS Unified Programmer’s Manual How to Use XPS .NET Assembly from Matlab? Refer to Matlab for more information on how to load and use a .NET assembly depending on your Matlab version. 3.6.1 Add Reference to .NET Assembly % Make the assembly visible from Matlab asmInfo = NET.addAssembly('Newport.XPS.CommandInterface')
XPS Unified Programmer’s Manual TCP/IP Support Functions To ease the use of the TCP/IP communication, few functions have been develop by Newport. These functions uses the Microsoft System.Net.Sockets. OpenInstrument Name OpenInstrument – Create and open a socket. Description This function is used to create and open a socket. Send Timeout is set to 1 second...
XPS Unified Programmer’s Manual CloseInstrument Name CloseInstrument – Closes the current socket. Description This function is used to close the current socket. Prototype int CloseInstrument () Input parameters None. Output parameters None. Return • 0: No error. • -1: Error of socket close.
XPS Unified Programmer’s Manual XPS Standard Firmware Architecture (Base Version) Group Definition The “Group” objects are used to define one or several “positioners” in the same motion group. The available motion groups are defined in the section [GROUPS] in the system.ini file and the group types are:...
The positioner includes a mapping correction: X = f (X) The positioner includes the SGamma profile. The maximum number of positioners is limited to ControllerAxesNumber (4, 8, 12 or 16, depending on type of the XPS controller hardware). 5.2.1 Object Structure To use a positioner, it must belong to a motion group.
XPS Unified Programmer’s Manual 5.2.2 Definition of the Positions Available for Each Positioner For each positioner, three different positions can be called: 1. The SetpointPosition is the profiler position. This is the position where the positioner should be according to the ideal theoretical motion profile.
The SingleAxis group is composed of one single positioner for the execution of motion commands. A SingleAxis group can be used in GANTRY mode (dual positioner). The XPS controller can handle several SingleAxis objects. There is no relation between SingleAxis objects and other objects handled by the controller.
XPS Unified Programmer’s Manual Spindle Group A Spindle group is very similar to the SingleAxis group. It is composed of only one positioner with one main difference, it does not handle software or hardware end of runs. Therefore, it is allowed to spin indefinitely in any direction. The SingleAxis group motion commands are still allowed (except jog, which is replaced by spin).
XPS Unified Programmer’s Manual XY Group An XY group is composed of two positioners, typically in an orthogonal XY configuration. An XY group can be used in GANTRY mode (dual positioner for X or for Y). It includes an XY mapping feature: XY = f (XY) It includes a line-arc and a PVT (PositionVelocityTime) two-dimension trajectories.
XPS Unified Programmer’s Manual XYZ Group An XYZ group is a three positioner object, typically in an orthogonal XYZ configuration. It includes an XYZ mapping feature: XYZ = f(XYZ) It also includes 3D spline trajectories. EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual MultipleAxes Group A MultipleAxes group is an n-positioner object, where n can be any number from 1 to A MultipleAxes group can be used in GANTRY mode (dual positioner for one or several positioners). It includes the PVT (PositionVelocityTime) and PT (PositionTime) trajectories.
XPS Unified Programmer’s Manual Analog and Digital I/O 5.8.1 GPIO Name List 5.8.1.1 XPS-Q Hardware Digital inputs GPIO1.DI Digital Input of the I/O board connector #1 (8 bits) GPIO2.DI Digital Input of the I/O board connector #2 (6 bits) GPIO3.DI Digital Input of the I/O board connector #3 (6 bits) GPIO4.DI...
XPS Unified Programmer’s Manual XPS Extended Firmware Architecture (Contact Newport) NOTE Contact Newport to obtain the extended firmware version that includes the following features. SingleAxisWithClamping Group The SingleAxisWithClamping Group is composed of one single positioner that allows execution of motion commands.
XPS Unified Programmer’s Manual 6.1.2 Group Clamping Sequence 6.1.2.1 Clamping State Diagram NOTES In case of recoverable errors (go to DISABLE state or go to READY state), the clamp is unclamped. In case of fatal errors (go to NOT INIT state), the clamp stays in the current state (clamped).
XPS Unified Programmer’s Manual SingleAxisTheta Group The SingleAxisTheta is composed of one single positioner object with three encoders (Theta encoder) for the execution of motion commands. It includes a “Yaw” mapping and a “Theta” correction on an XY group. A SingleAxisTheta group CANNOT be used in GANTRY mode (secondary positioner is impossible).
XPS Unified Programmer’s Manual 6.2.2 Group Clamping Sequence 6.2.2.1 Clamping State Diagram NOTES In case of recoverable errors (go to DISABLE state or go to READY state), the clamp is unclamped. In case of fatal errors (go to NOT INIT state), the clamp stays in the current state (clamped).
• It does not support 3D spline trajectories. • It supports TZDecoupling, XYtoZZZAccelerationFeedforward and TZTracking functionalities. • It supports Focus process via the XPS focus interface board and focus process module (focus.out). • It has a specific way of initialization (MotorDriverInterface = AnalogAccelerationTZ).
Programmer’s Manual User External Module Programming The user external module programming manages the written by user program blocks (ExternalModules) in the XPS controller, with the following conditions: Every user external module is written in C language (GNU with QNX Momentics •...
XPS Unified Programmer’s Manual ZYGO Interferometer 6.5.1 ZMI Measurement System Refer to ZMI 2400 series manual - OMP 0537_F 6.5.2 ZYGO P2 Interface Registers P2 Registers Read Write Axis status Position Axis #1 Read only Velocity Time Axis status Position...
Detection and Status Reporting” section for more information. The bits that correspond to fatal errors are indicated by “(F)”. Table 3-4 Status, Error, and High Nibble P2 Interface Register Bit Positions Description XPS group state after detection 1 (not used) 1 (not used) 1 (not used)
Not used 0x8000 IRQ Pending The axis error status register is read via Ethernet. A XPS controller error is generates when one or several bits of Error mask are ON. In this case, the group goes to NOTINIT state. EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual 6.5.7 ZYGO Axis Status List code Status description Success 0x0001 Reference signal present 0x0002 Reference PLL 0x0004 System OK 0x0008 Measure Signal present 0x0010 Position Reset Complete 0x0020 ADC Ready 0x0040 ADC Mux = 0 0x0100...
XPS Unified Programmer’s Manual XPS Functions Description Input Tests Common to all XPS Functions For all commands, general input tests are the following: General: Controller initialization failed. XPS initialization in progress. Check the command format: Wrong format in the command string.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -22: Not allowed action. • -100: Internal error.
CleanTmpFolder(int SocketID) Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -100: Internal error. EDH0373En1023 — 01/18...
(on an user socket) process before the socket is really closed. Prototype int CloseAllOtherSockets() Input parameters None. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -107: This function requires Administrator rights. NOTE Call the “Login”...
CPUProfilerLoadRatio double * Controller motion kernel profiler CPU time load. CPUServitudesLoadRatio double * Controller motion kernel servitudes CPU time load. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
This function gets the last exact value of the controller’s corrector period and the corrector calculation time. NOTE The default value of XPS controller corrector period is 0.125 ms (corresponding to an 8 kHz controller corrector frequency). Prototype int ControllerRTTimeGet(...
Input parameters SocketID Socket identifier used in each function. Output parameters SlaveControllerStatus int * Slave status of the controller. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier used in each function. SlaveControllerStatus Slave controller status code. Output parameters SlaveControllerStatusString char * Slave controller status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier used in each function. SlaveControllerStatus Slave controller status code. Output parameters SlaveControllerStatusString char * Slave controller status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
ControllerStatusRead(int SocketID, int * ControllerStatus) Input parameters SocketID Socket identifier used in each. function. Output parameters ControllerStatus int * Status of the controller. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
SocketID Socket identifier used in each function. ControllerStatusCode Controller status code. Output parameters ControllerStatus char * Controller status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
* ModeString Input parameters SocketID Socket identifier used in each function. ModeString char * Synchronization mode. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
This function clears any data in the data collection buffer. Prototype int DataCollectionBufferReset( int SocketID, Input parameters SocketID string Socket identifier used in each function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
It allows to reset data and time stamp at once with a function call only. Prototype int DataCollectionBufferAndTimeReset( int SocketID, Input parameters SocketID string Socket identifier used in each function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Number of data blocks to get. Output parameters NbReturnBlocks int * Number of actually returned blocks. Frame char * Blocks of collected data. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
SocketID string Socket identifier used in each function. Output parameters TimeStamp double * Data collection current time stamp (milliseconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
This function resets internal millisecond counter used as time stamp for data collection. Prototype int DataCollectionTimeStampReset( int SocketID, Input parameters SocketID string Socket identifier used in each function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
“TCP_ConnectToServer” function. Number Index in the global array. Output parameters DoubleValue double * Variable value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Index in the global array. DoubleValue double Variable value. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
* ElapsedTime Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters ErrorString double * Elapsed time (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. ErrorCode Error code. Output parameters ErrorString char * Error description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Output parameters EventIdentifiersList char * List of “event and action” identifiers in scheduler. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -83: Event ID not defined. EDH0373En1023 — 01/18...
“Event and action” identifier from “ExtendedEventStart”. Output parameters ActionConfiguration char * Action combination configured in buffer. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -81: Action not configured. EDH0373En1023 — 01/18...
“EventExtendedStart” function to activate these defined actions. For each action, 4 parameters can be configured … see event specification to see which are necessary. The actions are defined in section “Events and Actions” in the XPS user’s manual. The number of actions in a combination is limited to 10 actions.
Page 80
ActionParameter4 char * optional action’s parameter #4 (maximum size = 250). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters EventTriggerConfiguration char * Event combination configured in buffer. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -80: Event not configured.
Name EventExtendedConfigurationTriggerSet - Defines a combination of one or several events in buffer. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Event actor: (-8) Event name: (-40) Description Defines one trigger (combination of one or several events). To activate the trigger, use the “EventExtendedStart”...
Page 83
* list of optional event’s parameter #4 (maximum size = 250). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
EventConfiguration char * Event combination defined in scheduler. ActionConfiguration char * Action combination defined in scheduler. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -83: Event ID not defined.
Socket identifier gets by the “TCP_ConnectToServer” function. EventID “Event and action” identifier. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Name EventExtendedStart – Activates the “event and action” defined in the buffer. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Event name to execute: (-8), (-40) Last event configuration in memory: (-80) Last action configuration in memory: (-81)
Page 87
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters EventID int * “Event and action” identifier. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
EventExtendedWait – Activates the last “event” configuration in memory and wait until it occurs. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Event actor: (-8) Last event configuration in memory: (-80) Number of compositions in execution: (-82)
Page 89
Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -40: Mnemonic event doesn't exist.
ModuleNumber External module number Output parameters Version char * External module firmware version. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
Current scan executing duration. MaximumDuration char * Maximum scan executing duration. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. ModuleNumber External module number Output parameters None Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Socket identifier gets by the “TCP_ConnectToServer” function. ModuleNumber External module number Output parameters None Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Socket identifier gets by the “TCP_ConnectToServer” function. NewFileName char * New file name used to rename “Gathering.dat”. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. NewFileName char * New file name used to rename “history.tcl”. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
* Version Input parameters SocketID Socket identifier gets by the TCP_ConnectToServer” function. Output parameters Version char * Controller firmware version. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
* Version Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Version char * Controller version. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
“TCP_ConnectToServer” function. Output parameters TypeList char * List of configured gathering types (separator is semicolon). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. EDH0373En1023 — 01/18...
Number of types. TypeArray char * Array of configured gathering types. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -29: Mnemonic gathering type doesn't exist. • -32: Gathering not configured.
CurrentNumber int * Current number during acquisition. MaxSamplesNumber int * Maximum number of samples. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. EDH0373En1023 — 01/18...
GatheringDataAcquire(int SocketID) Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. • -43: Gathering running.
Output parameters DataBufferLine char * String contains values from the current buffer at the selected index. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. EDH0373En1023 — 01/18...
GatheringDataMultipleLinesGet – Reads several data lines from the current gathering buffer in memory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks index number: (-17) • IndexPoint ≥ 0 (Note: index #0 = line #1) •...
Page 104
DataBufferLine char * String contains values from the current buffer at the selected index. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
“TCP_ConnectToServer” function. Output parameters TypeList char * List of configured gathering types (separator is semicolon). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. EDH0373En1023 — 01/18...
Number of types. TypeArray char * Array of configured gathering types. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -29: Mnemonic gathering type doesn't exist. • -43: Gathering running.
CurrentNumber int * Current number during acquisition. MaxSamplesNumber int * Maximum number of samples. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. EDH0373En1023 — 01/18...
DataBufferLine char * String contains values from the current buffer at the selected index. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Checks number of data (>0): (-30) Checks file opening: (-60) Description This function stops externally triggered data gathering and saves the data into the XPS controller. Gathered data is stored in the “GatheringExternal.dat” file under “..\Public” folder of XPS controller.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -43: Gathering running. EDH0373En1023 — 01/18...
The number of data line to gather. Divisor The divisor of the servo frequency. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -32: Gathering not configured. • -43: Gathering running.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -30: Gathering not started. • -60: Error during file writing or file doesn't exist.
Description This function stops internally triggered data gathering as well as saves the data to the XPS controller. Data is stored in GATHERING.DAT file under “..\Public” folder of the XPS controller. For more thorough description of internal data gathering capability, please refer to section Data Gathering/Internal Data Gathering of XPS Motion Tutorial.
XPS Unified Programmer’s Manual 7.2.1.54 GetLibraryVersion Name GetLibraryVersion – Gets the version of the DLL library. Input tests None. Description This function returns the version of DLL library. The library version represents the firmware version that was used to build the library.
Number Index in the global array. Output parameters StringValue char * Variable value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
Index in the global array. StringValue char * Variable value. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
Analog I/O of the XPS Motion Tutorial for further information about ADC gain. The gain value must be 1, 2, 4 or 8. The maximum number of INT boards that can be plugged inside the XPS controller is 2, increasing the number of analog inputs (ADC) from 4 to 8.
If the conversion of the gain value to bits fails then (-22) error is returned. The maximum number of INT boards, that can be plugged inside the XPS controller, is 2, increasing the number of analog inputs from 4 to 8.
List of analog GPIO names – separator is comma. Output parameters AnalogGainValueArray double * Analog GPIO value array (DAC or ADC). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
GPIOName char * GPIO name. Output parameters DACRange double * DAC range value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
* GPIO name. DACRange double DAC range value. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
AnalogGainValueArray double * Analog GPIO value array (DAC or ADC). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Digital GPIO name (maximum size = 250). Output parameters AnalogGainValueArray uint * Analog GPIO value array (DAC or ADC). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Mask. DigitalOutputValue ushort Digital output value. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -22: Not allowed action.
GPIOName GPIO digital I/O name. Output parameters PulseWidth double * Current GPIO pulse width (µsec). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
GPIO digital I/O name. PulseWidth double GPIO digital I/O pulse width (µsec). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
NbPositioners Number of positioners in the group. Output parameters CurrentAcceleration double * Current acceleration array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Number of positioners in the selected group. Output parameters SetpointAcceleration double * Setpoint Acceleration array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -9: Wrong number of parameters in the command. • -19: GroupName doesn't exist or unknown command.
GroupAnalogTrackingModeEnable Name GroupAnalogTrackingModeEnable - Enables the analog tracking mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids tracking type (“Position” or “Velocity”): (-8) Valids group name: (-19) Group status must be “READY”: (-22) Configured tracking: (-22) Description Enables the analog tracking mode.
Page 132
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -9: Wrong number of parameters in the command. • -19: GroupName doesn't exist or unknown command. • -22: Not allowed action.
* Group name (XY). Output parameters BrakeCommand int * Brake command (0 or 1). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Group name (XY). BrakeCommand Brake command (0 or 1). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
NbPositioners Number of positioners in the selected group (1 if positioner). Output parameters CorrectorOutput double * Corrector output array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
(1 if positioner). Output parameters CurrentFollowingError double * Current following error array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: Positioner Name doesn't exist or unknown command.
* XY group name. Output parameters Option char * Option0, Option1 or Option2. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
XY group name. Option char * Option0, Option1 or Option2. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -19: GroupName doesn't exist or unknown command.
GroupHomeSearch Name GroupHomeSearch - Initiates a home search. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. The actor must be a valid group name: (-19) Group status must be "Not referenced”: (-22) Description This function initiates a home search for each positioner of the selected group.
Page 140
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -19: GroupName doesn't exist or unknown command. • -22: Not allowed action.
Name GroupHomeSearchAndRelativeMove - Initiates a home search followed by a relative move. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids group name: (-19) Group status must be "Not referenced”: (-22) Description This function initiates a home search followed by a relative move at the end of the home search.
Page 142
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -19: GroupName doesn't exist or unknown command. • -22: Not allowed action.
GroupInitialize - Initializes the motor and activates the servo loop of the selected group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Actor must be a group: (-8), (-18) Valids group name: (-19) Group status must be "NOTINIT”: (-22)
Page 144
“TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -5: Not allowed due to a positioner error or hardware status.
GroupInitializeNoEncoderReset - Initializes the motor without encoder reset and activates the servo loop of the selected group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Actor must be a group: (-8), (-18) Valids group name: (-19) Group status must be "NOTINIT”: (-22)
Page 146
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -5: Not allowed due to a positioner error or hardware status. • -8: Wrong object type for this command.
GroupInitializeWithEncoderCalibration - Initializes motor, calibrates encoder and activates servo loop. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Actor must be a group: (-8), (-18) Valids group name: (-19) Group status must be "NOTINIT”: (-22)
Page 148
“TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -5: Not allowed due to a positioner error or hardware status.
G3 depends on G1 and G2 (G3 in action if an error occurs on G1 or G2) The interlocked groups are listed in the [GROUPS] section of system.ini file: InterlockedGroups = …; Names of groups involved in the GroupInterlock mode. The GroupInterlock mode is enabled by default at boot of the XPS controller. Prototype int GroupInterlockDisable(...
• G3 depends on G1 and G2 (G3 in action if an error occurs on G1 or G2). The interlocked groups are listed in the [GROUPS] section of system.ini file: InterlockedGroups = …; Names of groups involved in the GroupInterlock mode. The GroupInterlock mode is enabled by default at boot of the XPS controller. Prototype int GroupInterlockEnable(...
CAUTION The jog mode cannot be used with a spindle group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Valids positioner name: (-18) Valids group name: (-19)
Page 152
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. • -19: GroupName doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -8: Wrong object type for this command.
GroupJogModeEnable Name GroupJogModeEnable – Enables the jog mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group): (-8), (-18) Valids group name: (-19) Group status must be “READY”: (-22) Backlash must not be activated: (-46) Description Enables the Jog mode.
Page 155
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. • -19: GroupName doesn't exist or unknown command.
Name GroupJogParametersGet – Gets the velocity and acceleration set by “GroupJogParametersSet”. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Valids positioner name: (-18) Valids group name: (-19) Description This function returns the velocity and acceleration in jog mode set by the user for one positioner or for all positioners of the selected group.
Page 157
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. • -19: GroupName doesn't exist or unknown command.
GroupJogParametersSet – Changes the velocity and acceleration on the fly, in jog mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Valids positioner name: (-18) Valids group name: (-19) Group status must be “JOGGING”: (-22)
Page 159
User jog velocity array. Acceleration double User jog Acceleration array. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Number of positioners in the selected group. Output parameters Status int * Positioner status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
GroupMoveAbort – aborts the motion or the jog in progress for a group or a positioner. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Valids positioner name: (-18) Valids group name: (-19) Group status must be "MOVING”...
Page 165
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
GroupMoveAbortFast – aborts with user-defined deceleration a motion or a jog in progress for a group or positioner. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Valids UserDecelerationMultiplier value (≥1 and ≤100): (-17)
Page 167
GroupName char * Group name. DecelerationMultiplier Braking deceleration multiplier. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
GroupMoveAbsolute - Initiates an absolute move for a positioner or a group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Verifies target position in relation with the travel limits: (-17) •...
Page 169
Number of positioners in the selected group. TargetPosition double * Target position array. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
YPosition double in controller unit. Y position to check Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -211: Not expected position after motion.
GroupMoveRelative - Initiates a relative move for a positioner or a group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Verifies target displacment in relation with the travel limits: (-17) •...
Page 172
Number of positioners in the selected group. Displacement double * Relative displacement array. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Number of positioners in the selected group. Output parameters CurrentPosition double * Current position array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Number of positioners in the selected group. Output parameters SetpointPosition double * Setpoint position array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Number of positioners in the selected group. Output parameters TargetPosition double * Target position array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Initiates a referencing action for a positioner. A referencing action is defined by a given action name (see “Action list” below), with a given sensor name (see “Sensor list” below) and parameters. For more detail, see XPS User’s manual referencing section. Action list...
Page 177
Parameter double Referencing parameter (related to the referencing action). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -19: GroupName doesn't exist or unknown command. • -22: Not allowed action.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -19: GroupName doesn't exist or unknown command. • -22: Not allowed action.
Spindle group name. Output parameters Velocity double * Velocity (units/s). Acceleration double * Acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Spindle group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Output parameters Velocity double * Setpoint Velocity (units/s). Acceleration double * Setpoint Acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
GroupSpinParametersSet Name GroupSpinParametersSet – Sets the spin profiler parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the group type (must be a spindle group): (-8) Checks input parameter value: (-17) • Velocity ≤MaximumVelocity.
Page 184
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
* Group name. Output parameters GroupStatus int * Status of the group. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupStatusCode Group status code. Output parameters GroupStatusString char * Group status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Number of positioners in the selected group. Output parameters CurrentVelocity double * Current Velocity array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
NbPositioners Number of positioners in the group. Output parameters SetpointVelocity double * Setpoint velocity array. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Description This function returns the current date and time of XPS controller with the format “WeekDay Month Day Hour:Minute:Second Year “, for example “Tue Jan 15 10:28:06 2008”.
Refer to section 7.1: “Input Tests Common to all XPS Functions”. Description This function sets the date and time of the XPS controller. The date format must be “WeekDay Month Day Hour:Minute:Second Year “, for example “Tue Jan 15 10:28:06 2008”.
Output parameters DriverName char * Driver reference. StageName char * Smart stage name. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -22: Not allowed action.
* Version Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Version char * Installer pack version. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters INTServitudesCommand short * INT servitudes command. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters INTServitudesStatus short * INT servitudes status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
4) the group state is not initialized “NOTINIT” for all groups. Prototype int KillAll( int SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
This function is not meant to be used from the “terminal” web page. NOTE To add a new user account, you must use the XPS web site with “Administrator” rights. In the main menu, select “Controller ” and go to the “Users management” page.
This function is not meant to be used from the “terminal” web page. NOTE To add a new user account, you must use the XPS web site with “Administrator” rights. In the main menu, select “Controller ” and go to the “Users management”...
Name MultipleAxesPTExecution – Executes a PT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks trajectory file name length: (-3) Checks group type (must be a MultipleAxes group): (-8) Checks input value (number of executions must >0): (-17) Checks group name: (-19) Group state must be "READY”: (-22)
Page 199
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
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 each other by “\n” (LF) character. To verify or to execute the PT trajectory loaded in memory, use “FromMemory”...
Page 201
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Currently executing trajectory file name. CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name MultipleAxesPTPulseOutputGet – Gets the configuration of pulse generation for PT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a MultipleAxes group): (-8) Checks group name: (-19) Description This function returns the last configuration of pulse generation of a PT trajectory, that was previously set by MultipleAxesPTPulseOutputSet().
Page 204
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. EDH0373En1023 — 01/18...
MultipleAxesPTPulseOutputSet – Sets the configuration of pulse generation for PT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a MultipleAxes group): (-8) Checks group name: (-19) Checks the pulse generation must not be in progress: (-22) Description This function configures and activates the pulse generation of a PT trajectory.
Page 206
End pulse element number. TimeInterval double Time interval between pulses (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
This function verifies the execution of a PT trajectory. The results of the verification can be obtained by “MultipleAxesPTVerificationResultGet” function. The trajectory file must be stored in “\ADMIN\Public\Trajectory” folder of XPS controller. If the trajectory cannot be initialized (task error), error (-72) is returned.
Page 209
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
* Maximum position (units). MaximumVelocity double * Maximum velocity (units/s). MaximumAcceleration double * Maximum acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long.
Description This function executes a PVT (Position Velocity Time) trajectory. The trajectory file must be stored in “\Admin\Public\Trajectory” folder of XPS controller. If the trajectory cannot be initialized (message queue or task error), error (-72) is returned. Before the trajectory execution, it is recommended to check whether the trajectory is within the positioner motion capabilities by using “MultipleAxesPVTVerification”...
Page 212
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3 String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
Not available in this configuration (PrecisionPlatform firmware only): (-24) Description This function loads some lines of PVT trajectory into XPS controller memory. Each trajectory element must be separated by a comma. The trajectory lines are separated between each other by “\n” (LF) character. To verify or to execute the PVT trajectory loaded in memory, use “FromMemory”...
Page 214
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Currently executing trajectory file name. CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name MultipleAxesPVTPulseOutputGet – Gets the configuration of pulse generation for PVT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a MultipleAxes group): (-8) Checks group name: (-19) Description This function returns the last configuration of pulse generation for a PVT trajectory, that was previously set by MultipleAxesPVTPulseOutputSet().
Page 217
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. EDH0373En1023 — 01/18...
GPIO2, pin 12 GPIO1.DO7 GPIO5.DO15 To find the GPIO connector pin number from GPIOx.DOy, refer to XPS User’s Manual Example: MultipleAxesPVTPulseOutputSet(Group1, 3, 5, 0.01) One pulse will be generated every 10 ms between the start of the 3rd element and the end of the 5th element.
Page 219
End pulse element number. TimeInterval double Time interval between pulses (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
This function verifies the execution of the PVT trajectory. The results of the verification can be obtained by “MultipleAxesPVTVerificationResultGet” function. The trajectory file must be stored in “\ADMIN\Public\Trajectory” folder of the XPS controller. If the trajectory cannot be initialized (task error) , error (-72) is returned.
Page 222
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
* Maximum position (units). MaximumVelocity double * Maximum velocity (units/s). MaximumAcceleration double * Maximum acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long.
TimeOut Timeout in seconds used for each function execution. SocketID Socket identifier used in each function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Name PositionerAccelerationAutoScaling –Executes Auto-scaling process to determine the stage scaling acceleration. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Positioner must not be a “Secondary Positioner”: (-8) Checks group type: (-8) Checks positioner name: (-18) Group status must be not initialized: (-22) Control loop type must be “PIDFFAcceleration”: (-24)
Page 226
FrequecyTicks Number of frequency ticks. Output parameters Scaling double * Calculated scaling acceleration value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -5: Not allowed due to a positioner error or hardware status.
* Scale (Units/Volts). Velocity double * Velocity (Units/s). Acceleration double * Acceleration (Units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerAnalogTrackingPositionParametersSet – Sets the parameters of the current tracking position mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks Positioner and GPIO type (ADC): (-8) Checks velocity and acceleration: (-17) Checks input parameter: (-18)
Page 229
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerAnalogTrackingVelocityParametersGet – Gets the parameters of the current tracking velocity mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks input parameter: (-8), (-18) Description This function returns the analog input name, the offset, the scale, the deadband threshold and the order used by analog traking velocity mode.
Page 231
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. EDH0373En1023 — 01/18...
PositionerAnalogTrackingVelocityParametersSet Name PositionerAnalogTrackingVelocityParametersSet – Sets the parameters of tcurrent tracking velocity mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks GPIO type (ADC): (-8) Checks Positioner: (-8), (-18) Checks velocity and acceleration: (-17) Description This function allows modifying the GPIO name, offset, scale, deadband threshold and the order used by analog tracking velocity mode.
Page 233
Velocity (Units/s). Acceleration double Acceleration (Units/s²). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. FullPositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
PositionerBacklashEnable Name PositionerBacklashEnable – Enables the backlash compensation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Group status must be “NOTINIT”: (-22) Checks the positioner type (must not be a secondary positioner): (-8) Description This function enables the backlash compensation defined in the “stages.ini” file or by “PositionerBacklashSet”...
Page 236
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -22: Not allowed action. EDH0373En1023 — 01/18...
BacklashValue double * Backlash compensation value (units). Status char * Backlash status (“Enable” or “Disable”). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Positioner name. BacklashValue double Backlash compensation value (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
Socket identifier gets by the “TCP_ConnectToServer” function. FullPositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* Positioner name. Output parameters Status int * PCO pulses generation status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. FullPositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensatedFastPCOFromFile – Reads firing positions from a data file to controller’s memory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name: (-18) Checks if CIEFAST compensated PCO pulses generation is enabled: (-121) Description This function reads firing positions from a data file to the controller’s memory.
Page 243
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. • -22: Not allowed action.
* Positioner name. DataLine char * Some data lines. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. PositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensatedFastPCOPrepare – Prepares data for CIEFast compensated PCO pulses generation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks direction value: (-17) Checks the positioner name: (-18) Checks if first and last PCO positions are within positions limits: (-35)
Page 247
StartPosition3 double Group 3 positioner start position (units). …. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* Width of pulse enable signal (units). PulsePolarity int *. PulseToggle bool *. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Width of pulse enable signal (units). PulsePolarity int *. PulseToggle bool *. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensatedFastPCOSet – Calculates a set of evenly spaced firing positions to the controller memory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks Start <Stop, Step >0, and (Stop – Start) <Step: (-17) Checks the positioner name: (-18) Checks if CIEFAST compensated PCO pulses generation is enabled: (-121) Checks data number NData = floor(Stop - Start) / Step + 1, if NData >1000000:...
Page 251
Stop position (units). Step double Distance between two consecutive pulses (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCompensatedPCOAbort – Aborts the CIE08 compensated PCO pulses generation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type: (-8) Checks the positioner name: (-18) Checks the position encoder (“AquadB” or “AnalogInterpolated”): (-24) Checks the CIE board supports this function: (-115) Checks CIE08CompensatedPCOMode = Enabled (system.ini): (-121)
Page 253
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner name doesn't exist or unknown command. • -24: Incorrect file name, bad section name, or not available in this configuration (check hardware or configuration).
* Positioner name. Output parameters Status int * PCO pulses generation status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner name doesn't exist or unknown command.
PositionerCompensatedPCOEnable – Activates the CIE08 compensated PCO pulses generation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name: (-18) Checks the position encoder (“AquadB” or “AnalogInterpolated”): (-24) Checks the CIE board supports this function: (-115) Checks CIE08CompensatedPCOMode = Enabled (system.ini): (-121)
Page 256
Socket identifier gets by the “TCP_ConnectToServer” function. FullPositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensatedPCOFromFile – Reads firing positions from a data file to controller memory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name: (-18) Checks the positioner type: (-8) Checks the position encoder (“AquadB” or “AnalogInterpolated”): (-24) Checks the CIE board supports this function: (-115) Checks CIE08CompensatedPCOMode = Enabled (system.ini): (-121)
Page 258
* Positioner name. DataFileName char * Data file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Name PositionerCompensatedPCOLoadToMemory– Appends firing positions to controller memory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name: (-18) Checks the positioner type: (-8) Checks the position encoder (“AquadB” or “AnalogInterpolated”): (-24) Checks the CIE board supports this function: (-115) Checks CIE08CompensatedPCOMode = Enabled (system.ini): (-121)
Page 260
* Positioner name. DataLine char * Some data lines. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. PositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensatedPCOPrepare – Prepares data for CIE08 compensated PCO pulses generation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name: (-18) Checks the positioner type: (-8) Checks the position encoder (“AquadB” or “AnalogInterpolated”): (-24) Checks the CIE board supports this function: (-115) Checks CIE08CompensatedPCOMode = Enabled (system.ini):...
Page 263
StartPosition3 double Group 3 positioner start position (units). …. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect •...
PositionerCompensatedPCOSet – Calculates a set of evenly spaced firing positions to the controller memory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks Start <Stop, Distance > 0, Width > 0, Width < Distance, Width < Stop-Start: (-17) Checks the positioner name: (-18) Checks the position encoder (“AquadB”...
Page 265
XPS Unified Programmer’s Manual Output parameter None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Positioner name. DisabledDirection char* “Both”, “Positive” or “Negative” Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Positioner name. EnabledDirection char* “Both”, “Positive” or “Negative” Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
“Positive” or “Negative”. FileName char * File name located in \Config folder. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Current “Enabled” status in the positive direction NegativeCompensationEnabledStatus char * Current “Enabled” status in the negative direction Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name PositionerCompensationDualLoopNotchFilterGet – Gets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks the notch filter number: (-17) Checks the positioner name: (-18)
Page 271
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
Name PositionerCompensationDualLoopNotchFilterSet – Sets the notch mode filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) • NotchFrequency with CorrectorPeriod = 0.0001 s (10 kHz) = >...
Page 273
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerCompensationDualLoopPhaseCorrectionFilterGet – Gets the phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks the notch filter number: (-17) Checks the positioner name: (-18)
Page 275
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensationDualLoopPhaseCorrectionFilterSet – Sets the notch mode filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) • PhaseCorrectionFn with CorrectorPeriod = 0.0001 s (10 kHz) = >...
Page 277
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
Name PositionerCompensationEncoderNotchFilterGet – Gets Encoder compensation notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks parameter values: (-17) Notch Frequency number Description This function returns parameters defined for the [Dual]EncoderFilter frequency notch filter from the encoder compensation (F4 compensation block) configured in encoder.
Page 279
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
Programmer’s Manual 7.2.1.174 PositionerCompensationEncoderNotchFilterSet Name PositionerCompensationEncoderNotchFilterSet – Sets Encoder compensation notch filters parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks parameter values: (-17) Notch Frequency number • NotchFrequency with CorrectorPeriod = 0.0001 s •...
Page 281
Band width (Hertz) for Encoder Notch filter. NotchGain double Gain for Encoder Notch filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Name PositionerCompensationFrequencyNotchsGet – Gets pre-feedforward compensation notch filters parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks corrector type: (-8) Description This function returns the CompensationSystemPreFeedForward frequency notch filters parameters. These notch filters allow the user to reduce external perturbations such as base motion or floor vibrations.
Page 283
* Notch frequency for filter #3 (Hz). NotchBandwidth3 double * Notch bandwidth for filter #3 (Hz). NotchGain3 double * Notch gain for filter #3. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.176 PositionerCompensationFrequencyNotchsSet Name PositionerCompensationFrequencyNotchsSet – Sets pre-feedforward compensation notch filters parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks correcor type: ERR_WRONG_OBJECT_TYPE (-8) Checks parameter values: ERR_PARAMETER_OUT_OF_RANGE (-17) • NotchFrequency • NotchBandwidth NOTE Refer to system.ref file to get CorrectorISRPeriod value.
Page 285
Notch bandwidth for filter #3 (Hz). NotchGain3 double Notch gain for filter #3. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Positioner name. Output parameters CutOffFrequency double * Second order filter cut-off frequency (Hertz). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Positioner name. CutOffFrequency double Second order filter cut-off frequency (Hertz). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Frequency (Hertz) for notch filter. NotchBandwith double * Band width (Hertz) for notch filter. NotchGain double * Gain for notch filter. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.180 PositionerCompensationNotchFilterSet Name PositionerCompensationNotchFilterSet – Sets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) ...
Page 290
Band width (Hertz) for notch filter. NotchGain double Gain for notch filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • 0: No error. • -8: Wrong object type for this command.
Name PositionerCompensationNotchModeFiltersGet – Gets the post-feedforward compensation notch mode filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks corrector type: (-8) Description This functions returns the system compensation parameters defined for two post- feedforward compensation notch mode filters.
Page 292
* Resonance damping factor for notch filter #2. NotchModeZa2 double * Anti-resonance damping factor for notch mode filter #2. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.182 PositionerCompensationNotchModeFiltersSet Name PositionerCompensationNotchModeFiltersSet – Sets the post-feedforward compensation notch mode filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks corrector type: (-8) Checks parameter values: (-17) • NotchModeFr • NotchModeFa NOTE Refer to system.ref file to get CorrectorISRPeriod value.
Page 294
NotchModeZa2 double Anti-resonance damping factor for notch mode filter #2. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
PositionerCompensationPhaseCorrectionFilterGet – Gets the phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks phase correction number: (-17) Checks the positioner name: (-18)
Page 296
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -15: Wrong parameter type in the command string: int, short, int * or short * expected.
7.2.1.184 PositionerCompensationPhaseCorrectionFilterSet Name PositionerCompensationPhaseCorrectionFilterSet – Sets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) ...
Page 298
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
Name PositionerCompensationPhaseCorrectionFiltersGet – Gets the post-feedforward compensation phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks corrector type: (-8) Description This function returns the system compensation parameters defined for two post- feedforward compensation phase correction filters.
Page 300
PhaseCorrectionFd2 double * Denominator frequency (Hertz) for phase correction filter #2. PhaseCorrectionGain2 double * Gain for phase correction filter #2. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Programmer’s Manual 7.2.1.186 PositionerCompensationPhaseCorrectionFiltersSet Name PositionerCompensationPhaseCorrectionFiltersSet – Sets the post-feedforward compensation phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks corrector type: (-8) Checks parameter values: (-17) ∈ • PhaseCorrectionFn ...
Page 302
#2. PhaseCorrectionGain2 double Gain for phase correction filter #2. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Frequency (Hertz) for notch filter. DampingFactor double * Damping factor for Position filter. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Frequency (Hertz) for notch filter. DampingFactor double Damping factor for Position filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Frequency (Hertz) for notch filter. NotchBandwith double * Band width (Hertz) for notch filter. NotchGain double * Gain for notch filter. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. •...
Name PositionerCompensationPostExcitationFrequencyNotchFilterSet – Sets Notch filter parameters from F3 compensation block. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks Notch Frequency number (1 to 10): (-17) Checks parameter values: (-17) • NotchFrequency with CorrectorPeriod = 0.0001 s (10 kHz) = >...
Page 307
Band width (Hertz) for notch filter. NotchGain double Gain for notch filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
* Positioner name. Output parameters CutOffFrequency double * Second order filter cut-off frequency (Hertz). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Positioner name. CutOffFrequency double Second order filter cut-off frequency (Hertz). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerCompensationPostExcitationNotchModeFilterGet – Gets the notch mode filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks phase correction number: (-17) Checks the positioner name: (-18)
Page 311
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensationPostExcitationNotchModeFilterSet – Sets the notch mode filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) • NotchModeFr with CorrectorPeriod = 0.0001 s (10 kHz) = >...
Page 313
NotchModeZa double Anti-resonance damping factor for notch mode filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerCompensationPostExcitationPhaseCorrectionFilterGet – Gets the phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks the phase correction filter number: (-17) Checks the positioner name: (-18)
Page 315
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensationPostExcitationPhaseCorrectionFilterSet Name PositionerCompensationPostExcitationPhaseCorrectionFilterSet – Sets the phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) ...
Page 317
* Denominator frequency (Hertz) for phase correction filter. PhaseCorrectionGain double * Gain for phase correction filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Frequency (Hertz) for notch filter. NotchBandwith double * Band width (Hertz) for notch filter. NotchGain double * Gain for notch filter. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCompensationPreFeedForwardFrequencyNotchFilterSet – Sets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) • NotchFrequency with CorrectorPeriod = 0.0001 s (10 kHz) = >...
Page 320
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerCompensationPreFeedForwardPhaseCorrectionFilterGet – Gets the phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks phase correction number: (-17) Checks the positioner name: (-18)
Page 322
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
PositionerCompensationPreFeedForwardPhaseCorrectionFilterSet – Sets the phase correction filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters number: (-17) • PhaseCorrectionFn with CorrectorPeriod = 0.0001 s (10 kHz) = >...
Page 324
PhaseCorrectionGain double Gain for phase correction filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Step for spatial notch filter. SpatialNotchBandwidth double * Band width (Hertz) for spatial notch filter. SpatialNotchGain double * Gain for spatial notch filter. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCompensationPreFeedForwardSpatialNotchFilterSet – Sets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) • If (SpatialNotchStep > 1.0e-12) (CorrectorPeriod: see system.ref)
Page 327
Gain for spatial notch filter. SpatialNotchNumber Number of the selected Spatial Notch Frequency filter. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name PositionerCompensationSpatialPeriodicNotchsGet – Gets pre-feedforward compensation spatial periodic filters parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks corrector type: (-8) Description This functions returns the CompensationSystemPreFeedForward spatial periodic filters parameters. These filters reduce the spatial periodic perturbations coming from screw pitch or cogging.
Page 329
* Spatial periodic step for filter #3 (units). SpatialNotchBandwidth3 double * Spatial periodic bandwidth for filter #3 (Hz). SpatialNotchGain3 double * Spatial periodic gain for filter #3. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.204 PositionerCompensationSpatialPeriodicNotchsSet Name PositionerCompensationSpatialPeriodicNotchsSet – Sets pre-feedforward compensation spatial periodic filters parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks correcor type: (-8) Checks parameter values: (-17) • SpatialNotchStep • SpatialNotchBandwidth NOTE Refer to system.ref file to get CorrectorISRPeriod and stages.ini for MaximumVelocity values.
Page 331
Spatial periodic bandwidth for filter #3 (Hz). SpatialNotchGain3 double Spatial periodic gain for filter #3. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCorrectorAutoTuning – Executes auto-tuning process for determining position control loop PID values. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type: (-8) Positioner must not be a “Secondary Positioner”: (-8) Checks positioner name: (-18) Group status must be “READY”: (-22)
Page 333
1 = robust). Output parameters double * Calculated KP value. double * Calculated KI value. double * Calculated KD value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -5: Not allowed due to a positioner error or hardware status.
* Damper filter cut-off frequency (Hz). DamperFactor double * Damper factor (1 by default). Gain double * Filter gain (0 or negative value). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
– Sets Dual control loop parameters for a selected PositionerCorrectorDamperFilterSet positioner. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) CutOffFrequency ≥0 and ≤(0.5 / ISRCorrectorPeriod) DamperFactor >0...
Page 336
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -205: Not enabled in your configuration.
Dual control loop parameters for a selected PositionerCorrectorDualGet – Gets positioner. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks the positioner name: (-18) Checks dual corrector is enabled: (-205) Description This function allows returning the dual control loop parameter values.
Page 338
KFeedForwardAcceleration double * Acceleration feedforward gain (units). KFeedForwardJerk double * Jerk feedforward gain (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCorrectorDualSet positioner. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the object type of this command is valid: (-8) Checks input parameters value: (-17) KP ≥0, KI ≥0, KD ≥0, KFeedForwardAcceleration ≥0, KFeedForwardJerk ≥0 IntegrationTime ≥CorrectorPeriod (0.0001 s)
Page 340
Acceleration feedforward gain (units). KFeedForwardJerk double Jerk feedforward gain (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Positioner name. Output parameters ExcitationSignalGain double * Excitation signal gain. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: Positioner Name doesn't exist or unknown command. EDH0373En1023 — 01/18...
* Positioner name. ExcitationSignalGain double Excitation signal gain. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerCorrectorNotchFiltersGet Name PositionerCorrectorNotchFiltersGet – Gets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type: (-8) Description This function returns the parameters defined for two notch filters. First notch filter parameters: •...
Page 344
* Frequency (Hertz) for notch filter #2. NotchBandwith2 double * Band width (Hertz) for notch filter #2. NotchGain2 double * Gain for notch filter #2. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Programmer’s Manual 7.2.1.213 PositionerCorrectorNotchFiltersSet Name PositionerCorrectorNotchFiltersSet – Sets the notch filter parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type: (-8) Checks parameter values: (-17) • NotchFrequency • NotchBandwidth • NotchGain NOTE Refer to system.ref file to get CorrectorISRPeriod value.
Page 346
Band width (Hertz) for notch filter #2. NotchGain2 double Gain for notch filter #2. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Current position of X axis. double * KD gain. DerivativeFilterCutOffFrequency double * Derivative Filter Cut-off Frequency (Hz). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Current position of X axis. double KD gain. DerivativeFilterCutOffFrequency double Derivative Filter Cut-off Frequency (Hz). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Programmer’s Manual 7.2.1.216 PositionerCorrectorPIDBaseGet Name PositionerCorrectorPIDBaseGet – Gets PIDBase parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name: (-18) Description This function returns the PIDBase parameter values. PIDBase parameters: • MovingMass.
Page 350
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. EDH0373En1023 — 01/18...
Name PositionerCorrectorPIDBaseSet – Sets PIDBase parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the parameter values: all values must ≥0, else return “Parameter out of range or incorrect” (-17) Checks the positioner name: (-18) Description This function configures the PIDBase parameters defined for the selected positioner.
Page 352
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
PositionerCorrectorPIDDualFFVoltageGet – Gets PIDDualFFVoltage corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Description This function returns the corrector parameter values used by a PID dual feed-forward with a motor voltage output.
Page 354
* Velocity feedforward gain (units). FeedForwardGainAcceleration double * Acceleration feedforward gain (units). Friction double * Friction compensation. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCorrectorPIDDualFFVoltageSet Name PositionerCorrectorPIDDualFFVoltageSet – Sets PIDDualFFVoltage corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Checks parameter value: (-17) • KP ≥0. • KI ≥0.
Page 357
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
PositionerCorrectorPIDFFAccelerationGet – Gets PIDFFAcceleration corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Description This function returns the corrector parameter values used by a PID feed-forward with an acceleration output.
Page 359
* Variable PID form coefficient. FeedForwardGainAcceleration double * Acceleration feedforward gain (units). FeedForwardGainJerk double * Jerk feedforward gain (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCorrectorPIDFFAccelerationSet Name PositionerCorrectorPIDFFAccelerationSet – Sets PIDFFAcceleration corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Checks parameter value: (-17) • KP ≥0. • KI ≥0.
Page 361
Acceleration feedforward gain (units). FeedForwardGainJerk double Jerk feedforward gain (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name PositionerCorrectorPIDFFVelocityGet – Gets PIDFFVelocity corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Description This function returns the corrector parameter values used by a PID with a velocity...
Page 363
* Variable PID derivative gain multiplier. KForm double * Variable PID form coefficient. FeedForwardGainVelocity double * Velocity feedforward gain (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerCorrectorPIDFFVelocitySet Name PositionerCorrectorPIDFFVelocitySet – Sets PIDFFVelocity corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Checks parameter value: (-17) • KP ≥0. • KI ≥0.
Page 365
Variable PID form coefficient. FeedForwardGainVelocity double Velocity feedforward gain (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* PI servo loop proportional gain. double * PI servo loop integral gain. IntegrationTime double * PI integration time (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.225 PositionerCorrectorPIPositionSet Name PositionerCorrectorPIPositionSet – Sets PIPosition corrector parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type and the corrector type: (-8) Checks parameter value: (-17) KP ≥0. KI ≥0. IntegrationTime ≥CorrectorISRPeriod.
Page 368
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Positioner name. Output parameters CorrectorISRPeriodNumber int * Number of ISR periods to delay plant Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
CorrectorISRPeriodNumber int Number of ISR periods to delay plant (max = 100). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PostKFeedForwardAcceleration double * Post KFeedForward acceleration PostKFeedForwardJerk double * Post KFeedForward jerk PostKFeedForwardSlope double * Post KFeedForward slop Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: Positioner name doesn’t exist or incorrect.
PostKFeedForwardJerk double Post KFeedForward jerk PostKFeedForwardSlope double Post KFeedForward slop Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: Positioner name doesn’t exist or incorrect. • -121: Function is not allowed due to configuration disabled.
* Positioner name. Output parameters CorrectorType char * Corrector type. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
Positioner name. Output parameters VelocityCutOffFrequency double * Velocity filter cut-off frequency (Hz). AccelerationCutOffFrequency double * Acceleration filter cut-off frequency (Hz). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.232 PositionerCurrentVelocityAccelerationFiltersSet Name PositionerCurrentVelocityAccelerationFiltersSet – Sets the velocity and acceleration filter cut-off frequencies. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type: (-8) Checks parameter value: (-17) • VelocityCutOffFrequency • AccelerationCutOffFrequency NOTE Refer to system.ref file to get CorrectorISRPeriod value.
Page 376
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
* Driver notch bandwidth (Hz). NotchGain double * Driver notch gain. LowpassFrequency double * Driver low-pass frequency (Hz). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
7.2.1.234 PositionerDriverFiltersSet Name PositionerDriverFiltersSet – Sets the piezo driver filters parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner type: (-8) Checks parameter value: (-17) • KI ≥0. • NotchFrequency • NotchBandwith •...
Page 379
Driver notch gain. LowpassFrequency double Driver low-pass frequency (Hz). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
Output parameters StagePositionOffset double * Driver stage position offset (units). GagePositionOffset double * Driver gage position offset (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
FullPositionerName char * Positioner name. Output parameters PositionerDriverStatus unsigned long * Driver status code. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. DriverStatusCode unsigned long Driver status code. Output parameters DriverStatusString char * Driver status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
MaxCosinusAmplitude double * Encoder cosinus signal maximum amplitude value (Volts). CurrentCosinusAmplitude double * Encoder cosinus signal current amplitude value (Volts). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name PositionerEncoderCalibrationParametersGet – Gets the encoder calibration parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner (must be not a secondary positioner): (-8) Checks the encoder type (must be “AnalogInterpolated”): (-8) Description After a calibration of the analog encoder input (by the function “GroupInitializeWithEncoderCalibration”), this function returns the optimum...
Page 385
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
* Positioner name. Output parameters Distance double * Distance between the two index encoders (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Positioner name. Output parameters PositionerError int * Positioner error code. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: Positioner Name doesn't exist or unknown command. • -24: Not available in this configuration (check hardware or configuration).
* Positioner name. Output parameters PositionerError int * Positioner error code. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: Positioner Name doesn't exist or unknown command. • -24: Not available in this configuration (check hardware or configuration).
“TCP_ConnectToServer” function. FullPositionerName char * Positioner name. PositionerErrorCode Positioner error code. Output parameters PositionerErrorString int * Positioner error description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Amplitude double * Amplitude (acceleration, velocity or voltage unit). Time double * During time (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name PositionerExcitationSignalSet – Sets and activate the signal of excitation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type: (-8) Is secondary positioner or has a secondary positioner: (-8) Checks frequency (must ≥0.1 and ≤0.5/CorrectorISRPeriod): (-17) Checks excitation time (must ≥4 * CorrectorISRPeriod): (-17)
Page 392
XPS Unified Programmer’s Manual Signal is generated with a random value at with a period defined by the controller base time (CorrectorISRPeriod , default value 0.125 ms), then is filtered with a second order low-pass filter at the cut-off Frequency value.
Page 393
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
PositionerExcitationSignalCorrectorOutSet – Sets and activates the signal of excitation that is inserted at corrector output. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type: (-8) Is secondary positioner or has a secondary positioner: (-8) Checks frequency (must ≥0.1 and ≤0.5/CorrectorISRPeriod): (-17)
Page 395
XPS Unified Programmer’s Manual Signal is generated with a random value at with a period defined by the controller base time (CorrectorISRPeriod , default value 0.125 ms), then is filtered with a second order low-pass filter at the cut-off Frequency value.
Page 396
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. PositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. PositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Scale2 double * Signal 2 scale Offset2 double * Signal 2 offset Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
PositionerFeedforwardAccSet – Sets parameters of XY external feed forward acceleration signal. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Positioner must not be a “Secondary Positioner” and the group must be a XY group: (-8)
Page 401
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command. • -121: Not enable in your configuration.
Socket identifier gets by the “TCP_ConnectToServer” function. PositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. PositionerName char * Positioner name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
GPIO Analog Output name Scale double * Signal scale Offset double * Signal offset Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Signal scale Offset double Signal offset Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Positioner name. Output parameters Position double * SecondaryPositioner Setpoint Position at the end of home (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Positioner name. Output parameters. InterpolationFactor int * interpolation factor. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
The group must be NOTINIT to use this function else (-22) error is returned. The encoder type must be “AnalogInterpolated” in the stages.ini file (“EncoderType” parameter) else the error is returned. This function applies to XPS-Q hardware. It is kept for XPS-D and XPS-RL backward compatibility but has no effect. Prototype...
Page 409
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
FullPositionerName char * Positioner name. Output parameters Position double * Interpolated position. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
FullPositionerName char * Positioner name. Output parameters PositionerHardwareStatus int * Hardware status code. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* Positioner name. PositionerHardwareStatusCode int Positioner hardware status code. Output parameters PositionerHardwareStatusString int * Positioner hardware status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Positioner name. Output parameters JogMaximumVelocity double * Jog maximum velocity (units/s). JogMaximumAcceleration double * Jog maximum acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Positioner name. Output parameters MagneticTrackPosition double * magnetic track position at home (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Output parameters MaximumVelocity double * Maximum velocity (units/seconds). MaximumAcceleration double * Maximum acceleration (units/seconds²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Checking time (seconds). MeanPeriod double * Mean period (seconds). Timeout double * Motion done time out (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
“VelocityAndPositionWindow” MotionDone mode. The “MotionDoneMode” parameter from the stages.ini file must be defined as “VelocityAndPositionWindow” else (-8) error is returned. For a more thorough description of the Motion Done mode, please refer to the XPS Motion Tutorial section Motion/Motion Done. Prototype...
Full positioner name (for example XY.X). Output parameters FirstMotorForceBalance double * First force balance ratio. SecondMotorForceBalance double * Second force balance ratio. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -205: Not enable in your configuration.
First force balance ratio (value between 0 and 1). SecondMotorForceBalance double Second force balance ratio (between 0 and 1). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -205: Not enable in your configuration.
Description This function enables the generation of AquadB output signals on the PCO connector (the 2&3 or 4&5 pins) of the XPS controller cards. The “always” mode means that the AquadB signal is generated all the time (not position windowed).
TCP_ConnectToServer” function. PositionerName Positioner name. Output parameters PCOInterpolationFactor double * Current PCO interpolation factor. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Positioner name. PCOInterpolationFactor double Predefined PCO interpolation factor value. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Maximum position (units). EnableState bool * Windowed AquadB state (true=enabled or false=disabled) Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
This function sets the parameters for the position windowed AquadB output signal on the PCO connector (the 2&3 or 4&5 pins) of the XPS controller cards. These parameters are in effect only when the position compare mode is enabled by the PositionerPositionCompareEnable() function.
Page 425
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -22: Not allowed action.
Checks the positioner (must not be a secondary positioner): (-8) Checks the encoder (“AquadB” or “AnalogInterpolated”): (-8) Description This function disables the position compare mode. For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output. Prototype int PositionerPositionCompareDisable(...
(-22) error is returned. If the position compare parameters are not configured (by the “PositionerPositionCompareSet” function) then (-22) error is returned. For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output. Prototype...
This function returns the real value (without correction) of parameters of the position compare output trigger and returns current state (enabled or disabled). For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output.
Checks the positioner (must not be a secondary positioner): (-8) Description This function returns the configured parameters of the position compare PCO pulse parameters. For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output. Prototype int PositionerPositionComparePulseParametersGet(...
This function sets two additional parameters for the position compare output trigger of the PCO connector on the XPS controller cards. The first additional parameter is the pulse width. The second parameter is the encoder settling time value, which is the time the encoder inputs have to stabilize after a change of state is detected.
Page 431
Width of PCO pulses (μs). EncoderSettlingTime double Encoder signal settling time (μs). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
This function can be used only with a PIDFFAcceleration corrector else (-24) error is returned. For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output. Prototype int PositionerPositionCompareScanAccelerationLimitGet(...
This function can be used only with a PIDFFAcceleration corrector otherwise the (-24) error is returned. For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output. Prototype...
XPS controller cards. These parameters are used only when the position compare mode is enabled. For a more thorough description of the position compare output, please refer to the XPS Motion Tutorial section Triggers/Position Compare Output. NOTE This function can be used only with a position encoder.
Page 435
Position compare state (true = enabled or false = disabled). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Frequency (Hz). Amplitude double * Amplitude (position units). Time double * During time (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerPreCorrectorExcitationSignalSet – Configures and activate the signal of pre-corrector excitation. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type: (-8) Is secondary positioner or has a secondary positioner: (-8) Checks frequency (must ≥0.1 and ≤0.5/CorrectorISRPeriod): (-17) Checks amplitude (must >0): (-17)
Page 438
Amplitude (position units). Time double During time (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
User corrected encoder position. Output parameters RawEncoderPosition double * Raw encoder position. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
DesiredDisplacement double Desired displacement (units). Output parameters AdjustedDisplacement double * Ajusted displacement (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
* motion acceleration (units/seconds²). MinimumJerkTime double * Minimum jerk time (seconds). MaximumJerkTime double * Maximum jerk time (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
PositionerSGammaParametersSet – Sets new motion values for the SGamma profiler. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the profiler type (must be “SGamma”): (-8) Checks the positioner type (must not be a secondary positioner): (-8) Checks input parameter values: (-17) •...
Page 443
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. EDH0373En1023 — 01/18...
Output parameters SettingTime double * Setting time (seconds). SettlingTime double * Settling time (seconds). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
(units / seconds). Acceleration double motion accelation (units / seconds²). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
* Parameter name. Output parameters ParameterValue char * Parameter value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -13: Wrong parameter type in the command string: char * expected.
* Parameter name. Output parameters ParameterValue char * Parameter value. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -24: Not available in this configuration (check hardware or configuration).
This function disables the time flasher mode. The time flasher mode is a trigger output per axis that can be either configured to output distance spaced pulses or time spaced pulses. The output pulses are accessible from the PCO connector at the back of the XPS controller.
This function enables the time flasher mode. The time flasher mode is a trigger output per axis that can be either configured to output distance spaced pulses or time spaced pulses. The output pulses are accessible from the PCO connector at the back of the XPS controller.
This function configures the time flasher parameters. The time flasher output trigger uses the PCO connector on the XPS controller cards. The time flasher mode is defined • a position window defined by a minimum position and a maximum position.
Page 452
Enable time flasher state (true = enabled and false = disabled). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Output parameters UserMinimumTarget double * User minimum travel limit (units). UserMaximumTarget double * User maximum travel limit (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
User minimum travel limit (units). UserMaximumTarget double User maximum travel limit (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
FullPositionerName char * Positioner name. Output parameters WarningFollowingError double * Warning following error (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Positioner name. WarningFollowingError double Warning following error (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -22: Not allowed action. EDH0373En1023 — 01/18...
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -22: Not allowed action. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * SingleAxis group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * SingleAxis group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* Master positioner name from any group. Ratio double * Gear ratio between the master and the slave. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
SingleAxisSlaveParametersSet Name SingleAxisSlaveParametersSet – Sets the slave parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the master group type: (-8) Checks the ratio value (Ratio >0): (-17) Checks the master positioner name: (-18)
Page 463
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * SingleAxis group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * SingleAxis group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* X axis feedforward Jerk gain. KFeedforwardJerkY double * Y axis feedforward Jerk gain. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -7: Wrong format in the command string.
X axis feedforward Jerk gain. KFeedforwardJerkY double Y axis feedforward Jerk gain. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -7: Wrong format in the command string.
Output parameters KFeedforwardX double * X axis feedforward gain. KFeedforwardY double * Y axis feedforward gain. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
X axis feedforward gain. KFeedforwardY double Y axis feedforward gain. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * SingleAxisTheta group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * SingleAxisTheta group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* Master positioner name from any group. Ratio double * Gear ratio between the master and the slave. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
SingleAxisThetaSlaveParametersSet Name SingleAxisThetaSlaveParametersSet – Sets the slave parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the master group type: (-8) Checks the ratio value (Ratio >0): (-17) Checks the master positioner name: (-18)
Page 474
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Spindle group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Spindle group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* Master positioner name from any group. Ratio double * Gear ratio between the master and the slave. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name SpindleSlaveParametersSet – Sets the spindle slave parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the master group type: (-8) Checks the ratio value (Ratio >0): (-17) Checks the master positioner name: (-18)
Page 479
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect. • -18: Positioner Name doesn't exist or unknown command.
Task name. InputArguments char * Input argument string (separator is a comma). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -36: Unknown TCL file. • -37: TCL interpretor does not run.
TCLScriptExecuteAndWait – Executes a TCL script and waits until the end of execution. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks TCL file name: (-36) Checks TCL interpretor (task loading): (-37) Checks task name: (-47) Description This function executes a TCL program.
Page 482
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -36: Unknown TCL file. • -37: TCL interpretor doesn't run. • -47: Wrong TCL task name: each TCL task name must be different.
This function executes a TCL script with a TCL task and a user-defined priority level. The TCL script file must be saved in the folder “..\Public\Scripts” of the XPS controller. TaskName is a user designation for the TCL script in execution. If two TCL scripts are executed at the same time with the same task name, The (-47) error is returned because having the same TaskName is not allowed.
Page 484
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -36: Unknown TCL file. • -37: TCL interpretor doesn't run.
Socket identifier gets by the “TCP_ConnectToServer” function. TaskName char * Task name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -37: TCL interpretor doesn't run. • -38: TCL script can not be killed: Wrong task name or task does not run.
SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -38: TCL script can not be killed: Wrong task name or task does not run.
SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters TCLScriptsList char * List of TCL scripts in progression. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Prototype void TCP_CloseSocket( int SocketID Input parameters SocketID Socket identifier used in each function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) None. EDH0373En1023 — 01/18...
TCP IP port: 5001 for XPS controller. TimeOut double Timeout in seconds used for each. function execution. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) SocketID Socket identifier used in each function. EDH0373En1023 — 01/18...
SocketID, char * ErrorString Input parameters SocketID Socket identifier used in each function. Output parameters ErrorString char * Last error description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) None. EDH0373En1023 — 01/18...
Input parameters SocketID Socket identifier used in each function. Timeout double Timeout in seconds used for each function execution. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) None. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. TimerName char * Name of timer. Output parameters FrequecyTicks int * Number of frequency ticks. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. TimerName char * Name of timer. FrequecyTicks Number of frequency ticks. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Name TZEncoderCouplingMatrixGet – Gets TZ encoder coupling matrix parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the group name: (-19) Description This function gets the parameters of encoder coupling matrix for the TZ group.
Page 495
* Encoder coupling matrix coefficient. Param8 double * Encoder coupling matrix coefficient. Param9 double * Encoder coupling matrix coefficient. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -19: GroupName doesn't exist or unknown command.
Name TZEncoderCouplingMatrixSet – Sets TZ encoder coupling matrix parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the group name: (-19) Description This function configures the parameters of encoder coupling matrix for the TZ group.
Page 497
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
* Group name. Output parameters Mode int * Encoder coupling mode. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
GroupName char * Group name. Mode Encoder coupling mode. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * TZ group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * TZ group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
* TZ group name. Output parameters Mode int * TZ mapping mode state. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* TZ group name. Mode TZ mapping mode. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
Name TZMotorDecouplingMatrixGet – Gets TZ motor decoupling matrix parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the group name: (-19) Description This function gets the parameters of motor decoupling matrix for the TZ group.
Page 505
* Motor decoupling matrix coefficient. Param8 double * Motor decoupling matrix coefficient. Param9 double * Motor decoupling matrix coefficient. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -19: GroupName doesn't exist or unknown command.
Name TZMotorDecouplingMatrixSet – Sets TZ motor decoupling matrix parameters. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the group name: (-19) Description This function configures the parameters of motor decoupling matrix for the TZ group.
Page 507
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
* Group name. Output parameters Mode int * Motor decoupling mode. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
GroupName char * Group name. Mode Motor decoupling mode. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: GroupName doesn't exist or unknown command.
Description This function executes a PT (Position Time) trajectory. The trajectory file must be stored in the folder “\Admin\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (message queue or task error) then (-72) is returned. Before a trajectory execution, it is recommended to check whether the trajectory is within the positioner motion capabilities by using “TZPTVerification”...
Page 511
FileName char * Trajectory file name. ExecutionNumber Number of trajectory executions. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
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”...
Page 513
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Currently executing trajectory file name. CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name TZPTPulseOutputGet – Gets the configuration of pulse generation of a PT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a TZ group): (-8) Checks group name: (-19) Not available in this configuration (PrecisionPlatform firmware only): (-24)
Page 516
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. • -24: Not available in this configuration.
Name TZPTPulseOutputSet – Sets the configuration of pulse generation of a PT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a TZ group): (-8) Checks group name: (-19) Checks the pulse generation must not be in progress: (-22)
Page 518
End pulse element number. TimeInterval double Time interval between pulses (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
This function verifies the execution of a PT trajectory. The results of the verification can be got with the “TZPTVerificationResultGet” function. The trajectory file must be stored in the folder “\ADMIN\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (task error) then the (-72) error is returned.
Page 521
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
Name TZPTVerificationResultGet – Gets the results of the “TZPTVerification” function. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks positioner name length (must ≤250): (-3) Checks positioner name: (-18) Checks the last TZ PTVerification (must be done): (-22)
Page 523
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -18: Positioner name doesn't exist or unknown command. • -22: Not allowed action.
Description This function executes a PVT (Position Velocity Time) trajectory. The trajectory file must be stored in the folder “\Admin\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (message queue or task error) then (-72) is returned. Before a trajectory execution, it is recommended to check whether the trajectory is within the positioner motion capabilities by using “TZPVTVerification”...
Page 525
FileName char * Trajectory file name. ExecutionNumber Number of trajectory executions. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
Not available in this configuration (PrecisionPlatform firmware only): (-24) Description This function loads some lines of PVT 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 PVT trajectory loaded in memory, use the string “FromMemory”...
Page 527
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Currently executing trajectory file name. CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
TZPVTPulseOutputGet – Gets the configuration of pulse generation of a PVT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a TZ group): (-8) Checks group name: (-19) Not available in this configuration (PrecisionPlatform firmware only): (-24)
Page 530
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. • -24: Not available in this configuration.
Pulses GPIO2, pin 12 GPIO1.DO7 GPIO5.DO15 To find the GPIO connector pin number from GPIOx.DOy, refer to XPS User’s Manual, Appendix / General I/O Description. Example: TZPVTPulseOutputSet(Group1, 3, 5, 0.01) One pulse will be generated every 10 ms between the start of the 3rd element and the end of the 5th element.
Page 532
End pulse element number. TimeInterval double Time interval between pulses (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Trajectory file name. TrajectoryData char * Trajectory data lines. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
This function verifies the execution of a PVT trajectory. The results of the verification can be got with the “TZPVTVerificationResultGet” function. The trajectory file must be stored in the folder “\ADMIN\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (task error) then the (-72) error is returned.
Page 535
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
Name TZPVTVerificationResultGet – Gets the results of the “TZPVTVerification” function. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks positioner name length (must ≤250): (-3) Checks positioner name: (-18) Checks the last TZ PVTVerification (must be done): (-22)
Page 537
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -18: Positioner name doesn't exist or unknown command. • -22: Not allowed action.
* Positioner 1 cut-off frequency (Hz) CutOffFrequency2 double * Positioner 2 cut-off frequency (Hz) CutOffFrequency3 double * Positioner 3 cut-off frequency (Hz) Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Positioner 2 cut-off frequency (Hz) CutOffFrequency3 double Positioner 3 cut-off frequency (Hz) Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* TZ group name. Output parameters UserMaximumZZZTargetDifference double * User maximum ZZZ target difference (units). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
TZ group name. UserMaximumZZZTargetDifference double User maximum ZZZ target difference (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
X2ToYFFAccRatio double * Current X2 to Y feed forward acceleration ratio Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -121: Function is not allowed due to configuration disabled...
X2ToYFFAccRatio double Current X2 to Y feed forward acceleration ratio Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -121: Function is not allowed due to configuration disabled •...
XYGroupPositionCorrectedProfilerGet – Gets the corrected profiler position for all positioners of an XY group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type: (-8) Valids group type (must be an XY group): (-18)
Page 545
Output parameters CorrectedPositionX double * Corrected theoretical position X. CorrectedPositionY double * Corrected theoretical position Y. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Output parameters PCORawPositionX double * PCO Raw position X. PCORawPositionY double * PCO Raw position Y. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name XYLineArcExecution – Executes a LineArc trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks trajectory file name length: (-3) Checks group type (must be a XY group): (-8) Checks input value (number of executions must >0): (-17) Checks input value (Velocity and Acceleration >0): (-17)
Page 548
Acceleration double Trajectory acceleration (units/s²). ExecutionNumber Number of trajectory executions. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
* Trajectory velocity (units/s). Acceleration double * Trajectory acceleration (units/s²). CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
XYLineArcPulseOutputGet Name XYLineArcPulseOutputGet – Gets the configuration of pulse generation of a LineArc. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a XY group): (-8) Checks group name: (-19) Description This function returns the last configuration of pulse generation of a LineArc trajectory, that was previously set by XYLineArcPulseOutputSet().
Page 551
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. EDH0373En1023 — 01/18...
Pulses GPIO2, pin 12 GPIO1.DO7 GPIO5.DO15 To find the GPIO connector pin number from GPIOx.DOy, refer to XPS User’s Manual, Appendix / General I/O Description. Example: XYLineArcPulseOutputSet(Group1, 10, 30, 0.01) One pulse will be generated every 10 μm on the LineArc trajectory between 10 mm and 30 mm trajectory curved lengths.
Page 553
Pulse end length (units). PathLengthInterval double Pulse length interval (units. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command.
This function verifies the execution of a LineArc trajectory. The results of the verification can be got with the “XYLineArcVerificationResultGet” function. The trajectory file must be stored in the folder “\ADMIN\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (task error) then the (-72) error is returned.
Page 555
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
* Maximum position (units). MaximumVelocity double * Maximum velocity (units/s). MaximumAcceleration double * Maximum acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long.
XYMappingGet – Read data of a line of an XY mapping matrix in the controller. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name (must be a XY positioner): (-18) Checks the secondary positioner (must not be a secondary positioner): (-24) Checks MappingNumber (must be >...
Page 558
* Data of column #2 of line #LinerNumber of the mapping file #MappingNumber. … double * One data per column of of line #LinerNumber of the mapping file #MappingNumber. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -9: Wrong number of parameters in the command.
XYMappingSet – Change data of a line of an XY mapping matrix in the controller. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the positioner name (must be a XY positioner): (-18) Checks the secondary positioner (must not be a secondary positioner): (-24) Checks MappingNumber (must be >...
Page 560
One data per column of of line #LinerNumber of the mapping file #MappingNumber Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -9: Wrong number of parameters in the command.
Description This function executes a PT (Position Time) trajectory. The trajectory file must be stored in the folder “\Admin\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (message queue or task error) then (-72) is returned. Before a trajectory execution, it is recommended to check whether the trajectory is within the positioner motion capabilities by using “XYPTVerification”...
Page 562
FileName char * Trajectory file name. ExecutionNumber Number of trajectory executions. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
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”...
Page 564
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Currently executing trajectory file name. CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name XYPTPulseOutputGet – Gets the configuration of pulse generation of a PT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a XY group): (-8) Checks group name: (-19) Not available in this configuration (PrecisionPlatform firmware only): (-24)
Page 567
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. • -24: Not available in this configuration.
Pulses GPIO2, pin 12 GPIO1.DO7 GPIO5.DO15 To find the GPIO connector pin number from GPIOx.DOy, refer to XPS User’s Manual, Appendix / General I/O Description. Example: XYPTPulseOutputSet(Group1, 3, 5, 0.01) One pulse will be generated every 10 ms between the start of the 3rd element and the end of the 5th element.
Page 569
End pulse element number. TimeInterval double Time interval between pulses (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. GroupName char * Group name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
This function verifies the execution of a PT trajectory. The results of the verification can be got with the “XYPTVerificationResultGet” function. The trajectory file must be stored in the folder “\ADMIN\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (task error) then the (-72) error is returned.
Page 572
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
Name XYPTVerificationResultGet – Gets the results of the “XYPTVerification” function. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks positioner name length (must ≤250): (-3) Checks positioner name: (-18) Checks the last XY PTVerification (must be done): (-22)
Page 574
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -18: Positioner name doesn't exist or unknown command. • -22: Not allowed action.
Description This function executes a PVT (Position Velocity Time) trajectory. The trajectory file must be stored in the folder “\Admin\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (message queue or task error) then (-72) is returned. Before a trajectory execution, it is recommended to check whether the trajectory is within the positioner motion capabilities by using “XYPVTVerification”...
Page 576
FileName char * Trajectory file name. ExecutionNumber Number of trajectory executions. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
Not available in this configuration (PrecisionPlatform firmware only): (-24) Description This function loads some lines of PVT 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 PVT trajectory loaded in memory, use the string “FromMemory”...
Page 578
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -17: Parameter out of range or incorrect.
* Currently executing trajectory file name. CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
XYPVTPulseOutputGet – Gets the configuration of pulse generation of a PVT trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a XY group): (-8) Checks group name: (-19) Not available in this configuration (PrecisionPlatform firmware only): (-24)
Page 581
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. • -24: Not available in this configuration.
Pulses GPIO2, pin 12 GPIO1.DO7 GPIO5.DO15 To find the GPIO connector pin number from GPIOx.DOy, refer to XPS User’s Manual, Appendix / General I/O Description. Example: XYPVTPulseOutputSet(Group1, 3, 5, 0.01) One pulse will be generated every 10 ms between the start of the 3rd element and the end of the 5th element.
Page 583
End pulse element number. TimeInterval double Time interval between pulses (seconds). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Trajectory file name. TrajectoryData char * Trajectory data lines. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
This function verifies the execution of a PVT trajectory. The results of the verification can be got with the “XYPVTVerificationResultGet” function. The trajectory file must be stored in the folder “\ADMIN\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (task error) then the (-72) error is returned.
Page 586
* Group name. FileName char * Trajectory file name. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
XYPVTVerificationResultGet – Gets the results of the “XYPVTVerification” function. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks positioner name length (must ≤250): (-3) Checks positioner name: (-18) Checks the last XY PVTVerification (must be done): (-22)
Page 588
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -18: Positioner name doesn't exist or unknown command. • -22: Not allowed action.
XYZGroupPositionCorrectedProfilerGet – Gets the corrected profiler position for all positioners of an XYZ group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type: (-8) Valids group type (must be an XYZ group): (-18)
Page 590
* Corrected theoretical position. CorrectedPositionY double * Corrected theoretical position Y. CorrectedPositionZ double * Corrected theoretical position Z. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long.
XYZGroupPositionPCORawEncoderGet – Gets the PCO raw encoder positions of an XYZ group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type: (-8) Valids group type (must be a XYZ group): (-18) Valids group name: (-19)
Page 592
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -18: Positioner Name doesn't exist or unknown command.
Name XYZSplineExecution – Executes a Spline trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks trajectory file name length: (-3) Checks group type (must be a XYZ group): (-8) Checks input value (Velocity and Acceleration must >0): (-17) Checks group name: (-19) Group state must be "READY”: (-22)
Page 594
Trajectory velocity (units/s). Acceleration double Trajectory acceleration (units/s²). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command.
* Trajectory velocity (units/s). Acceleration double * Trajectory acceleration (units/s²). CurrentElementNumber int * Currently executing element number. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Name XYZSplinePulseOutputGet – Gets the configuration of pulse generation of a Spline trajectory. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks group type (must be a XYZ group): (-8) Checks group name: (-19) Description This function returns the last configuration of pulse generation of a Spline trajectory, that was previously set by XYZSplinePulseOutputSet().
Page 597
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command. EDH0373En1023 — 01/18...
Pulses GPIO2, pin 12 GPIO1.DO7 GPIO5.DO15 To find the GPIO connector pin number from GPIOx.DOy, refer to XPS User’s Manual, Appendix / General I/O Description. Example: XYZSplinePulseOutputSet(Group1, 10, 30, 0.01) One pulse will be generated every 10 μm on the Spline trajectory between 10 mm and 30 mm trajectory curved lengths.
Page 599
Pulse end length (units). PathLengthInterval double Pulse length interval (units). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command.
This function verifies the execution of a Spline trajectory. The results of the verification can be got with the “XYZSplineVerificationResultGet” function. The trajectory file must be stored in the folder “\ADMIN\Public\Trajectory” of the XPS controller. If the trajectory cannot be initialized (task error) then the (-72) error is returned.
Page 601
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long. • -8: Wrong object type for this command. • -19: Group name doesn't exist or unknown command.
* Maximum position (units). MaximumVelocity double * Maximum velocity (units/s). MaximumAcceleration double * Maximum acceleration (units/s²). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -3: String too long.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -27: Move Aborted. EDH0373En1023 — 01/18...
Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Not allowed due to a positioner error or hardware status.
X Smooth factor in msec (jerk time). YaccTime_ms int * Y acceleration time in msec. YsmoothFactor_ms int * Y Smooth factor in msec (jerk time). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
BrakeStatus Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters BrakeStatus int * The brake status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
* Y laser position in counts. x_laser_position_cnts int * X laser position in counts. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: PositionerName doesn't exist or unknown command.
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Option char * Option selection(Option0, Option1 or Option2). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
YsmoothFactor_ms int * User jog Smooth factor for Y in ms. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Yvelocity double * user jog velocity for Y in µm/s. joystickAckTimeout_ms int * user jog velocity acknowledge timeout in ms. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
GetPistonState Name GetPistonState – Gets current status of Piston and Lift Pin. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Description Read the current status of Piston and Lift Pin: Piston command status. Piston limit UP (Engaged).
Page 612
Status of the Piston Released (0 or 1). LiftPinUPInterlock int * Status of the Lift Pin UP (0 or 1). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -7: Wrong format in the command string.
* Stages.ini parameter name. Output parameters ParameterValue double * The value to be set for the “ParameterName”. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
* Stages.ini parameter name. Output parameters ParameterValue double * The value to be set for the “ParameterName”. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
* Stages.ini parameter name. Output parameters ParameterValue double * The value to be set for the “ParameterName”. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Output parameters Xvelocity double * X velocity in µm/s. Yvelocity double * Y velocity in µm/s. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Version Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Version char * The firmware version. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Xvelocity double * X velocity in µm/s. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Yvelocity double * Y velocity in µm/s. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
* Y center in µm. radius_um double * Radius in µs. hysteresis_um double * Hysteresis in µm. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: PositionerName doesn't exist or unknown command.
Name InitializeAndHomeX – Do home search on X axis. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the set option: (-17) Verifies this command is allowed: (-22) Checks state of physical ends of run: (-113)
Page 622
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -22: Not allowed action. • -25: Following Error. • -28: Home search timeout.
Name InitializeAndHomeXY – Do home search on X then Y axis. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the set option: (-17) Verifies this command is allowed: (-22) Checks state of physical ends of run: (-113)
Page 624
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -22: Not allowed action. • -25: Following Error. • -26:...
Name InitializeAndHomeY – Do home search on Y axis. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Verifies this command is allowed: (-22) Checks state of physical ends of run: (-113) Checks the opened socked is valid: (-200)
Page 626
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -22: Not allowed action. • -25: Following Error. • -28: Home search timeout. • -33: Motion done timeout.
MoveAbsolute – Moves the stage to the end position. The positions are defined in um. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Valids object type (group or positioner): (-8) Verifies target position in relation with the travel limits: (-17) •...
Page 628
Target position in µm for X axis. PositonAbsoluteY_um double Target position in µm for Y axis. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
MoveSlice – Executes a slice move on an XY group. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Verifies target position in relation with the travel limits: (-17) Checks the group status, it must be “READY” state: (-22) Description This API moves the stage to perform a “U-turn”.
Page 630
XPS Unified Programmer’s Manual Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -5: Not allowed due to a positioner error or hardware status. • -17: Parameter out of range or incorrect.
Programmer’s Manual 7.2.2.23 RequestType1 Name RequestType1– Gets data collection Type 1. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Description This function returns the data collection of type1. Prototype int RequestType1( int SocketID, char * Header,...
Page 632
* Y motor current in 1/10000 full scale. XSinCos charhex32 * X Sin Cos in Volts. YSinCos charhex32 * Y Sin Cos in Volts. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -100: Internal error (memory allocation error, …).
Type1, Type2 or Type3. TimeStamp charhex32 * Internal counter in milliseconds. ZygoLaserPower charhex32 * Zygo Laser Power (ON = 1, OFF = 0). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
* Internal counter in milliseconds. ZygoSignalStrength1 charhex32 * Zygo Signal Strength 1. ZygoSignalStrength2 charhex32 * Zygo Signal Strength 2. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
X Smooth factor in msec (jerk time). YaccTime_ms Y acceleration time in msec. YsmoothFactor_ms Y Smooth factor in msec (jerk time). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier gets by the “TCP_ConnectToServer” function. Command Brake command (0 or 1). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Name SetGantryMode – Sets Gantry mode (Option0, Option1 or Option2). Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks the set option: (-17) Checks the group name is valid: (-19) Checks if XY gantry mode is enabled: (-205) Description Set the gantry option to use.
Page 638
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -19: GroupName doesn't exist or unknown command. • -205: Not enable in your configuration.
SetJogAcceleration Name SetJogAcceleration – Changes the acceleration parameters in the jog mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Group must be “XY”: (-8) Checks the positioner name: (-18) Checks the group name: (-19) Group status must be “JOGGING”: (-22)
Page 640
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Not allowed due to a positioner error or hardware status.
Name SetJogVelocity – Changes “on the fly” the velocity in the jog mode. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Group must be “XY”: (-8) Checks the positioner name: (-18) Checks the group name: (-19) Group status must be “JOGGING”: (-22)
Page 642
XPS Unified Programmer’s Manual Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Not allowed due to a positioner error or hardware status.
Socket identifier gets by the “TCP_ConnectToServer” function. Command Piston command (0 or 1). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Stages.ini parameter name. ParameterValue double The value to be set for the “ParameterName”. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Stages.ini parameter name. ParameterValue double The value to be set for the “ParameterName”. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Stages.ini parameter name. ParameterValue double The value to be set for the “ParameterName”. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
X velocity in µm/s. Yvelocity double Y velocity in µm/s. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
“TCP_ConnectToServer” function. Xvelocity double X velocity in µm/s. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
“TCP_ConnectToServer” function. Yvelocity double Y velocity in µm/s. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. EDH0373En1023 — 01/18...
Radius in µs. hysteresis_um double Hysteresis in µm. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -18: PositionerName doesn't exist or unknown command. • -121: Not allowed due to configuration disabled.
Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -18: Not allowed due to a positioner error or hardware status.
Y position to check in microns XPosition double X position to check Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect. • -22: Not allowed action.
ADC Mux (refer to table 4-12 from ZMI2402 manual). Output parameters ADCDiagStatus char * Raw value from Diag ADC Register. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
* Measure 1 Signal Strength (refer to ZMI 2402 Diagnostic ADC). Meas2Signal int * Measure 2 Signal Strength (refer to ZMI 2402 Diagnostic ADC). Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -1001: The controller is not connected to Zygo TCP server.
Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command. • -205: Not enable in your configuration.
Close the TCP/IP communication opened with the ZYGO ZMI box. Prototype int ZygoDisconnectFromServer( int SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
ZMI Axis number (1 = Y axis and 2 = X axis). Output parameters ErrorStatus char * ZMI Axis Error Status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
ZMI Axis number (1 = Y axis and 2 = X axis). Output parameters ErrorStatusDescription char * ZMI Axis Error Status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters EthernetCommunicationStatus int * 1 = Connected, 0 = Not connected. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. EDH0373En1023 — 01/18...
Socket identifier gets by the TCP_ConnectToServer” function. ParamName double * Last communication time to configure PEG (s). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -4: Unknown command.
SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters Version char * ZMI system version. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout. • -205: Not enable in your configuration.
* 1 = Reference signal present, 0 = No Signal. ZygoP2BoardStatus int * 1 = P2 board ready, 0 = P2 board not ready or not present. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error.
PositionY long long int * Current position of Y axis. PositionX long long int * Current position of X axis. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
* Register value in hexadecimal. 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.
* Register value in hexadecimal. 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.
Register value in hexadecimal. Output parameters Value int * Response returned by the ZMI Measuring board. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Register value in hexadecimal. Value Response returned by the ZMI Measuring board. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -8: Wrong object type for this command.
Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -205: Not enable in your configuration. • -1001: The controller is not connected to Zygo TCP server.
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout. • -205: Not enable in your configuration.
ZygoResetY Name ZygoResetY – Reset Y axis via Ethernet. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks Zygo is enabled: (-205) Description This function resets Y axis (defined as Zygo axis #1). The Axis Reset resets only the measurement function and error conditions, and does not affect axis configuration.
Page 671
SocketID Input parameters SocketID Socket identifier gets by the “TCP_ConnectToServer” function. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout. • -205: Not enable in your configuration.
* Command to send to ZYGO box. Output parameters Response char * Response read from ZYGO box. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
Socket identifier gets by the “TCP_ConnectToServer” function. Xoffset long Offset value for X. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout. • -127: Wrong parameter type in the command string: long or long * expected.
Socket identifier gets by the “TCP_ConnectToServer” function. Yoffset long Offset value for Y. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout. • -127: Wrong parameter type in the command string: long or long * expected.
ZygoSetPEGParams Name ZygoSetPEGParams – Sets PEG parameters (ZYGO System) via Ethernet. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks input parameter type: (-127) Checks Zygo is enabled: (-205) Description This function sets PEG (Position Event Generator) parameters.
Page 676
Number of PEG events. ControlWord PEG control (refer to PEG Control register). Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout. • -127: Wrong parameter type in the command string: long or long * expected.
ZygoStartBoardP2 Name ZygoStartBoardP2– Starts ZYGO P2 board. Input tests Refer to section 7.1: “Input Tests Common to all XPS Functions”. Checks input parameters value: (-17) Description This function allows initializing and starting the ZYGO P2 board. Required settings to get the board up and running after power up:...
Page 678
= reversed direction, false = normal direction. DataAgeAdjust Data Age Adjust Register. Output parameters None. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
ADC Mux (refer to table 4-12 from ZMI2402 manual). Output parameters ADCDiagStatus char * Raw value from Diag ADC Register. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
ZMI Axis number (1 = Y axis and 2 = X axis). Output parameters Status char * ZMI Axis Status. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -2: TCP timeout.
ZMI Axis number (1 = Y axis and 2 = X axis). Output parameters StatusDescription char * ZMI Axis Status description. Return (In addition to the results of “Input Tests Common to all XPS Functions”) • 0: No error. • -17: Parameter out of range or incorrect.
Data value in hexadecimal in max-32bits. 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.
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.
XPS Unified Programmer’s Manual Lists and Tables for XPS Functions Event Triggers List [Actor.] [Category.] Event Name Parameters Immediate Always Timer MotionStart MotionEnd MotionState MotionDone MotionDoneTimeout ...
Page 685
XPS Unified Programmer’s Manual DoubleGlobalArrayInferior Global variable number value DoubleGlobalArraySuperior Global variable number value DoubleGlobalArrayInWindow Global variable number DoubleGlobalArrayOutWindow Global variable number EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Actions List [Actor.] Action Name Parameters DACSet.CurrentPosition Positioner name Gain Offset DACSet. CurrentVelocity Positioner name Gain Offset DACSet. SetpointPosition Positioner name Gain Offset DACSet. SetpointVelocity Positioner name Gain Offset DACSet. SetpointAcceleration Positioner name...
XPS Unified Programmer’s Manual Positioner Error List Error description Bit # Mask General inhibition detected Fatal following error detected Home search time out Motion done time out Requested position exceed travel limits in trajectory or slave mode Requested velocity exceed maximum value in trajectory or...
General inhibition detected: This refers to the General Inhibition connector at the rear panel or the Stop All button at the front panel of the XPS controller. The General Inhibiton connector is a safety feature and can be used for a custom STOP ALL emergency switch.
Page 692
XPS Unified Programmer’s Manual Minus end of run glitch: Undesirable, momentary instability of the hardware minus end of run signal, for instance can be generated by ripple or noise. Plus end of run glitch: Undesirable, momentary instability of the hardware positive end of run signal, for instance can be generated by ripple or noise.
XPS Unified Programmer’s Manual Positioner Driver Status List code DRV00x DRV01 DRV02x DRV03 DRVP1 Short- Short- Short- circuit circuit circuit Voltage out Broken fuse Broken fuse Broken fuse of range Thermistor Thermistor Over fault fault temperature Initializatio Initializatio Initializatio Initialization...
XPS Unified Programmer’s Manual Group Status List Code Description NOTINIT state NOTINIT state due to an emergency brake: see positioner status NOTINIT state due to an emergency stop: see positioner status NOTINIT state due to a following error during homing...
Page 695
XPS Unified Programmer’s Manual Trajectory state Slave state due to a SlaveEnable command Jogging state due to a JogEnable command Analog tracking state due to a TrackingEnable command Analog interpolated encoder calibrating state NOTINIT state due to a mechanical zero inconsistency during homing...
Page 696
XPS Unified Programmer’s Manual Disabled state due to a motion done timeout during slave mode Disabled state due to a ZYGO error during motion Disabled state due to a master/slave error during trajectory Disable state due to a ZYGO error on jogging state...
XPS Unified Programmer’s Manual Error List code Error description Error to ignore TCL interpretor error: wrong syntax Successful command Busy socket: previous command not yet finished TCP timeout String command too long Unknown command Not allowed due to a positioner error...
Page 698
XPS Unified Programmer’s Manual Gathering running Slave error disabling master End of run activated Not allowed action due to backlash Wrong TCL task name: each TCL task name must be different BaseVelocity must be null Inconsistent mechanical zero during home search...
Page 699
XPS Unified Programmer’s Manual Execution not allowed for Gantry configuration -110 -111 Gathering buffer is full -112 Error of excitation signal generation initialization -113 Both ends of run activated -114 Clamping timeout -115 Function is not supported by current hardware Error during external driver initialization, read error.log file for more...
Page 700
The controller is not connected to Zygo TCP server. Run -1001 ZygoStartInterferometer API. -1002 Connection to Zygo TCP server failed -1003 The XPS controller is already connected to Zygo TCP server -1004 Zygo signal is not present -1005 Zygo PEG configuration failed -1006 Zygo error detected EDH0373En1023 —...
XPS Unified Programmer’s Manual 8.10 Controller Status List Controller status Controller status code code description CONTROLLER_STATUS_OK 0x00000000 Controller status OK CONTROLLER_STATUS_INITIALIZATION_ Controller initialization 0x00000001 FAILED failed Number of currently CONTROLLER_STATUS_NB_OPENED_SOC opened sockets reached 0x00000002 KETS_REACHED_MAXIMUM_ALLOWED maximum allowed number Controller CPU is...
XPS Unified Programmer’s Manual Process Examples This section provides examples of programming sequences. The next diagrams show the order of use of the different Functions. To see programming code examples, please refer to the TCL Manual for TCL scripts. Management of Errors Example When an error occurs, it is desirable to analyze and fix the error.
Firmware Version Example Open TCP connection TCPOpen Display TCP connection failed error? Get firmware version FirmwareVersionGet Display error and close procedure error? Display XPS controller version Close TCP socket TCPClose Display TCP close failed error? Display TCP socket closed EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Gathering with Motion Example Open TCP connection TCPOpen Display TCP connection failed error? Kill group GroupKill Display error and close procedure error? Initialize group GroupInitialize Display error and close procedure error? Home group GroupHomeSearch Display error and close procedure...
Page 705
XPS Unified Programmer’s Manual Stop gathering and save GatheringStopAndSav Display error and close procedure error? Close TCP socket TCPClose Display TCP close failed Display TCP socket closed error? EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual External Gathering Example Open TCP connection 8TCPOpe Display TCP connection failed n error? Kill group GroupKill Display error and close procedure error? Initialize group GroupInitialize Display error and close procedure error? Home group GroupHomeSearch Display error and close procedure...
Page 707
XPS Unified Programmer’s Manual GatheringExternalCurrentNumberG Display error and close eterror? Stop external gathering and save GatheringExternalStopAndSave Display error and close error? Close TCP TCPClose Display TCP close failed Display TCP socket closed error? EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Position Output Compare Example Open TCP connection TCPOpen Display TCP connection failed error? Kill group GroupKill Display error and close procedure error? Initialize group GroupInitialize Display error and close procedure error? Home group GroupHomeSearch Display error and close procedure...
Page 709
XPS Unified Programmer’s Manual Move GroupMoveRelative Display error and close error? Disable position compare PositionerPositionCompareDisabl Display error and close error? Close TCP TCPClose Display TCP close failed Display TCP socket error? EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Slave-Master Mode Example Open TCP connection TCPOpen Display TCP connection failed error? Kill group GroupKill Display error and close procedure error? Initialize group GroupInitialize Display error and close procedure error? Home group GroupHomeSearch Display error and close procedure...
Page 711
XPS Unified Programmer’s Manual GroupMoveRelative Display error and close error? Disable slave-master 8SingleAxisSlaveModeDisable Display error and close error? Close TCP TCPClose Display TCP close failed Display TCP socket closed error? EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Jogging Example Open TCP connection TCPOpen Display TCP connection failed error? Kill group GroupKill Display error and close procedure error? Initialize group GroupInitialize Display error and close procedure error? Home group GroupHomeSearch Display error and close procedure...
Page 713
XPS Unified Programmer’s Manual GroupJogParametersSet Display error and close error? Disable jog mode GroupJogModeDisable Display error and close error? Close TCP TCPClose Display TCP close failed Display TCP socket closed error? EDH0373En1023 — 01/18...
XPS Unified Programmer’s Manual Tracking Example Open TCP TCPOpe Display TCP connection n error? Kill GroupKill Display error and close error? Initialize GroupInitialize Display error and close error? Home GroupHomeSearch Display error and close error? Set tracking PositionerAnalogTrackingPositionParameters Display error and close...
XPS Unified Programmer’s Manual Backlash Open TCP connection TCPOpen Display TCP connection failed error? Kill group GroupKill Display error and close procedure error? Enable Backlash PositionerBacklashEnable Display error and close procedure error? Initialize group GroupInitialize Display error and close procedure...
Page 716
XPS Unified Programmer’s Manual GroupMoveRelative Display error and close procedure error? Move in negative direction GroupMoveRelative Display error and close procedure error? Disable Backlash PositionerBacklashDisable Display error and close procedure error? Close TCP socket TCPClose Display TCP close failed Display TCP socket closed error? EDH0373En1023 —...
XPS Unified Programmer’s Manual 9.10 Timer Event and Global Variables Open TCP connection 1 TCPOpen Display TCP connection failed error? Calculate divisor Configure timer TimerSet Display error and close procedure error? Add event Timer with action ExecuteTCLScript EventAdd Display error and close procedure...
Page 718
XPS Unified Programmer’s Manual Event occured Open TCP connection TCPOpe Display TCP connection n error? Read global GlobalArrayGet Display error and close error? Value<END error? Increment global Delete timer Set global EventRemove error? GlobalArraySet Display error Display error and close...
XPS Unified Programmer’s Manual 9.11 Running Several Motion Processes Simultaneously The groups must be initialized and homed Open TCP before executing these processes. TCPOpe Display TCP n error? connection Set Sgamma parameters of PositionerSGammaParameters Display error and close procedure error?
Page 720
XPS Unified Programmer’s Manual While TRUE Add event MotionEnd with action Get digital GPIO EventAdd Display error and error? close procedure GPIODigitalGet Display error error? Move positioner to and close Get value of global GroupMoveAbsol Display error and close procedure...
XPS Unified Programmer’s Manual Service Form Your Local Representative Tel.: __________________ Fax: ___________________ Name: _________________________________________________ Return authorization #: ____________________________________ (Please obtain prior to return of item) Company:_______________________________________________ Address: ________________________________________________ Date: __________________________________________________ Country: ________________________________________________ Phone Number: __________________________________________ P.O. Number: ____________________________________________ Fax Number: ____________________________________________...
Page 722
Visit Newport Online at: www.newport.com North America & Asia Europe Newport Corporation MICRO-CONTROLE Spectra-Physics S.A.S 1791 Deere Ave. 9, rue du Bois Sauvage Irvine, CA 92606, USA 91055 Évry CEDEX Sales France Tel.: (800) 222-6440 Sales e-mail: sales@newport.com Tel.: +33 (0)1.60.91.68.68 Technical Support e-mail: france@newport.com...