DMC-1500
Chapter 7 Application Programming
•
91
Event Trigger - Multiple Move with Wait
This example makes multiple relative distance moves by waiting for each to be complete before
executing new moves.
Instruction Interpretation
#MOVES Label
PR 12000
Distance
SP 20000
Speed
AC 100000
Acceleration
BGX Start
Motion
AD 10000
Wait a distance of 10,000 counts
SP 5000
New Speed
AMX
Wait until motion is completed
WT 200
Wait 200 ms
PR -10000
New Position
SP 30000
New Speed
AC 150000
New Acceleration
BGX Start
Motion
EN End
Example - Creating an Output Waveform Using AT
The following program causes Output 1 to be high for 10 msec and low for 40 msec. The cycle
repeats every 50 msec.
Instruction Interpretation
#OUTPUT Program
label
AT0
Initialize time reference
SB1
Set Output 1
#LOOP Loop
AT 10
After 10 msec from reference,
CB1
Clear Output 1
AT -40
Wait 40 msec from reference and reset reference
SB1
Set Output 1
JP #LOOP
Jump to location #LOOP and continue executing commands
EN
End of program
Conditional Jumps
The DMC-1500 provides Conditional Jump (JP) and Conditional Jump to Subroutine (JS) instructions
for branching to a new program location. Program execution will continue at the location specified by
the JP or JS command if the conditional statement is satisfied. If no conditional statement is provided,
the jump will occur automatically. See description of conditional statements below.
Conditional jumps are useful for testing events in real-time since they allow the DMC-1500 to make
decisions without a host computer. For example, the DMC-1500 can begin execution at a specified
label or line number based on the state of an input line.
Содержание 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...