Delta Electronics A10 User Manual page 244

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

Advertisement

FILL(V1, V2, V3) means to fill address V1 with data in address V2 and the data number is V3. If
the block length is more than internal memory or maximum number of PLC address, there will
be error occurred when compiling.
Example:
$5 = 10
FILL($0, $5, 4)
Executing FILL command to fill $0, $1, $2, $3 with constant 10.
CHR
Convert Text to ASCII code
Equation: CHR(V1, "V2")
CHR(V1, "V2") means to convert text in address V2 to ASCII code and store in V1. The maximum
length is 128 words. One address can store up to two words. The excess word will be stored in
next address in order. The low and high bit of the converted ASCII code will be exchanged.
Example:
CHR($1, "AB12")
After executing CHR command, 4241H will be stored in $1 and 3130H will be stored in $2.
FMOV
Transfer Floating Point Data
Equation: V1 = FMOV(V2) (Signed DW)
Transfer floating point data from V2 to V1. No data change within V2 after the command is
executed.
Example:
Transfer constant 44.3 to the internal memory address $0.
$0 = FMOV(44.3) (Signed DW)
Transfer the same data of PLC 1@C200 to the internal memory address $0.
$0 = FMOV(1@C200) (Signed DW)
Data Conversion
Command
BCD
BIN
W2D
B2W
W2B
SWAP
XCHG
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
Equation
V1 = BCD(V2)
V1 = BIN(V2)
V1 = W2D(V2)
V1 = B2W(V2, V3)
V1 = W2B(V2, V3)
SWAP (V1, V2, V3)
XCHG (V1, V2, V3)
Description
Converts BIN Data into BCD
Decimal value conversion
Convert WORD to DWORD
Convert BYTE to WORD
Convert WORD to BYTE
Swap BYTE data of the WORD
Exchange data
4-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents