The DMC-18x2 has a special label for automatic program execution. A program which has been saved into the controllers non-volatile memory can be automatically executed upon power up or reset by beginning the program with the label #AUTO. The program must be saved into non-volatile memory using the command, BP. If you include the #AUTOERR routine in your program and you have a checksum error, this program will execute.
For more information
read the operand section of the RS command in your command reference.Often it is desirable to monitor certain conditions continuously without tying up the host or DMC-18x2 program sequences. The DMC-18x2 can monitor several important conditions in the background. These conditions include checking for the occurrence of a limit switch, a defined input, position error, or a command error. Automatic monitoring is enabled by inserting a special, predefined label in the applications program For example, the #POSERR subroutine will automatically be executed when any axis exceeds its position error limit. The commands in the #POSERR subroutine could decode which axis is in error and take the appropriate action. In another example, the #ININT label could be used to designate an input interrupt subroutine. When the specified input occurs, the program will be executed automatically. NOTE: An application program must be running for automatic monitoring to function.
Example - Limit Switch:
This program prints a message upon the occurrence of a limit switch. Note, for the #LIMSWI routine to function, the DMC-18x2 must be executing an applications program from memory. This can be a very simple program that does nothing but loop on a statement, such as #LOOP;JP #LOOP;EN. Motion commands, such as JG 5000 can still be sent from the PC even while the "dummy" applications program is being executed.Now, when a forward limit switch occurs on the X axis, the #LIMSWI subroutine will be executed. Notes regarding the #LIMSWI Routine: 1) The RE command is used to return from the #LIMSWI subroutine. 2) The #LIMSWI subroutine will be re-executed if the limit switch remains active. The #LIMSWI routine is only executed when the motor is being commanded to move.
Common problem
We have this product in stock, and we can deliver it to you at any time when you need it badly.
*The warranty period of all products is 1 year, which has passed the professional test certification.
*If you need to order more than one product, please contact us, and we can offer you a discount.
*We only use HDL UPS and other express delivery methods to deliver spare parts.
*If you find that other suppliers offer lower prices for the same products, we are also willing to offer you further discounts based on their prices.
If you have any other questions, please feel free to contact us via email.
*Please let us know if you need any spare parts, we can give you further assistance, and we are waiting for your inquiry.