Anaheim Discounted Package PKG172DPECBL User Manual
Here you can view all the pages of manual Anaheim Discounted Package PKG172DPECBL User Manual. The Anaheim manuals for Discounted Package are available online for free. You can easily download all the documents as PDF.
Page 41
41 Section 7: Sample Programs Sample Program 1: Sample Program 1 illustrates a typical application where a system moves to a specific position required. The sample program shows how to use the motion and goto instruction commands. 04000 8000 Start Initilize Values Move 4000 Steps Repeat Last Move Move to Position 0 then wait 500mSec Quit
Page 42
42 Sample Program 2: Sample Program 2 illustrates a typical application where a system is first sent home to a datum or 0 position. This sample program shows how a motor will move to 3 different positions utilizing some of the motion commands, loop routines and encoder routine. 0 Position (Home Position) 2” 4”6” 1st Position 2nd Position 3rd Position Labeler DryerCapper
Page 43
43 Sample Program 3: Sample Program 3 illustrates the setup and operation of the output on the fly function, and the use of the if/then statement. The system is first homed using home type 0, waits for input 1 to be a value of 0 (grounded) and then is indexed 10,000 steps. During this index, output 1 needs to be turned on every 1000 steps 5 times starting at position 2000. At the end of the index, output 1 is then turned on again for 1 mS and the unit is then sent...
Page 44
44 Sample Program 4: Sample Program 4 illustrates the setup of the analog speed function and the use of “indexing-on-the-fly.” The system is first homed using home type 1. The next step is to wait for the input register to read 110111 (input 2 must be high while input 3 is low, all other inputs are not used and input 1 is masked high due to the analog function being used). The third step is to slew using the analog input as the maximum speed between 5000 and 10000 steps/revolution. When input 2 is...
Page 45
45 Sample Program 5: Sample Program 5 illustrates a typical 3 axis application where one DPE25601 (Axis 0) is controlling the other two axes (Axis 1 and Axis 2) by using the send text string commands. The program first sets the accelerations, base speeds and maximum speeds for each axis. It then is enabling Axis 0 and Axis 1 to use the thumbwheel switch that is connected to each unit for indexing. The direction is then set for Axis 0 and Axis 1 and these two axes are then told to index the distance...
Page 46
46 ASCII SymboHex ValueASCII Symbol Hex ValueASCII Symbol Hex Value 0 30 J4A #23 1 31 K4B $24 2 32 L4C %25 3 33 M4D “27 4 34 N4E (28 5 35 O4F +2B 6 36 P50 ,2C 7 37 Q51 -2D 8 38 R52 .2E 9 39 S53 :3A A 41 T54 ;3B B 42 U55@40 C 43 V56 [5B D 44 W57 ]5D E 45 X58 ^5E F 46 Y59 {7B G 47 Z5A }7D H 48Carriage Return 0D~7E I 49 !21 Appendix: ASCII Table for Direct Mode