The DMC-21x2/21x3 has some special labels, which are used to define input interrupt subroutines, limit switch subroutines, error handling subroutines, and command error subroutines. See the section on Auto-Start Routine. The DMC-21x2/21x3 has a special label for automatic program execution. A program which has been saved into the controller’s 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
Commenting Programs
There are two methods for commenting programs. The first method uses the NO command and allows for comments to be embedded into Galil programs. The second method used the REM statement and requires the use of Galil software.REM Command If you are using Galil software to communicate with the DMC-21x2/21x3 controller, you may also include REM statements. ‘REM’ statements begin with the word ‘REM’ and may be followed by any comments which are on the same line. The Galil terminal software will remove these statements when the program is downloaded to the controller.
Executing Programs - Multitasking
The DMC-21x2/21x3 can run up to 8 independent programs simultaneously. These programs are called threads and are numbered 0 through 7, where 0 is the main thread. Multitasking is useful for executing independent operations such as PLC functions that occur independently of motion. The main thread differs from the others in the following ways: 1. Only the main thread, thread 0, may use the input command, IN. 2. When automatic subroutines are implemented for limit switches, position errors or command errors, they are executed in thread 0. To begin execution of the various programs, use the following instruction: XQ #A, n Where n indicates the thread number. To halt the execution of any thread, use the instruction
Temporal Ming sheng automation equipment co., LTD., specialized in (DCS system) (robotic system) (large) servo control system (PLC system) module for spare parts sales, inventory adequate, product quality, let you have no trouble back at home of our main products are widely used in metallurgy, petroleum, glass, aluminum manufacturing, petrochemical industry, coal mine, papermaking, printing, textile printing and dyeing, machinery, electronics, automobile manufacturing, tobacco, plastics machinery, electric power, water conservancy, water treatment/environmental protection, municipal engineering, boiler heating, energy, power transmission and distribution and so on
Brand advantage
GE gas turbine electric, ABB, Bently, Emerson, Honeywell, ICS Triplex, WOODWARD , FOXBORO, SST, HIMA , Motorola, TRICONEX invensys,SCHNEIDER A - B, Prosoft import module in Europe and America and so on