
DMX ETH Manual
page 44
rev 1.16
Standalone Programming
Standalone Program Specification:
Memory size: 7650 assembly lines ~ 44.5 KB.
Note:
Each line of pre-compiled code equates to 1-4 lines of assembly lines.
WAIT Statement: When writing a standalone program, it is generally necessary to wait
until a motion is completed before moving on to the next line. In order to do this, the
WAIT statement must be used. See the examples below:
In the example below, the variable V1 will be set immediately after the X10000 move
command begins; it will not wait until the controller is idle.
X10000
;* Move to position 0
V1=100
Conversely, in the example below, the variable V1 will not be set until the motion has
been completed. V1 will only be set once the controller is idle.
X10000
;* Move to position 0
WAITX
;* Wait for the move to complete
V1=100
Multi-Threading: The DMX-ETH supports the simultaneous execution of two standalone
programs. Program 0 is controlled via the
SR0
command and program 1 is controlled via
the
SR1
command. For examples of multi-threading, please refer to the
Example Stand-
alone Programs
section.
Note:
Sub-routines can be shared by different threads.
Error Handling: If an error occurs during standalone execution (i.e. limit error), the
program automatically jumps to SUB 31. If SUB 31 is NOT defined, the program will
cease execution and go to error state. If SUB 31 is defined by the user, the code within
SUB 31 will be executed. The return jump line will be determined by bit 12 of the
POL
register. See Table 7.2 for details.
Calling subroutines over communication: Once a subroutine is written into the flash, they
can be called via Ethernet communication using the
GS
command. The subroutines are
referenced by their subroutine number [0-31]. If a subroutine number is not defined, the
controller will return with an error.
Standalone Run on Boot-Up: Standalone can be configured to run on boot-up using the
SLOAD
command. See description below:
Bit
Description
0
Standalone Program 0
1
Standalone Program 1
Table 7.9
Содержание DMX-ETH
Страница 10: ...DMX ETH Manual page 10 rev 1 16 3 Dimensions All dimensions in inches Controller Figure 3 0 NEMA 17 Figure 3 1...
Страница 13: ...DMX ETH Manual page 13 rev 1 16 Figure 4 1 Torque Curve NEMA 23 Figure 4 2...
Страница 14: ...DMX ETH Manual page 14 rev 1 16 Figure 4 3...
Страница 17: ...DMX ETH Manual page 17 rev 1 16 DMX ETH Interface Circuit Figure 5 2...
Страница 21: ...DMX ETH Manual page 21 rev 1 16 Main Control Screen Figure 6 3 A B C D E F L K J H M G I...