EasyManuals Logo

Delta Electronics A10 User Manual

Delta Electronics A10
329 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #244 background imageLoading...
Page #244 background image
Chapter 4 Macro Function|ScrEdit Software User Manual
Revision Apr. 30th, 2007, 2007PDD23000002 4-23
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 Equation Description
BCD
V1 = BCD(V2)
Converts BIN Data into BCD
BIN
V1 = BIN(V2)
Decimal value conversion
W2D
V1 = W2D(V2)
Convert WORD to DWORD
B2W
V1 = B2W(V2, V3)
Convert BYTE to WORD
W2B
V1 = W2B(V2, V3)
Convert WORD to BYTE
SWAP
SWAP (V1, V2, V3)
Swap BYTE data of the WORD
XCHG
XCHG (V1, V2, V3)
Exchange data

Table of Contents

Other manuals for Delta Electronics A10

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta Electronics A10 and is the answer not in the manual?

Delta Electronics A10 Specifications

General IconGeneral
BrandDelta Electronics
ModelA10
CategoryMonitor
LanguageEnglish

Related product manuals