Delta Electronics A10 User Manual page 253

Dop series hmi
Hide thumbs Also See for A10:
Table of Contents

Advertisement

Chapter 4 Macro Function|ScrEdit Software User Manual
End command is used to end the macro program. Statements2 will not be executed after Statemenets1
is executed. The program will execute from the command of the first line next time. Please note that
END means finishing executing macro. If END command is used in sub-macro, it indicates the
program is end here. If the user wants to return to the original macro program, please use RET
command.
Example:
$1 = 10
$1 = $1 + 1
END
$1 = $1 + 1
After the operation, the result is $1 = 11, not $1 = 12 as the END command has ended the macro
program.
Bit Settings
Please refer to the following table for the commands of Bit Settings.
Command
SETB
CLRBL
INVB
GETB
SETB
Set specific bit to be ON.
Equation: SETB V1
Set V1 Bit to be ON
Example:
Set the value of 5th Bit within the internal memory $1 to be ON.
$1 = 0000000000000000B
SETB $1.5
The result is $1 = 0000000000010000B
CLRB
Set specific bit to be OFF.
Equation: CLRB V1
Set V1 Bit to be OFF
Example:
Set the value of 15th Bit within the internal memory $2 to be OFF.
4-32
Equation
SETB V1
CLRB V1
INVB V1
V1 = GETB V2
Table 4.3.6 Bit setting command table
Description
Set V1 Bit to be ON
Set V1 Bit to be OFF
Set V1 Bit to be inversed
Get V2 Bit value and store in V1
Revision Apr. 30th, 2007, 2007PDD23000002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents