DMC-1500
Chapter 7 Application Programming
•
89
Instruction Interpretation
#TWOMOVE Label
PR 2000
Position Command
BGX Begin
Motion
AMX
Wait for Motion Complete
PR 4000
Next Position Move
BGX
Begin 2nd move
EN End
program
Event Trigger - Set Output after Distance
Set output bit 1 after a distance of 1000 counts from the start of the move. The accuracy of the
trippoint is the speed multiplied by the sample period.
Instruction Interpretation
#SETBIT Label
SP 10000
Speed is 10000
PA 20000
Specify Absolute position
BGX Begin
motion
AD 1000
Wait until 1000 counts
SB1
Set output bit 1
EN End
program
Event Trigger - Repetitive Position Trigger
To set the output bit every 10000 counts during a move, the AR trippoint is used as shown in the next
example.
Instruction Interpretation
#TRIP Label
JG 50000
Specify Jog Speed
BGX;n=0 Begin
Motion
#REPEAT
# Repeat Loop
AR 10000
Wait 10000 counts
TPX Tell
Position
SB1
Set output 1
WT50
Wait 50 msec
CB1
Clear output 1
n=n+1 Increment
counter
JP #REPEAT,n<5
Repeat 5 times
STX Stop
EN End
Event Trigger - Start Motion on Input
This example waits for input 1 to go low and then starts motion. Note: The AI command actually
halts execution of the program until the input occurs. If you do not want to halt the program
sequences, you can use the Input Interrupt function (II) or use a conditional jump on an input, such as
JP #GO,@IN[1] = -1.
Содержание DMC-1510
Страница 6: ......
Страница 18: ...6 Chapter 1 Overview DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 88: ...76 Chapter 6 Programming Motion DMC 1500 Figure 6 7 Motion intervals in the Home sequence...
Страница 90: ...78 Chapter 6 Programming Motion DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 137: ...DMC 1500 Chapter 7 Application Programming 125 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 157: ...DMC 1500 Chapter 10 Theory of Operation 145 THIS PAGE LEFT BLANK INTENTIONALLY...
Страница 160: ...148 Appendices DMC 1500 Card Level Layout...
Страница 178: ...166 Appendices DMC 1500 ICM 1100 Drawing 1 3 4 0 0 4 4 0 2 4 0 7 0 0 4 5 3 7 0 5 7 0 2 8 5 1 0 0 1 0 1 0 7 0 1 0 0...
Страница 180: ...168 Appendices DMC 1500...
Страница 198: ...186 Appendices DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...