aug-048-0-en-(polling data registers from siemens plcs)

22
8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs) http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 1/22 eWON Application User Guide  AUG 048 / Rev 1.0 Polling Data Registers from Siemens PLC Series S7-00! S7-400 " S7-1#00       C      o      n       t      e      n       t      s $%is g&i'e e()lains %o* to )oll 'ata registers from Siemens PLC Series - S7-00! S7-400 " S7-1#00.

Upload: fmkhan09

Post on 04-Jun-2018

235 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 1/22

eWON Application User Guide

 AUG 048 / Rev 1.0

Polling Data Registers fromSiemens PLC Series S7-00!

S7-400 " S7-1#00

      C     o     n      t     e     n      t     s

$%is g&i'e e()lains %o* to )oll 'ata registers from Siemens PLC

Series - S7-00! S7-400 " S7-1#00.

Page 2: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 2/22

Table of Contents

1. Objective ........................................................................................................................................... 3

2. Hardware requirements .................................................................................................................... 3

3. Software requirements ..................................................................................................................... 4

4. PLC protoco compatibiit! .............................................................................................................. 4

4.1 eWON with MPI port .................................................................................................................... 44.2 eWON with serial port ................................................................................................................. 4

". #mpementation steps ....................................................................................................................... "

5.1 Step 1 - Configuring the IO Server .............................................................................................. 55.2 Step 2 - in!ing the PC with the eWON ................................................................................... 1"

5.2.1 Intro#u$tion .................................................................................................................... 1"5.2.2 MPI%Profi&us lin! ........................................................................................................... 1"

5.2.' ISO(CP )thernet lin! .................................................................................................... 115.' Step ' - Creating tags in the eWON .......................................................................................... 125.4 Step 4 - Monitoring tags ............................................................................................................ 15

$. %roubes&ootin' ta's in error ........................................................................................................ 1$

(. )ppendi* 1 + S!nta* of S(,3-- 4-- / 12-- ta' addresses ........................................................ 10

*.1 +eneral tag a##ress for,at ....................................................................................................... 1*.2 Me,or tpes ............................................................................................................................ 1*.' Mo#ifiers ................................................................................................................................... 1*.4 )/a,ples .................................................................................................................................. 10*.5 it a$$ess ,o#ifier .................................................................................................................... 10

*. Status register ........................................................................................................................... 100. )ppendi* 2 + P# cabe .................................................................................................................. 2-

. )ppendi* 3 + )dvanced outin' Setup ........................................................................................ 21

3evision histor ..................................................................................................................................... 22

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 2%22

Page 3: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 3/22

O&:e$tive Chapter 1.

1. Objective

(he o&:e$tive of this #o$u,ent is to e/plain how the eWON $an poll #ata registers out of one or,ore PCs.

Polling PC #ata registers i,plies the following steps ;

1. in!ing the eWON with the PC

2. Configuring the eWON IO Server 

'. Creating tags in the eWON

4. Monitoring tagsi

)dvanced e/planations are in#i$ate# & this i$on.

2. Hardware requirements

In or#er to follow this gui#e ou<ll nee#;

   PC suita&le to $onne$t to the eWON

   = Sie,ens PC 7S*-'"" -4"" or -12""9

   = suita&le eWON 7ISO(CP is availa&le on all ,o#els MPI%Profi&us availa&le onl on #evi$eswith MPI port9

>ro, a $o,puter running a we&-&rowser ou will $onfigure the IO Server in the eWON to poll#ifferent tpes of PC #ata registers.

 =$$ess to the eWON we& server is #one either & using 7one of9 its lo$al =N port7s9 or &another tpe of a$$ess li!e ?PN IP a##ress et$.

 Conne$tion to the PC $an &e either MPI%Profi&us or ISO(CP )thernet #epen#ing on theavaila&le interfa$es on the PC

(he MPI%Profi&us or ISO(CP )thernet $onne$te# PC will have its registers rea# & the tags$onfigure# in the IO Server of the eWON.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page '%22

Page 4: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 4/22

Software re@uire,ents Chapter '.

3. Software requirements

eO5 confi'uration software6(he eWON is $onfigure# through its we& server. =ll ou nee# is a stan#ar# We& rowsersoftware li!e Internet )/plorer or >irefo/.

 =##itionall we suggest #ownloa#ing the e7udd!  utilit fro, our we&sitehttp;%%support.ewon.&iA% 

(his utilit allows ou to list all the eWONs on our networ! an# to $hange the #efault IP a##ressof an eWON to ,at$h our =N IP a##ress range. With eu## ou $an also easil upgra#e thefir,ware or ,a!e a &a$!up of our eWON.

eO5 8irmware 9ersion

(he s$reen-shots of this gui#e refle$t fir,ware version .4 S2 72"129 &ut ou $an e/pe$t the&asi$ prin$iples to re,ain the sa,e in earlier%later versions.

4. PLC protoco compatibiit!

(he ta&le &elow shows the Sie,ens proto$ols that are supporte# an# for ea$h of those whi$h IOServer ou nee# to use insi#e the eWON to $onne$t our Sie,ens PC.

4.1 eO5 wit& P# port

PLC,8ami!P#:Profibus

protocosPP# protoco

;over P# port<

=t&ernet#SO%CP

;=t&ernet in><

=O5#O Server name

S*-'"" B)S NO B)S S*'64""

S*-4"" B)S NO B)S S*'64""

S*-12"" NO NO B)S S*'64""

S*-2"" 79 NO &ut PPI B)S B)S S*2"" 79

%abe D MPI port #evi$e proto$ol $o,pati&ilit

 4.2 eO5 wit& seria port

PLC,8ami!P#:Profibus

protocosPP# protoco

;over seria in><

=t&ernet

#SO%CP;=t&ernet in><

=O5#O Server name

S*-'"" NO NO B)S S*'64""

S*-4"" NO NO B)S S*'64""

S*-12"" NO NO B)S S*'64""

S*-2"" 79 NO &ut PPI B)S B)S S*2"" 79

%abe D Serial port #evi$e proto$ol $o,pati&ilit

79 Note that the S*-2"" fa,il is a##resse# in a separate gui#e 7#ifferent IO Server an# snta/9.

(he referen$e of this gui#e is; =E+-"40 an# it is availa&le here;

http;%%wi!i.ewon.&iA%Support%"*Fo$u,entations%=E+ 

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 4%22

Page 5: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 5/22

I,ple,entation steps Chapter 5.

". #mpementation steps

 ".1 Step 1 , Confi'urin' t&e #O Server 

1. +o to the eWON We& page either using a point-to-point $onne$tion to the eWON =N port or a?PN tunnel. Cli$! on Configuration in the &utton &ar.

2. Open the eWON IO Server page & $li$!ing the IOServer Config  &utton.

'. In the #rop #own fiel# sele$t the S73&400  IO Server 

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 5%22

Page 6: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 6/22

Page 7: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 7/22

I,ple,entation steps Chapter 5.

5. (o &e a&le to poll #ata registers out of our PC ou nee# to #efine an# ena&le at least oneTopic  in the lower part of the IO Server $onfiguration page. (opi$s are ,eant to allo$ate $o,,onproperties to a group of tags 7properties in$lu#e +nable#)isable ,lobal  )evice ddress- andPoll ate9.

(he snapshot &elow shows all ' topi$s ena&le#%$onfigure#. It shows #ifferent e/a,ples of topi$snta/ 7see e/planations in the ta&les following9.

5ote; Bou ,ight $on$lu#e the eWON $annot $onne$t to ,ore than ' PCs fro, thefa$t there are ' topi$s 7= an# C9. If ou nee# to poll tags on ,ore than ' PCs

refer to the Hnowle#ge ase page of our Wi!i here;http;%%wi!i.ewon.&iA%Support%"FHnowle#geFase% tpe $o. to reac% !ore t%an 3 P/C  in the sear$h fiel#.

>or a#van$e# routing features refer to G 0 =ppen#i/ ' D =#van$e# 3outing Setup.

. In Poll ate ou $an #efine the refresh rate in ,s 7,illise$on#s9 appli$a&le to all #ataregisters that will &e in$lu#e# in this topi$. If ou leave this fiel# &lan! the #efault valueapplie# will &e 2""" ,s 72 se$on#s9. (he polling rate spe$ifie# here applies to all tagsasso$iate# with this topi$. If ou have tags that nee# to &e refreshe# at a #ifferent ratesena&le an# $onfigure ,ultiple topi$s.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page *%22

Page 8: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 8/22

I,ple,entation steps Chapter 5.

*. )nter a vali# a##ress in ,lobal )evice ddress as per the ta&les &elow;

P#:Profibus

S!nta* to use ?efinitions:e*ampe

MPI,MPI address

"PI address' MPI no#e a##ress of the PC

)/a,ple;

3ea$h & MPI the PC with the no#e a##ress 2

PROFIBUS,Profibus address

Profibus address' P3O>IES no#e a##ress of the

PC

)/a,ple

3ea$h & Profi&us the PC with the no#e a##ress 0

MPI,Subnet ID,MPI address

When the =#van$e# 3outing Setup is +nabled 7see =ppen#i/ '9 the following snta/ $an &e applie# torea$h a #evi$e on the MPI networ! in#ire$tl

$onne$te# to the eWON 7&ehin# one or several otherPCs9.

Subnet I)' I of the #estination S*-Su&net I 7see G0 =ppen#i/ ' D =#van$e# 3outing Setup9"PI address' MPI%Profi&us no#e a##ress of the PCto rea$h

)/a,ple;

3ea$h & MPI%Profi&us the PC with the no#ea##ress 4 on the su&net with su&net I 450-455

%abe D MPI%Profi&us #evi$e a##ress snta/

 

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page %22

Page 9: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 9/22

I,ple,entation steps Chapter 5.

#SO%CP

S!nta* to use ?efinitions:e*ampe

ISOTCP,IP address,CalledTSAP

IP address; IP a##ress of the PC 7e/;1".".12".2"49Called TSP 12 ; (ransport Servi$e =$$ess Point

● >or the S7300 fa!ily  the Calle# (S=P valueis usuall 030( .

● >or the S7400 fa!ily  it #epen#s in whi$hra$! 6 slot nu,&er the CPE has &eenplugge#. >or e/a,ple if the CPE is plugge# inslot 4 of ra$! " the Calle# (S=P value woul#&e 0304 (S=P snta/ see 79.

● >or the S75(00  fa,il the Calle# (S=P valueis usuall 0305

)/a,ple;

3ea$h & ISO(CP the PC at IP 1".".12".2"4 withthe (S=P "'."2

%abe - ISO(CP #evi$e a##ress snta/

79 Note on called TSP   snta/

=*ampe 6

3e,ote (S=P; "'."2 7"'$hannel nu,&er "2ra$! an# slot nu,&er of the CPE9.

C&anne number 6

(he first 2 #igits referen$es the $hannel to &e use#.(he $hannel J"'K is availa&le on S* PC to allow $onne$tion $o,ing fro, other #evi$es than P+$hannel or (%OP $hannel.

ac> and Sot 5umber of t&e CP@6

(he last 2 #igits referen$es the ra$! nu,&er followe# & the slot nu,&er. #efault the CPE isslotte# in the $entral $ontrol ,o#ule ra$! 7ra$! nu,&er "9. (he slot of our CPE is to &e foun#in our S()P* pro:e$t in the 8ar#ware Configuration.

. Save our settings & $li$!ing on 6pdate Config .

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 0%22

Page 10: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 10/22

I,ple,entation steps Chapter 5.

 ".2 Step 2 , Lin>in' t&e PLC wit& t&e eO5

 5.2.1 Intro#u$tion

(he eWON $an &e $onne$te# to the PC either using the MPI $onne$tion or the )thernet$onne$tion supporting ISO(CP. (he eWON $an &e $onne$te# to PCs &oth in MPI an# ISO(CPsi,ultaneousl.

 5.2.2 MPI%Profi&us lin!

1. in! the PC with the eWON using the Sie,ens MPI $a&le )S*0"1-">""-"==" ore@uivalent 7see =ppen#i/ 29.

2. +o &a$! to IOServer settings page 7+dit  ,enu9 an# $li$! on the )estination "PI *ode linto $he$! if the eWON MPI interfa$e is $orre$tl $onfigure# an# $onne$te# to our MPI networ!.

'. (he "PI Status Info popup opens;

(his win#ow will show ou the #ifferent MPI #evi$es #ete$te# & the MPI $hip of the eWON. (heI nu,&ers of the #ete$te# MPI%Profi&us ,aster #evi$es are highlighte#.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 1"%22

Page 11: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 11/22

Page 12: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 12/22

I,ple,entation steps Chapter 5.

 ".3 Step 3 , Creatin' ta's in t&e eO5

1. +o &a$! to the $onfiguration ,enu an# sele$t Tag Setup. If ou are starting fro, s$rat$h thelist of tags shoul# &e e,pt.

2. Sele$t Create *e. Tag  to open the tag $onfiguration win#ow an# enter the para,eters of thetag ou want to $reate.

 )nter a Tag *a!e D free te/t no spa$es no s,&ols 7- L et$.9

 )nter a )escription D free te/t 7optional9

 Sele$t S73&400  as IO server

In the ddress fiel# enter the PC register to &e polle# in the PC.

)ddress Pointin' to

MW4 the Wor# at a##ress 4 7in &tes9 in the Internal Me,or

25 the Wor# at a##ress 5 7in &tes9 in the ata lo$! 2

I' the te at a##ress ' 7in &tes9 in the is$rete Inputs Aone

I52 the &it 2 fro, the te 7rea# it a$$ess ,o#ifer note &elow9 at a##ress 5in the is$rete Inputs Aone

5ote; >or ,ore infor,ation on #ata register I snta/ see G  =ppen#i/ 1 DSnta/ of S*-'"" 4"" 6 12"" tag a##resses

  InTopic *a!e enter = or C. (he topi$ ,ust have &een $onfigure# in the IO server page

7see G 5.1 Step 1 - Configuring the IO Server 9.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 12%22

Page 13: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 13/22

I,ple,entation steps Chapter 5.

 Type; ata(pe of the tag allows ou to sele$t un#er whi$h for,at the eWON will store an##ispla the varia&le of the tag 7>loating Point oolean Integer wor# or =uto,ati$9. =ll tags arestore# on 4 &tes. (he #efault uto!atic  option lets the eWON #e$i#e the for,at #epen#ing onthe IO Server register%,o#ifier tpe.

(he re,aining fiel#s are usuall left with their #efault value;

1. 8orce ead Only ; En$he$!e# is the #efault. When it is $he$!e# users will

not &e a&le to write a value & using the 6pdate $o,,an# in the 9ie. IO page.

8owever the tag re,ains rea#%write for $o,,an#s written in the e,&e##e#=SIC progra,.

 e:O* value; efaults are 1Q". =pplies a scale factor an# an offset  to the

raw value $o,ing fro, the IO server. (he s$ale fa$tor an# offset are floatvalues. Negative values are a$$epte#.

TAGval = IOSR!Rval " s#ale fa#tor $ offset

'. Cli$! on the dd#6pdate Only  &utton when our tag $onfiguration is $o,plete

4. If everthing is OH our new tag appears in the tag list;

If not here are a $ouple of e/a,ples of error ,essages that $an appear;

Tag na!e e!pty' $he$! tag na,e fiel# an# tpe a na,e in it.

Invalid c%aracter in tag na!e; $he$! na,e for spa$es an# invali# $hara$ters.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 1'%22

Page 14: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 14/22

I,ple,entation steps Chapter 5.

Invalid IO na!e for tag ; $he$! tag a##ress snta/.

Invalid topic na!e for tag : Topic must be A, B or C. Any other value will be rejected.

5. 3epeat the sa,e se@uen$e fro, point 1 for the other tags ou nee# to $reate.

. If ou nee# to $reate new tags that have al,ost the sa,e properties as an e/isting tag in the

list then $he$! the &o/ ne/t to the sour$e tag &efore $li$!ing on the Create *e. Tag lie firstselected2 lin!.

 =ll 79 properties of the e/isting tag will &e $opie# in the new tag $reation wiAar#. It is the firstsele$te# tag that will &e $opie# if ,ore than one tag is sele$te# in the list.

79 Copie# properties in$lu#e the Tag *a!e Sin$e the (ag Na,e ,ust &e uni@ue ,a!e sure ou$hange the na,e of the new tag.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 14%22

Page 15: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 15/22

I,ple,entation steps Chapter 5.

 ".4 Step 4 , onitorin' ta's

1. To display tags go to the 9ie. I#O page fro, the "ain "enu  to $he$! tag values an# status.Cli$! 6pdate to refresh the page.

2.  To set the value of a tag e#it the *e. 9alue fiel# an# $li$! on the 6pdate  lin! as shown&elow.

5ote; Cli$!ing this 6pdate  lin! sets the new value in the register of the PC. (he value willa$tuall &e returne# with the ne/t poll. In a##ition ou nee# to instru$t our &rowser to refresh the

value shown on the s$reen & $li$!ing the page 6pdate  lin!.

'. (ags in error appear with a re# i$on as shown &elow;

Please refer to G  (rou&leshooting tags in error  if this appears.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 15%22

Page 16: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 16/22

I,ple,entation steps Chapter 5.

$. %roubes&ootin' ta's in error 

 = tag value #isplae# in re# in the 9ie. IO   page in#i$ates that the ;uality   for this value is$onsi#ere# as bad . When the @ualit of the tag is bad, a re# i$on is #isplae# in the $olu,n&etween the tag<s na,e an# the tag<s value. =s long as the quality  of the #isplae# value is good no i$on appears in this $olu,n. More infor,ation a&out the nature of the pro&le, $an &e o&taine#& pla$ing the ,ouse $ursor on the i$on as shown &elow;

or;

5ote; = single tag in error 7truly  bad 9 $an $ause a nu,&er of other 7good 9 tags to appear in erroras well &e$ause for $o,,uni$ation opti,iAation purposes tag re@uests an# responses aregroupe# in one single envelope. (he whole group is then affe$te# with the sa,e error status.

uring $o,,issioning or ,aintenan$e ou ,a want to isolate the truly bad  tag fro, the others.(herefore ou have to #isa&le the polling of tags in error. (his $an &e #one in the IO Server  R,lobal Config  para,eters as shown &elow;

(he relevant tag will no longer &e polle# an# it will no longer &e in$lu#e# in a group 7an# hen$e itwill not affe$t other tags9. 3e,in# ourself to unc&ec> t&is bo* an# initialiAe the IO Server &$li$!ing the Init  lin! as shown a&ove as soon as ou have $o,plete# our $o,,issioning or,aintenan$e tas!.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 1%22

Page 17: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 17/22

(rou&leshooting tags in error  Chapter .

(o get ,ore infor,ation a&out the nature of the error an# the se@uen$e of events &efore an# after

the error o$$urre# ou $an $he$! the events appearing in the +vent /og . (he +vent /og is

a$$esse# through the "ain "enu- )iagnostic

In the $ase of a $o,,uni$ation error $he$! the $a&ling an# IO server settings.

(o fin# the e/planation of a parti$ular error ,essage refer to the Hnowle#ge ase #o$u,ent inour WIHI 7or tpe the error $o#e in the >in# fiel#9 ;

http;%%wi!i.ewon.&iA%Support%"FHnowle#geFase%F)rrorFCo#e

)/a,ple; 3esults on sear$h error $o#e 211

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 1*%22

Page 18: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 18/22

 =ppen#i/ 1 D Snta/ of S*-'"" 4"" 6 12"" tag a##resses Chapter *.

(. )ppendi* 1 + S!nta* of S(,3-- 4-- / 12-- ta' addresses

 (.1 Aenera ta' address format

 (.2 emor! t!pes

emor!%!pe ?escription

)cceptabeodifiers )ddress

/ ata &lo$! nu,&er / C W S > te offset

M Internal ,e,or C S > te offset

C Counter 79 S O&:e$t nu,&er  

( (i,er 79 S O&:e$t nu,&er  

I is$rete Inputs C S > te offset

T is$rete Outputs C S > te offset

PI Peripheral Inputs C S > te offset

PT Peripheral Outputs C S > te offset

Note; If no ,o#ifier is in$lu#e# the ,o#ifier-tpe in &ol# will &e use#.

79 (i,er an# $ounters $annot &e polle# on S*-12"" series &e$ause the are a##resse# as aninstan$e #ata&lo$! in the PC.

 (.3 odifiers

odifier odifier t!pe 9aue ran'e )utomatic ta' t!pe

te "...255 Wor#

C signe# te -12...12* Integer  

W Wor# "...55'5 Wor#

S signe# Wor# -'2*...'2** Integer  

Wor# "...42040*20 79 Wor#

signe# Wor# -214*4'4... 214*4'4* 79 Integer  

> >loat Q%- '.4e' >loat

79 I,portant; to avoi# loss of pre$ision #ue to integer to float $onversion $hoose the rightstorage ata(pe for our (ag7s9.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 1%22

Page 19: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 19/22

 =ppen#i/ 1 D Snta/ of S*-'"" 4"" 6 12"" tag a##resses Chapter *.

 (.4 =*ampes

)ddress Pointin' to

MW4 the Wor# at a##ress 4 7in &tes9 in the Internal Me,or

CS1 the Counter nu,&er 1 rea# it as Signe# Wor#

25 the Wor# at a##ress 5 7in &tes9 in the ata lo$! 2

I' the te at a##ress ' 7in &tes9 in the is$rete Inputs Aone

I52 the &it 2 fro, the te 7rea# it a$$ess ,o#ifer note &elow9 at a##ress 5in the is$rete Inputs Aone

%abe D )/a,ples of register a##resses for S*-'"" 4"" an# 12""

(." 7it access modifier 

In an Me,or (pe 7e/$lu#ing Counter  an# Ti!er 9 it is possi&le to a$$ess a single it. = %&'( ,ust &e appen#e# to the 9alue *a!e.

 =s the a##ress refers to a starting &te the it in#e/ goes onl fro, " to *. No other Mo#ifierthan is allowe#.

(he snta/ $an &e use# for rea#ing its an# for writing the, as well.

=*ampes6

?ali# snta/; 11'' is OH &e$ause it represents &it ' of te 1' in 1

Invali# snta/; IW52 is wrong &e$ause there is a Mo#ifier 

I51" is wrong &e$ause the it nu,&er is greater than *

 (.$ Status re'ister 

(he S(=(ES (ag is a spe$ial (ag that returns infor,ation a&out the $urrent state of the$o,,uni$ation for a given #evi$e. (he status (ag ?alueNa,e is $o,pose# of;

 Status%Global Devi#e Address(

Status

9aue Corresponds to

" Co,,uni$ation not initialiAe#. Status ENHNOWN.If no (ag is polle# on that #evi$e a##ress the $o,,uni$ation status isun!nown.

1 Co,,uni$ation OH

2 Co,,uni$ation NO( OH

%abe D (ag status value ,eaning

U Bou $an #efine a status (ag for ea$h PC use#.

U If ou use the status a##ress the (ag ,ust &e $onfigure# as an analog #ata tpe su$h as>loating Point or Integer.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 10%22

Page 20: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 20/22

 =ppen#i/ 2 D MPI $a&le Chapter .

0. )ppendi* 2 + P# cabe

(o ,a!e an MPI%Profi&us lin! &etween the eWON an# the PC ou nee# a stan#ar# Sie,ensMPI%Profi&us $a&le or e@uivalent.

 = stan#ar# Sie,ens referen$e is )S*0"1-">""-"==".

(here are $o,pati&le $a&les availa&le on the ,ar!et &ut the #o not ne$essaril have all of thesa,e features su$h as swit$ha&le ter,ination resistors.

eWON offers a $o,pati&le unshiel#e# $a&le;

P%N )W4"012 - SE0%SE0 $a&le for Sie,ens S* ength; 2 ,eter 

Ma/ &au#rate is 1.5 Mit%s.

>or higher &au#rates use the Sie,ens Profi&us $a&les with resistor ter,inations.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 2"%22

Page 21: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 21/22

 =ppen#i/ ' D =#van$e# 3outing Setup Chapter 0.

. )ppendi* 3 + )dvanced outin' Setup

 dvanced outing Setup is a feature intro#u$e# in fir,ware .'. It allows ou to a$$ess#evi$es that are part of another MPI%Profi&us networ! $onne$te# in#ire$tl to the eWON throughanother or several other PCs.

 =#van$e# 3outing Setup ite,s are visi&le when the +nable $he$!&o/ is ti$!e#.

5ote; Para,eters set in this se$tion re,ain in ,e,or &ut are visuall hi##en =N not ta!en intoa$$ount & the fir,ware when the +nable $he$!&o/ is unti$!e#.

 

)/a,ple of $onfiguration;

>or ,ore #etails refer to the +eneral 3eferen$e +ui#e; 3+-""1 availa&le here

http;%%wi!i.ewon.&iA%Support%"*Fo$u,entations%"1F3+

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 21%22

Page 22: AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

8/13/2019 AUG-048-0-En-(Polling Data Registers From Siemens PLCs)

http://slidepdf.com/reader/full/aug-048-0-en-polling-data-registers-from-siemens-plcs 22/22

3evision histor

evision /evel )ate )escription

1." 12%12%11 >irst issue

i

o$u,ent &uil# nu,&er;  

Note concerning the warranty and the rights of ownership:

The information contained in this document is subject to modification without notice. The vendorand the authors of this manual are not liable for the errors it may contain, nor for their eventualconsequences.

No liability or warranty, explicit or implicit, is made concerning quality, the accuracy and the

correctness of the information contained in this document. In no case the manufacturers responsibility couldbe called for direct, indirect, accidental or other damage occurring from any defect of the product or errorscoming from this document.

The product names are mentioned in this manual for information purposes only. The trade mar!sand the product names or mar!s contained in this document are the property of their respective owners.

This document contains materials protected by the International "opyright #aws. $ll reproductionrights are reserved. No part of this handboo! can be reproduced, transmitted or copied in any way withoutwritten consent from the manufacturer and%or the authors of this handboo!

e&'N sa, (ember of $"T# )roup.

Polling ata 3egisters fro, Sie,ens PC Series S*-'"" S*-4"" 6 S*-12"" 78ow to9 Page 22%22