+ All Categories
Home > Documents > Network for Monitoring and Control Using Rs485

Network for Monitoring and Control Using Rs485

Date post: 07-Apr-2018
Category:
Upload: davilla3112
View: 218 times
Download: 0 times
Share this document with a friend
15
Transcript
Page 1: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 1/15

N e t w o r k s f o r M o n i t o r i n g a n d C o n t r o l  

U s i n g a n R S - 4 8 5 i n t e r f a c e  

J a n A x e l s o n  

A u g u s t 2 1 , 1 9 9 5  

1 I n t r o d u c t i o n  

T h i s a r t i c l e w a s t a k e n f r o m t h e M I C R O C O M P U T E R J O U R N A L , t h e J U L Y A U G U S T  

i s s u e , p u b l i s h e d i n 1 9 9 5 a n d s t a r t i n g o n p a g e 2 7 . I t i s a g o o d a r t i c l e c o v e r i n g  

t h e R S - 2 3 2 , R S - 4 2 3 , R S - 4 2 3 s e r i a l c o m m u n i c a t i o n s t a n d a r d s i n g e n e r a l a n d  

t h e R S - 4 8 5 i n d e t a i l . I t h a s b e e n c o n v e r t e d t o P o s t s c r i p t t o m a k e i t e a s i e r  

t o t r a n s m i t e l e c t r o n i c a l l y .  

2 B a c k g r o u n d  

O n e c o m p u t e r c a n c e r t a i n l y d o a l o t o n i t s o w n , a n d t w o c o m p u t e r s l i n k e d  

t o g e t h e r c a n d o e v e n m o r e . E v e n s o , s o m e j o b s c a l l f o r a n e t w o r k o f t h r e e  

o r m o r e c o m p u t e r s l i n k e d t o g e t h e r , i s s u i n g c o m m a n d s , s e n d i n g r e p l i e s a n d ,  

i n g e n e r a l , e x c h a n g i n g i n f o r m a t i o n w i t h e a c h o t h e r .  

A n e t w o r k i s a s o l u t i o n w h e n y o u n e e d b o t h o f t h e f o l l o w i n g : c o m p u t e r  

i n t e l l i g e n c e t o m a k e d e c i s i o n s , g a t h e r d a t a o r c o n t r o l o b j e c t s o r s y s t e m s i n a  

v a r i e t y o f l o c a t i o n s a n d t h e a b i l i t y f o r e a c h l o c a t i o n t o c o m m u n i c a t e w i t h a t  

l e a s t o n e o t h e r l o c a t i o n . T h e c o m p u t e r s i n a n e t w o r k c a n b e a n y t y p e . F o r  

e x a m p l e , t h e y m a y a l l b e p e r s o n a l c o m p u t e r s , o r a l l m i c r o c o n t r o l l e r s o r j u s t  

a b o u t a n y c o m b i n a t i o n o f c o m p u t i n g d e v i c e s y o u c a n t h i n k o f . F o r e x a m p l e ,  

a n e n v i r o n m e n t a l - c o n t r o l n e t w o r k m i g h t h a v e a s e r i e s o f m i c r o c o n t r o l l e r s o r  

s i n g l e - b o a r d c o m p u t e r s t o m o n i t o r a n d c o n t r o l t e m p e r a t u r e , h u m i d i t y a n d  

o t h e r v a r i a b l e s , w i t h o n e p e r s o n a l c o m p u t e r t o k e e p t r a c k o f a l l o f i t a n d  

p e r m i t u s e r s t o m o n i t o r t h e s y s t e m a n d a d j u s t o r m o d i f y i t s o p e r a t i o n .  

Page 2: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 2/15

I n t h i s a r t i c l e , I b e g i n a t w o - p a r t s e r i e s t o s h o w y o u h o w t o b u i l d a n d  

p r o g r a m a s i m p l e n e t w o r k o f p e r s o n a l c o m p u t e r s , m i c r o c o n t r o l l e r s o r a c o m  

b i n a t i o n o f t h e t w o . T h e n e t w o r k u s e s a n R S - 4 8 5 s e r i a l l i n k t h a t p e r m i t s u p  

t o 3 2 d e v i c e s o r n o d e s t o c o n n e c t o v e r a s i n g l e p a i r o f w i r e s . B y a d d i n g  

r e p e a t e r s a n d c o n t r o l l o g i c , y o u c a n h a v e m o r e t h a n 3 2 d e v i c e s .  

Y o u c a n u s e t h e e x a m p l e n e t w o r k a s a b u i l d i n g b l o c k f o r a s p e c i c a p  

p l i c a t i o n , w h e t h e r i t ' s g a t h e r i n g d a t a f r o m r e m o t e s e n s o r s , c o n t r o l l i n g r e  

m o t e s y s t e m s o r w h a t e v e r i t i s y o u n e e d t o a c c o m p l i s h . T h i s t y p e o f l i n k i s  

a l s o u s e f u l i f y o u h a v e j u s t t w o d e v i c e s b u t n e e d t o t r a n s m i t o v e r d i s t a n c e s  

o f u p t o 4 , 0 0 0 f e e t .  

3 S e r i a l S t a n d a r d s  

T o b e g i n , l e t ' s t a k e a l o o k a t R S - 4 8 5 a n d h o w i t c o m p a r e s w i t h t h e m o r e  

c o m m o n R S - 2 3 2 s c h e m e . W e ' l l l o o k b r i e y a t s o m e o t h e r s e r i a l i n t e r f a c e  

s t a n d a r d s a s w e l l .  

S e r i a l s t a n d a r d s d e s c r i b e i n t e r f a c e s f o r t r a n s f e r r i n g i n f o r m a t i o n i n s e r i a l  

f o r m a t , o r o n e b i t a t t i m e i n s i n g l e l e . I n c o n t r a s t , a p a r a l l e l i n t e r f a c e  

t r a n s f e r s m u l t i p l e b i t s s i m u l t a n e o u s l y . A l l o t h e r t h i n g s b e i n g e q u a l , a p a r -  

a l l e l i n t e r f a c e i s f a s t e r b e c a u s e i t c a r r i e s m o r e i n f o r m a t i o n a t t h e s a m e t i m e .  

H o w e v e r , b e c a u s e o f t h e e x p e n s e o f t h e e x t r a c o n d u c t o r s r e q u i r e d t o c a r r y  

a l l o f t h e b i t s , p a r a l l e l l i n k s u s u a l l y a r e n ' t p r a c t i c a l o v e r l o n g d i s t a n c e s .  

T a b l e 1 c o m p a r e s f o u r s e r i a l i n t e r f a c e s t a n d a r d s . A l l a r e d e v e l o p e d a n d  

p u b l i s h e d b y t h e E l e c t r o n i c s I n d u s t r i e s A s s o c i a t i o n E I A , w i t h m o r e s r e c e n t  

v e r s i o n s d e v e l o p e d j o i n t l y w i t h t h e T e l e c o m m u n i c a t i o n s I n d u s t r i e s A s s o c i -  

a t i o n T I A . T h e s e a r e t r a d e a s s o c i a t i o n s s p o n s o r e d b y b u s i n e s s e s i n t h e  

e l e c t r o n i c s a n d t e l e c o m m u n i c a t i o n s i n d u s t r i e s . T o r e e c t i t s o r i g i n , t h e  

o c i a l n a m e f o r w h a t ' s p o p u l a r l y k n o w n a s R S - 4 8 5 i s a c t u a l l y E I A - 4 8 5 .  

C o p i e s o f t h e s t a n d a r d s a r e a v a i l a b l e f r o m G l o b a l E n g i n e e r i n g f o r 4 0  t o  5 5 

e a c h . H o w e v e r , y o u c a n o f t e n n d t h e i n f o r m a t i o n y o u n e e d , i n c l u d i n g  

p r a c t i c a l t i p s t h e s t a n d a r d s o f t e n l e a v e o u t , i n t h e a p p l i c a t i o n n o t e s f r o m  

t h e m a k e r s o f R S - 4 8 5 i n t e r f a c e c h i p s . T w o s u c h s o u r c e s a r e N a t i o n a l S e m i -  

c o n d u c t o r ' s I n t e r f a c e : L i n e D r i v e r s a n d R e c e i v e r s ' a n d T e x a s I n s t r u m e n t s '  

D a t a T r a n s m i s s i o n C i r c u i t s d a t a b o o k s .  

R S - 2 3 2   i s u s e d f o r c o m m u n i c a t i n g b e t w e e n j u s t t w o d e v i c e s , o v e r d i s t a n c e s  

o f 5 0 f e e t o r l e s s , t h o u g h y o u c a n s t r e t c h t h i s a t l o w e r b i t r a t e s . J u s t  

Page 3: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 3/15

a b o u t e v e r y I B M - c o m p a t i b l e p e r s o n a l c o m p u t e r h a s a n R S - 2 3 2 p o r t . S e e  

t h e N o v e m b e r D e c e m b e r 1 9 9 4 a n d J a n u a r y F e b r u a r y 1 9 9 5 i s s u e s o f M i c r o -  

C o m p u t e r J o u r n a l f o r m o r e o n R S - 2 3 2 l i n k s .  

R S - 4 8 5   h a s s e v e r a l a d v a n t a g e s o v e r R S - 2 3 2 . W i t h i t , y o u c a n h a v e u p t o  

3 2 d r i v e r r e c e i v e r u n i t s o n a l i n k . A l i n k c a n b e a s l o n g a s 4 , 0 0 0 f e e t , o r  

3 4 o f a m i l e . O v e r s h o r t e r d i s t a n c e s , t r a n s m i s s i o n s p e e d s c a n b e a s g r e a t  

a s 1 0 M b i t s s e c o n d . A n d R S - 4 8 5 d r i v e r s a n d r e c e i v e r s a r e i n e x p e n s i v e a n d  

r e q u i r e j u s t a 5 - v o l t d c s u p p l y i n c o n t r a s t t o R S - 2 3 2 ' s m i n i m u m r e q u i r e m e n t  

o f + 5 - v o l t o u t p u t s . R S - 4 2 3 i s s i m i l a r t o R S - 2 3 2 , b u t i t p e r m i t s u p t o l O  

r e c e i v e r s t o c o n n e c t t o o n e d r i v e r , o r g e n e r a t o r . L i k e R S 4 8 5 , R S - 4 2 2 c a n  

t r a n s m i t o v e r l o n g d i s t a n c e s , b u t l i k e R S - 4 2 3 , i t ' s i n t e n d e d f o r u s e w i t h j u s t  

o n e d r i v e r a n d u p t o 1 0 r e c e i v e r s .  

I n t h i s a r t i c l e , I f o c u s o n t h e R S 4 8 5 i n t e r f a c e , s i n c e i t ' s t h e o n l y o n e o f t h o s e  

m e n t i o n e d t h a t p e r m i t s m u l t i p l e d r i v e r s a n d r e c e i v e r s i n a l i n k .  

4 I n s i d e R S - 4 8 5  

A n R S - 4 8 5 l i n k e m p l o y s b a l a n c e d l i n e s , w h i c h m e a n s t h a t e a c h s i g n a l h a s  

t w o c o n d u c t o r s , a n d t h e s i g n a l o n t h e s e c o n d c o n d u c t o r e q u a l s t h e n e g a t i v e  

o f t h a t o n t h e r s t . A n R S - 4 8 5 r e c e i v e r r e s p o n d s t o t h e v o l t a g e d i e r e n c e  

b e t w e e n t h e t w o c o n d u c t o r s . A n o t h e r t e r m f o r t h i s t y p e o f m e a s u r e m e n t i s  

d i e r e n t i a l m e a s u r e m e n t .  

T a b l e 1 : C o m p a r i s o n o f f o u r s e r i a l i n t e r f a c e s t a n d a r d s  

I n c o n t r a s t , R S - 2 3 2 u s e s u n b a l a n c e d l i n e s i n w h i c h e a c h s i g n a l h a s j u s t o n e  

c o n d u c t o r a n d t h e r e c e i v e r r e s p o n d s t o t h e v o l t a g e d i e r e n c e b e t w e e n t h i s  

c o n d u c t o r a n d a c o m m o n g r o u n d c o n d u c t o r u s e d b y a l l s i g n a l s . A n o t h e r  

t e r m f o r t h i s t y p e o f m e a s u r e m e n t i s s i n g l e - e n d e d .  

Page 4: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 4/15

B a l a n c e d l i n e s h a v e a c o u p l e o f a d v a n t a g e s o v e r u n b a l a n c e d o n e s . O n e i s  

t h a t n o i s e v o l t a g e s p i k e s , o s c i l l a t i o n s o r i n t e r f e r e n c e i n g e n e r a l t e n d s t o  

c a n c e l o u t .  

I n a n u n b a l a n c e d l i n e , a s i g n a l ' s r e t u r n c u r r e n t i n t h e g r o u n d c o n d u c t o r c a n  

g e n e r a t e n o i s e a t t h e r e c e i v e r . I n a b a l a n c e d l i n e , t h e d i e r e n t i a l s i g n a l s  

g e n e r a t e t w o e q u a l b u t o p p o s i t e r e t u r n c u r r e n t s . S i n c e t h e c u r r e n t s a d d  

u p t o z e r o , f o r a l l p r a c t i c a l p u r p o s e s , t h e r e ' s n o r e t u r n c u r r e n t t o c a u s e  

p r o b l e m s .  

A n o t h e r a d v a n t a g e t o b a l a n c e d l i n e s i s t h a t t h e y ' r e i m m u n e w i t h i n l i m i t s  

t o d i e r e n c e s i n g r o u n d p o t e n t i a l b e t w e e n n o d e s . I n a n e t w o r k t h a t h a s  

l o n g l i n e s , t h e g r o u n d p o t e n t i a l m a y v a r y a s m u c h a s s e v e r a l v o l t s f r o m  

o n e n o d e t o a n o t h e r . B u t a d i e r e n t i a l m e a s u r e m e n t d o e s n ' t c a r e a b o u t  

t h i s d i e r e n c e , s i n c e i t m e a s u r e s o n l y t h e v o l t a g e b e t w e e n t h e t w o s i g n a l  

c o n d u c t o r s .  

U s e o f b a l a n c e d l i n e s i s t h e m a i n r e a s o n w h y R S - 4 8 5 c a n t r a n s m i t s o m u c h  

f a r t h e r t h a n R S - 2 3 2 .  

M a n y R S - 4 8 5 l i n k s u s e i n e x p e n s i v e t w i s t e d - p a i r c a b l e , w h i c h c o n s i s t s o f t w o  

i n s u l a t e d c o n d u c t o r s t h a t s p i r a l a r o u n d e a c h o t h e r e v e r y i n c h o r s o . R a d i o  

S h a c k s e l l s A W G 2 2 s t r a n d e d t w i s t e d - p a i r c a b l e a s " a l a r m c o n d u c t o r . " T h e  

s i m p l e a c t o f t w i s t i n g t o g e t h e r t h e c o n d u c t o r s t e n d s t o c a n c e l a n y n o i s e t h e  

l i n e s p i c k u p d u e t o e l e c t r o m a g n e t i c i n t e r f e r e n c e .  

A l t h o u g h R S - 4 8 5 i n t e r f a c e s n o r m a l l y u s e a 5 - v o l t p o w e r s u p p l y , t h e l o g i c  

l e v e l s a t t h e d r i v e r s a n d r e c e i v e r s a r e n ' t s t a n d a r d 5 - v o l t T T L o r C M O S  

v o l t a g e s . T h e t w o s i g n a l s a r e d e s i g n a t e d A a n d B . F o r a v a l i d o u t p u t , t h e  

v o l t a g e d i e r e n c e b e t w e e n A a n d B c a n b e a s s m a l l a s 1 . 5 v o l t s , a l t h o u g h a  

5 - v o l t d i e r e n c e i s t y p i c a l . I f t e r m i n a l A i s a t l e a s t 1 . 5 v o l t s m o r e - p o s i t i v e  

t h a n t e r m i n a l B , t h e o u t p u t i s a l o g i c R O S . A n d i f t e r m i n a l A i s a t l e a s t 1 . 5  

v o l t s m o r e - n e g a t i v e t h a n t e r m i n a l B , t h e o u t p u t i s a l o g i c 1 . I f t h e d i e r e n c e  

i s l e s s t h a n 1 . 5 v o l t s , t h e o u t p u t i s u n d e n e d .  

A t t h e R S 4 8 5 r e c e i v e r , t h e d i e r e n c e b e t w e e n t h e A a n d B i n p u t s n e e d s t o  

b e j u s t 0 . 2 v o l t f o r a v a l i d l o g i c l e v e l . I f A i s a t l e a s t 0 . 2 v o l t m o r e - p o s i t i v e  

t h a n B , t h e r e c e i v e r s e e s a l o g i c 0 " , a n d i f B i s a t l e a s t 0 . 2 v o l t m o r e - p o s i t i v e  

t h a n A , t h e r e c e i v e r s e e s a l o g i c 1 " . I f t h e d i e r e n c e b e t w e e n A a n d B i s  

l e s s t h a n 0 . 2 v o l t , t h e l o g i c l e v e l i s u n d e n e d .  

T h e d i e r e n c e b e t w e e n t h e v o l t a g e r e q u i r e m e n t s a t t h e d r i v e r a n d r e c e i v e r  

m e a n s t h a t t h e s i g n a l c a n a t t e n u a t e a s m u c h a s 1 . 3 v o l t s a l o n g t h e n e t -  

Page 5: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 5/15

w o r k c o n d u c t o r s f o r t h e r e c e i v e r t o s t i l l r e c o g n i z e i t p r o p e r l y . I f t h e d r i v e r  

g e n e r a t e s a 5 - v o l t d i e r e n c e , t h e m a r g i n i s e v e n g r e a t e r , a t 4 . 8 v o l t s .  

5 R S - 4 8 5 C h i p s  

A n e a s y w a y t o c r e a t e a n R S - 4 8 5 i n t e r f a c e i s t o u s e o n e o r m o r e o f t h e  

a v a i l a b l e R S - 4 8 5 c h i p s . O n e s e r i e s , t h e 7 5 1 7 x , i s a v a i l a b l e f r o m  

F i g u r e 1 : A f u l l - d u p l e x R S - 4 8 5 l i n k r e q u i r e s a p a i r o f c o n d u c t o r s i n e a c h  

d i r e c t i o n .  

T e x a s I n s t r u m e n t s , N a t i o n a l S e m i c o n d u c t o r a n d M o t o r o l a . T h e 9 5 1 7 x s e r i e s  

i s s i m i l a r . M a x i m S e m i c o n d u c t o r h a s c o m e o u t w i t h i t s M A X 4 8 x s e r i e s . T h e  

c h i p s a r e a v a i l a b l e f r o m m a n y p a r t s s o u r c e s . P a r t s c a t a l o g s m a y l i s t t h e m  

u n d e r L i n e a r o r I n t e r f a c e c h i p s .  

T h e 7 5 1 7 9 c o n t a i n s o n e d r i v e r a n d o n e r e c e i v e r i n a s i n g l e p a c k a g e . T h e  

d r i v e r t r a n s l a t e s 5 - v o l t T T L s i g n a l s t o R S - 4 8 5 , a n d t h e r e c e i v e r t r a n s l a t e s  

R S - 4 8 5 s i g n a l s b a c k t o 5 - v o l t T T L . W i t h a p a i r o f d r i v e r r e c e i v e r c h i p s ,  

y o u c a n c r e a t e a f u l l - d u p l e x l i n k t h a t c a n c a r r y d a t a i n b o t h d i r e c t i o n s  

s i m u l t a n e o u s l y , a s F i g . 1 i l l u s t r a t e s .  

M a n y R S - 4 8 5 l i n k s a r e h a l f - d u p l e x , w h e r e i n e a c h n o d e c a n b o t h s e n d a n d  

r e c e i v e d a t a b u t c a n ' t d o b o t h s i m u l t a n e o u s l y . A l t h o u g h R S - 2 3 2 l i n k s a r e  

t y p i c a l l y f u l l - d u p l e x , t h e r e a r e s o m e g o o d r e a s o n s w h y y o u m i g h t u s e h a l f  

d u p l e x o p e r a t i o n f o r R S - 4 8 5 .  

Page 6: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 6/15

F i g u r e 2 : T h e 7 5 1 7 6 c h i p c o n t a i n s a n R S - 4 8 5 x m i t t e r , r e c e i v e r , d i r e c t i o n  

c o n t r o l a n d t w o - p i n R S - 4 8 5 i n t e r f a c e .  

Page 7: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 7/15

I n a l i n k b e t w e e n j u s t t w o d e v i c e s , f u l l - d u p l e x i s c o n v e n i e n t b e c a u s e e a c h  

d e v i c e c a n t r a n s m i t a t a n y t i m e w i t h o u t c o n c e r n f o r w h i c h d e v i c e i t s t u r n  

i t i s . B u t w i t h m a n y n o d e s i n t h e l i n k , t h e r e ' s n o g u a r a n t e e t h a t a s i g n a l  

p a t h w i l l b e f r e e , a n d g u r i n g o u t w h e n i t ' s o k a y t o u s e e a c h o f t w o s i g n a l  

