Chapter 4 Macro FunctionScrEdit Software User Manual

4.3Macro Operation

„ Definition

 

WORD

16 Bit data (It is made up of continuous 2 bytes, i.e. 16 bits, b15~b0. It can be used to

 

represent 0000~FFFF of hexadecimal system.

DWORD, DW

32 Bit data (It is made up of continuous 2 words, i.e. 32 bits, b31~b0. It can be used to

 

represent 00000000~FFFFFFFF of hexadecimal.)

BYTE

8 Bit data (It is made up of continuous 2 nibbles, i.e. 8 bits, b7~b0. It can be used to

 

represent 00~FF of hexadecimal system.)

Signed

A signed value is a numeric value with polarity. It means that the value is interpreted as

 

essentially the 'plus' sign that can be found in front of a positive number and the

 

'minus' sign that can be found in front of a negative number.

If DW shows after the macro command, it indicates that the command is 32 Bit data, if DW doesn’t display, it indicates that the command is 16 Bit data. When the user set the format of the device as Double Word, there will be two registers used actually. It means that if the user set the format of $0 as Double Word, $0 and $1 will be used for storing data.

If Signed shows after the macro command, it indicates that the command is a numeric value with polarity. If Signed doesn’t display, it indicates that it is a numeric value without polarity.

$10 = $13 + $15

16

Bit data operation, no polarity

 

 

 

 

$0

= $2 + $4 (DW)

32

Bit data operation, no polarity

 

 

 

 

$4

= FADD($4, 1.9) (Signed DW)

32

Bit data operation, with polarity

 

 

 

 

„Arithmetic Operation

Arithmetic Operation divides into three parts: Integer Operation, Floating Point Operation and Trigonometric Function Operation.

Each operand can be internal memory or constant. But it shall be internal memory only when outputting. Please refer to following table 4.3.1 and examples below for more information.

Integer Operation

Command

+

-

*

/

%

Equation

Description

V1=V2 + V2

Addition

V1=V2 - V3

Subtraction

V1 = V2 * V3

Multiplication

V1 = V2 / V3

Division

V1 = V2 % V3

Get Remainder

 

 

Remark

The calculation result can be stored as signed or unsigned WORD and

DWORD.

When the data exceeds the length of designated unit, the data out of range will be discarded.

V1 can be internal memory only.

V2 and V3 can be internal memory or constant.

4-14

Revision Apr. 30th, 2007, 2007PDD23000002

Page 235
Image 235
Delta Electronics DOP-AS Series, DOP-AE Series, DOP-A Series manual Macro Operation, „ Definition, „ Arithmetic Operation

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.