Comunicacion de datos industriales CODE: AA6050
LAB N° 10
1.- Angel de Jesús Huarachi Escalante Escalante 2.- Franklin Hanccocallo Ccorimanya
Students:
rou!
:
"#$
Semester
:
)*
%eadline
:
1+,,21+
%ocente: Santos &a'al Cali(aya Fuertes Hour:
rade:
Modbus Protocol
Nro. DD-106 Page 2/13
Lab – 01
SUBJECT: SUBJECT: MODBUS MODBUS COMMUNICA COMMUNICATION TION GOALS
Identify field devices that support ModBus communication Identify the connectors incorporated in ModBus communication devices Make a ModBus network connection between a field device and a PC Install ModBus software to communicate a PC with a device Read data from a device throuh a ModBus network
REQUIREMENTS
1 !B R"M PC #oftware modpoll #oftware installation of the proram ModBus #canner and ModBus R$% Parser &ardware module with PM'() power *uality meter &ardware modules with P+MII power *uality meters Reference Manuals for PM'() and P+MII Power +uality Meters R#(3(,R#-'. converter Cables bananas and flat screwdrivers 0perilleros
Nro. DD-106 Page 3/13
Modbus Protocol Lab – 01 1 0 O 2 Ñ A 3 S E M 0 3 A I D ) C E *
a m r i f a m r i f a m r i f
& S T A % O $ # E S O " ! A T E D S I S I L A N A 2 3 2 S S $ ! D O M
) & T
e t n a l a c s ) i " c a r a u l e g n
A T N E I M A E ) ( S O P I $ ' E E D S A C I T S I E T C A A C
a t s e n e u n e s c p s a l o d a t s e n e u n e a a t s e . e s t o n d e a i i 0 l m a a u l t c ) a
L O T N O C E D S A D I D E M
e # a " e u ! s o l u c a t s o s o l n o c o d a d i u c r e n e T
a t i v e a r a p a d a u c e . d o c a i n m o o i c n i s o g o r p e a n u n e e s r e n o P
n u g n i n a t s i e o n e u ! r a c i f i r e v # n e d r o n e r i l a '
a r a t s e # a e d e r s o n e u ! o l a t n e u c n e r e n e T
s s o n a m s a l n o c # a m l a c n o c r a 0 i g r e n e s e D
t i v e a r a p r o d e d e r r l a o r t s e u n a n o i c n e t a r e n o P
' ( , P ) - ( ( D & , ' ) , % P & ' & ) T + % P
x
x x x x x x x
x
m r i f a m r i f a m r i f
x e t n a l a c s ) i " c a r a u l e g n
a # n a m o i c r l l a o c m , e o u l ! l a o c " o , c c e n o a s i u n l 9 i n : n o a " r 8 ' % N 7
x
x
x A E A T A L E D S O S A P
x
s c p s a l a n ; i c a c i
s c p e d o d i d n e c n )
o i r o t a r o a l l e r a 0 i l a e &
1
2
3
i c e d e d a m o t a l n o c r e d e c o r p
d o m l e d n o i c a 0 i g r e n e s e D
a 0 e p m i l # n e d r %
4
5
6
Modbus Protocol
Nro. DD-106 Page 4/13
Lab – 01
METHOD /he la0oratory has 0een designed to 0e de'elo!ed in grou!s o or 3 !eo!le
1. Identifyin Identifying g devie! devie! t"#t t"#t !$%%&'t !$%%&'t M&dB$! M&dB$! &(($n &(($ni#t i#ti&n i&n 1.1. Devie Devie de!'i% de!'i%ti&n ti&n
"sk the instructor for a laboratory module to carry out the practice 2hat type of power *uality measurement device does the module assined to your roup contain 4ur grou! used: Schneider 5o6erlogic 5711 three-!hase !o6ermeter 6ith 7od0us 8S39 Se uso el dispositiv o Schneider PM5110: PM5110: Medidor de calidad de energia trifasico con puertos Modbus RS485 2hat is the purpose of the electronic device included in the laboratory module For 7od0us communication !orts connected 0et6een %1 and -% !orts is used s!eciically to kno6 !arameters as address and 0aud rate; esta0lished in the system; !arity and energi(e the system con'erting 22 )AC )AC to 23 )%C.
Revi Review ew the the main main e*ui e*uipm pmen entt data data in the the manu manufa fact ctur urer er4s 4s manu manual al55 2hat 2hat type typess of conn connec ectio tion n for for communication with e6ternal devices does the computer support /he 5C used in this 6ork; only ha'e communication 6ith one o the de'ices 6hich unction is a 5
). *C C&nn C&nne eti ti&n &n + Dev Devi iee
Modbus Protocol
Nro. DD-106 Page 5/13
Lab – 01
).1. C&nnetin C&nneting g t"e ,#- (&d$,e (&d$,e t& *C $he diaram to be used is shown below5 &ote: #ecause the connection you are going to make is to a C47 !ort !ort on the 5C; make sure that the module is de-energi(ed
$o port C7M1 o C7M( of the PC 3,wire cable R#(3(
R#-'.
R#-'. port of device
Check with your roup mates that each of the correspondin wires of the used cable is connected to the correct point5 "sk the instructor to verify the connection and wait for the instructor4s appropriate revision5
).). Additi&n#, &nneti&n! &nneti&n! f&' &%e'#ting t"e t"e (&d$,e /he ollo6ing diagram sho6s the diagram to 0e used to connect the la0oratory module to a single-!hase in!ut 'oltage line. %o not energi(e the e=ui!ment; e=ui!ment; ask the instructor or the a!!ro'al >)o#o? >)o#o? to !roceed to a!!ly !o6er to the module 8e'ise !re'iamente la indicaci@n indicaci@n de cada uno de los terminales terminales incluidos en el m@dulo m@dulo de la0oratorio !ara estar com!letamente seguro de los !untos correctos de conei@n =ue se de0en reali(ar. El o0Beti'o de las coneiones coneiones es la siguiente: 1. Energi(ar Energi(ar el e=ui!o e=ui!o !ara =ue unc uncione ione elctricamen elctricamente te 2. A!licar A!licar tensi@n tensi@n de entrada entrada monoDsi monoDsica ca a las lneas lneas de medici@n medici@n !ara !ara !oder !oder o0tener o0tener 'alores distintos de cero durante las !rue0as =ue se 'an a reali(ar %e!endiendo del m@dulo asignado asignado a su gru!o gru!o utilice como reerencia la igura igura 1 o 2 Check 0eorehand the indication o each o the terminals included in t he la0oratory module to 0e com!letely sure o the t he correct !oints o connection that must 0e made. /he !ur!ose o the connections is as ollo6s: 1. Energi(e the e=ui!ment to o!erate electrically 2. A!!ly single-!hase in!ut 'oltage to the measurement lines in order to o0tain 'alues other than (ero during the tests to 0e !erormed %e!ending on the module module assigned to your grou!; grou!; reer to igure 1 or 2 Figure 1. Connecting the 579 module to the single-!hase !o6er line
Figure 2. Connecting the 57** module to the single-!hase !o6er line
. M&d-$! M&d-$! C&(( C&(($ni $ni# #ti& ti&n n *#'#(e *#'#(ete te'! '! .1. Revie/ing y&$' devie &nfig$'#ti&n &nfig$'#ti&n 7nly if the instructor ave the 8oBo 8oBo in the previous point can proceed to eneri9e the module Review the user manuals for the information of the e*uipment to be used on how to access the confiuration menu of the e*uipment to display its current confiuration %sin the previous procedure check the confiuration parameters for the ModBus communication and note the followin values: 1. M&dB$! M&dB$! #dd' #dd'e!! e!! 0S,#ve 0S,#ve Add' Add'e!! e!!: : ). S%eed S%eed &(($ &(($ni ni#ti #ti&n &n 0S,#ve 0S,#ve Add' Add'e!! e!!: : 1;())bps , 1 Byte . *#'ity: "#CII 0 Par / Impar / ModBus "ddress> 0#lave "ddress: 4 tipos
Modbus Protocol
Nro. DD-106 Page 6/13
Lab – 01
2. *C &(($n &(($ni# i#ti& ti&n n
M&d*& M&d*&,, ,, !&ft !&ft/#' /#'ee
2.1. In!t#,,ing t"e M&d*&,, S&ft/#'e S&ft/#'e
"sk the instructor for ModPoll software Install the ModPoll software on your PC Briefly indicate the steps re*uired to install the previous software /he !rogram is called m0!oll; used 6ith 7od0us scanner too. /he !rogram can 0e ound in a link to oogle %ri'e gi'en 0y the instructor First; 6e eecute the !rogram as AdministratorG net; as an eecuta0le 6e 6ill launch it; sho6ing us a ta0le; using t6o columns; alias and their res!ecti'e 'alues; Se $!# 3$nt& # $n M&d%&,, !#nne'. A, de de! !#' #'g# g#'' %' %'&g &g'# '#(# (#!! de de!d !dee D' D'iv ivee "# "#i# i# e, &' &'de den# n#d& d&''4 !e e3 e3e e$t $t#' #'# # & &(& (& #d(ini!t'#d&'4 ent&ne! !e (&!t'#'# $n# vent#n# ,#!ifi#nd& #,i#! y v#,&'e! de #d# $n& $n & de e!t e!t&! &!44 e!t e!t& & e! $!# $!#d& d& %#' %#'# # &n &n&e &e'' #' #'#t #te'i e'i!ti !ti#! #! de, Si! Si!te( te(# # &( &(& & t#5 t#5# # de t'#n!(i!!i&n4 e''&'e!4 identifi#i&n y tie(%& de ($e!t'e&.
2.). M&d*&,, M&d*&,, S&ft/#'e S&ft/#'e C&((#nd! C&((#nd!
#tart a command window 0CM? "ccess the folder where the ModPoll software is installed @6ecute the proram usin the followin command to show all the commands it accepts:
$he followin command displays a possible output:
EBecucion del comando 7od!oll 7od!oll en cmd a!licando la etensi@n etensi@n de ayuda > -h?. -h?. A!licaci@n de comando "cd..$ "cd..$ !ara generar 0ús=ueda 0ús=ueda com!leta en disco disco C:
Modbus Protocol
Nro. DD-106 Page 13
Lab – 01
4!tion
%escri!tion o the unction unction it ulills
1
+-
#audrate; "1+2$ used used as deault
(
+%
Eist ty!es o this command: none; e'en and odd. /his code is used to reer "!arity$.
3
+(
8eered to 7od0us !rotocol !rotocol ty!es as: ASC**; 8/I; /C5; /C5; I%5. I%5.
-
+#
Sla'e address; "1$ is used as deault
.
+'
Start reerence; "1$ is used as deault deault
A
+
&um0er o 'alues to read; read; "1$ is used as deault
2.. M&dB$! C&(($ni#ti&n C&(($ni#ti&n /it" t"e (&d$,e f'&( f'&( t"e *C $!ing t"e M&dB$! M&dB$! %'&t&&, %'&t&&, rom the command window started in the previous section e6ecute the followin command: C:67 M&d%&,,.e8e 9- 1);; 9% n&ne 9( 't$ 9# 1 9' 11); + 1; COM1
Remarks to the previous command: $he above command will function properly under t he followin conditions:
1. The communicaton speed of he device is 19200 2. The ModBus address of he devices is: 1 3. The address of he insrumen regiser conaining he inpu volage measuremen is: 1120 (This address is valid for he measured M!20. "f #ou have a di$eren module% #ou should
Modbus Protocol
Nro. DD-106 Page =/13
Lab – 01
In case the e6ecution of the command is satisfactory you should obtain a similar output indicated in the followin fiure:
E'idencias de la0oratorio la0oratorio
Modbus Protocol Lab – 01
Nro. DD-106 Page >/13
Modbus Protocol Lab – 01
COM <
Nro. DD-106 Page 10/13
Modbus Protocol Lab – 01
Nro. DD-106 Page 11/13
Modbus Protocol Lab – 01
C&net#nd& d&! (edid&'e! C&( =
*+servaciones
Nro. DD-106 Page 12/13
Modbus Protocol
Nro. DD-106 Page 13/13
Lab – 01
Se manejó el equipo PM 5110 como nexo que enlaza mediante el uso de comunicación Ethernet a dos
módulos de manera simultanea Se usó el sofwaremodpoll.exe sofwaremodpoll.exe para lorar la comunicación usando comandos ejecuta!les "nicamente a tra#$s de s%m!olo de sistema& indicando #aria!les como paridad de datos& direccionamiento ' !aud rate
,onclusiones
Esta!lecer nexos entre modulos se"n protocolo ' aplicando con#ersores si es necesario& demuestra las razones de las u(lidades ' simplicidad que !rinda este ul(mo& siendo el mas u(lizado en la
industria. El uso de proramación resulta ser indispensa!le para la )ormación complementaria de nuestra carrera& 'a que es usada para #eri*car ciertos aspectos que son de suma importancia al realizar una comunicación por la inter)az hom!re+maquina