Sie sind auf Seite 1von 23

PROTOCOL DOCUMENT

70022-0115-XX 04/2007

PowerLogicION6200 Serial Communications Protocol and ION / Modbus Register Map


ThisdocumentexplainstheModbusprotocolontheION6200meter. TheION6200meterperformsModbusRTUcommunicationsaccordingtothe ModiconStandard.Refertowww.modicon.comforModbus/TCPstandardand ModiconModbusSerialCommunicationsProtocoldocumentation. ThisdocumentdescribestheModbuscommunicationsprotocolemployedbythe meterandhowtopassinformationintoandoutofthemeterinaModbusnetwork. ItisassumedthatthereaderisfamiliarwiththeModbusprotocolandserial communicationsingeneral.

In This Document
Purpose of the Communications Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Modbus Implementation on the Meter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 ModesofTransmission ................................................. 3 DescriptionoftheModbusPacketStructure ............................... 3 ExceptionResponses ................................................... 5 BroadcastPackets ...................................................... 5 Packet Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Function03:ReadHoldingRegisters..................................... 6 Function16:PresetMultipleRegisters .................................... 7 InvalidRegisters....................................................... 8 Meter Modbus Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 MeteredParameters .................................................... 9 ControlParameters ................................................... 10 SetupParameters ..................................................... 11
Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. 2007 Schneider Electric. All rights reserved. www.powerlogic.com

Appendix A: CRC-16 Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Procedure ........................................................... 12 PseudocodeForCRC16Generation ..................................... 16 Appendix B: ION / Modbus Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 ReadWriteConfigurationMap........................................ 21 ReadWriteControlMap .............................................. 22

Purpose of the Communications Protocol

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Purpose of the Communications Protocol


TheION6200meterModbuscommunicationsprotocolallowsmeasureddataand setupinformationtobeefficientlytransferredbetweenaModbusmasterstation andameter.Thisincludes: Interrogationofalldatameasuredbythemeter Configurationandinterrogationofthemeter Interrogationandcontrolofthemetersdigitaloutputs Clearingofaccumulateddemandandenergyparameters

Page 2

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Modbus Implementation on the Meter

Modbus Implementation on the Meter


Ground Rules
ThemeteriscapableofcommunicatingviatheRS485serialcommunication standard.TheRS485mediumallowsformultipledevicesonamultidrop network. ThepointsbelowfollowtheModiconstandard: Allcommunicationsonthecommunicationsloopconformstoamaster/slave scheme.Inthisscheme,informationanddataistransferredbetweenaModbus masterdeviceandupto32slavemonitoringdevices(more,ifrepeatersare used). Themasterinitiatesandcontrolsallinformationtransferonthecommunications loop. Aslavedeviceneverinitiatesacommunicationssequence. Allcommunicationsactivityontheloopoccursintheformofpackets.A packetisaserialstringof8bitbytes.Themaximumnumberofbytescontained withinonepacketis255. Allpacketstransmittedbythemasterarerequests.Allpacketstransmittedbya slavedeviceareresponses. Atmostoneslavecanrespondtoasinglerequestfromamaster.

Modes of Transmission
TheModbusprotocolusesASCIIandRTUmodesoftransmission.Themeter supportsonlytheRTUmodeoftransmission,with8databits,noparity,andone stopbit.

Description of the Modbus Packet Structure


EveryModbuspacketconsistsoffourfields: SlaveAddressField FunctionField DataField ErrorCheckField(Checksum)

Slave Address Field


TheslaveaddressfieldofaModbuspacketisonebyteinlengthanduniquely identifiestheslavedeviceinvolvedinthetransaction.Validaddressesrange between1and247.Aslavedeviceperformsthecommandspecifiedinthepacket whenitreceivesarequestpacketwiththeslaveaddressfieldmatchingitsown address.Aresponsepacketgeneratedbytheslavehasthesamevalueintheslave addressfield.

2007 Schneider Electric. All rights reserved.

Page 3

Description of the Modbus Packet Structure

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Function Field
ThefunctionfieldofaModbusrequestpacketisonebyteinlengthandtellsthe addressedslavewhichfunctiontoperform.Similarly,thefunctionfieldofa responsepackettellsthemasterwhatfunctiontheaddressedslavehasjust performed.ThetablebelowliststheModbusfunctionssupportedbythemeter.
Function
03 16

Meaning
Read Holding registers Preset Multiple registers

Action
Obtains the current value in one or more holding registers of the meter. Places specific values into a series of consecutive holding registers of the meter. The holding registers that can be written to the meter are shown in the register map.

Data Field
ThedatafieldofaModbusrequestisofvariablelength,anddependsuponthe function.Thisfieldcontainsinformationrequiredbytheslavedevicetoperform thecommandspecifiedinarequestpacketordatabeingpassedbackbytheslave deviceinaresponsepacket. Datainthisfieldarecontainedin16bitregisters.Registersaretransmittedinthe orderofhighorderbytefirst,loworderbytesecond.Thisorderingofbytesis calledBigEndianformat. Example: A16bitregistercontainsthevalue12ABHex.Thisregisteristransmitted: Highorderbyte=12Hex Loworderbyte=ABHex Thisregisteristransmittedintheorder12AB.

Error Check Field (Checksum)


Thechecksumfieldletsthereceivingdevicedetermineifapacketiscorrupted withtransmissionerrors.InModbusRTUmode,a16bitCyclicRedundancy Check(CRC16)isused. Thesendingdevicecalculatesa16bitvalue,basedoneverybyteinthepacket, usingtheCRC16algorithm.Thecalculatedvalueisinsertedintheerrorcheck field. Thereceivingdeviceperformsthecalculation,withouttheerrorcheckfield,onthe entirepacketitreceives.Theresultingvalueiscomparedtotheerrorcheckfield. Transmissionerrorsoccurwhenthecalculatedchecksumisnotequaltothe checksumstoredintheincomingpacket.Thereceivingdeviceignoresabad packet. TheCRC16algorithmisdetailedinappendixAofthisdocument.

Page 4

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Exception Responses

Exception Responses
IfaModbusmasterdevicesendsaninvalidcommandtoameterorattemptsto readaninvalidholdingregister,anexceptionresponseisgenerated.Theexception responsefollowsthestandardpacketformat.Thehighorderbitofthefunction codeinanexceptionresponseissetto 1. Thedatafieldofanexceptionresponsecontainstheexceptionerrorcode.Thetable belowdescribestheexceptioncodessupportedbythemeterandthepossible causes.
Code
01

Name
Illegal Function

Meaning
An invalid command is contained in the function field of the request packet. The meter only supports Modbus functions 3 and 16. The address referenced in the data field is an invalid address for the specified function. This could also indicate that the registers requested are not within the valid register range of the meter. The value referenced in the data field is not allowed for the referenced register on the meter.

02

Illegal Address

03

Illegal Value

Broadcast Packets
TheION6200Modbusprotocolsupportsbroadcastrequestpackets.Thepurpose ofabroadcastrequestpacketistoallowallslavedevicestoreceivethesame commandfromthemasterstation. Abroadcastrequestpacketisthesameasanormalrequestpacket,excepttheslave addressfieldissettozero(0).AllModbusslavedevicesreceiveandexecutea broadcastrequestcommand,butnodevicewillrespond. ThePresetMultipleregisterscommand(function16)istheonlycommand supportingbroadcastpackets.

2007 Schneider Electric. All rights reserved.

Page 5

Packet Communications

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Packet Communications
ThissectionillustratestheModbusfunctionssupportedbythemeter.

Function 03: Read Holding Registers


Toreadmeterparametervalues,amasterstationmustsendtheslavedevicea ReadHoldingregistersrequestpacket. TheReadHoldingregistersrequestpacketspecifiesastartregisterandanumber ofregisterstoread.Thestartregisterisnumberedfromzero(40001=zero,40002= one,etc.). Themeterrespondswithapacketcontainingthevaluesoftheregistersinthe rangedefinedintherequest.

Read Holding Registers


Read Registers Request Packet (master station to meter)
Unit ID/Slave Address (1 byte) 03 (Function code) (1byte) Start Register (sr) (2 bytes) # of Registers to Read (nr) (2 bytes) CRC Checksum

Read Registers Response Packet (meter to master station)


Unit ID/Slave Address (1 byte) 03 (Function code) (1 byte) Byte Count (2 x nr) (1 byte) First Register in range (2 bytes) Second Register in range (2 bytes) ... CRC Checksum (2 bytes)

Example: Ameterin4wireWYEvoltsmodeisconfiguredasaModbusslavedevicewith slaveaddress100.Themasterstationrequeststoreadrealtimevoltsonallthree phases(A,B,C).ThesethreeparametersareavailableinModbusregisters40100, 40101and40102,withauserprogrammablescalingfactor(default10).In accordancewiththeModbusprotocol,register40100isnumberedas99when transmitted.Therequestmustread3registersstartingat99. Slave address: 100 = 64 (hex)
Request Packet Slave
64*

Start register 99= 0063 (hex)

Function
03 00

Start Register
63 00

# of Registers (3)
03 FC

CRC Checksum
20

Response Packet Slave


64

Function
03

Byte Count
06 2E

Register 1
CE 2E

Register 2
E8 2F

Register 3
13 58

CRC Checksum
0D

Page 6

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Function 16: Preset Multiple Registers

Themasterstationretrievesthedatafromtheresponse: Register40100:2ECE(hex)=11982(scaled:1198.2) Register40101:2EE8(hex)=12008(scaled:1200.8) Register40102:2F13(hex)=12051(scaled:1205.1)


* Thevaluesshowninillustratedpacketsarerepresentedinhexadecimalformat.

Function 16: Preset Multiple Registers


ThePresetMultipleregisterscommandpacketallowsaModbusmasterto configureorcontrolthemeter. APresetMultipleregistersdatafieldrequestpacketcontainsadefinitionofa rangeofregisterstowriteto,andthevaluesthatwritetothoseregisters. Themeterrespondswithapacketindicatingthatawritewasperformedtothe rangeofregistersspecifiedintherequest. Thetablebelow,showsthePresetMultipleregistersrequestandresponsepacket formats,andanexampletransaction.

Preset Multiple Registers


Preset Registers Request Packet (master station to meter)
Unit ID/Slave Address (1 byte) 16 (Function code) (1byte) Start Register (sr) (2 bytes) # of Registers to Write (nr) (2 bytes) Byte Count (2 x nr) (1 byte) First Register in range (2 bytes) Second Register in range (2 bytes) ... CRC Checksum (2 bytes)

Preset Registers Response Packet (meter to master station)


Unit ID/Slave Address (1 byte) 16 (Function code) (1 byte) Start Register (sr) (2 bytes) # of Registers Written (nr) (2 bytes) CRC Checksum (2 bytes)

2007 Schneider Electric. All rights reserved.

Page 7

Invalid Registers

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Example: AmeterisconfiguredasaModbusslavedevicewithslaveaddress200.Themaster stationrequeststosetthePTratioto1200:120.Fromtheregistermap,thePower MeterPTPrimaryandSecondarysetupregistersareModbusregisters44002and 44003.Register44002isnumbered4001whentransmitted.Therequestmustwrite tworegistersstartingat4001. Slaveaddress:200=C8(hex) Value1:1200=04B0(hex) Startregister4001=0FA1(hex) Value2:120=0078(hex)

Request Packet Slave


C8*

Function
10

Start Register
0F A1

# of Registers (4)
00 02

Byte Count
04

Register 1
04 B0

Register 2
00 78

CRC Checksum
EE 3F

Response Packet Slave


C8

Function
10 0F

Start Register
A1 00

# of Registers (4)
02 01

CRC Checksum
E0

Thevaluesshowninillustratedpacketsarerepresentedinhexadecimalformat.

Invalid Registers
InthemeterModbusregistermap,therearereservedsections.Forexample, registersbefore40500arereserved. Whenareservedregisterisread,thevaluereturnedisFFFF(hex).Whenareserved registeriswritten,thevaluesuppliedisnotstored.Themeterdoesnotrejectthe request.

Page 8

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Meter Modbus Registers

Meter Modbus Registers


TheION6200metersupportsModbusHoldingregisters(addressrange4xxxx). Therearethreetypesofparameters: MeteredParameters ExternalControl/ResetParameters SetupParameters EnumeratedSetupParameters NumericBoundedParameters

Metered Parameters
AllthevaluesmeasuredbythemeterareavailablethroughtheModbusprotocol. Themajorityoftheseparametershavefixedscaling.However,thescalingof voltage,currentandpowervaluesisconfigurableviaanumericsetupregister. Therearethreeblocks.Factoryregisterssuchasserialnumber,firmwarerevision, etc.arelocatedbetweenaddresses40001and40099.Measuredquantitiessuchas voltage,current,powerandenergyarelocatedbetweenaddresses40100and 40499.TheregisteraddressesforthefirstFeaturePackstartat40500;theregister addressesforthesecondFeaturePackstartat40600.ConsulttheFeaturePack documentationforthecontentsoftheseregisters. TheION6200supports4dataformats: Unsigned16bitIntegerFormat Signed16bitIntegerFormat Unsigned32bitIntegerFormat Signed32bitIntegerFormat

16-bit Integer Format


UnsignedandSigned16bitIntegerFormatsarethesimplestformats.Iftheformat isunsignedthevaluerangefortheoutputregistersis0to65535.Iftheformatis signed,thevaluerangeis32767to+32767(twoscomplement).

32-bit Integer Format


Toaccommodatevaluesthatcanreachbeyondthe16bitlimitation,theION6200 provides32bitintegerformat.InSignedandUnsigned32bitIntegerFormats,the 32bitvalueissplitintotwoconsecutive16bitregisters.Thefirstregisteristhe loworderwordandthesecondregisteristhehighorderword. Tointerpretthevalue,takethesecondregister(highorderword)andmultiplyby 65536.Thenaddthefirstregister(loworderword).Theformulais: value=(secondregisterx65536)+firstregister

2007 Schneider Electric. All rights reserved.

Page 9

Control Parameters

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

InUnsigned32bitIntegerFormat,boththehighorderandloworderregistersare unsigned16bitintegers. Example: Value12345678ispassedinunsigned32bitintegerformat: 12345678=00BC614EHex FirstRegister=614EHex(unsigned)=24910 SecondRegister=00BCHex(unsigned)=188 value=(188x65536)+24910=12345678 InSigned32bitIntegerFormat,thehighorderregisterisasigned16bitnumber, buttheloworderregisterisunsigned. Example: Value12345678ispassedinsigned32bitintegerformat: 12345678=FF439EB2Hex FirstRegister=9EB2Hex(unsigned)=40626 SecondRegister=FF43Hex(signed)=189 value=(189x65536)+40626=12345678

Control Parameters
Therearetwotypesofcontrolparametersinthemeterwhichcanbeaccessedvia Modbus.ThissectiondescribeshowtheparametersappeartotheModbus protocol.Thetwocontrolparameterstypesare: DigitalOutputControlregisters AccumulationResetregisters

Digital Output Control


Registers42004and42005areavailabletoremotelycontrolthemetersdigital outputs.Anonzerovaluewrittentotheseregistersplacesthecorresponding digitaloutputinanassertedstate.Conversely,alogiczerowrittentooneofthese registersdeassertstheoutput. TousetheReadWriteControlMap,itisrecommendedthatyourION6200meter hasfirmwareversion202orlater.FordetailedinformationcontactTechnical Services.

Reset Accumulation
Registers42001to42003areavailabletoremotelyresetenergyaccumulationand maximumdemandvalues.Writinganyvaluetooneoftheseregisterscausesthe correspondingparametertoreset.Ifread,theseregisterswillreturnanerror.

Page 10

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Setup Parameters

Setup Parameters
MeterscanbeconfiguredremotelyviaModbuscommunications.Registers4400to 44029offerenumeratedornumericparameters.

Enumerated Setup
Enumeratedregistersareusedwherealistofoptionsareavailable.Forexample, theVoltsModeregisterhasfiveoptions:4WWYE,DELTA,SINGLE,DEMO,3W WYEandDELTADIRECT.Theseoptionsarerepresentedbyanumeric relationship;forexample,thefollowingrelationshipisdefinedfortheVoltsMode register: 0=4WWYE 1=DELTA 2=SINGLE 3=DEMO 4=3WWYE 5=DELTADIRECT Forexample,tosetthemeterto3WWYEmode,youwritea4intotheVoltsMode setupregister(44001). Seetheregistermapfordetails.

Numeric Setup
Thenumericsetupparametersinclude:PT/CTratios,demandintervals,digital outputpulsevalues,unitID,password,andRTSdelay. AllION6200numericparametersarerepresentedinUnsigned16bitInteger Format.Seetheregistermapfordetails.Notethatallparametershavebounds.For example,unitIDsmustbeintherange1to247;anyattempttowriteavalue outsidethisrangewillfail. SeetheintroductiontoAppendixBforadiscussiononscaling.

2007 Schneider Electric. All rights reserved.

Page 11

Appendix A: CRC-16 Calculation

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Appendix A: CRC-16 Calculation


ThisappendixdescribestheprocedureforobtainingtheCRC16errorcheckfield foraModbusRTUframe.

Procedure
Aframecanbeconsideredasacontinuous,serialstreamofbinarydata(onesand zeros).The16bitchecksumisobtainedbymultiplyingtheserialdatastreamby 216(10000000000000000)andthendividingitbythegeneratorpolynomial x16+x15+x2+1,whichcanbeexpressedasthe16bitbinarynumber 11000000000000101.Thequotientisignoredandthe16bitremainderisthe checksum,whichisappendedtotheendoftheframe. IncalculatingtheCRC,allarithmeticoperations(additionsandsubtractions)are performedusingMODULOTWO,orEXCLUSIVEORoperation.Astepbystep exampleshowshowtoobtainthechecksumforasimpleModbusRTUframe. StepsforgeneratingtheCRC16checksum: 1. DroptheMSB(MostSignificantBit)ofthegeneratorpolynomialandreversing thebitsequencetoformanewpolynomial.Thisyieldsthebinarynumber1010 000000000001,orA001(hex). Loada16bitregisterwithinitialvalueFFFF(hex). ExclusiveORthefirstdatabytewiththeloworderbyteofthe16bitregister. Storetheresultinthe16bitregister. Shiftthe16bitregisteronebittotheright. Ifthebitshiftedouttotherightisone,ExclusiveORthe16bitregisterwith thenewgeneratorpolynomial,storetheresultinthe16bitregisters.Returnto step4. Ifthebitshiftedouttotherightiszero,returntostep4. Repeatsteps4and5until8shiftshavebeenperformed. ExclusiveORthenextdatabytewiththe16bitregister. Repeatsteps4through7untilallbytesoftheframeareExclusiveOredwiththe 16bitregisterandshifted8times.

2. 3. 4. 5.

6. 7. 8. 9.

10. Thecontentofthe16bitregisteristhechecksumandisappendedtotheendof theframe.

Page 12

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Procedure

Example: AModbusmasternoderequeststoreadregister40011fromaModbusslavewith address100(64hex).AspertheModbusprotocol,readingregister40011means usingtheREADHOLDINGREGISTERSfunction(03hex)withstartregister10. Initialframe:


Slave Address
64 03

Function
00

Start Register
0A 00

# of Registers
01

Error Check (CRC-16)


To be calculated

Step
2 3 4 5a 4 4 4 5a 4 4 4 4 5a

Byte
1

Bits Shifted

Action
Initial Value Load First Data Byte Exclusive OR

16-Bit Register
1111 1111 1111 1111 0000 0000 0110 0100 1111 1111 1001 1011 0111 1111 1100 1101 1010 0000 0000 0001 1101 1111 1100 1100 0110 1111 1110 0110 0011 0111 1111 0011 0001 1011 1111 1001 1010 0000 0000 0001 1011 1011 1111 1000 0101 1101 1111 1100 0010 1110 1111 1110 0001 0111 0111 1111 0000 1011 1011 1111 1010 0000 0000 0001 1010 1011 1011 1110 0000 0000 0000 0011 1010 1011 1011 1101 0101 0101 1101 1110 1010 0000 0000 0001 1111 0101 1101 1111 0111 1010 1110 1111 1010 0000 0000 0001 1101 1010 1110 1110 0110 1101 0111 0111 0011 0110 1011 1011 1010 0000 0000 0001 1001 0110 1011 1010 0 1 1 1 0 0 0 1 0 0 1 1

Bit Shifted Out

Shift 1 bit to the Right Generator Polynomial Exclusive OR

2 3 4

Shift 1 bit to the Right Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

5 6 7 8

Shift 1 bit to the Right Shift 1 bit to the Right Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

7 4 5a 4 5a 4 4 5a

Load 2nd Data Byte Exclusive OR 1 Shift 1 bit to the Right Generator Polynomial Exclusive OR 2 Shift 1 bit to the Right Generator Polynomial Exclusive OR 3 4 Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

2007 Schneider Electric. All rights reserved.

Page 13

Procedure

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Step
4 4 5a 4 5a 4 7 4 5a 4 4 4 5a 4 5a 4 4 5a 4 5a 7 4 4 5a 4 5a 4

Byte
5 6

Bits Shifted

Action
Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

16-Bit Register
0100 1011 0101 1101 0010 0101 1010 1110 1010 0000 0000 0001 1000 0101 1010 1111 0100 0010 1101 0111 1010 0000 0000 0001 1110 0010 1101 0110 0111 0001 0110 1011 0000 0000 0000 0000 0111 0001 0110 1011 0011 1000 1011 0101 1010 0000 0000 0001 1001 1000 1011 0100 0100 1100 0101 1010 0010 0110 0010 1101 0001 0011 0001 0110 1010 0000 0000 0001 1011 0011 0001 0111 0101 1001 1000 1011 1010 0000 0000 0001 1111 1001 1000 1010 0111 1100 1100 0101 0011 1110 0110 0010 1010 0000 0000 0001 1001 1110 0110 0011 0100 1111 0011 0001 1010 0000 0000 0001 1110 1111 0011 0000 0000 0000 0000 1010 1110 1111 0011 1010 0111 0111 1001 1101 0011 1011 1100 1110 1010 0000 0000 0001 1001 1011 1100 1111 0100 1101 1110 0111 1010 0000 0000 0001 1110 1101 1110 0110 0111 0110 1111 0011 0 1 0 1 1 0 1 1 0 0 1 1 0 1 0 1

Bit Shifted Out

Shift 1 bit to the Right Generator Polynomial Exclusive OR

8 3 1

Shift 1 bit to the Right Load 3rd Data Byte Exclusive OR Shift 1 bit to the Right Generator Polynomial Exclusive OR

2 3 4

Shift 1 bit to the Right Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

Shift 1 bit to the Right Generator Polynomial Exclusive OR

6 7

Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

Shift 1 bit to the Right Generator Polynomial Exclusive OR

4 1 2

Load 4th Data Byte Exclusive OR Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR 3 Shift 1 bit to the Right Generator Polynomial Exclusive OR 4 Shift 1 bit to the Right

Page 14

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Procedure

Step
4 5a 4 4 4 7 4 5a 4 4 5a 4 4 4 5a 4 4 7 4 4 5a 4 5a 4 5a 4 4

Byte
5

Bits Shifted

Action
Shift 1 bit to the Right Generator Polynomial Exclusive OR

16-Bit Register
0011 1011 0111 1001 1010 0000 0000 0001 1001 1011 0111 1000 0100 1101 1011 1100 0010 0110 1101 1110 0001 0011 0110 1111 0000 0000 0000 0000 0001 0011 0110 1111 0000 1001 1011 0111 1010 0000 0000 0001 1010 1001 1011 0110 0101 0100 1101 1011 0010 1010 0110 1101 1010 0000 0000 0001 1000 1010 0110 1100 0100 0101 0011 0110 0010 0010 1001 1011 0001 0001 0100 1101 1010 0000 0000 0001 1011 0001 0100 1100 0101 1000 1010 0110 0010 1100 0101 0011 0000 0000 0000 0001 0010 1100 0101 0010 0001 0110 0010 1001 0000 1011 0001 0100 1010 0000 0000 0001 1010 1011 0001 0101 0101 0101 1000 1010 1010 0000 0000 0001 1111 0101 1000 1011 0111 1010 1100 0101 1010 0000 0000 0001 1101 1010 1100 0100 0110 1101 0110 0010 0011 0110 1011 0001 0 0 1 1 0 1 0 0 0 0 1 0 1 1 0 0 0 1

