Bosch 6000 User's Guide Page 118

  • Download
  • Add to my manuals
  • Print
  • Page
    / 268
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 117
Chapter 3. Basic Operation Setup
103
Servo Setup Examples
This section shows examples of how the servo setup commands might be incorporated into a
setup program. More information on creating and executing setup programs is provided on
page 14.
6250 & AT6250:
DEF SETUP ; Begin definition of SETUP program for AT6250 controller
DRIVE00 ; Disable both drives
INDAX2 ; Place both axes in use
SSFR4 ; Select servo sampling frequency ratio
DRFLVL11 ; Set drive fault level to active high
KDRIVE11 ; Invoke the Disable Drive On Kill feature for both axes
;*************************************************************************
; Setup for encoder (will need to switch between encoder & ANI feedback) *
;*************************************************************************
SFB1,1 ; Select encoder feedback for axis 1. Subsequent scaling,
; gains, SMPER, and PSET parameters are specific to encoder
; feedback. (The application requires switching between
; encoder & ANI feedback.)
ERES4000,4000 ; Set encoder resolution to 4,000 counts/rev
SCLA4000,4000 ; Set scaling for programming accel/decel in revs/sec/sec
SCLV4000,4000 ; Set scaling for programming velocity in revs/sec
SCLD4000,4000 ; Set scaling for programming distances in revs
SGP5,5 ; Set proportional feedback gain
SGI1,1 ; Set integral feedback gain
SGV1,1 ; Set velocity feedback gain
SMPER.001,.001 ; Set maximum position error to 1/1000 of a rev
; (4 encoder counts)
PSET0,0 ; Set current position as absolute position zero
;***********************
; setup for ANI *
;***********************
SFB2,2 ; Select ANI feedback for both axes (subsequent scaling,
; gains, ;SMPER, and PSET parameters are specific to ANI
; feedback)
SCLA819,819 ; Set scaling for programming accel/decel in volts/sec/sec
SCLV819,819 ; Set scaling for programming velocity in volts/sec
SCLD819,819 ; Set scaling for programming distances in volts
SGP1,1 ; Set proportional feedback gain
SGI0,0 ; Set integral feedback gain
SGV.5,.5 ; Set velocity feedback gain
SMPER.01,.01 ; Set max. position error to 1/100 of a volt (8 ANI counts)
PSET5,5 ; Set current position as absolute position 5
SFB1,1 ; Re-select encoder feedback for start of main program
END ; End definition of SETUP program
;*************************************************************************
;* 6250: Enter the STARTP SETUP command to assign SETUP as the startup *
;* program to be automatically executed on power up or RESET. *
;* *
;* AT6250: Download & execute the SETUP program (preps for subsequent *
;* operations) before running the main program. *
;*************************************************************************
Page view 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 267 268

Comments to this Manuals

No comments