Home > Anaheim > Discounted Package > Anaheim Discounted Package PKG174DPECBL User Manual

Anaheim Discounted Package PKG174DPECBL User Manual

    Download as PDF Print this page Share this page

    Have a look at the manual Anaheim Discounted Package PKG174DPECBL User Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 523 Anaheim manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.

    							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 
    						
    							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 
    						
    							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 back the 10,000 steps to position 0, but the output should not be turned 
    on. The unit then repeats waiting for input 1 to be 0 and indexes again. 
    						
    							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 switched low,  the unit will index 2500 more 
    steps and ramp down to base speed and stop. At the end of the index, output 1 will turn on for 100 mS. 
    After  the  output  is  turned  off  the  unit  will  be  sent  back  to  position  0.  The  program  then  is  sent  back  to 
    repeat itself, waiting for the input register to be 110111 again. 
    						
    							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 set in each thumbwheel at the same 
    time. The program then waits for the motion to finish before it tells Axis 2 to move. Axis 2 first moves in 
    the  negative  direction  waits  for  the  index  to  finish,  and  then  moves  back  in  the  positive  direction. After 
    Axis 2 is finished moving, Axis 0 and Axis 1 are both sent back to their zero positions at the same time. 
    The program is then repeated. 
    						
    							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 
    						
    All Anaheim manuals Comments (0)

    Related Manuals for Anaheim Discounted Package PKG174DPECBL User Manual