Bit Shifted Out

6 7 8 5 1

Shift 1 bit to the Right Shift 1 bit to the Right Shift 1 bit to the Right Load 5th Data Byte Exclusive OR Shift 1 bit to the Right Generator Polynomial Exclusive OR

2 3

Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

4 5 6

Shift 1 bit to the Right Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

7 8 6 1 2

Shift 1 bit to the Right Shift 1 bit to the Right Load 6th Data Byte Exclusive OR Shift 1 bit to the Right Shift 1 bit to the Right Generator Polynomial Exclusive OR

Shift 1 bit to the Right Generator Polynomial Exclusive OR

Shift 1 bit to the Right Generator Polynomial Exclusive OR

5 6

Shift 1 bit to the Right Shift 1 bit to the Right

2007 Schneider Electric. All rights reserved.

Page 15

Pseudocode For CRC-16 Generation

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Step
4 5a 4 5a

Byte
7

Bits Shifted

Action
Shift 1 bit to the Right Generator Polynomial Exclusive OR

16-Bit Register
0001 1011 0101 1000 1010 0000 0000 0001 1011 1011 0101 1001 0101 1101 1010 1100 1010 0000 0000 0001 1111 1101 1011 1100 Hex FD Hex AD 1 1

Bit Shifted Out

Shift 1 bit to the Right Generator Polynomial Exclusive OR RESULT

TheframecompletedwiththeCRC16checksumisasfollows:
Slave Address
64

Function
03 00

Start Register
0A 00

# of Registers
01 AD

Error Check (CRC-16)


FD

Pseudocode For CRC-16 Generation


Forusersfamiliarwithcomputerprogramming,thefollowingisthepseudocode forcalculatingthe16bitCyclicRedundancyCheck. Initializea16bitregistertoFFFFHex InitializethegeneratorpolynomialtoA001Hex FORn=1to#ofbytesinpacket BEGIN XORnthdatabytewiththe16bitregister FORbits_shifted=1to8 BEGIN SHIFT1bittotheright IF(bitshiftedoutEQUAL1) XORgeneratorpolynomialwiththe16bitregister andstoreresultinthe16bitregister END END Theresultant16bitregistercontainstheCRC16checksum.

Page 16

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Appendix B: ION / Modbus Map

Appendix B: ION / Modbus Map


ThisappendixcontainstheION/ModbusregistermapfortheION6200meter. InthefollowingModbusmapmanynumericmeasurementsarescaled.Scalingis eitherfixedorprogrammable. Foranexampleoffixedscaling,supposethatthefrequencyregister40115contains thevalue5987.Sincethisregisterisscaledbyx100theactualmeasuredvalueis 59.87Hz. Foranexampleofprogrammablescaling,supposethatthemeterVlnavalueis 480.1.IfthePVSscalingissettox10(default),thenregister40100willcontaina valueof4801.IfthePVSscalingissetto0.1,thenregister40100willcontaina valueof48.Themetersupportsprogrammablescalingforvoltage(PVS),current (PCS),neutralcurrent(PnS),andpower(PPS).
Modbus Addr
40001 40003 40004 40005 40007 40008 40009 40011 40013 40014 40015 40016 40099 40100 40101 40102 40103 40104 40105 40106 40107 40108 40109 40110 40111

Measurement (ION6200 Megawatt meters)


serial number firmware revision oem identification meter options # meter power ups # peak demand resets meter on-time # flash erase cycles device type Reserved demand interval down counter Reserved kVln a kVln b kVln c kVln avg kVll ab kVll bc kVll ca kVll avg Ia Ib Ic I avg

Measurement (all other ION6200 meters)


serial number firmware revision oem identification meter options # meter power ups # peak demand resets meter on-time # flash erase cycles device type Reserved demand interval down counter Reserved Vln a Vln b Vln c Vln avg Vll ab Vll bc Vll ca Vll avg Ia Ib Ic I avg

Format
UINT32 UINT16 UINT16 UINT32 UINT16 UINT16 UINT32 UINT32 UINT16

Scale
x1 x1 x1 x1 x1 x1 x1 x1 x1

Default Scale

Description
See note 1.

See note 2. See note 3.

See note 4.

See note 5.

UINT16

x1

UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16

PVS PVS PVS PVS PVS PVS PVS PVS PCS PCS PCS PCS

x10 x10 x10 x10 x10 x10 x10 x10 x10 x10 x10 x10

See notes 6 & 7. See note 6. See note 6. See note 6.

See note 8.

2007 Schneider Electric. All rights reserved.

Page 17

Appendix B: ION / Modbus Map

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Modbus Addr
40112 40113 40114 40115 40116 40117 40118 40119 40120 40121 40122 40123 40124 40125 40126 40127 40128 40129 40130 40131 40132 40133 40134 40135 40136 40137 40138 40140 40142 40144 40146 40148 40149 40150 40151 40152 40153 40154

Measurement (ION6200 Megawatt meters)


I demand I peak demand I4 Frequency PF sign total PF sign a PF sign b PF sign c MW total MVAR total MVA total MW a MW b MW c MVAR a MVAR b MVAR c MVA a MVA b MVA c MW demand MW peak demand MVAR demand MVA demand MVAR peak demand MVA peak demand MWh del MWh rec MVARh del MVARh rec MVAh del+rec V1 THD V2 THD V3 THD I1 THD I2 THD I3 THD I a demand

Measurement (all other ION6200 meters)


I demand I peak demand I4 Frequency PF sign total PF sign a PF sign b PF sign c kW total kVAR total kVA total kW a kW b kW c kVAR a kVAR b kVAR c kVA a kVA b kVA c kW demand kW peak demand kVAR demand kVA demand kVAR peak demand kVA peak demand kWh del kWh rec kVARh del kVARh rec kVAh del+rec V1 THD V2 THD V3 THD I1 THD I2 THD I3 THD I a demand

Format
UINT16 UINT16 UINT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 INT16 UINT32 UINT32 UINT32 UINT32 UINT32 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16 UINT16

Scale
PCS PCS PnS x100 x100 x100 x100 x100 PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS PPS x1 x1 x1 x1 x1 x10 x10 x10 x10 x10 x10 PCS

Default Scale
x10 x10 x10

Description

See note 9.

x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1

See note 10.

See note 11.

x10

Page 18

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Appendix B: ION / Modbus Map

Modbus Addr
40155 40156 40157 40158 40159 40160 40162 40164 40166 40168 40170 40172 40174 40176 40178 40180 40182 40184 40186 40188 40189 40499 40500 40700

Measurement (ION6200 Megawatt meters)


I b demand I c demand I a peak demand I b peak demand I c peak demand MWh a del MWh b del MWh c del MWh a rec MWh b rec MWh c rec MVARh a del MVARh b del MVARh c del MVARh a rec MVARh b rec MVARh c rec MVAh a MVAh b MVAh c Reserved Expansion, SnapOn 1, 25 regs Expansion, SnapOn 2, 25 regs

Measurement (all other ION6200 meters)


I b demand I c demand I a peak demand I b peak demand I c peak demand kWh a del kWh b del kWh c del kWh a rec kWh b rec kWh c rec kVARh a del kVARh b del kVARh c del kVARh a rec kVARh b rec kVARh c rec kVAh a kVAh b kVAh c Reserved Expansion, SnapOn 1, 25 regs Expansion, SnapOn 2, 25 regs

Format
UINT16 UINT16 UINT16 UINT16 UINT16 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32

Scale
PCS PCS PCS PCS PCS x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1

Default Scale
x10 x10 x10 x10 x10

Description

See note 11.

UINT16 UINT16

x1 x1

2007 Schneider Electric. All rights reserved.

Page 19

Appendix B: ION / Modbus Map

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Modbus Addr
41138 41140 41142 41144 41146 41160 41162 41164 41166 41168 41170 41172 41174 41176 41178 41180 41182 41184 41186 41188

Measurement (ION6200 Megawatt meters)


MWh del MWh rec MVARh del MVARh rec MVAh del+rec MWh a del MWh b del MWh c del MWh a rec MWh b rec MWh c rec MVARh a del MVARh b del MVARh c del MVARh a rec MVARh b rec MVARh c rec MVAh a MVAh b MVAh c

Measurement (all other ION6200 meters)


kWh del kWh rec kVARh del kVARh rec kVAh del+rec kWh a del kWh b del kWh c del kWh a rec kWh b rec kWh c rec kVARh a del kVARh b del kVARh c del kVARh a rec kVARh b rec kVARh c rec kVAh a kVAh b kVAh c

Format
UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32 UINT32

Scale
x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1 x1

Default Scale

Description

See note 12.

Page 20

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Read-Write Configuration Map

Read-Write Configuration Map


Modbus Addr
44000

Configuration Parameter (all ION6200 meters)


Configuration via display password

Format
UINT16

Scale
x1 0

Default
0 9999

Description

44001

Volts Mode

Enumerated

5= Delta direct

0 = 4W (4-Wire WYE) 1 = dELt (Delta) 2 = 2W (Single Phase) 3 = dEM (Demonstration) 4 = 3W (3-Wire WYE) 5 = dELd (Delta direct)

44002 44003 44004 44005 44006 44007 44008 44009 44010 44011 44012 44013 44014 44015 44016 44017 44018 44019 44021

PT Primary PT Secondary CT Primary CT Secondary V1 Polarity V2 Polarity V3 Polarity I1 Polarity I2 Polarity I3 Polarity Programmable Voltage Scale (PVS) Programmable Current Scale (PIS) Programmable Neutral Current Scale (PnS) Programmable Power Scale (PPS) Demand Sub Interval Demand #Sub Intervals Kt, Digital Output #1 Kt, Digital Output #2 Output Mode, Digital Output #1

UINT16 UINT16 UINT16 UINT16

x1 x1 x1 x1

480 480 400 5 1 65535

Enumerated

0 = Normal

0 = nor (Normal) 1 = inv (Inverted)

4 = 10 Enumerated 3=1 UINT16 UINT16 UINT16 UINT16 x1 x1 x10 x10 15 1 1.0 0 = kWh

0 = 0.001 1 = 0.01 2 = 0.1 3=1 4 = 10 5 = 100 6 = 1000 1 60 minutes 15 0.1 - 999.9 0 = kWh Del. 1 = kVAh 2 = kVARh Del. 3 = Ext1 4 = Ext2 5 = kWh Rec. 6 = kVARh Rec. See note 13. 0 = 1200bps 1 = 2400bps 2 = 4800bps 3 = 9600bps 4 = 19200bps 0 = PML 1 = MODBUS See note 14.

44022

Output Mode, Digital Output #2

Enumerated

2 = kVARh

44024

Baud Rate

Enumerated

3 = 9600bps

44025

Protocol

Enumerated

1= MODBUS

2007 Schneider Electric. All rights reserved.

Page 21

Read-Write Control Map

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register

Modbus Addr

Configuration Parameter (all ION6200 meters)

Format

Scale

Default
100 plus the last 2 digits of the Serial Number 20 0 2 0 = x1

Description

44026

Unit ID

UINT16

x1

1 247

44027 44028 44029 44030

RTS Delay Display Scroll Time Display Refresh Period PT Scale

UINT16 UINT16 UINT16 Enumerated

x1 x1 x1

0 1000 milliseconds See note 15. 0 30 seconds See note 16. 1 6 seconds See note 17. 0 = x1 1 = x1000

Read-Write Control Map


Modbus Addr18
42001 42002 42003 42004 42005

Control Parameter (all ION6200 meters)


Energy Reset Peak Power Demand Reset Peak Current Demand Reset Digital Output #1 Digital Output #2

Format
UINT16 UINT16 UINT16 UINT16 UINT16

Scale
x1 x1 x1 x1 x1

Description
Reset MWh, MVAh, and MVARh to 0 (Megawatt meters) Reset kWh, kVAh, and kVARh to 0 (all other models) Reset MW, MVA, and MVAR peak demand to 0 (Megawatt meters) Reset kW, kVA, and kVAR peak demand to (all other models) Reset I peak demand. Refer to Digital Output Control on page 10.

Notes
1 2 3 4 5 6 7 8 9

Format is YYMM##### where YY and MM represent the manufacture date. Identifies the Original Equipment Manufacturer (OEM). Options codes that identify meter options. To see a table that cross-references Options Cards and options codes, refer to the ION6200 Options Card Retrofit Instructions. Number of seconds that the meter has been powered up. Device identification. When Volts Mode is set to Delta or Delta Direct, these registers are invalid. PVS = Programmable Voltage Scale. Ensure that scaling is compatible with the expected register value; this provides maximum resolution and prevents register overflow. PCS = Programmable Current Scale. Ensure that scaling is compatible with the expected register value; this provides maximum resolution and prevents register overflow. PnS = Programmable Neutral Current Scale. Ensure that scaling is compatible with the expected register value; this provides maximum resolution and prevents register overflow. = Programmable Power Scale. Ensure that scaling is compatible with the expected register value; this provides maximum resolution and prevents register overflow. When it is read from that address the Low Order Word is fetched first. These registers are duplicate of other UINT32 read-only registers differing only in that the High Order Word is fetched first. Digital output modes are: MW pulsing, MVAR pulsing, MVA pulsing, and digital control (Megawatt meters) or kW pulsing, kVAR pulsing, kVA pulsing, and digital control (all other models). For digital output control information, refer to Digital Output Control on page 10.

10 PPS 11 12 13

Page 22

2007 Schneider Electric. All rights reserved.

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Maps

Read-Write Control Map

14

The PML protocol is an ION compatible protocol used when other ION devices are sharing a RS-485 network. RTS Delay parameter defines the delay between the ION6200 becoming ready to transmit data on the serial port, and the ION6200 transmitting the data. of seconds that a display is shown before scrolling to the next, 0 = no scrolling (disabled).

15 The

16 Number 17 Number 18

of seconds that a measurement value is held on the display before being refreshed; limited to 1-6 seconds. To use the Read-Write Control Map, it is recommended that your meter has firmware version 202 or later. For detailed information, contact Technical Support.

2007 Schneider Electric. All rights reserved.

Page 23

Das könnte Ihnen auch gefallen