• No se han encontrado resultados

PART  II:   RESEARCH  METHODOLOGY

5.2. Context

'he Mo&b7s--D$t$ so7rce connects to $ (o&b7s &e4ice 4i$ networ. t c$n collect &$t$ ro( it? e.g.

i it is $ (e$s7re(ent &e4ice? or sen& &$t$ to it? e.g. i it h$s $ !otenti$l-ree cont$ct.

Data source configuration

E4er) &$t$ so7rce reG7ires $ a(e? which c$n be $n) &escri!tion. 'he U%"ate %erio"  &eter(ines how oten the Mo&b7s eG7i!(ent is !olle& or &$t$. 'he Ti(eout  $n& *etries iel&s &eter(ine the s)ste( beh$4io7r in the c$se o $ !olling $il7re. 'he &$t$ so7rce w$its the gi4en n7(ber o ti(eo7t (illisecon&s or $ res!onse ro( the eG7i!(ent.  it is not recei4e& the reG7est will be retrie& the gi4en n7(ber o ti(es.

'he Contiguous batches onl/ checbo< c$n be 7se& to s!eci) th$t the (o&b7s i(!le(ent$tion sho7l& not $tte(!t to o!ti(iFe &is!$r$te 4$l7e reG7ests into $ single reG7est. +hecing this iel& will c$7se the i(!le(ent$tion to onl) ($e reG7ests or (7lti!le 4$l7es when those 4$l7e or( contig7o7s register s!$ce.

'hree Trans%ort t/%es $re s7!!orte&. ee the &oc7(ent$tion or )o7 eG7i!(ent to &eter(ine which setting c$n be 7se&.

'he TCP setting 7ses $ new '+ socet or e$ch !oll. 9'he gi4en retr) 4$l7e $!!lies when connection e<ce!tions occ7r while o!ening the socet. 'he ti(eo7t 7se& or connection

&e!en&s 7!on the '+ st$c being 7se&.: 'his setting is 7se7l i the eG7i!(ent is !olle&

inreG7entl).

'he TCP with 2ee%1alive setting cre$tes $ '+ connection 7!on the irst !oll? which is let o!en or re7se.  the connection is close& or $n) re$son? $ new one is cre$te& when nee&e&.

+onnection e<ce!tion beh$4io7r or this o!tion is the s$(e $s th$t or '+. 'his is the reco((en&e& setting or (ost 7sers since it !ro4i&es eicient $n& rob7st co((7nic$tion while $4oi&ing ($n) conig7r$tion iss7es t)!ic$l to UD.

'he UDP setting 7ses UD !$cets or co((7nic$tion. 'his setting !ro4i&es the gre$test networ eicienc)? b7t t)!ic$ll) reG7ires (ore networ conig7r$tion since both M$ngo $n& the eG7i!(ent nee& to be 4isible on the networ 9$s o!!ose& to '+ where M$ngo c$n be behin&

$ irew$ll:.

'he 0ost  $n& Port settings &eter(ine how to in& the Mo&b7s eG7i!(ent on the networ. 'he host c$n be $ &o($in n$(e or $n  $&&ress.

Data %oint configuration

#oth seri$l $n&  networs 7se the s$(e !oint $ttrib7tes to loc$te 4$l7es. 'he ,lave i" is the i& with which the Mo&b7s no&e w$s conig7re& it is $ n7(ber between 1 $n& 2"0.

'he *egister range &eter(ines in which o the o7r r$nges the 4$l7e is to be o7n&. +ons7lt the

&oc7(ent$tion or )o7r eG7i!(ent to &eter(ine wh$t sho7l& be 7se&.

+oil st$t7s re!resents the he<$&eci($l r$nge 0<00000 to 0<0. E$ch register cont$ins $ single? writ$ble bit. $l7es in this r$nge $re $lw$)s #in$r).

n!7t st$t7s re!resents the he<$&eci($l r$nge 0<10000 to 0<1. E$ch register cont$ins $ single? re$&-onl) bit. $l7es in this r$nge $re $lw$)s #in$r).

%ol&ing register re!resents the he<$&eci($l r$nge 0<"0000 to 0<". E$ch register is $ 2 b)tes 9or $ Swor&S:? $n& is writ$ble. $l7es in this r$nge c$n be #in$r) or N7(eric &e!en&ing 7!on 7rther settings.

n!7t register re!resents the he<$&eci($l r$nge 0<30000 to 0<3. E$ch register is $ 2 b)tes 9or $ Swor&S:? $n& is re$&-onl). $l7es in this r$nge c$n be #in$r) or N7(eric &e!en&ing 7!on 7rther settings.

+oil st$t7s $n& n!7t st$t7s 4$l7es $re $lw$)s #in$r). %owe4er? Mo&b7s 4en&ors $re oten 4er) cre$ti4e in the w$)s th$t %ol&ing $n& n!7t registers $re 7se&. 'he Mo"bus "ata t/%e iel& relects

ManualWinlog.web Page "1/56

the ($n) w$)s in which &$t$ c$n be enco&e&. +ons7lt the &oc7(ent$tion or )o7r Mo&b7s eG7i!(ent to &eter(ine the !ro!er setting.

!eciic 4$l7es $re loc$te& with the Offset setting. 'his is $ 0-in&e<e& 4$l7e? (e$ning th$t co7nting st$rts ro( 0. o(e Mo&b7s 4en&ors !ro4i&e &oc7(ent$tion th$t is 1-in&e<e&? where co7nting st$rts

ro( one. As s7ch? it is so(eti(es necess$r) to s7btr$ct one ro( &oc7(ente& in&e< to &eter(ine the 0-in&e<e& oset. When registers incl7&e their r$nge? e.g. written $s 0<30001? 1-in&e<ing is t)!ic$ll) i(!lie&. 'he 3it iel& is 7se& when bin$r) 4$l7es $re enco&e& into in&i4i&7$l register bits.

'he ,ettable iel& c$n be 7se& to ($e $ !oint th$t wo7l& nor($ll) be sett$ble 9$ccor&ing to its r$nge: not sett$ble.

'he Multi%lier  $n& '""itive iel&s c$n be 7se& when tri4i$l 4$l7e con4ersions $re reG7ire&. N7(eric 4$l7es re$& ro( the networ $re c$lc7l$te& $s ollows 9r$w 4$l7e: T (7lti!lier I $&&iti4e. 'he re4erse is $!!lie& when $ n7(eric 4$l7e is written to the networ.

ManualWinlog.web Page "2/56

&irtual "ata source

'he irt7$l D$t$ o7rce is $ &$t$ so7rce witho7t $n) connection to $n e<tern$l or !h)sic$l s)ste(. t e<ists entirel) within the s)ste(s own (e(or) s!$ce. 'he &$t$ it !ro&7ces is either r$n&o(? or

&eter(inistic &e!en&ing on how )o7 conig7re the !oints.

irt7$l &$t$ so7rces c$n be 7se7l in $ n7(ber o w$)s

 A si(!le w$) to 4$li&$te th$t )o7r s)ste( is woring

t c$n cre$te !re&ict$ble &$t$ with which to bench($r )o7r re$l &$t$

or &e(onstr$tions

ManualWinlog.web Page "3/56