![Galil DMC-4040 Скачать руководство пользователя страница 176](http://html1.mh-extra.com/html/galil/dmc-4040/dmc-4040_user-manual_3282915176.webp)
#B
Label #B
TP AB
Report A and B axes positions
WT 1000
Wait 1000 milliseconds
JP #B
Jump to #B
EN
End of program
#ININT
Interrupt subroutine
MG "Interrupt has occurred"
Displays the message
ST AB
Stops motion on A and B axes
#LOOP;JP #LOOP,@IN[1]=0
Loop until Interrupt cleared
JG 15000,10000
Specify new speeds
WT 300
Wait 300 milliseconds
BG AB
Begin motion on A and B axes
RI
Return from Interrupt subroutine
Analog Inputs
The DMC-40x0 provides eight analog inputs. The value of these inputs in volts may be read using the @AN[n]
function where n is the analog input 1 through 8. The resolution of the Analog-to-Digital conversion is 12 bits (16-
bit ADC is available as an option). Analog inputs are useful for reading special sensors such as temperature, tension
or pressure.
The following examples show programs which cause the motor to follow an analog signal. The first example is a
point-to-point move. The second example shows a continuous move.
Example - Position Follower (Point-to-Point)
Objective - The motor must follow an analog signal. When the analog signal varies by 10V, motor must move
10000 counts.
Method: Read the analog input and command A to move to that point.
Instruction
Interpretation
#POINTS
Label
SP 7000
Speed
AC 80000;DC 80000
Acceleration
#LOOP
VP=@AN[1]*1000
Read and analog input, compute position
PA VP
Command position
BGA
Start motion
AMA
After completion
JP #LOOP
Repeat
EN
End
Example - Position Follower (Continuous Move)
Method: Read the analog input, compute the commanded position and the position error. Command the motor to
run at a speed in proportions to the position error.
Instruction
Interpretation
#CONT
Label
AC 80000;DC 80000
Acceleration rate
JG 0
Start job mode
BGX
Start motion
#LOOP
Chapter 7 Application Programming
•
167
DMC-40x0 User Manual
Содержание DMC-4040
Страница 17: ...DMC 4080 Layout Figure 2 2 Outline of the of the DMC 4080 DMC 40x0 User Manual Chapter 2 Getting Started 8...
Страница 19: ...DMC 4040 Dimensions Figure 2 5 Dimensions of DMC 4040 DMC 40x0 User Manual Chapter 2 Getting Started 10...
Страница 20: ...DMC 4080 Dimensions Figure 2 6 Dimensions of DMC 4080 Chapter 2 Getting Started 11 DMC 40x0 User Manual...
Страница 54: ...Chapter 3 Connecting Hardware 45 DMC 40x0 User Manual...
Страница 55: ...DMC 40x0 User Manual Chapter 3 Connecting Hardware 46...
Страница 56: ...Chapter 3 Connecting Hardware 47 DMC 40x0 User Manual...
Страница 73: ...Figure 4 1 GalilTools DMC 40x0 User Manual Chapter 4 Software Tools and Communication 64...
Страница 185: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 7 Application Programming 176...
Страница 205: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 10 Theory of Operation 196...
Страница 220: ...Step 2 Remove ICM For DMC 4040 Proceed to Step 3 Configure Circuit Appendices 211 DMC 40x0 User Manual...
Страница 222: ...Step 2 Remove ICM s Appendices 213 DMC 40x0 User Manual...
Страница 232: ...DMC 4080 Steps 4 and 5 Step 4 Replace ICM s Appendices 223 DMC 40x0 User Manual...