Chapter 4 Macro FunctionScrEdit Software User Manual

„GETCHARS

GETCHARS Get characters by COM port.

V1= GETCHARS (V2, V3, V4). V1 is the response value after communication. If the communication has succeeded, the result will be stored in $1. If the communication has failed, the result will be stored in $0. V2 is the starting address of transmission data, V3 is data length, and V4 is the maximum allowable communication time and its unit is ms.

„SELECTCOM

SELECTCOM It is used to select COM port. 0 represents COM1, and 1 represents COM2.

When using communication macro, the designated COM port cannot be the same as the system COM port which has used. All communication commands will be processed via the COM port the user selects after executing this command. Therefore, different macros will not support each other and there will be no interference between different macros.

„CLEARCOMBUFFER

Clear COM port buffer.

Equation: CLEARCOMBUFFER(V1, V2)

V1 is the number of communication port. It represents as constant 0(COM1) or 1(COM2).

V2 is the type of buffer area. It represents as constant 0 (receiving buffer area) or 1(sending buffer area)

Example:

Clear receiving buffer area of COM2

CLEARCOMBUFFER(1, 0)

„CHRCHKSUM

Calculate the data length of texts or characters and checksum.

Equation: V1 = CHRCHKSUM(V2, V3, V4)

V1 is the internal memory address where stores the text length of V2.

V2 is the string of text.

V3 is the internal memory address where stores the checksum of V2.

V4 is the data length of the checksum that stores in V3. 1 represents Byte and 2 represents Word.

Operation of checksum:

Convert each word of the string of text to ASCII code and add up them. For example, convert ’2’ to ASCII code ‘31H’, convert ’4’ to ASCII code ‘34H’ and vise versa. Therefore, the checksum of ‘A’ and ‘C’ is 41H + 43H = 84H.

Example:

Calculate the data length of "24" and checksum

4-36

Revision Apr. 30th, 2007, 2007PDD23000002

Page 257
Image 257
Delta Electronics DOP-A Series, DOP-AE Series, DOP-AS Series manual „ Getchars, „ Selectcom, „ Clearcombuffer, „ Chrchksum

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.