Delta Electronics A10 User Manual page 254

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

Advertisement

$2 = 1111111111111111B
CLRB $2.15
The result is $2 = 0111111111111111B
INVB
Set specific bit to be inversed. ON
Equation: INVB V1
Set V1 Bit to be inversed. ON
Example:
Set the value of 0th Bit within the internal memory $3 to be inversed.
$3 = 1111111111111111B
INVB $3.0
The result is $3 = 1111111111111110B
GETB
Get bit value
Equation: V1 = GETB V2
Get V2 Bit value and store in V1
Example:
Get the value of 3rd Bit within the internal memory $0 and store it to the 5th Bit within the internal
memory $10.
$0 = 0000000000000100B
$10 = 0
$10.5 = GETB $0.3
The result is $10 = 0000000000010000B
Communication
Command
INITCOM
ADDSUM
XORSUM
PUTCHARS
GETCHARS
SELECTCOM
CLEARCOMBUFFER
CHRCHKSUM
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
OFF, OFF
OFF, OFF
ON
Equation
V1= INITCOM (V2)
V1=ADDSUM(V2, V3)
V1 = XORSUM(V2, V3)
V1 = PUTCHARS(V2, V3, V4)
V1 = GETCHARS(V2, V3, V4)
SELECTCOM(V1)
CLEARCOMBUFFER(V1, V2)
V1 = CHRCHKSUM(V2, V3, V4)
Table 4.3.7 Communication command table
ON
Initial setup COM port
Use addition to calculate checksum
Use XOR to calculate checksum
Output characters by COM port
Get characters by COM port
Select COM port
Clear COM port buffer
Calculate the length of texts and
checksum
Description
4-33

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents