Arcus ACE-SXC Скачать руководство пользователя страница 64

 

 

 

 

ACE-SXC Manual 

page 64 

rev2.02 

Standalone Example Program 7 – Multi Thread 

 
Task:  Program 0 will continuously move the motor between positions 0 and 1000. 
Simultaneously, program 1 will control the status of program 0 using digital inputs. 
 
 

PRG 0  

 

 

;* Start of Program 0 

  

HSPD=20000   

 

;* Set high speed to 20000pps 

LSPD=500 

 

 

;* Set low speed 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   

 

;* Go back to WHILE statement 

END   

 

 

;* End Program 0 

 

PRG 1  

 

 

 

;* Start of Program 1 

  

WHILE 1=1   

 

;* Forever loop 

   

 

IF DI1=1 

 

;* If digital input 1 is triggered 

    

 

 

ABORTX 

;* Stop movement 

    

 

 

SR0=0  

;* Stop Program 1 

   

 

ELSE   

 

;* If digital input 1 is not triggered 

    

 

 

SR0=1  

;* Run Program 1 

   

 

ENDIF  

 

;* End if statements 

  

ENDWHILE   

 

;* Go back to WHILE statement 

END   

 

 

 

;* End Program 1

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Содержание ACE-SXC

Страница 1: ...ACE SXC Manual page 1 rev2 02 ACE SXC Advanced Stand Alone Controller USB 2 0 communication...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 8: ...ACE SXC Manual page 8 rev2 02 3 Dimensions Figure 3 0 All dimensions in inches...

Страница 9: ...ACE SXC Manual page 9 rev2 02 4 Connections Figure 4 0...

Страница 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...

Страница 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...

Страница 12: ...ACE SXC Manual page 12 rev2 02 ACE SXC Interface Circuit Figure 4 4...

Страница 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...

Страница 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...

Страница 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...

Страница 16: ...ACE SXC Manual page 16 rev2 02 5 Getting Started Typical Setup PC Controlled Figure 5 1 Stand Alone Operation Figure 5 2...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: