To function independently from the host computer, the DMC-21x2/21x3 can be programmed to make decisions based on the occurrence of an event. Such events include waiting for motion to be complete, waiting for a specified amount of time to elapse, or waiting for an input to change logic levels. The DMC-21x2/21x3 provides several event triggers that cause the program sequencer to halt until the specified event occurs. Normally, a program is automatically executed sequentially one line at a time. When an event trigger instruction is decoded, however, the actual program sequence is halted. The program sequence does not continue until the event trigger is "tripped". For example, the motion complete trigger can be used to separate two move sequences in a program. The commands for the second move sequence will not be executed until the motion is complete on the first motion sequence. In this way, the DMC-21x2/21x3 can make decisions based on its own status or external events without intervention from a host computer.
Conditional Jumps
The DMC-21x2/21x3 provides Conditional Jump (JP) and Conditional Jump to Subroutine (JS) instructions for branching to a new program location based on a specified condition. The conditional jump determines if a condition is satisfied and then branches to a new location or subroutine. Unlike event triggers, the conditional jump instruction does not halt the program sequence. Conditional jumps are useful for testing events in real-time. They allow the DMC-21x2/21x3 to make decisions without a host computer. For example, the DMC-21x2/21x3 can decide between two motion profiles based on the state of an input line.
Conditional Statements
The conditional statement is satisfied if it evaluates to any value other than zero. The conditional statement can be any valid DMC-21x2/21x3 numeric operand, including variables, array elements, numeric values, functions, keywords, and arithmetic expressions. If no conditional statement is given, the jump will always occur.The destination is a program line number or label where the program sequencer will jump if the specified condition is satisfied. Note that the line number of the first line of program memory is 0. The comma designates "IF". The logical condition tests two operands with logical operators.
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