N e w I n s t r u c t i o n
De scrip tio n f o r V 、 Z & P0 〜 P 9 I n d e x Re gis t e r
● T he FBS ser ies PLC ( O S ver sion V4. X X ) suppor ts V、Z & P0〜 P9 in t otal
1 2 i n d e x r e g i s t e r s f o r i n d i r e c t a d d r e s s i n g a p p l i c a t i o n .
● I n indirect addressin g applicat ion, R xxxx reg ist er can combine V、Z & P0
〜 P9 f or index addr essing ; Dxxxx reg ist er can' t combine V、 Z f or index
a d d r e s s i n g , b u t P 0 〜 P 9 a r e a l l o we d .
● W hen V、 Z index r eg ist er being com bined wit h t he Rxxxx r eg ist er,
f or e xa m p l e , R 0 wi t h V、 Z , t h e i n s t r u ct i o n f o r m a t i s R 0 V ( wh e r e V = 1 0 0 , i t
m e a n s R 1 0 0 ) o r R 0 Z ( wh e r e Z = 5 0 0 , i t me a n s R 5 0 0 ) ; w h e n P 0 〜 P 9 i n d e x
r e g i s t e r b e i n g c o m bi n e d w i t h t h e R x x x x r e g i s t e r, t h e i n s t r u c t i o n f o rm a t
i s R P n ( n = 0 〜 9 ) o r R P m P n ( m , n = 0 〜 9 ) , f or e xa m p l e R P 5 ( w h e r e P 5 = 1 0 0 ,
i t m e a n s R 1 0 0 ) o r R P 0 P 1 ( wh e r e P 0 = 1 0 0 , P 1 = 5 0 , i t m e a n s 1 5 0 ) .
● W hen P0〜 P9 inde x reg ist er being combined wit h t he Dxxxx reg ist er,
t h e i n s t r u c t i o n f o rm a t i s D P n ( n= 0 〜 9 ) o r D P m P n (m, n = 0 〜 9 ) , f o r
e xa m p l e D P 3 ( w h e r e P 3 = 1 0 , i t m e a n s D 1 0 ) o r D P 4 P 5 ( wh e r e P 4 = 1 0 0 ,
P 5 = 1 , i t m e a n s D 1 0 1 ) .
●
I t c a n c o m b i n e b o t h P 0 〜 P 9 i n d e x r e g i s t e r, f o r e xa m p l e P 2 = 2 0 , P 3 = 3 0 ,
wh e n R x x x x o r D x x x x r e g i s t e r c o m b i n e s b o t h i n d e x r e g i s t e r, R P 2 P 3 w i l l
p o i n t t o R 5 0 , D P 2 P 3 w i l l p o i n t t o D 5 0 , i t m e a n s t h e s u m m at i o n o f b o t h
i n d e x r e g i s t e r f o r i n d i r e c t a d d r e s s i n g .
1 . I n d e x r e g i s t e r P 2 = 1 0 0 w h i l e p o w e r
u p o r f i r s t r u n .
2 . W h e n X 2 3 c h a n g e s f r o m 0
à1,
F U N 1 0 3 w i l l p e r f o r m t h e t a b l e
m o v e m e n t , t h e s o u r c e s t a r t s f r o m
R 1 0 0 ( P 2 = 1 0 0 ) , t h e d e s t i n a t i o n
s t a r t s f r o m R 2 0 0 0 , t h e a m o u n t i s 4 .
C o p i n g t h e c o n t e n t o f R 1 0 0 ~ R 1 0 3
f o r R 2 0 0 0 ~ R 2 0 0 3 a t f i r s t e x e c u t i o n ,
c o p i n g t h e c o n t e n t o f R 1 0 4 ~ R 1 0 7
f o r R 2 0 0 0 ~ R 2 0 0 3 a t s e c o n d
e x e c u t i o n …
3 . I n c r e a s i n g t h e P 2 i n d e x r e g i s t e r b y
4 t o p o i n t t o n e x t 4 w o r d s .
9-81