p a t h s j u s t a d d s m o r e c o m p l i c a t i o n s . S o i f y o u h a v e t h r e e o r m o r e n o d e s , i t ' s  

s i m p l e r t o h a v e j u s t o n e s i g n a l p a t h a n d p e r m i t o n l y o n e n o d e a t a t i m e t o  

t r a n s m i t .  

A l s o , a h a l f - d u p l e x l i n k i s l e s s e x p e n s i v e t o i m p l e m e n t b e c a u s e y o u n e e d  

 j u s t t w o s i g n a l c o n d u c t o r s t o c a r r y d a t a i n b o t h d i r e c t i o n s , r a t h e r t h a n a  

p a i r o f c o n d u c t o r s f o r e a c h d i r e c t i o n . O v e r s h o r t d i s t a n c e s , a c o u p l e o f e x t r a  

c o n d u c t o r s i s n o b i g d e a l , b u t i f y o u ' r e g o i n g 1 0 0 o r 1 , 0 0 0 f e e t , c o s t s b e g i n  

t o a d d u p .  

F o r a h a l f - d u p l e x l i n k , y o u c a n u s e a t r a n s c e i v e r c h i p l i k e t h e 7 5 1 7 6 , t h e  

p i n o u t f o r w h i c h i s g i v e n i n F i g . 2 . T h i s c h i p i n c l u d e s o n e R S - 4 8 5 d r i v e r ,  

o n e r e c e i v e r a n d a n e n a b l e i n p u t f o r e a c h . S i n c e t h e d r i v e r i s e n a b l e d b y a  

l o g i c - h i g h s i g n a l a n d t h e r e c e i v e r i s e n a b l e d b y a l o g i c - l o w s i g n a l , y o u c a n  

u s e t h e s a m e s i g n a l t o c o n t r o l b o t h , a n d o n l y o n e w i l l b e o n a t a t i m e .  

A l t e r n a t i v e s t o t h e 7 5 1 7 6 a r e t h e M A X 4 8 1 a n d M A X 4 8 3 . T h e 7 5 1 7 6 c a n  

o p e r a t e a s f a s t a s 1 0 M b i t s s e c o n d , w h i l e t h e M A X 4 8 l i s g u a r a n t e e d o n l y t o  

2 . 5 M b i t s s e c o n d , a n d t h e M A X 4 8 3 t o 0 . 2 5 M b i t s s e c o n d . N a t i o n a l a l s o  

m a k e s a D S 3 6 9 5 t r a n s c e i v e r c h i p t h a t ' s s i m i l a r t o t h e 7 5 1 7 6 . A l l o f t h e s e  

c h i p s h a v e t h e s a m e p i n o u t .  

M a n y R S - 4 8 5 l i n k s o p e r a t e a t 9 , 6 0 0 b i t s p e r s e c o n d a t m o s t . F o r t h e s e ,  

y o u c a n u s e a n y o f t h e a b o v e c h i p s . S l o w e r d e v i c e s r e d u c e t h e l i k e l i h o o d o f  

t r a n s m i s s i o n e r r o r s c a u s e d b y s i g n a l r e e c t i o n s o n t h e c a b l e . I f y o u d o n ' t  

n e e d h i g h - s p e e d p e r f o r m a n c e , s l o w e r c h i p s w i l l d o t h e j o b a n d m a y h e l p t o  

a v o i d t r o u b l e .  

A l l o f t h e t r a n s c e i v e r s l i s t e d p r o t e c t t h e m s e l v e s w i t h c u r r e n t l i m i t i n g a n d  

t h e r m a l s h u t d o w n . W i t h o u t t h i s p r o t e c t i o n , i f t w o o r m o r e d r i v e r s i n t h e  

n e t w o r k t u r n o n a t o n c e , c o m p o n e n t d a m a g i n g c u r r e n t s c o u l d r e s u l t .  

C u r r e n t l i m i t i n g r e s t r i c t s t h e o u t p u t o f t h e R S - 4 8 5 d r i v e r s t o 2 5 0 m A . I f a n  

o u t p u t c o n t i n u e s t o s o u r c e o r s i n k h i g h c u r r e n t , t h e c h i p w i l l h e a t u p a n d  

t h e t h e r m a l s h u t d o w n c i r c u i t s w i l l e v e n t u a l l y s w i t c h t h e o u t p u t t o a h i g h  

i m p e d a n c e s t a t e . O f c o u r s e , t h i s m a k e s t h e o u t p u t u n u s a b l e u n t i l i t c o o l s  

d o w n , b u t a t l e a s t t h e c o m p o n e n t s w i l l s u r v i v e .  

Page 8: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 8/15

F i g u r e 3 : A R S - 4 8 5 l i n k c a n c o n n e c t u p t o 3 2 n o d e s a l o n g t h e s a m e p a i r o f  

c o n d u c t o r s .  

Page 9: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 9/15

6 N e t w o r k C i r c u i t s  

S h o w n i n F i g . 3 a r e c i r c u i t s f o r a n R S - 4 8 5 n e t w o r k t h a t c a n c o n n e c t  

u p t o 3 2 p e r s o n a l c o m p u t e r s a n d m i c r o c o n t r o l l e r s i n a n y c o m b i n a t i o n . A  

t h i r d c o n d u c t o r p r o v i d e s a g r o u n d r e f e r e n c e . E a c h n o d e c a n b e a p e r s o n a l  

c o m p u t e r , m i c r o c o n t r o l l e r o r a n y d e v i c e t h a t h a s a s e r i a l p o r t .  

O n a p e r s o n a l c o m p u t e r , y o u h a v e t w o o p t i o n s f o r c r e a t i n g a n R S - 4 8 5 p o r t .  

Y o u c a n b u y a n e x p a n s i o n c a r d w i t h a n R S - 4 8 5 p o r t o n i t , o r y o u c a n a d d  

a n e x t e r n a l d e v i c e t h a t c o n v e r t s o n e o f t h e R S - 2 3 2 p o r t s t o R S - 4 8 5 . I f y o u  

d e c i d e t o c o n v e r t f r o m R S - 2 3 2 , t h e r e a r e t w o o p t i o n s i n t h i s c a s e a s w e l l .  

O n e i s t o b u y a c o n v e r t e r t h a t p l u g s i n t o t h e R S - 2 3 2 c o n n e c t o r . T h e o t h e r i s  

t o m a k e y o u r o w n . T h e S o u r c e s b o x i n t h i s a r t i c l e l i s t s s u p p l i e r s f o r R S - 4 8 5  

c a r d s a n d c o n v e r t e r s .  

T o m a k e y o u r o w n c o n v e r t e r , y o u m u s t r s t t r a n s l a t e b e t w e e n t h e R S 2 3 2  

v o l t a g e s a n d 5 - v o l t T T L l e v e l s . Y o u c a n u s e a n y o f t h e m a n y c o n v e r t e r c h i p s  

n o w a v a i l a b l e f o r t h i s . F i g u r e 3 u s e s a M A X 2 3 3 , w h i c h a l s o r e - i n v e r t s t h e  

s i g n a l s i n v e r t e d b y t h e p e r s o n a l c o m p u t e r ' s R S - 2 3 2 i n t e r f a c e .  

T h e p o r t i n t e r f a c e u s e s t h r e e R S - 2 3 2 l i n e s . T X D t r a n s m i t s d a t a , R X D  

r e c e i v e s d a t a a n d R T S c o n t r o l s t h e d i r e c t i o n o f d a t a i n t h e ' 1 7 6 .  

T h e T T L s i d e o f t h e 7 5 L S 1 7 6 c o n n e c t s t o t h e M A X 2 3 3 . W h e n R T S i s l o w ,  

p i n s 2 a n d 3 o f t h e ' 1 7 6 a r e h i g h a n d T X D c a n t r a n s m i t d a t a t o t h e R S 4 8 5  

l i n k . W h e n R T S i s h i g h , p i n s 2 a n d 3 o f t h e ' 1 7 6 a r e l o w a n d R X D c a n  

r e c e i v e d a t a f r o m t h e R S - 4 8 5 l i n k .  

F o r a m i c r o c o n t r o l l e r i n t e r f a c e , t h e c i r c u i t s a r e e v e n s i m p l e r . M o s t m i c r o  

c o n t r o l l e r s i n c l u d i n g t h e 8 0 5 1 , 6 8 H C 1 1 a n d s o m e P I C s h a v e b u i l t - i n a s y n -  

c h r o n o u s s e r i a l p o r t s , w i t h p r o g r a m m i n g i n s t r u c t i o n s f o r r e a d i n g f r o m a n d  

w r i t i n g t o t h e p o r t . T h e p o r t s u s e 5 - v o l t l o g i c , n o t R S - 2 3 2 v o l t a g e s . F o r  

a n R S - 4 8 5 i n t e r f a c e , t h i s s a v e s y o u t h e t r o u b l e o f h a v i n g t o c o n v e r t b a c k  

t o 5 - v o l t l e v e l s . S o m e m i c r o c o n t r o l l e r b o a r d s h a v e a n R S 4 8 5 i n t e r f a c e b u i l t  

i n t o t h e m .  

I n F i g . 3 , t h e t r a n s m i t , r e c e i v e a n d c o n t r o l p i n s c o n n e c t d i r e c t l y t o t h e ' 1 7 6 .  

M i c r o c o n t r o l l e r s d o n ' t n o r m a l l y h a v e a d e d i c a t e d R T S p i n , b u t y o u c a n u s e  

a n y p o r t o u t p u t a n d c o n t r o l i t d i r e c t l y i n y o u r p r o g r a m .  

A p u l l - u p r e s i s t o r a t t h e m i c r o c o n t r o l l e r ' s s e r i a l i n p u t h o l d s t h e i n p u t h i g h  

w h e n t h e n o d e i s t r a n s m i t t i n g a n d t h e r e c e i v e r ' s o u t p u t i s o , o r i n h i g h -  

i m p e d a n c e s t a t e . Y o u d o n ' t n e e d t h e p u l l - u p r e s i s t o r i f y o u r m i c r o c o n  

Page 10: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 10/15

t r o l l e r ' s p o r t h a s a n i n t e r n a l p u l l - u p a s o n t h e 8 0 5 1 o r i f t h e r e c e i v e r  

d r i v e s a n i n p u t t o a M A X 2 3 3 o r o t h e r R S - 2 3 2 i n t e r f a c e c h i p .  

P r o p e r c o n t r o l o f R T S c a n b e o n e o f t h e t r i c k i e s t p a r t s o f g e t t i n g a h a l f  

d u p l e x n e t w o r k u p a n d r u n n i n g . I n s h o r t , w h e n a d r i v e r i s t r a n s m i t t i n g ,  

R T S m u s t r e m a i n l o w u n t i l t h e d r i v e r i s n i s h e d s e n d i n g , a n d R T S m u s t  

t h e n s w i t c h h i g h b e f o r e t h e a n s w e r i n g n o d e b e g i n s t o s e n d a r e s p o n s e . Y o u  

c a n c o n t r o l R T S i n s o f t w a r e o r a d d c i r c u i t s t o a u t o m a t i c a l l y s w i t c h t h e  

c o n t r o l l i n e w h e n a n o d e i s t r a n s m i t t i n g .  

7 W i r i n g t i p s  

U n l i k e t h e c a s e w i t h t h e R S - 2 3 2 s t a n d a r d , R S - 4 8 5 d o e s n ' t s p e c i f y a n i n t e r -  

f a c e c o n n e c t o r , s i g n a l f u n c t i o n s o r p i n a s s i g n m e n t s . T h e s e a r e l e f t f o r y o u t o  

d e s i g n a t e . K e e p t h e t w o s i g n a l c o n d u c t o r s A a n d B a d j a c e n t t o e a c h o t h e r  

o n a n y c o n n e c t o r y o u u s e . I n t w i s t e d - p a i r c a b l e , t h e A a n d B c o n d u c t o r s  

f o r a s i g n a l s h o u l d , o f c o u r s e , b e i n t h e s a m e p a i r .  

F i g u r e 4 : T h e 7 5 A L S 1 8 0 d r i v e r r e c e i v e r w i t h f o u r - c o n d u c t o r s .  

T h e 7 5 A L S 1 8 0 d r i v e r r e c e i v e r h a s a f o u r - c o n d u c t o r R S - 4 8 5 i n t e r f a c e t h a t  

e n a b l e s y o u t o a d d s h o r t - c i r c u i t p r o t e c t i o n t o t h e r e c e i v e r w i t h r e s i s t o r s R 3  

a n d R 4 . B e c a r e f u l n o t t o t r a n s p o s e t h e n e t w o r k c o n d u c t o r s . C o n n e c t a l l  

o f t h e A p i n s t o o n e c o n d u c t o r a n d a l l o f t h e B p i n s t o t h e o t h e r c o n d u c t o r .  

C o n n e c t e a c h n o d e a s c l o s e a s p o s s i b l e t o t h e n e t w o r k c o n d u c t o r s . I f y o u u s e  

1 0 

Page 11: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 11/15

a s t u b a s e p a r a t e p a i r o f c o n d u c t o r s t h a t c o n n e c t s a n o d e t o t h e n e t w o r k  

k e e p i t s c o n d u c t o r s a s s h o r t a s p o s s i b l e .  

O n a l l b u t t h e s h o r t e s t l i n k s , y o u s h o u l d t r e a t t h e R S - 4 8 5 c a b l e a s a t r a n s -  

m i s s i o n l i n e . W h e n t h e c o n d u c t o r s a r e s h o r t a n d f r e q u e n c i e s a r e l o w , y o u  

c a n c o n s i d e r a c o n d u c t o r t o b e a p e r f e c t R 0 S - o h m c o n n e c t i o n . B u t a  

t r a n s m i s s i o n l i n e b e h a v e s d i e r e n t l y f r o m a n o r d i n a r y s h o r t c o n d u c t o r . A  

t r a n s m i s s i o n l i n e h a s a c h a r a c t e r i s t i c i m p e d a n c e , w h i c h i s a r e s i s t i v e v a l u e  

t h a t v a r i e s w i t h t h e c o n d u c t o r s ' d i a m e t e r , s p a c i n g a n d t y p e o f i n s u l a t i o n ,  

b u t i t d o e s n ' t v a r y w i t h c o n d u c t o r l e n g t h .  

T h e t h e o r y a n d m a t h b e h i n d t r a n s m i s s i o n - l i n e b e h a v i o r c a n b e a l i t t l e  

f o r b i d d i n g , b u t t h e m a i n t h i n g t o r e m e m b e r i s t h a t a t r a n s m i s s i o n l i n e s h o u l d  

a l w a y s t e r m i n a t e i n a l o a d e q u a l t o i t s c h a r a c t e r i s t i c i m p e d a n c e . Y o u d o  

t h i s b y c o n n e c t i n g a r e s i s t o r e q u a l t o t h e c h a r a c t e r i s t i c i m p e d a n c e a c r o s s  

t h e i n p u t s a t t h e r e c e i v e r a t e a c h e n d o f t h e l i n k . N o m a t t e r h o w m a n y  

n o d e s a r e i n t h e n e t w o r k , y o u s h o u l d h a v e j u s t t w o t e r m i n a t i o n r e s i s t o r s ,  

o n e a t t h e r e c e i v e r a t e a c h e n d o f t h e n e t w o r k .  

W i t h p r o p e r t e r m i n a t i o n , t h e e n t i r e s i g n a l a t t h e r e c e i v e r i s a p p l i e d a c r o s s  

t h e t e r m i n a t i o n r e s i s t o r . A s l i g h t i m p e d a n c e m i s m a t c h w o n ' t h u r t a n y t h i n g .  

H o w e v e r , w i t h a g r o s s m i s m a t c h , a l a r g e p a r t o f t h e s i g n a l w i l l r e e c t b a c k  

t o t h e d r i v e r a n d t h e n b a c k t o t h e r e c e i v e r , w h i c h m a y t h e n i n t e r p r e t t h e  

r e e c t i o n a s v a l i d s i g n a l o n t h e l i n e .  

L i n e r e e c t i o n s a r e m o r e o f a p r o b l e m w h e n t h e e d g e s p e e d , o r r i s e a n d f a l l  

t i m e s , o f t h e d r i v e r ' s o u t p u t a r e v e r y s h o r t . E d g e s p e e d i s n ' t r e l a t e d t o b i t  

r a t e , o r n u m b e r o f b i t s t r a n s m i t t e d p e r s e c o n d . I n s t e a d , t h e c r i t i c a l f a c t o r  

i s h o w f a s t t h e v o l t a g e c h a n g e s w h e n t h e l o g i c l e v e l s s w i t c h .  

A 3 0 0 - b p s l i n k t h a t u s e s a h i g h s p e e d d r i v e r w i l l b e m o r e l i k e l y t o h a v e  

r e e c t i o n s t h a n a 1 9 , 2 0 0 - b p s l i n k t h a t u s e s a s l o w e r d r i v e r . B u t a l i n k t h a t  

u s e s a s l o w e r b i t r a t e w i l l b e m o r e l i k e l y t o i g n o r e r e e c t i o n s , b e c a u s e t h e  

r e e c t i o n s o c c u r a f t e r a v o l t a g e t r a n s i t i o n a n d t h e s e r i a l p o r t r e a d s t h e l o g i c  

l e v e l s i n t h e m i d d l e o f t h e b i t . W i t h a s l o w e r b i t r a t e , t h e b i t s a r e w i d e r .  

T h e s l e w r a t e g i v e n i n t h e d r i v e r ' s d a t a s h e e t s p e c i e s t h e r a t e o f v o l t a g e  

c h a n g e a t t h e o u t p u t . T h e l o w e r t h e s l e w r a t e , t h e s l o w e r t h e e d g e s p e e d .  

F o r A W G 2 4 s t r a n d e d t w i s t e d - p a i r c a b l e , t h e c h a r a c t e r i s t i c i m p e d a n c e i s  

a r o u n d 1 2 0 o h m s . T h e r e f o r e , a p r o p e r t e r m i n a t i o n w o u l d b e a 1 2 0 - o h m  

r e s i s t o r a c r o s s t e r m i n a l s A a n d B a t e a c h e n d o f t h e l i n k . R S - 4 8 5 d r i v e r s  

m u s t b e a b l e t o d r i v e a t o t a l t e r m i n a t i o n r e s i s t a n c e o f 6 0 o h m s . O n a  

1 1 

Page 12: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 12/15

h a l f d u p l e x l i n e , t h e t w o 1 2 0 - o h m r e s i s t o r s i n p a r a l l e l a r e e q u i v a l e n t t o 6 0  

o h m s . . C o n s e q u e n t l y , i t ' s b e s t n o t t o u s e a n y t h i n g s m a l l e r t h a n 1 2 0 o h m s  

t o t e r m i n a t e a h a l f - d u p l e x l i n e .  

A l l c o n d u c t o r s a l s o h a v e a s e t r e s i s t a n c e p e r f o o t , w h i c h b e c o m e s s i g n i  

c a n t o n l y i f t h e c o n d u c t o r s a r e v e r y l o n g . A W G 2 4 s t r a n d e d w i r e h a s a r e  

s i s t a n c e o f a b o u t 2 5 o h m s p e r 1 , 0 0 0 f e e t , w h i c h i s s e p a r a t e f r o m t h e c o n  

d u c t o r ' s c h a r a c t e r i s t i c i m p e d a n c e .  

A n o t h e r c o n c e r n i n a n R S - 4 8 5 n e t w o r k i s e n s u r i n g t h a t a l l r e c e i v e r s s e e a  

v a l i d l o g i c 0 w h e n n o d r i v e r s a r e a c t i v e i n t h e l i n k . W h e n t h i s o c c u r s , t h e  

s i g n a l l e v e l a t a r e c e i v e r ' s i n p u t s i s u n d e n e d . T h i s c o u l d c a u s e t r a n s m i s s i o n  

e r r o r s a s t h e r e c e i v e r d e t e c t s u n i n t e n d e d s i g n a l l e v e l s o r t r a n s i t i o n s .  

M o s t R S - 4 8 5 c h i p s i n c l u d e a f a i l s a f e f e a t u r e t h a t ' s s u p p o s e d t o h o l d i n p u t  

A m o r e - p o s i t i v e t h a n i n p u t B w h e n n o s i g n a l i s a p p l i e d t o t h e r e c e i v e r .  

T h e p r o b l e m i s t h a t f a i l - s a f e c i r c u i t s d o n ' t w o r k w h e n y o u a d d t e r m i n a t i o n  

r e s i s t o r s .  

F a i l - s a f e c i r c u i t s t y p i c a l l y c o n s i s t o f a n i n t e r n a l 1 0 0 , 0 0 0 - o h m p u l l - u p r e s i s -  

t a n c e a t i n p u t A a n d a m a t c h i n g p u l l - d o w n r e s i s t a n c e a t i n p u t B . W h e n  

y o u a d d t h e t e r m i n a t i o n r e s i s t o r s , t h e r e s u l t i n g v o l t a g e d i v i d e r b r i n g s t h e  

v o l t a g e s a t t h e t w o i n p u t s v e r y c l o s e , w i t h l e s s t h a n t h e r e q u i r e d 0 . 2 - v o l t  

d i e r e n c e b e t w e e n t h e m .  

F o r t u n a t e l y , t h e r e ' s a s o l u t i o n . F i g u r e 3 a d d s t w o a d d i t i o n a l r e s i s t o r s : a 5 6 0 -  

o h m r e s i s t o r f r o m i n p u t A t o + 5 v o l t s a n d a m a t c h i n g r e s i s t o r f r o m i n p u t B  

t o g r o u n d . T h i s a r r a n g e m e n t h o l d s t e r m i n a l A a b o u t 0 . 2 5 v o l t m o r e - p o s i t i v e  

t h a n t e r m i n a l B . I n t u r n , t h i s c a u s e s p i n 1 t o b e h i g h w h e n n o d r i v e r s i n  

t h e l i n k a r e a c t i v e a n d s t i l l a l l o w s a n y d r i v e r t o p u l l l o w t e r m i n a l A .  

O n e s e t o f r e s i s t o r s a t o n e e n d o f t h e l i n k b i a s e s t h e e n t i r e n e t w o r k . Y o u  

d o n ' t n e e d b i a s i n g r e s i s t o r s i f y o u r n e t w o r k a l w a y s h a s a n a c t i v e d r i v e r .  

A l t h o u g h R S - 4 8 5 s i g n a l s t h e m s e l v e s d o n ' t u s e a g r o u n d r e f e r e n c e , a l l n o d e s  

s h o u l d h a v e a c o m m o n g r o u n d c o n n e c t i o n , u n l e s s t h e n e t w o r k c o n d u c t o r s  

a r e o p t i c a l l y i s o l a t e d . T h e r e a r e t w o w a y s t o a c h i e v e t h e g r o u n d c o n n e c t i o n .  

O n e i s t o c o n n e c t t h e t r a n s c e i v e r s s i g n a l - g r o u n d p i n t o a n e a r t h g r o u n d a t  

e a c h n o d e . T h e o t h e r w a y i s t o a d d a t h i r d c o n d u c t o r i n t h e n e t w o r k c a b l e .  

A t e a c h n o d e , t h i s c o n d u c t o r c o n n e c t s t h r o u g h a  

1 0 0 - o h m r e s i s t o r t o t h e t r a n s c e i v e r ' s g r o u n d p i n . T h e r e s i s t o r p r o t e c t s t h e  

c i r c u i t s b y l i m i t i n g c u r r e n t s t h a t m a y d e v e l o p i n t h e g r o u n d c o n d u c t o r .  

1 2 

Page 13: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 13/15

A l t e r n a t e I n t e r f a c e s I f y o u r n e t w o r k t r a v e l s t h r o u g h a n e l e c t r i c a l l y n o i s y  

e n v i r o n m e n t , o p t i c a l i s o l a t i o n m i g h t b e w o r t h t h e t r o u b l e a n d e x p e n s e i t  

t a k e s t o i m p l e m e n t i t . W i t h o p t i c a l i s o l a t i o n , t h e n e t w o r k c o n d u c t o r s c o n -  

n e c t o p t i c a l l y , n o t e l e c t r i c a l l y , t o e a c h n o d e , t h u s e l i m i n a t i n g t h e n e e d f o r  

a c o m m o n g r o u n d c o n d u c t o r . A n e a s y w a y t o i s o l a t e a n e t w o r k i s w i t h  

M a x i m ' s M A X 1 4 8 0 . T h i s 2 8 - p i n c h i p a c t u a l l y c o n t a i n s i t s o w n t r a n s f o r m e r  

f o r p o w e r - s u p p l y i s o l a t i o n , p l u s o p t i c a l i s o l a t o r s f o r t h e s i g n a l l i n e s . A l -  

t h o u g h t h e e i g h t - p i n t r a n s c e i v e r c h i p s l i k e t h e 7 5 1 7 6 a r e e a s y t o u s e a n d  

i n e x p e n s i v e t o p u r c h a s e , F i g . 4 i l l u s t r a t e s a n a l t e r n a t e i n t e r f a c e , w h i c h I ' v e  

a d a p t e d f r o m a c i r c u i t i n T e x a s I n s t r u m e n t s ' d a t a b o o k . T h i s c i r c u i t a d d s  

r e s i s t o r s t h a t p r o t e c t t h e n e t w o r k f r o m d a m a g e i f t h e n e t w o r k c o n d u c t o r s  

s h o u l d s h o r t c i r c u i t , o r a c c i d e n t a l l y c o n n e c t d i r e c t l y t o e a c h o t h e r . L i k e  

t h e 7 5 1 7 6 , t h e 7 5 A L S 1 8 0 c o n t a i n s a d r i v e r r e c e i v e r p a i r a n d a n e n a b l e l i n e  

f o r e a c h . B u t t h e R S - 4 8 5 s i d e o f t h e c h i p h a s f o u r c o n d u c t o r s i n s t e a d o f  

t w o . Y o u c a n u s e t h e ' 1 7 6 i n a f u l l - d u p l e x l i n k , b u t t h e c i r c u i t i l l u s t r a t e d  

i n F i g . 4 i s a h a l f - d u p l e x n o d e , w i t h t h e t w o - c o n d u c t o r i n t e r f a c e c r e a t e d b y  

t y i n g t o g e t h e r t h e d r i v e r a n d r e c e i v e r p a i r s . I n F i g . 4 , o n l y t h e t w o e n d  

n o d e s s h o u l d h a v e t e r m i n a t i o n r e s i s t o r R 5 , b u t a l l n o d e s h a v e R I t h r o u g h  

R 4 . R e s i s t o r s R I a n d R 2 b i a s t h e l i n e t o a l o g i c 0 i f n o d r i v e r i s a c t i v e , a n d  

r e s i s t o r s R 3 a n d R 4 p r o t e c t t h e r e c e i v e r a n d e n s u r e t h a t i t s i n p u t s r e m a i n  

b i a s e d e v e n i f t h e l i n e i s s h o r t e d . I f t h e n e t w o r k h a s f e w e r t h a n 3 2 n o d e s ,  

y o u c a n r e d u c e t h e v a l u e s o f R I t h r o u g h R 4 b y m u l t i p l y i n g e a c h b y h a l f t h e  

t o t a l n u m b e r o f n o d e s i n t h e n e t w o r k . F o r e x a m p l e , w i t h j u s t t w o n o d e s ,  

t h e v a l u e o f R I a n d R 2 w o u l d b e 2 , 2 0 0 o h m s t h e v a l u e o f a n d R 3 a n d R 4  

w o u l d b e 1 1 0 o h m s . S i n c e s o m e s i g n a l v o l t a g e d o e s d r o p a c r o s s R 3 a n d R 4 ,  

r e d u c i n g t h e v a l u e s o f t h e s e r e s i s t o r s m e a n s t h a t t h e r e c e i v e r ' s i n p u t s w i l l  

s e e a l a r g e r s i g n a l . T h e R S - 4 8 5 s t a n d a r d s p e c i e s t h a t y o u c a n h a v e u p t o 3 2  

u n i t l o a d s , o r d r i v e r r e c e i v e r p a i r s . B u t w h a t c a n y o u d o i f y o u n e e d m o r e  

t h a n 3 2 n o d e s ? T h e a n s w e r i s t o u s e a r e p e a t e r c i r c u i t , w h i c h r e g e n e r a t e s  

t h e R S - 4 8 5 s i g n a l s a n d a l l o w s y o u t o a d d u p t o 3 2 m o r e n o d e s . Y o u c a n  

a l s o u s e a r e p e a t e r t o e x t e n d t h e l e n g t h o f a n e t w o r k t o b e y o n d 4 , 0 0 0 l e e r .  

F i g u r e 5 s h o w s a n e t w o r k w i t h a r e p e a t e r c i r c u i t t h a t c o n t a i n s o n e 7 5 1 7 7  

a n d o n e 7 5 1 7 8 r e p e a t e r c h i p . L i k e t h e t r a n s c e i v e r s , t h e r e p e a t e r s e a c h h a v e  

a c o n t r o l i n p u t t h a t d e t e r m i n e s t h e d i r e c t i o n o f s i g n a l o w t h r o u g h t h e c h i p .  

T h e ' 1 7 7 ' s i n p u t i s a c t i v e - h i g h , a n d t h e ' 1 7 8 ' s i s a c t i v e - l o w . I n a h a l f - d u p l e x  

l i n k , y o u h a v e t o c o n t r o l t h e r e p e a t e r ' s d i r e c t i o n . F o r e x a m p l e , y o u m i g h t  

w a n t t h e r e p e a t e r t o f o l l o w t h e d i r e c t i o n o f a m a s t e r , o r c o n t r o l l i n g , n o d e  

i n t h e n e t w o r k . T o d o s o , y o u c a n u s e t h e s a m e s i g n a l t o c o n t r o l b o t h  

1 3 

Page 14: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 14/15

F i g u r e 5 : U s i n g a l i n e r e p e a t e r .  

t h e m a s t e r n o d e a n d t h e r e p e a t e r . I f t h e r e p e a t e r i s f a r f r o m t h e m a s t e r  

n o d e , h o w e v e r , y o u m a y h a v e t o w i r e t h e d i r e c t i o n - c o n t r o l s i g n a l a s a n o t h e r  

R S - 4 8 5 s i g n a l , a s F i g . 5 i l l u s t r a t e s .  

8 I n f o r m a t i o n & P a r t s o u r c e s :  

R S - 4 8 5 A d a p t e r s B & B E l e c t r o n i c s P O B o x 1 0 4 0 O t t a w a , I L 6 1 3 5 0 T e l . :  

8 1 5 - 4 3 4 - 0 8 4 6 ; f a x : 8 1 5 - 4 3 4 - 7 0 9 4  

R S - 4 8 5 B o a r d s C o m p u t e r B o a r d s 1 2 5 H i g h S t . M a n s e l d , M A 0 2 0 4 8 T e l . :  

5 0 8 - 2 6 1 - 1 1 2 3 ; f a x : 5 0 8 - 2 6 1 - 1 0 9 4  

R S - 4 8 5 a n d O t h e r E I A S t a n d a r d s G l o b a l E n g i n e e r i n g D o c u m e n t s 1 5 I n v e r -  

n e s s W a y E . E n g l e w o o d , C O 8 0 1 1 2 - 5 7 0 4 T e l . : 8 0 0 - 6 2 4 - 3 9 7 4 o r 3 0 3 - 7 9 2 - 2 1 8 1 ;  

f a x : 3 0 3 - 7 9 0 - 0 7 3 0  

R S - 4 8 5 B o a r d s K e i t h l e y M e t r a b y t e 4 4 0 M y l e s S t a n d i s h B l v d . T a u n t o n , M A  

0 2 7 8 0 T e l . . : 5 0 8 - 8 8 0 - 3 0 0 0 ; f a x : 5 0 8 - 8 8 0 - 0 1 7 9  

R S - 4 8 5 C h i p s M a x i m I n t e g r a t e d P r o d u c t s 1 2 0 S a n G a b r i e l D r . S u n n y v a l e ,  

C A 9 4 0 8 6 T e l . : 1 - 8 0 0 - 9 9 8 - 8 8 0 0 o r 4 0 8 - 7 3 7 - 7 6 0 0  

R S - 4 8 5 C h i p s x 8 6 4 0 M o t o r o l a S e m i c o n d u c t o r P r o d u c t s P O B o x 2 0 9 1 2 P h o e n i x ,  

A Z 8 5 0 3 6 T e l . : 1 - 8 0 0 - 5 2 1 - 6 2 7 4  

1 4 

Page 15: Network for Monitoring and Control Using Rs485

8/6/2019 Network for Monitoring and Control Using Rs485

http://slidepdf.com/reader/full/network-for-monitoring-and-control-using-rs485 15/15

R S - 4 8 5 C h i p s N a t i o n a l S e m i c o n d u c t o r C o r p . 2 9 0 0 S e m i c o n d u c t o r D r . P O  

B o x 5 8 0 9 0 S a n t a C l a r a , C A 9 5 0 5 2 - 8 0 9 0 T e l . : 8 0 0 - 2 7 2 - 9 9 5 9 o r 4 0 8 - 7 2 1 - 5 0 0 0  

R S - 4 8 5 A d a p t e r s P e r s o n a l C o m p u t i n g T o o l s 9 0 I n d u s t r i a l P a r k R d . H i n g -  

h a m , M A 0 2 0 4 3 T e l . : 7 - 6 7 2 8 o r 6 1 7 - 7 4 0 - 0 1 2 0 ; f a x : 6 1 7 7 4 0 - 2 7 2 8  

R S - 4 8 5 A d a p t e r s a n d S o f t w a r e R E S m i t h 4 3 1 1 T y l e r s v i l l e R d . H a m i l t o n ,  

O H 4 5 0 1 1 T e l . : 5 1 3 - 8 7 4 - 4 7 9 6 ; t a x : 5 1 3 - 8 7 4 - 1 2 3 6  

R S - 4 8 5 C h i p s T e x a s I n s t r u m e n t s L i t e r a t u r e R e s p o n s e C t r . P O B o x 8 0 9 0 6 6  

D a l l a s , T X 7 5 3 8 0 - 9 0 6 6 T e l . : 8 0 0 - 4 7 7 - 8 9 2 4  

9 M o v i n g O n :  

N e x t t i m e a r o u n d , I ' l l h a v e a s p e c i a l a r t i c l e o n c o m p u t e r - b a s e d t e s t e q u i p  

m e n t f o r e l e c t r o n i c s . H o w e v e r , a f t e r t h a t , I ' l l r e t u r n t o R S - 4 8 5 w i t h a n  

e x p l o r a t i o n o f n e t w o r k p r o g r a m m i n g .  

S e n d y o u r c o m m e n t s , s u g g e s t i o n s , e t c . t o m e b y e - m a i l a t j a n a x e l @ a o l . c o m ,  

o r b y m a i l a t L a k e v i e w R e s e a r c h , 2 2 0 9 W i n n e b a g o S t . , M a d i s o n , W I 5 3 7 0 4 .  

J a n A x e l s o n l a s t p a g e 3 6 M I C R O C O M P U T E R J O U R N A L J u l y A u g u s t  

1 9 9 5  

1 5 


Recommended