EasyManua.ls Logo

FATEK FBs-CB2 - EXCHANGE (FUN 45 XCHG)

FATEK FBs-CB2
348 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Advanced Function Instruction
7-20
FUN 45 D P
XCHG
EXCHANGE
FUN 45 D P
XCHG
Da :
ENExchange control
Ladder symbol
45DP.XCHG
Db :
Da : Register a to be exchanged
Db : Register b to be exchanged
Da, Db may combine with V, Z, P0~P9 to serve indirect
address application
WY WM WS TMR CTR HR OR SR ROR DR XR
Range
Ope-
rand
WY0
WY240
WM0
WM1896
WS0
WS984
T0
T255
C0
C255
R0
R3839
R3904
R3967
R3968
R4167
R5000
R8071
D0
D4095
VZ
P0~P9
Da * *
Db * *
z When exchange control "EN" = 1 or "EN" ( P instruction) has a transition from 0 to 1, will exchanges the
contents of register Da and register Db in 16 bits or 32 bits ( D instruction) format.
X0
EN
45P.XCHG
Da :
Db :
R 1
R 0
z The instruction at left exchanges the contents of the
16-bit R0 and R1 registers.
B15 B0
Da R0 0 000000000000000
Db R1 1 111111111111111
Ø
X0
B15 B0
Da R0 1 111111111111111
Db R1 0 000000000000000

Other manuals for FATEK FBs-CB2

Related product manuals