West Control Solutions BK DP/V1 User manual

Type
User manual
ModularControllerSystem
KS vario
InterfaceDescription
PROFIBUS-DP
949904069718
validfrom:7/2004
P MA P r ozeß- und Mas chinen-A utomation GmbH
SIMATI® isaregisteredtrademarkofSiemensAG
STEP®isaregisteredtrademarkofSiemensAG
®isaregisteredtrademar
kofPROFIBUSuserorganisation(PNO)
BluePort ®isaregisteredtrademarkofPMAProzeß-undMaschinen-AutomationGmbH
BlueControl ®isaregisteredtrademarkofPMAProzeß-undMaschinen-AutomationGmbH
©PMAProzeß-undMaschinen-AutomationGmbH
PrintedinGermany
Allrightsreserved.Nopartofthisdocumentmaybereproducedorpublishedinanyformorbyany
meanswithoutpriorwrittenpermissionfromthecopyrightowner.
ApublicationofPMAProzeß-undMaschinenAutomationGmbH
Postfach310229
D-34058Kassel
Germany
9499-040-69711 3 preliminary
Content
1 General ........................................... 5
1.1 Scopeofdelivery .................................... 6
2Hintsforoperation ..................................... 7
2.1 Interfaceconnection .................................. 7
2.2 SignificationofindicatorLEDs ............................ 7
2.3 Forcing ......................................... 8
2.4 Fail-safe ........................................ 8
3Processdata......................................... 9
3.1 Configurableprocessdatamodules.......................... 10
3.2 Definitionofvaluestobetransmittedinthe“BlueControl” engineeringtool .... 11
3.3 Structureofthedatacachememoryinthebuscoupler ............... 12
3.4 Dataexchangeviavariablemultiplexermodule ................... 13
3.4.1 DatatransferfromtheProfibusmastertothebuscoupler ......... 13
3.4.2 DatatransferfromthebuscouplertotheProfibusmaster ......... 14
3.5 Dataexchangeviamultiplexermoduleswithfixeddatalength ........... 15
4ParametertransmissionviaparameterchannelinDP-V0 .............. 16
4.1 Messageelements .................................. 17
4.2 Generaltelegramstructure .............................. 18
4.3 Datawritesequence ................................. 19
4.4 Datareadsequence .................................. 19
4.5 Examples ....................................... 20
4.5.1 Example1:singleaccess,read,integervalue................ 20
4.5.2 Example2:blockaccess,read,floatvalue ................. 20
4.5.3 Example3:singleaccess,write,integervalue ............... 21
4.5.4 Example4:blockaccess,write,floatvalue ................. 22
5ParametertransmissionviaDP-V1 ........................... 22
6Userparametersetting,diagnosis ........................... 23
6.1 PROFIBUS-DP diagnosisinformation ......................... 24
6.1.1 StandardDiagnosismessage ........................ 24
6.1.2 Instrument-specificdiagnosis ...................... 25
7Quickentrance,attheexampleofSIMATIC®S7 .................. 26
7.1 Usingtheparameterchannel ............................. 27
7.1.1 Simplifiedaccess............................... 27
7.2 Directaccess ..................................... 28
7.3 Usingthemultiplexerfunction ............................ 29
preliminary 4 9499-040-69711
8FunctionmodulesforSIMATIC®S7 .......................... 30
8.1 FB106,FB107 structure ................................ 30
8.2 FB108 structure .................................... 32
9Annex ........................................... 34
9.1 Systemstructure ................................... 34
9.1.1 MinimumequipmentfoaPROFIBUSsystem ................ 34
9.1.2 MaximumequipmentofaPROFIBUSsystem ................ 34
9.1.3 Cableruninsidebuildings .......................... 34
9.1.4 Non-groundedsystems ........................... 35
9.2 Addresssurvey .................................... 36
9.3 Explanationofterms ................................. 39
9.4 GSDFile ........................................ 40
.1General
VariousfieldbusinterfacescanbeconnectedtoModularControllerSystemKSVARIO.Forthis,therelevantbuscoupler
isusedasa centralstation forthecontrollersystem.
OneofthesebuscouplersservestosupporttheModbusprotocolviaafront-panelRS485/422interface,whichpermits
transmissionofallprocess,parameterandconfigurationdata.
Theserialcommunicationinterfacecanbeusedforcommunicationwithsupervisorysystems,visualizationtools,etc.
Anotherinterface,whichisalwaysprovidedasstandard,isontheKSVARIOcontrollermodules.ThisfullRS232
interfaceisusedforconnectionofthe‘BlueControl’tool,whichrunsonaPC.Communicationisaccordingtothe
master/slaveprinciple.KSVARIOisalwaysslave.
Characteristicdataofthecablemediumandphysicalandelectricalinterfacepropertiesare:
Network
topology
Linearbuswithactivebusterminationatbothends.Withtransferrates?1,5Mbit/s,taplinesmustbeavoidedbyall
means.
Transfer
medium
Screened,twisted2-wirecable.ThebuscablepropertiesarespecifiedinstandardEN50170.Alltransferratesupto
12Mbits/scanbeusedwithtypeAcable.Inadditiontothestandardcable,underground,overheadsuspensionand
trailingcablesarealsoavailable.
Therecommendedcableparametersare:
TypeAcable
Characteristicimpedancein W135...165at3...20MHz
Operatingcapacity(pF/m) <30
Loopresistance[ W/km) <110
Corediameter(mm) >0,64
Corecrosssection(mm2) >0,34
Cablelengths Themax.cablelengthisdependentoftransferrate.TheBaudrateisdeterminedbythemasterconfigurationand
detectedautomaticallybyKSVARIO.Thecablelengthcanbeextendedbymeansofrepeaters.
Baudrates
Automatic
Baudrate
detection
Baudrate Maximumcablelength
9,6/19,2/31,25/45,45/93,75kbit/s 1200m
187,5kbit/s 1000m
500kbit/s 400m
1,5Mbit/s 200m
3/6/12Mbit/s 100m
Interface RS485;canbemountedatthesite
9499-040-69711 5 preliminary
Addressing 0...126(factorysetting:01)
Adjustmentisviathe2buscouplerrotaryswitchesorviatheBlueControlengineeringtool.Withaddresssettingvia
BlueControl,the2rotaryswitchesforaddresssettingmustbeinposition“00”.
InpositionOFF,thebusfunctionisswitchedoff(operationasifnointerfacewasprovided,includingbuserrormessage
switch-off).WhenchangingfromOFFtoavalidaddress,theDPsystemisreset(DPprocessorsystemreset).
Numberof
stations
32instrumentsinasegment.Canbeextendedto126bymeansofrepeaters.
Diagnosisand
monitoring
Fastprocessvaluetransmission
Displayofbuserror
-Errormessage
-LED
Particularities Configurableprocessdatamodules
Directinputandoutputreadingandwriting
Inputforcing
Back-upcontrollerfunction
Easyconnectioneventosmallcontrolsystems
1.1 Scopeofdelivery
Theengineeringsetcomprises:
Floppy
Pma_1030.gsdGSDfile
Pma_sup.arj Step7®functionmoduleasS7libr.
KSvario.zip projectexampleinStep7®forS7-300
Dev_KSVario-1.bct ConfigurationexampleforBlueControl®
InterfacedescriptionforPROFIBUS-DP–processdataandparameterdata
Document”KSVARIOPROFIBUS-DP”(9499-040-69718) providesbasicexplanationsforconnectionofKSVARIO
toPROFIBUS-DPnetworks.Itcontainshintsforcyclicdataexchange.
Moreover,additionalpossibilitiesfortransferofprocessvalues,parametersandconfigurationdataviathe
parameterchannelandviamultiplexoperationaredescribed.
GSDfile TheGSDfileisavailableasastandardfilewithEnglishtext(PMA_1030.gsd)andwithGermantexts(PMA_1030.gsg).
ForworkingwithyourPROFIBUSmasterconfigurationusingGermantexts,please,installfilePMA_1030.gsg.
preliminary 6 9499-040-69711
.2Hintsforoperation
2.1 Interfaceconnection
ThePROFIBUSisconnectedtothefront-panelsub-Dinterfaceofthebuscoupler.
ThephysicalsignalsarebasedonRS485interfaces.
Suitablecablingmustbeprovidedbytheuser,wherebythegeneralcablespecificationstoEN50170vol.2mustbe
followed.
Cablelaying
Wheninstallingthecables,thegeneralhintsforcablelayingprovidedbythemastermodulesuppliermustbetaken
intoaccount:
Cablelayinginsidebuildings(insideandoutsidecabinets)
Cablelayingoutsidebuildings
Potentialcompensation
Cablescreening
Measuresagainstinterferencevoltage
Taplinelength
BusterminationresistorsarenotcontainedintheVARIObuscoupler,butmustberealizedviatheexternalconnector,if
necessary.
SpecialhintsforPROFIBUScablelayingaregivenintechnicalguideline"MountingguidelinesforPROFIBUS-DP/FMS
(orderno.2.111[Germ.];2.112[Engl.]ofthePROFIBUSuserorganization.
Sub-Dpin
allocation
Connectionisviaa9-polesub-Dsocket.
2.2 SignificationofindicatorLEDs
LEDs
LEDno. LEDcolour Function
US green SegmentvoltageUSprovided
UM green ModulevoltageUMprovided
UB green CouplervoltageUBK provided
D1 red Buscoupler-to-PLCconnection:
-ok=LEDoff
-configurationerror=LEDblinks
-noconnection=LEDon
D2 red Buscoupler-to-controllerconnection:
-ok=LEDoff
-error=LEDblinks
9499-040-69711 7 preliminary
5
9
4
8
3
7
2
6
1
RxD/TxD-N(B)
GND
RxD/TxD-N(A)
VP
US
UM
UB
D1
D2
PMA
2.3 Forcing
Inputs AllphysicalinputscanbeoverwrittenviathePROFIBUS-DP(configurable).Thuse.g.processvaluemeasurementvia
remoteI/O(e.g.VARIOI/Osystem)andentryviathebusarepossible.
Outputs Withoutputforcing,thefail-safefunctionsettingmustbetakenintoaccount.If"zero"fail-safebehaviourwas
adjusted,alloutputsaresettozeroincaseofbuserrorormasterstop,otherwise,theiroldvalueremainsunchanged.
2.4 Fail-safe
Userparametersetting‘fail-safe’determinestheinstrumentbehaviourincaseofmasterbusfailureor'busstop'.
Busfailure
Incaseofbusfailure,theinstrumentoperatesaccordingtothefollowingrules.
Fail-safe Reactionincaseofbusfailureormasterstop
Lastvalue Continueoperationwiththevaluessentlast
ForcedanaloginputsaresettoFAIL
zero ForcedanaloginputsaresettoFAIL1).
Forceddigitalinputsaresettozero
Forcedoutputsaresettozero
preliminary 8 9499-040-69711
.3Processdata
Forflexiblerealizationofhisrequirementsontransfervalues,memoryspaceandtransfertime,theusercancompose
theprocessdatatransmissionofadefinedselectionofmodules.Configurationisviatherelevantbusmaster
configurationtool.
Processdataandselectedparameterdataarewrittenandreadcyclically.
Userinputvaluesare storedbytheinstrumentonlyincaseofvaluechanging.
Dataformat Valuesase.g.processvaluesandset-pointsaretransmittedin16-bitFixPointformatwithonedigitbehindthedecimal
point.
Parameter
channel
Allprocess,parameterandconfigurationdataareaccessibleadditionallyviatheparameterchannel.Thesedataare
transmittewdoverseveralcyclesonrequest.FloatFormataccessesarealsopossible.Theseaccessesaredescribed
belowinthisdocumentation.
9499-040-69711 9 preliminary
3.1 Configurableprocessdatamodules
Forflexiblerealizationofhisrequirementsontransfervalues,memoryspaceandtransmissiontime, theusercan
composetheprocessdatatransmissionfromadefinedmoduleselection.Configurationisviatherelevantbus
configurationtoolofthebusmaster.Selectionwhichprocessdataandparametersaretobetransmittedisviathe
BlueControlengineeringtool.
Available
modules
Thefollowingmodulesareoffered:
No. Module Description Numb.bytes Type Identification
[hex]
Identification
[dec]
1 A.1 General:Parameter–Channel 8/8 0xF3 243
2 A.2 Variablemultiplexermodule 4/4 0x71 113
3 A.3 Multiplexermodulefor1data 6/6 Integer/Fix-Point1 OxF2 242
4 A.4 Multiplexermodulefor4data 12/12 Integer/Fix-Point1 0xF5 245
5 A.5 Multiplexermodulefor8data 20/20 Integer/Fix-Point1 0xF9 249
6 A.6 Multiplexermodulefor14data 32/32 Integer/Fix-Point1 0xFF 255
7 B.1 I/O:1wordinput 2 Integer/Fix-Point1 0x50 80
8 B.2 I/O:2wordsinput 4 Integer/Fix-Point1 0x51 81
9 B.3 I/O:4wordsinput 8 Integer/Fix-Point1 0x53 83
10 B.4 I/O:8wordsinput 16 Integer/Fix-Point1 0x57 87
11 B.5 I/O:16wordsinput 32 Integer/Fix-Point1 0x5F 95
12 B.6 I/O:1wordoutput 2 Integer/Fix-Point1 0x60 96
13 B.7 I/O:2wordsoutput 4 Integer/Fix-Point1 0x61 97
14 B.8 I/O:4wordsoutput 8 Integer/Fix-Point1 0x63 99
14 B.9 I/O:8wordsoutput 16 Integer/Fix-Point1 0x67 103
16 B.10 I/O:16wordsoutput 32 Integer/Fix-Point1 0x6F 111
Min.onemodulemustbeselected.
Thefollowingmodulesareavailabletotheuser:
nspacekeepersfor1word,2,4,8,16words(word-consistent)
forinputandoutput(1,2,4,8,16values) àmoduleB
onevariablemultiplexermodulewithavariablenumberoftransmitteddata.
4input/outputbytes àmoduleA.2
Fourmultiplexermodulewithafixnumberoftransmitteddata àmoduleA.3…A.6
oneparameterchannelmodulewith8input/outputbytes àmoduleA.1
maxprocessdatainputlength:244bytes
max.processdataoutputlength:244bytes
max.numberofmodules:50
Unlessa“variablemultiplexermodule”isdefined,orifI/Omodulesaredefinedpriortoa"variablemultiplexermodule"
theI/Omodule(3-12)structurecorrespondstothestructureofthebuscouplerdatacache.
Thefollowingrestrictionsformoduledefinitionareapplicable:
Modules“Parameterchannel”and“variablemultiplexermodule”canbeinsertedonlyonce.
Module“Parameterchannel”cannotbeusedbehindmodule“variablemultiplexermodule”.
Behindmodule“variablemultiplexermodule”,min.oneI/Omodule(3–12)fortransmissionofactualprocessdataor
parametersmustbedefined.
preliminary 10 9499-040-69711
3.2 Definitionofvaluestobetransmittedinthe“BlueControl” engineeringtool
BlueControloffers2selectionmodesforthedatatobetransmitted:
Max.120parametersandprocessdatafromanychannelsforwritingandmax.120forreading.Dataexchangeto
theProfibusmasterisbymeansoftheprocessdatamoduleslistedabove(I/Omodulesno.3–12).Theorderof
transmissionisdeterminedbythemoduleposition.
Additionallyoralternatively,upto32parameterandprocessdataofanytypecanbeselectedincommonforall
channels.E.g.theprocessvaluesofallchannels(max.30)canbetransmittedbyselectingonedatum.Intotal,
upto960writeand960readdatacanbedefined(32datax30channels).
Theseselecteddata(max.1080writeand1080readdata)areavailableinthebuscouplerascachememoriesinthe
orderdefinedinBlueControl.
TheindexesoroffsetsofthedataaredisplayedorcanbeprintedoutviatheBlueControltool.
9499-040-69711 11 preliminary
3.3 Structureofthedatacachememoryinthebuscoupler
IndexReadcache Content
0
upto 120
anydataofanychannels
from 121
upto 1080
selecteddata(identicalforallchannels):
alldatachannel1
alldatachannel2
...
alldatachannel30
IndexWritecache Content
0
upto 120
anydataofanychannels
from 121
upto 1080
selecteddata(identicalforallchannels):
alldatachannel1
alldatachannel2
...
alldatachannel30
ReadandwriteaccesstothecachememorydatainthebuscouplerispossiblealsoviaparameterchannelandDPV-1
message.
Datawhicharewrittenpermanentlyorviathe“multiplexermodule”oftheprocessdatachannelcannotbechanged
usingparameterchannelandDPV-1message,becausetheyareoverwrittenduringthefollowingdataexchangeonthe
Profibus.Problemsofthistwo-pointoperationmustbetakenintoaccountbytheuser.
preliminary 12 9499-040-69711
3.4 Dataexchangeviavariablemultiplexermodule
ModuleA.2 InKSVario,max.1080processdatacanbedefinedforreadandwriteaccess.Asthislargenumberofdatacannotbe
providedononeProfibusprocessarea,thevariablemultiplexermodulepermitsmultiplexingintheI/Omodules(3-12)
.Forthis,4-byteindexinformationistransmittedinbothdirections.
Application
example:
Inthebusconfiguration,216-wordI/Omodules(e.g.I/Omodule12)arespecifiedbehindthevariablemultiplexer
module.
In BlueControl,e.g.32processdata/parametersareselectedforeachchannel.Thedataperchannelarearranged
successivelyinthebuscouplercachememory.Viathevariablemultiplexmodule,e.g.all32dataofachannelper
accesscanbetransmitted.Subsequently,thedataofthenextchannelcanbetransmittedbymeansofanewentryin
IndexOUT.
Thevariablemultiplexermoduledatastructureis:
ModuleeA.2
Datadirection Word Valuerange Description
IndexOUT Index_Read 0–1080 Indexofcachememoryofthe1stdatumofthedatablock
requestedbythePLC
Index_Write 0–1080 Indexofcachememoryofthe1stdatumofthedatablock
definedbythePLC
IndexIN Index_Read 0–1080 Indexofthecachememoryofthe1stdatumofthedatablock
providedbythebuscoupler
Index_Write 0–1080 Indexofthecachememoryofthe1stdatumofthedatablock
takenoverbythebuscoupler
IndexOUT Thedatacontaintheinformationfromwhichcachememoryindexmasterdatashallbesent,orbuscouplercache
memorydatashallberequested/read.
IndexIN Thedatacontainthemirroredinformationwhichbuscouplerdataareprovidedtothemaster,orwhichdataweretaken
overbythebuscoupler.
3.4.1 DatatransferfromtheProfibusmastertothebuscoupler
Write Fordatatransferfromthemastertothebuscoupler,themasterentersthedataintothedataarea(I/Omodules3-12)
behindthevariablemultiplexermoduleandsetstheindexwritewordfromIndexOUTtotheindexofthe
corresponding1stdatumofthedatacache(buscoupler).
UnlessamastercanensureconsistentoutputofdataentryandrelevantaddressintheindexwordontheProfibus,the
indexwritewordmustbesetto0atthebeginningoftheoperationforsignallingthatthedatacannotbetakenoverby
thebuscouplerinstantaneously.Finally,thevalueforthe1stdatumofthetransferredareaisenteredbythemaster.
ThebuscouplerstoresthedatasuccessivelyinitsdatacachefromthepositionspecifiedintheIndexWriteword.The
buscouplersignalsdatastoragebyentryoftheindexforthe1stdatumintotheindexwritewordoftheindexINarea.
Thebuscouplercontinuestakingoverthedatacyclically,untilthevalueindatumindexwritewordofindexOUT
changes.
Iftheindexwriteworddefinesadatarangebeyondthemax.numberof1080processdata,take-overbythebus
couplerisnotconfirmed.0isreturnedintheindexwritewordofindexIN.
9499-040-69711 13 preliminary
3.4.2 DatatransferfromthebuscouplertotheProfibusmaster
Read Themasterrequestsdatafromthebuscouplerbyentryofthe1stdatumofthedatacache(buscoupler)intotheindex
readwordofindexOUT.
Thebuscouplerenterstherequireddatasuccessively,startingwiththe1stdatumdefinedintheindexreadwordof
indexOUT,intothedataareaofthevariablemultiplexermodule.Subsequently,theindexofthe1stdatumofthe
transmitteddataareaisenteredintotheindexreadwordofindexIN.
Unlessthebuscouplercanensurethatthedataentryandtherelevantconfirmationintheindexreadwordareoutput
consistentlyontheProfibus,theindexreadwordmustbesetto0atthebeginningoftheoperation,forsignallingthat
datatake-overbythemasterisnotpossibleinstantaneously.Finally,thevalueforthe1stdatumofthetransferred
rangeisenteredbythebuscoupler.
Thebuscouplerupdatestherequireddataineachcycle,untilthedatavalueoftheindexreadwordofindexOUT
changes.
Iftheindexreadworddefinesadatarangeexceedingthemax.1080processdata,takeoverbythebuscouplerisnot
confirmed.0isreturnedintheindexreadwordoftheindexIN.
3.5 Dataexchangeviamultiplexermoduleswithfixeddatalength
Modules
A.3...A.6
4multiplexmoduleswithfixeddatalengtharedefined(1datum,4data,8dataor14dataforeachdirection).These
modulesincludethemultiplexfunctionandafixednumberofdatapertainingtothismodule.Thedataaredefinedas
consistentdataandmustalsobetransmittedinthisform.Ifamastercanensuretheseonlyinconjunctionwith
consistentdatamodels(SiemensS7),thesemodulesmustbeused.
Severalmultiplexmodulescanbeused.Singledataandthemodulefortheparameterchannelmustbeusedpriorto
thefirstmultiplexmodule.
Thedatastructureofthemultiplexermodulewithfixeddatalengthis:
e.g.module
A.4
Datadirection Word Range Description
IndexOUT Index_Read 0–1080 Indexofthecachememoryofthe1stdatumofthedatablock,
whichisrequestedfromthe PLC
Index_Write 0–1080 Indexofthecachememoryofthe1stdatumofthedatablock,
whichisdefinedbythePLC
ReadValue1 2bytes
ReadValue2 2bytes
ReadValue3 2bytes
ReadValue4 2bytes
IndexIN Index_Read 0–1080 Indexofthecachememoryofthe1stdatumofthedatablock,
whichisprovidedbythebuscoupler
Index_Write 0–1080 Indexofthecachememoryofthe1stdatumofthedatablock,
whichwastakenoverbythebuscoupler
Writevalue1 2bytes
Writevalue2 2bytes
Writevalue3 2bytes
Writevalue3 2bytes
IndexOUT Thedatacontaintheinformationfromwhichindexofthecachememorymasterdataaresentordatafromthecache
memoryofthebuscouplershallberequested/read.
IndexIN Thedatacontainthemirroredinformationwhichbuscouplerdataareprovidedbythemasterorwhichdataweretaken
overbythebuscoupler.
Themultiplexmodulesaresupportedbyafunctionmoduleinthe“KSVARIOEngineeringSet”-->FB108(seechapter
“FunctionblocksforSimaticS7”).
preliminary 14 9499-040-69711
.4Parametertransmissionviaparameterchannelin DP-V0
Forparametertransmission,a"parameterchannel"fortransparentdataexchangeindependentoftheselectedprocess
dataisavailable,wherebyallpossibleprotocolaccessmodesaresupported(singleorblockaccess,integerorrealdata
format).Communicationtothecontrolleristransparent,i.e.theuserhimselfisresponsibleformonitoringofvalue
ranges,operatingmodes(remote/local)etc.
Theparameterchannelisdesignedforhigherdataquantitieswithlowrequirementsonthetransferspeed.This
messageisprovidedbycyclicprocessdataexchange(alsoDP-V0(=standard)operation).
Parameter
channel
Accesstoprocess,parameterandconfigurationdataisviatheparameterchannel.Thesedataaretransmittedover
severalcyclesonrequest.
TheusercansetuptheparameterchanneltransmissionbyselectingmoduleA.1inhisPROFIBUSconfiguration.
Configurationisviatherelevantbusconfigurationtoolofthebusmaster.
ModuleeA.1 Generalparameter channel:1)
Parameterchannel
Read Numberofbytes Write Numberofbytes
Replydata 8 Requesteddata 8
9499-040-69711 15 preliminary
channel
Fig.: 1 Parameterchannelschematicdiagram
1) Please,notethatconsistentdatatransferisnecessary!
4.1 Messageelements
Anexplanationofseveraltermsusedintheparameterchannelprotocolisgivenbelow:f
Element Description
ID Telegramtypeidentification
ID1 Dataformatoftransmittedorreceiveddata
Rd.Cnt Numberofdatatoberead
Adr.High Highbytestartaddress
Adr.Low Lowbytestartaddress
Cnt.Real Numberofrealdatatobewritten
Cnt.Int Numberofintegerdatatobewritten
ID
ElementIDidentifiesthetelegramtype: ID=0x10(16dez)=starttelegram
ID=0x68(104dez)=datatelegram
ID=0x16(22dez)=endtelegram
ID1
ElementID1definesthedataformat: ID1=0 =integer
ID1=1,3 =real
ID1=2 =singlecharacters(char)
ID1=4 =charactersincompactformat
Integer(0)
format
Dataaretransmittedas2integerbytesinthedatatelegram.Thestartaddressdeterminesifthesedataareinteger,
FixPoint1,FixPoint2orFixPoint3values.Astartaddressinthefloataddressrangeisconvertedintotherelevantinteger
range.
Real(1,3)
format
Dataaretransmittedas4realbytesinthedatatelegram.Unlessthedefinedstartaddressisintherealaddressrange,
itisconvertedintotherelevantrealrange.
Character(2)
format
Dataaretransmittedas1characterbyteinthedatatelegram.Unlessthedefinedstartaddressisintheinteger
addressrange,itisconvertedintotherelevantintegerrange.
Compact
character(4)
format
Dataaretransmittedas4characterbytes inthedatatelegram.Unlessthedefinedstartaddressisintheinteger
addressrange,itisconvertedintotherelevantintegerrange.Unuseddigitsinthedatatelegramarefilledwithvalue
0x00.
Rd.Cnt Rd.Cntdefinesthenumberofdataintheselectedformat(ID1)toberead.
gForthispurpose,dataCnt.RealandCnt.Intmustbezero.
Adr.High/
Adr.Low
FieldsAdr.HighandAdr.Lowdefinethestartaddressoftransmitteddata.Theaddressissplitintoahighbyteanda
lowbyte.
Theaddressdirectoryisdividedintovariousareas.E.g.bitD15determines,ifavalueisofthefloatorofthe
integer/fixpointtype.
Theaddresssurveyisgivenintheannexanddetailledindocument:“ParameterTableKSVario”.
Cnt.Real Specifiedvalueforthenumberofrealvalues(ID1=1,3)tobewritten.ThevalueforCnt.Intmustbe0.
Cnt.Int Specifiedvalueforthenumberofintegervalues(ID1=0,2,4)tobewritten.ThevalueforCnt.Realmustbe0.
preliminary 16 9499-040-69711
4.2 Generaltelegramstructure
Fortransmissionoftherequiredparametersviaan8-bytedatawindow,anaccessiscomposedofstart,dataandend
telegram.Thestructureofmessagestransmittedbythemasterisshownbelow.
gPlease,notethatconsistentdatatransmissionofthe8bytesfortheparameterchannelisnecessary.
Starttelegram qStarttelegramwithdataformat,startaddressandnumberofdatatobetransmitted
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
ID ID1 Rd.Cnt Adr.High Adr.Low 0 Cnt.Real Cnt.Int
Datatelegram qndatablockswiththetransmitteddata
Datatelegramstructure:
a)TransmissionofREALvalues(ID1=1,3)
Realformat
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
ID Count Float
b)Transmissionofintegervalues(ID1=0)
Integerformat
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
ID Count Integer
c)Transmissionofcharvalues(ID1=2)
Character
format
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
ID Count Char
d)Transmissionoffourcharacter(ID1=4)
Stringformat
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
ID Count Char Char+1 Char+2 Char+3
ThebytesequenceforrealandintegerformatsisaccordingtouserparametersettingasMotorola
(default)oerIntelformat.Forthis,seealsodocumentPROFIBUS-DPProcessdata”(9499-040-66618)
Endtelegram qanendblock,providestheoperationresult
Endtelegramstructure:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
ID Result
SignificationofResult
0 OK
2 Faultyaddress
3 Invalidvalue
4 Bufferoverflow
Readingorwritingarealwaysstartedbythemaster.IfthevaluesofCnt.RealorCnt.Intare ¹0,awriteservice,
otherwise,areadservice,isstarted.Forthelatter,avalueRd.Cnt ¹0isaprerequisite.
9499-040-69711 17 preliminary
4.3 Datawritesequence
qStarttelegram:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Mastersends: 0x10 ID1 0 Adr.High. Adr.Low 0 Cnt.Real1) Cnt.Int1)
Controller
replies:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
0x10
qDatatelegrams:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x68 Count Value
Controller Byte0 Byte1 Byte2 Byte3 Byte4-7
replies: 0x68 Count
WithCount=1,thefirstvalueissent,countismirroredbyKSVARIO(1 £Count £Cnt.RealorCnt.Int).
qEndtelegram:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x16
Controller Byte0 Byte1 Byte2-3 Byte4-7
replies: 0x16 Result
4.4 Datareadsequence
qStarttelegram:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Mastersends: 0x10 ID1 Rd.Cnt Adr.High Adr.Low 0 0 0
Controller
replies:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
0x10 Cnt.Real1) Cnt.Int1)
qDatatelegrams:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x68 Count
Controller Byte0 Byte1 Byte2 Byte3 Byte4-7
replies: 0x68 Count Value
WithCount=1,thefirstvalueisrequested,Countismirroredbythecontrollerforflowcontrolandthevalueisalso
sent( 1 £Count £Cnt.RealorCnt.Int).
qEndtelegram:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x16
Controller Byte0 Byte1 Byte2-3 Byte4-7
replies: 0x16 Result
preliminary 18 9499-040-69711
1) Selection:onlyoneofvaluesCnt.RealandCnt.Intmaybef ¹0.
4.5 Examples
4.5.1 Example1:singleaccess,read,integervalue
Proportionalband1ofcontrolchannel1(Pb1)ofthecontrollershallbereadoutinFixPoint1format.
Address=0x4000(offsetforFixPoint1)+0x400(channel1)+0x96(Pb1)= 0x4496
Starttelegram:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Mastersends: 0x10 0x0 0x1 0x44 0x96 0 0 0
Controller
replies:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
0x10 0 1
Datatelegram1:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x68 1
Controller Byte0 Byte1 Byte2 Byte3 Byte4-7
replies: 0x68 1 Value
Endtelegram:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x16
Controller Byte0 Byte1 Byte2-3 Byte4-7
replies: 0x16 0
4.5.2 Example2: blockaccess,read,floatvalue
Theparametersoftheset-pointsettingforcontrolchannel2(SPLo,SPHi,SP2,rSP )shallbereadinrealformat.
Address=0x8000(offsetforfloat)+0xC00(channel2)+0x69x2(SPLo)= 0x8CD2, 4values.
Starttelegram:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Mastersends: 0x10 0x1 0x4 0x8C 0xD2 0 0 0
Controller
replies:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
0x10 4 0
9499-040-69711 19 preliminary
Datatelegram1:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x68 1
Controller Byte0 Byte1 Byte2 Byte3 Byte4-7
replies: 0x68 1 Value
Datatelegram4:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x68 4
Controller Byte0 Byte1 Byte2 Byte3 Byte4-7
replies: 0x68 4 Value
Endtelegram:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x16
Controller Byte0 Byte1 Byte2-3 Byte4-7
replies: 0x16 0
4.5.3 Example3: singleaccess,write,integervalue
Writederivativetime1ofcontrolchannel30 (td1)inintegerformat
Address=0x0000(offsetforinteger)+0x3E00(channel30)+0x9A(td1)= 0x3E9A
Starttelegram:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Mastersends: 0x10 0x0 0x0 0x3E 0x9A 0 0 1
Controller
replies:
Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
0x10
Datatelegram1:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x68 1 Value
Controller Byte0 Byte1 Byte2 Byte3 Byte4-7
replies: 0x68 1
Endtelegram:
Byte0 Byte1 Byte2 Byte3 Byte4-7
Mastersends: 0x16
Controller Byte0 Byte1 Byte2-3 Byte4-7
replies: 0x16 0
preliminary 20 9499-040-69711
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44

West Control Solutions BK DP/V1 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI