Arcus ACE-SXC Manual Download Page 59

 

 

 

 

ACE-SXC Manual 

page 59 

rev2.02 

WAITX 

Description: 

Command:

 Tell program to wait until move on the certain axis is finished before 

executing next line. 

Syntax: 

WAITX 

Examples: 
 

X10000 

;***Move axis to position 10000 

 

WAITX 

;***Wait until axis move is done 

 

DO=3   

;***Set digital output 

 

X3000  

;***Move axis to 3000 

 

WAITX 

;***Wait until axis move is done 

 

WHILE 

Description: 

Perform WHILE loop 

Syntax: 

WHILE [Argument 1] [Comparison] [Argument 2] 
 

[Argument] can be any of the following: 

 

 

Numerical value 

 

 

Pulse or Encoder Position 

 

 

Digital Output 

 

 

Digital Input 

 

 

Enable Output 

 

 

Motor Status 

 

 

 

[Comparison] can be any of the following 

 

 

Equal to  

>  

Greater than 

Less than 

>= 

Greater than or equal to  

<= 

Less than or equal to 

!= 

Not Equal to  

Examples: 
 

WHILE V1=1  

;***While V1 is 1 continue to loop  

 

 

X0 

 

 

WAITX 

 

 

X1000 

 

 

WAITX 

 

ENDWHILE 

 
 

Summary of Contents for ACE-SXC

Page 1: ...ACE SXC Manual page 1 rev2 02 ACE SXC Advanced Stand Alone Controller USB 2 0 communication...

Page 2: ...ssion from ARCUS ARCUS makes no representations or warranties regarding the content of this document We reserve the right to revise this document any time without notice and obligation Revision Histor...

Page 3: ...me and Digital Inputs 15 Digital Outputs 15 5 Getting Started 16 Typical Setup 16 Windows GUI 17 Main Control Screen 17 A Status 18 B Axis Control 19 C DI Status DO Status Enable 20 D Configuration 20...

Page 4: ...o DMX K DRV 23 36 Connecting to DMX A2 DRV 17 23 37 Connecting to ACE SDX 37 8 DMX and ACE Configuration 38 Configuration Method 1 Using Windows PC 38 Configuration Method 2 Using the Configuration Bu...

Page 5: ...one Programs 61 Standalone Example Program 1 Single Thread 61 Standalone Example Program 2 Single Thread 61 Standalone Example Program 3 Single Thread 61 Standalone Example Program 4 Single Thread 62...

Page 6: ...ware development Features ACE SXC USB 2 0 communication Stand alone programmable Opto isolated I O 3 x inputs 2 x outputs Limit Limit Home inputs 1 x alarm input TTL Open collector outputs Pulse Direc...

Page 7: ...rage Temperature 65 C to 150 C Based on component ratings Digital Inputs Type Opto isolated NPN inputs Opto isolator supply 12 to 24 VDC Maximum forward diode current 45 mA Includes limit home and lat...

Page 8: ...ACE SXC Manual page 8 rev2 02 3 Dimensions Figure 3 0 All dimensions in inches...

Page 9: ...ACE SXC Manual page 9 rev2 02 4 Connections Figure 4 0...

Page 10: ...8 RV RV Reserved Do not connect 9 O 5V Shorted to pin 5 Table 4 1 2 Pin Connector 5 08mm Pin In Out Name Description 1 I GND Ground 2 I PWR Power Input 12 to 48 VDC Table 4 2 Mating Connector Descrip...

Page 11: ...not connect 10 I OPTO Opto supply input 12 to 24VDC Table 4 3 Mating Connector Description 10 pin 0 15 3 81mm connector Mating Connector Manufacturer On Shore Mating Connector Manufacturer Part EDZ15...

Page 12: ...ACE SXC Manual page 12 rev2 02 ACE SXC Interface Circuit Figure 4 4...

Page 13: ...nt for power supply 200 mA If driver is powered through the DB 9 additional current is required to power the driver Figure 4 5 WARNING If the driver is powered through the DB9 connector make sure that...

Page 14: ...tput is an open collector output using 74LS07 Figure 4 6 shows an example of the pulse direction and enable connections to a driver Figure 4 6 Alarm Input Alarm input is a TTL compatible input using t...

Page 15: ...Digital Inputs Figure 4 8 shows an example wiring of the home limit and digital inputs Figure 4 8 Digital inputs are active high Digital Outputs Figure 4 9 shows an example wiring of the digital outp...

Page 16: ...ACE SXC Manual page 16 rev2 02 5 Getting Started Typical Setup PC Controlled Figure 5 1 Stand Alone Operation Figure 5 2...

Page 17: ...debug the controller The GUI program can also be used to configure driver settings of DMX K DRV DMX A2 DRV and ACE SDX Make sure that the USB driver is installed properly before running the controller...

Page 18: ...progress CONST constant speed in progress DECEL deceleration in progress LIM ERROR minus limit error occurred LIM ERROR plus limit error occurred 3 Clear Error Clear Error button is used to clear any...

Page 19: ...ion 4 INC Mode Set to incremental move mode In INC mode all moves increment decrement from the current position 5 DATUM Absolute move to zero position Maximum delta from current position to target is...

Page 20: ...can be toggled by clicking on the circle D Configuration Figure 5 7 1 Configuration Button Selection Configuration button is used to download the driver parameters without the use of the Windows PC A...

Page 21: ...store the downloaded parameters permanently to the ACE SXC controller make sure to store to flash before powering down the controller 3 DMX A2 DRV ACE SDX Configuration using Windows GUI DMX A2 DRV AC...

Page 22: ...e ACE SXC To store the downloaded parameters permanently to the ACE SXC controller make sure to store to flash before powering down the controller 4 Store To Flash Parameters on the ACE can be permane...

Page 23: ...and alarm inputs for general purpose use 6 LCA Set the Limit Correction Amount used for the limit homing routine Refer to the Homing Overview in Section 6 for further details 7 HCA Set the Home Corre...

Page 24: ...ram 3 New Clear the standalone program editor H Standalone Program Editor Figure 5 13 1 Write the standalone program in the Program Editor 2 Clear Code Space Use this button to remove the current stan...

Page 25: ...ew View the low level compiled program J Program Control Figure 5 15 1 Program Status display of program status Possible statuses are Idle program is not running Running program is running Paused prog...

Page 26: ...02 4 Program Control Program can be RUN STOP PAUSED and CONTINUED K Variable Status View the status of variables 1 50 Note that this window is read only Figure 5 16 1 Command line To write to variabl...

Page 27: ...e ACC command to set get the acceleration deceleration value Acceleration range is from 10 msec to 1000 msec Position Counter ACE SXC has a 32 bit signed position counter Range of the position counter...

Page 28: ...nt move mode Homing Home search sequence involves moving the motor towards the home or limit switches and then stopping when the relevant input is detected The ACE SXC has three different homing routi...

Page 29: ...cking out from the home switch It will continue past the home switch by the amount defined by the home correction amount HCA The direction of this movement will be the opposite of the original home co...

Page 30: ...Use J J commands Stopping Motor When motor is moving jogging or homing motion can be stopped abruptly or with deceleration It is recommended to use decelerate and stop command so that there is less im...

Page 31: ...The configuration button is active high Motor Status Motor status can be read anytime using the MST command The following are bit representation of motor status Bit Description 0 Motor running at cons...

Page 32: ...tton DI4 4 Minus Limit DI5 5 Home DI6 6 Plus Limit DI7 7 Alarm DI8 Table 6 1 Digital inputs are active high Digital Outputs ACE SXC module comes with 2 digital outputs Read and set digital output stat...

Page 33: ...module provides the user with the ability to set the device number of a specific device In order to make these changes first store the desired number using the DN command Please note that this value...

Page 34: ...1 is NOT defined the program will cease execution and go to error state If SUB 31 is defined by the user the code within SUB 31 is first executed and then standalone execution continues Calling subrou...

Page 35: ...BOOT EO configuration at boot up LCA Limit Correction Amount HCA Home Correction Amount DL Disable Limit setting SLOAD Standalone program run on boot up parameter BDT Stepper driver configuration type...

Page 36: ...page 36 rev2 02 7 Connecting to DMX and ACE Drivers Connecting DMX K DRV 11 17 Cable Accessory CBL DB_9M DF11_10F L1 G24 V1 Figure 7 1 Connecting to DMX K DRV 23 Cable Accessory CBL DB_9M DF3_10 L1 G2...

Page 37: ...ACE SXC Manual page 37 rev2 02 Connecting to DMX A2 DRV 17 23 Cable Accessory CBL DB_9M DB_9F L1 G24 V1 Figure 7 3 Connecting to ACE SDX Cable Accessory CBL DB_9M I_8F L1 G24 V1 Figure 7 4...

Page 38: ...d 1 uses the Windows PC and the ACE SXC GUI program to upload and download the driver parameters For detailed description refer to the Getting Started section Configuration Method 2 Using the Configur...

Page 39: ...onnected to work properly 3 Press and hold down the configuration button for 3 seconds The LED on ACE SXC controller will start blinking quickly indicating that the configuration is ready to start 4 W...

Page 40: ...used to get total number of all types of Performax and Performax USB modules connected to the PC BOOL fnPerformaxComGetProductString IN DWORD dwNumDevices OUT LPVOID lpDeviceString IN DWORD dwOptions...

Page 41: ...e data buffers between the PC and the USB device are out of sync Below are some suggestions to help alleviate this issue 1 Buffer Flushing If USB communication begins from an unstable state i e your a...

Page 42: ...it error as well as StepNLoop error OK DI Return status of digital inputs Refer to Table 6 1 DI 1 8 Return individual status of inputs Refer to Table 6 1 DO Return status of digital outputs Refer to T...

Page 43: ...ental move mode MST Returns motor status Refer to Table 6 0 POL Returns current polarity Refer to Table 6 3 POL value Sets polarity Refer to Table 6 3 OK PX Returns current position value 32 bit numbe...

Page 44: ...reply with an error code See below for possible error responses Error Code Description Command The ASCII command is not understood by the ACE SXC Moving A move or position change command is sent whil...

Page 45: ...ORT Stop immediately all axes including X axis ABORTX Description Motion Immediately stop motion without deceleration Syntax ABORTX Examples JOGX Jogs axis to positive direction DELAY 1000 Wait 1 seco...

Page 46: ...ACC V3 Sets the acceleration to variable 3 value of 500 DELAY Description Set a delay 1 ms units Syntax Delay Number 1 ms units Examples JOGX Jogs axis to positive direction DELAY 10000 Wait 10 secon...

Page 47: ...8 variable ENDIF IF DI 1 8 0 or 1 ENDIF Examples IF DI1 0 DO 1 If digital input 1 is triggered set DO 1 ENDIF DO Description Read Gets the digital output value Write Sets the digital output value ACE...

Page 48: ...1 2 0 or 1 DO 1 2 variable Conditional IF DO 1 2 variable ENDIF IF DO 1 2 0 or 1 ENDIF Examples DO1 1 Turn DO1 on DO2 1 Turn DO2 on ECLEARX Description Write Clears motor error status Syntax Write EC...

Page 49: ...gument can be any of the following Numerical value Pulse or Encoder Position Digital Output Digital Input Enable Output Motor Status Comparison can be any of the following Equal to Greater than Less t...

Page 50: ...ritten AFTER the END statement Syntax END Examples X0 WAITX X1000 END ENDIF Description Indicates end of IF operation Syntax ENDIF Examples IF V1 1 X1000 WAITX ENDIF ENDSUB Description Indicates end o...

Page 51: ...ead Gets the enable output value Write Sets the enable output value Syntax Read variable EO Write EO value EO variable Conditional IF EO variable ENDIF IF EO value ENDIF Examples EO 1 Energize motor G...

Page 52: ...ion Command Perform homing using current high speed low speed and acceleration Syntax HLHOMEX or Examples HLHOMEX Homes the motor at low speed in the positive direction WAITX HOMEX or Description Comm...

Page 53: ...sec V1 2500 Sets the variable 1 to 2 500 HSPD V1 Sets the high speed to variable 1 value of 2500 IF Description Perform IF condition check Syntax IF Argument 1 Comparison Argument 2 Argument can be a...

Page 54: ...e axis to position 3000 1000 2000 WAITX JOGX or Description Command Perform jogging using current high speed low speed and acceleration Syntax JOGX or Examples JOGX Jogs axis in positive direction STO...

Page 55: ...Read variable LSPD Write LSPD long value LSPD variable Examples LSPD 1000 Sets the start low speed to 1 000 pulses sec V1 500 Sets the variable 1 to 500 LSPD V1 Sets the start low speed to variable 1...

Page 56: ...ENDIF Examples JOGX Jogs axis to positive direction DELAY 1000 Wait 1 second ABORTX Stop with deceleration all axes including X axis PX 0 Sets the current pulse position to 0 STOPX Description Command...

Page 57: ...ut 1 is on SR0 0 Turn off standalone program 0 ENDIF STORE Description Command Store all values to flash Syntax STORE Examples V40 PX Put position value in V40 DELAY 1000 Wait 1 second STORE Store V40...

Page 58: ...cial case for BIT NOT V Variable Number Argument Argument can be any of the following Numerical value Pulse or Encoder Position Digital Output Digital Input Enable Output Motor Status Operation can be...

Page 59: ...xis to 3000 WAITX Wait until axis move is done WHILE Description Perform WHILE loop Syntax WHILE Argument 1 Comparison Argument 2 Argument can be any of the following Numerical value Pulse or Encoder...

Page 60: ...Description Command Perform X axis move to target location Syntax X value X variable Examples ABS Absolute move mode X10000 Move to position 10000 WAITX V10 1200 Set variable 10 value to 1200 XV10 Mov...

Page 61: ...high speed to 20000 pulses sec LSPD 1000 Set the low speed to 1000 pulses sec ACC 300 Set the acceleration to 300 msec EO 1 Enable the motor power WHILE 1 1 Forever loop X1000 Move to zero WAITX Wait...

Page 62: ...ENDIF ENDWHILE Go back to WHILE statement END Standalone Example Program 5 Single Thread Task Using a subroutine increment the motor by 1000 whenever the DI1 rising edge is detected HSPD 20000 Set th...

Page 63: ...high speed to 20000 pulses sec LSPD 1000 Set the low speed to 1000 pulses sec ACC 300 Set the acceleration to 300 msec EO 1 Enable the motor power WHILE 1 1 Forever loop IF DI1 1 If digital input 1 is...

Page 64: ...ed to 500pps ACC 500 Set acceleration to 500ms WHILE 1 1 Forever loop X0 Move to position 0 WAITX Wait for the move to complete X1000 Move to position 1000 WAITX Wait for the move to complete ENDWHILE...

Page 65: ...SPD 500 Set low speed to 500pps ACC 500 Set acceleration to 500ms TOC 5000 Set time out counter alarm to 5 seconds EO 1 Enable motor WHILE 1 1 Forever loop X0 Move to position 0 WAITX Wait for the mov...

Page 66: ...Information Arcus Technology Inc 3159 Independence Drive Livermore CA 94551 925 373 8800 www arcustechnology com The information in this document is believed to be accurate at the time of publication...

Reviews: