EasyManuals Logo

Vector VEC-VA Series User Manual

Vector VEC-VA Series
649 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 #256 background imageLoading...
Page #256 background image
VA Motion Controller Programming Manual
251
10.5.12 SWAP (swapping high byte and low
byte instructions )
IL programming
language
LD, FBD programming language
Function: The SWAP instruction is used to swap the position of the highest byte ( MSB ) and
lower byte ( LSB ) of the input bit string .
LD IN
SWAP
ST OUT
ST programming language
OUT:=SWAP
(
IN
)
Note
: IL, ST
language programming needs to insert variables
IN
and
OUT
or use constants in
the current
POU
variable worksheet
数据 Data type processed by SWAP instruction
Input and output
type of data
description
IN
(
IN
)
WORD
Input bit string
OUT
(
STRING_TO_BUFFER
)
WORD
Output bit string, exchange
the high and low bytes of the
input bit string and output
Funtion and Action examples
The address V556 ( 16 # 9900 ) is high . 8 bits
of the low . 8 bit swap
description
When the contact
C300
is
ON
,
the instruction is executed
to
exchange
the upper
8
bits of
the address
V556
with the lower
8
bits ;
Execution result:
16 #
9900
exchange into a
16 # 0099

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals