Chapter 4 Macro FunctionScrEdit Software User Manual

$0 = CHRCHKSUM("24", $10, 2)

After the above operation, 4 is stored in $0 and 4 represents the data length is 2 WORDS. The checksum stored in $10 is 66H.

„Communication Macro Example

This communication macro example can be downloaded via the following link: http://59.120.64.39:81/phpbb2/files/comm_marco.dop

This example shows that the user can use communication macro to control the output points of Delta DVP PLC and set SV value of DTB temperature controller to 20oC.

„ PLC

Set ON/OFF macro on Y0 button.

The communication commands which can trigger Y0 are listed as follows:

ASCII

:

0

1

0

 

5

0

 

5

0

0

F

 

F

0

 

0

F

6

\r

 

\n

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HEX

3A

30

31

30

 

35

30

 

35

30

30

46

 

46

30

 

30

46

36

0D

 

0A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ON Macro

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$0 = INITCOM(0, 0, 0, 2, 0, 6, 0)

 

 

Set communication setting as COM1,RS232,9600,7,E,1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SELECTCOM(0)

 

 

 

 

 

Select COM1 port.

 

 

 

 

 

 

 

 

 

 

 

 

 

CHR($11, "01050500FF00F6")

 

 

Convert the string of commands to ASCII code and store

 

 

 

 

 

 

 

 

data from $11.

 

 

 

 

 

 

 

 

 

 

 

$10 = 3A00H

 

 

 

 

 

 

Set starting Bit. Because the value of high byte and low

 

 

 

 

 

 

 

 

 

byte will be exchanged when HMI sends command, even

 

 

 

 

 

 

 

 

though the starting Bit is 3A when sending data, it is

 

 

 

 

 

 

 

 

 

needed to input 3A00.

 

 

 

 

 

 

 

 

 

$18 = 0A0DH

 

 

 

 

 

 

Set end Bit. Because the value of high byte and low byte

 

 

 

 

 

 

 

 

will be exchanged when HMI sends command, even

 

 

 

 

 

 

 

 

 

though the end Bit is 0D0A when sending data, it is

 

 

 

 

 

 

 

 

 

needed to input 0A0D.

 

 

 

 

 

 

 

 

 

$50 = PUTCHARS($10, 18, 500)

 

Start to send data from $10, the data length is 18 bytes

 

 

 

 

 

 

 

 

 

and the timeout setting is 500ms.

 

 

 

 

 

 

 

 

 

$51 = GETCHARS($100, 18, 500)

 

Receive the PLC response data after communication. The

 

 

 

 

 

 

 

 

received data is stored in $100, the data length is 18 bytes

 

 

 

 

 

 

 

 

and the timeout setting is 500ms.

 

 

 

 

 

 

The communication commands which can reset Y0 are listed as follows:

ASCII

 

:

0

1

0

 

5

0

 

5

0

0

0

0

0

0

F

5

\r

\n

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HEX

 

3A

30

31

30

 

35

30

 

35

30

30

40

40

30

30

46

35

0D

0A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OFF Macro

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$0 = INITCOM(0, 0, 0, 2, 0, 6, 0)

 

 

Set communication setting as COM1,RS232,9600,7,E,1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SELECTCOM(0)

 

 

 

 

 

Select COM1port.

 

 

 

 

 

 

 

 

 

 

 

CHR($21, "010505000000F5")

 

 

Convert the string of commands to ASCII code and store

 

 

 

 

 

 

 

 

 

data from $21.

 

 

 

 

 

 

 

 

Revision Apr. 30th, 2007, 2007PDD23000002

4-37

Page 258
Image 258
Delta Electronics DOP-AE Series, DOP-AS Series, DOP-A Series manual „ Communication Macro Example, „ Plc

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.