Rockwell-automation 57C422B 2 Axis Servo Module Bedienungsanleitung Seite 76

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 122
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 75
4-48
2-Axis Servo Module M/N 57C422B
4.49.4 Sample Application Task with Interrupt
The following sample application task illustrates the use of
interrupts on the 2-Axis module. This is not a complete
program, only a sample illustration using an interrupt. Note
that this sample assumes that the raw feedback from the
pulse generator is 1000 counts per revolution.
2000 LOCAL FDBK_SCALING
2010 LOCAL COMMAND%
2020 LOCAL DISTANCE
2030 LOCAL SPD
2040 LOCAL ACCEL
3000 INT_SRC_X! = 0 \! Initialize interrupt source
3010 INT_ENA_X! = 0 \! and enable registers and the
3020 REG_64% = 0 \! interrupt reset register;
3021 ! INT_SRC_X! and INT_ENA_X! are
3022 ! double precision variables
3023 !
3025 EVENT NAME=HW_EVENT, INTERRUPT_STATUS= ISCR%, &
TIMEOUT= DISABLED
3030 ! line 3025 connects the variable name ISCR% to the
3035 ! interrupt status and control register
3040 ENCODER_SETUP%=1414H \! X-Axis gearing and feedback
3042 ! encoders are in rotary
3045 ! w/ *4 quadrature
3050 DRIVE SETUP%=0H
3060 SWITCHES%=011CH \! enables drive fault input,
3065 ! overtravel L/S, feedback
3067 ! encoder marker pulse; home
3068 ! direction is in the decreasing
3069 ! position
3070 PGAIN%=17595
3080 IGAIN%=768
3090 VGAIN%=78
3100 FGAIN%=8320
3110 DBCOMP%=28
3120 MAX_FOLL_ERR%=2000 \! error is = to 0.5 axis revolutions
3130 MAX_VEL_ERR%=4000 \! 1 revolution of the axis
3140 IN_TOLERANCE%=10
3150 GEAR_RATIO!=0
3160 MAX_VOLTS%=1984 \! maximum volts = 10
3170 P_CONST%=-1
3180 N_CONST%=-1
3190 FDBK_UNWIND!=1600000 \! 400 axis revolutions
3200 GEAR_UNWINDI=4000 \! 4000 counts = 1 rev.
3201 ! from regs. 36,37
3210 COMMAND%=0200H \ GOSUB 15010 \! change default setups
3211 MODES% = 0
3215 DELAY 10 TICKS
3217 MODES% = 21H \! enable incremental index move
3218 ! and position loop
3230 FDBK_SCALING=4000 \DISTANCE=20 \ SPD =40.0 \ ACCEL = 50.0
4000 ! Index move
4010 CMD_POS! = FDBK_SCALING*DISTANCE
4020 CMD_VEL! = SPD*FDBK_SCALING*65.536
4030 CMD_ACC! = (ACCEL/4)*FDBK_SCALING*.065536
4040 CMD_DEC! = CMD_ACC!
4050 COMMAND% = 1 \GOSUB 15010
4055 !
4060 ! Subroutine to wait for axis done
4070 INT_ENA-X! = 00010000H
4080 WAIT ON HW_EVENT
4090 IF X_AXIS_DONE@ THEN INT_SRC_X! = 0 \ INT_ENA_X! = 0
4110 REG_64% = 0
4120 IF (INT_ENA_XI <> 0) THEN GOTO 4080
4130 GOTO 4010
4140 !
15000 ! Subroutine to wait for command ack
15010 INT_ENA_X! = INT_ENA_XI OR 80000000H
Seitenansicht 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 121 122

Kommentare zu diesen Handbüchern

Keine Kommentare

Verilink S Lite (34-00297.2) Product Manual manuals

Owner’s manuals and user’s guides for Computer hardware Verilink S Lite (34-00297.2) Product Manual.
We providing 1 pdf manuals Verilink S Lite (34-00297.2) Product Manual for download free by document types: User Manual






More products and manuals for Computer hardware Verilink

Models Document Type
QUAD T1 (880-503345-001) Product Manual User Manual   Verilink QUAD T1 (880-503345-001) Product Manual User Manual, 57 pages
QUAD/IMUX (880-502392-001) Product Manual User Manual   Verilink QUAD/IMUX (880-502392-001) Product Manual User Manual, 91 pages
Red Zone Encryption (REMS) (880-502423-001) Produc User Manual   Verilink Red Zone Encryption (REMS) (880-502423-001) Product Manual User Manual, 97 pages
SNMP Management (No Part Number) Product Manual User Manual   Verilink SNMP Management (No Part Number) Product Manual User Manual, 14 pages
SCC 2020 (880-503268-001) Product Manual User Manual   Verilink SCC 2020 (880-503268-001) Product Manual User Manual, 77 pages
SCC 2130 (880-503282-001) Product Manual User Manual   Verilink SCC 2130 (880-503282-001) Product Manual User Manual, 73 pages
SCM (880-503300-001) Product Manual User Manual   Verilink SCM (880-503300-001) Product Manual User Manual, 83 pages
T Lite (34-00292.2) Product Manual User Manual   Verilink T Lite (34-00292.2) Product Manual User Manual, 18 pages
T1 ESF CSU (34-00309.B) Product Manual User Manual   Verilink T1 ESF CSU (34-00309.B) Product Manual User Manual, 24 pages
TS 2000 (880-502215-001) Product Manual User Manual   Verilink TS 2000 (880-502215-001) Product Manual User Manual, 27 pages
TAC 2130 S/T (880-503296-001) Product Manual User Manual   Verilink TAC 2130 S/T (880-503296-001) Product Manual User Manual, 61 pages
T1 Access Router (34-00327) Product Manual User Manual   Verilink T1 Access Router (34-00327) Product Manual User Manual, 197 pages
WANsuite 5130 (34-00298.L) Product Manual User Manual   Verilink WANsuite 5130 (34-00298.L) Product Manual User Manual, 263 pages
WANsuite 5165 (34-00301.H) Product Manual User Manual   Verilink WANsuite 5165 (34-00301.H) Product Manual User Manual, 235 pages
WANsuite 5330 (34-00302.F) Product Manual User Manual   Verilink WANsuite 5330 (34-00302.F) Product Manual User Manual, 135 pages
WANsuite 5230 (34-00304.F) Product Manual User Manual   Verilink WANsuite 5230 (34-00304.F) Product Manual User Manual, 233 pages
WANsuite 5650 (34-00314.E) Product Manual User Manual   Verilink WANsuite 5650 (34-00314.E) Product Manual User Manual, 68 pages
WANsuite 5370 (34-00310.D) Product Manual User Manual   Verilink WANsuite 5370 (34-00310.D) Product Manual User Manual, 235 pages
WANsuite 6x30 (34-00315.B) Product Manual User Manual   Verilink WANsuite 6x30 (34-00315.B) Product Manual User Manual, 181 pages
WANsuite 6450 (34-00326) Product Manual User Manual   Verilink WANsuite 6450 (34-00326) Product Manual User Manual, 205 pages