Chapter 4 Macro FunctionScrEdit Software User Manual

Example:

IFB 1@M0 == ON THEN GOTO LABEL 1

„IF…THEN CALL …

Equation: IF V1 == V2 THEN CALL macro

If V1 is equal to V2, it will call macro. V1 and V2 should be internal memory or constant.

Example

If $2 is equal to 10, then it will call sub-macro 1.

IF $2 = 10 THEN CALL 1

„IF…ELSE…ENDIF

Equation:

IF expression1

Statement1

ELSEIF expression2

Statement2

ELSE

Statement3

ENDIF

This is logical determination from multiple conditions. If expression1 is true, Statement1 will be executed. If expression1 is false, it will run expression2. If expression2 is true, Stemenent2 will be executed. If both expression1 and expression2 are false, Statement3 will be executed.

For the command of expression, please refer to table 4.3.5 (Comparison command table).

Example

If $1 is equal to 10, $1 = $1 + 1 is executed. If $1 is equal to 20, $1 = $1 + 2 is executed. If $1 is equal to other value, $1 = $1 + 15 is executed.

IF $1 == 10

$1 = $1 + 1

ELSEIF $1 == 20

$1 = $1 + 2

ELSE

$1 = $1 + 15

ENDIF

„ENDIF

ENDIF should be placed in the end of the IF comparison command. Please refer to the example of

Revision Apr. 30th, 2007, 2007PDD23000002

4-29

Page 250
Image 250
Delta Electronics DOP-AS Series, DOP-AE Series, DOP-A Series manual „ IF…THEN Call …, „ If…Else…Endif, „ Endif

DOP-A Series, DOP-AE Series, DOP-AS Series specifications

Delta Electronics is a renowned leader in the automation and control industry, and their HMI (Human Machine Interface) products, particularly the DOP-AS, DOP-AE, and DOP-A Series, stand out for their advanced features and innovative technologies. These HMIs are designed to enhance user experience and facilitate efficient machine control in various industrial applications.

The DOP-AS Series is known for its high-performance capabilities. It features a 7-inch to 15-inch TFT LCD display with a resolution of up to 1024x768 pixels, providing clear and sharp visuals. The intuitive touchscreen interface allows for seamless interaction, making it easy for operators to monitor and control processes. The DOP-AS Series is equipped with advanced connectivity options, including Ethernet, USB, and serial communication, enabling easy integration with various devices and systems. Additionally, it supports various industrial protocols, which makes it compatible with a wide range of programmable logic controllers (PLCs).

The DOP-AE Series offers enhanced features aimed at modern industrial requirements. Its displays range from 7 inches to 12 inches, combining a sleek design with robust functionality. One of its key technologies is the multi-touch capability, allowing multiple points of contact on the screen for more dynamic interaction. This series also supports rich multimedia functions, enabling the display of video and images, which can improve information presentation. The DOP-AE’s high-speed processor ensures quick response times, reducing system lag and improving operational efficiency.

Finally, the DOP-A Series is designed for more basic applications without compromising on quality. With sizes ranging from 4.3 inches to 15 inches, the DOP-A Series provides flexibility for different workspace requirements. The interface is user-friendly and straightforward, catering to operators who require essential functionalities without excessive complexity. Though simpler, the DOP-A Series still maintains robust communication interfaces for seamless integration into existing systems.

In conclusion, Delta Electronics’ DOP-AS, DOP-AE, and DOP-A Series HMIs offer a spectrum of capabilities tailored to varying industrial needs. From high-performance applications to simpler tasks, these HMIs incorporate advanced display technology, connectivity options, and user-friendly interfaces, ensuring that operators can efficiently manage and control their processes in an increasingly automated world. Delta continues to push the boundaries of automation technology, leading to enhanced productivity and operational excellence in industries worldwide.