12.07.2015 Views

varlogic modbus communication user manual - Schneider Electric

varlogic modbus communication user manual - Schneider Electric

varlogic modbus communication user manual - Schneider Electric

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

User <strong>manual</strong>Modbus <strong>communication</strong>set for Varlogic NRC12power factor controller


NRC12Modbus applicationUSER’S MANUALModbus applicationUSER’S MANUAL1 Table of Contents1 Table of Contents.......................................................................................22 Glossary......................................................................................................33 NRC12 Modbus in general.........................................................................34 Entire system..............................................................................................44.1 PFC to PC connection alternatives ............................................................................. 44.1.1 One PFC..............................................................................................................................44.1.2 Many PFCs system..............................................................................................................55. Physical connections ................................................................................55.1 Fiber optic connection ................................................................................................. 55.2 RS-485 interface ......................................................................................................... 55.3 2-wire connection in an RS 485 bus............................................................................ 65.4 4-wire connection in an RS-485 bus ........................................................................... 75.5 RS-232 connector on the MCU ................................................................................... 85.6 Power supply .............................................................................................................. 86 Device descriptions ...................................................................................96.1 MCU............................................................................................................................ 96.1.1 RS-485 port and power supply ..........................................................................................106.1.2 RS-232 port........................................................................................................................116.1.3 Fiber connector..................................................................................................................116.1.4 Jumpers on MCU...............................................................................................................116.1.5 Terminators and biasing on an RS-485 bus ......................................................................136.2 PFC and CCA ........................................................................................................... 146.2.1 How to connect CCA to PFC .............................................................................................147 Modbus register map for NC-12 PFC .....................................................157.1 Modbus function 4..................................................................................................... 157.2 Modbus functions 6 and 3 ......................................................................................... 177.2.1 Parameter value tables......................................................................................................187.3 Modbus settings in the PFC ...................................................................................... 218 Technical specifications..........................................................................238.1 Safety........................................................................................................................ 238.2 Environmental conditions .......................................................................................... 239 Pictures .....................................................................................................2410 Tables........................................................................................................242


NRC12Modbus applicationUSER’S MANUAL2 GlossaryPFCMCUCCAPSURS-232RS-485SCADAMGPower Factor Controller, type NRC12.Modbus Coupler Unit, RS-485 adapter for fiber or RS-232.Controller Communication Adapter, fiber output module for PFC.Power Supply Unit.Serial <strong>communication</strong> standard. Typically used in short distances.Used to connect a PC.Serial <strong>communication</strong> standard. Designed for longer distances andfor noise environments (industrial use).Supervisory Control And Data Acquisition software is a controlroom software.Merlin Gerin3 NRC12 Modbus in generalThis <strong>manual</strong> describes Modbus feature of PFC and its installation andoperation.PFC has a remote control feature using serial <strong>communication</strong>. The<strong>communication</strong> port requires an external CCA module installed on the PFC.The CCA provides a fiber connection port. Remote control protocol isModbus. PFC is a Modbus slave device. With additional MCUs, fiber port maybe adapted to RS-485 bus for long distances or for bus architecture. With anMCU, PC’s serial port can be adapted to RS-485 bus. The PC acts as masterof the Modbus bus and it needs the necessary software to read PFC slaves.Typically SCADA systems are used to collect data and display it.Version of the <strong>manual</strong>:Version 0.01 25.08.2004Version 0.0205.11.2004 (Proof read)Version 0.0313.02.2006 <strong>Schneider</strong> version3


NRC12Modbus applicationUSER’S MANUAL4 Entire systemIn the following chapters there are two alternatives for connections betweenthe MCU to PFC and the MCU to PC. The selection depends on distancesbetween modules and the number of PFC in the system.4.1 PFC to PC connection alternativesThe PFC always needs a CCA module, when a remote control is used. TheCCA module has a dedicated connector on the PFC. The CCA and MCUhave fiber connectors.4.1.1 One PFCA fiber is adapted to an RS-485 bus connecting the MCU module. Maximumlength of the RS-485 bus is 1 km. Additional PFC modules can easilyconnected to bus. MCU 1 / PC adapts the RS-485 bus to the RS-232 port.MCU 1 / PC MCU 2Picture 1: One PFC system4


NRC12Modbus applicationUSER’S MANUAL4.1.2 Many PFCs systemIn the following picture there is a two PFC system. The same architecture isusable for 1 to 128 PFCs in the system.MCU 1 / PC MCU 2MCU 3Picture 2: Two PFC in the system5. Physical connectionsAll cables and connectors used are described in this chapter.5.1 Fiber optic connectionThe fiber optic cable is connected the CCA and the MCU. The fiber type usedis 1 mm duplex POF (Polymer Optic Fiber) fiber or equivalent. Plugs on thefiber ends prevent the fiber from being wrongly connected. The fiberconnection is so called crossover connection, where the transmitter (gray) isconnected to the receiver (blue). Maximum length of the fiber is 30 m (90 ft).Minimum bending radius for this type fiber is 17 mm (0,67 in).5.2 RS-485 interfaceThe PFC is connected to an RS-485 bus with an MCU module. All MCUmodulesare connected in parallel to the bus and the PC acts as a busmaster. A parallel connection means that the same pair of cables isconnected to the same terminals in all modules. The bus master is connectedusing a crossover connection (transmitter to receiver pair). A crossover5


NRC12Modbus applicationUSER’S MANUALconnection is used only in a 4-wire connection. RS-485 -connection is either a2- or a 4-wire connection.Modules are connected sequentially, branches on the cable are not allowed.The bus is terminated with terminator resistors. One terminator to each end ofthe bus. One module feeds biasing voltages to the bus. Each module isgrounded via a PG (Protective Ground) terminal.MCUMCU MCU MCUMCU MCU MCUMCUMCUPicture 3: Correct structure of an RS-485 bus5.3 2-wire connection in an RS 485 busMCU 1 /PCMCU 2(PFC-slave)Picture 4: 2-wire connection in an RS-485 busPicture 6 describes connections in an RS-485 bus. Suitable cable types aree.g. Belden 3107A, 7201A, 9842 and Alpha Wire 6072C.6


NRC12Modbus applicationUSER’S MANUALIn following table all pins in the same row are connected together.MCU #1 / PC MCU #2 MCU #3 MCU #4 MCU #nTxD0 TxD0 TxD0 TxD0 TxD0TxD1 TxD1 TxD1 TxD1 TxD1Common Common Common Common CommonTable 1: RS-485 bus connections using 2-wire cablingNote: The PC can be placed in any position on RS-485 bus5.4 4-wire connection in an RS-485 busMCU 1 /PCMCU 2(PFC-slave)Picture 5: 4 wire connection in RS-485 busPicture 7 describes connections in RS-485 bus. Suitable cable types are e.g.Belden 3108A, 7202A, 9843 and Alpha Wire 6073C.7


NRC12Modbus applicationUSER’S MANUALIn the following table all pins in same row are connected together.MCU #1 /MasterMCU #2SlaveMCU #3SlaveMCU #4SlaveMCU #nSlaveTxD0 RxD0 RxD0 RxD0 RxD0TxD1 RxD1 RxD1 RxD1 RxD1Common Common Common Common CommonRxD0 TxD0 TxD0 TxD0 TxD0RxD1 TxD1 TxD1 TxD1 TxD1Table 2: RS-485 bus connections using 4-wire cablingNote: The crossover connection between MCU #1 / PC and MCU #2 (PFCslaves).5.5 RS-232 connector on the MCUConnector type is RJ-22 4P4C. Pin descriptions:MCU pin Id Description PC pin1 TX Transmit 22 GND Ground 53 RX Receiver 34 GND Ground 5Table 3: RS-232 cable between the MCU and PC5.6 Power supplyThe MCU has dedicated power supply pins on RS-485 connectors.Voltage is +10…+30 V DC or 10…20 V AC. Power consumption about 2 W /module.The power supply can be common for all modules or every module may haveits own power supply. Power from common supply is fed to modules using anextra pair of RS-485 cabling. Total power consumption depends on the powerrequirements of all modules plus power loss of cabling. A decrease in voltagewith long cables must be taken into account. Power pins in the MCU areequipped with a rectifier. Neither pin is directly connected to the ground.8


NRC12Modbus applicationUSER’S MANUAL6 Device descriptions6.1 MCUThe MCU has an RS-485 port (dual connectors A and B, for cascadingpurposes), fiber connectors and an RS-232 port. Used ports are selected withjumpers in an MCU. Bias voltages and bus terminators have their own DIPswitches. In the front panel there is a power LED and status indication LEDsfor <strong>communication</strong>. The MCU is DIN rail mountable.RS-232 portPower LED andindicator LEDsJumpersABiasing andbusterminatorsBFiber connectorsRS-485 portPicture 6: Connectors and indicators in MCU9


NRC12Modbus applicationUSER’S MANUAL6.1.1 RS-485 port and power supplyConnector A : Connector type is Phoenix Contact MSTB 2,5/8-ST-5,08.Pin Id DescriptionA1 RxD1 + Rx RS-485 4-wire busA2 RxD0 - Rx RS-485 4-wire busA3 Common GroundA4 TxD1 + Tx/Rx RS-485 2-wire busA5 TxD0 - Tx/Rx RS-485 2-wire busA6 PG 1 MΩ to ground. Protective ground.A7 V1+ Power supply + 10 …+ 30 VDC or10…20 VAC (2 W)A8 V2- Power supplyTable 4a: RS-485 port A pinsConnector B: For cascading purposes. It is connected parallel withconnector A. Note the difference in pin count and order. Connector type isPhoenix Contact MSTB 2,5/7-ST-5,08.Pin Id DescriptionB1 RxD1 + Rx RS-485 4- wire busB2 RxD0 - Rx RS-485 4- wire busB3 Common GroundB4 TxD1 + Tx/Rx RS-485 2- wire busB5 TxD0 - Tx/Rx RS-485 2- wire busB6 V1+ Power supply + 10 …+ 30 VDC or10…20 VACB7 V2- Power supplyTable 4b: RS-485 port B pins10


NRC12Modbus applicationUSER’S MANUALPicture 7: RS-485 pin numbers6.1.2 RS-232 portConnector type is RJ-22 4P4C.Pin order:Pin Id Description1 TX Transmit2 GND Ground3 RX Receive4 GND GroundTable 5: RS-232 port pins6.1.3 Fiber connectorFemale fiber connector types are HFBR-1522 (transmit, gray) and HFBR-2522 (receiver, blue). Type of male plug is HFBR-4506. Fiber type is duplex 1mm POF (Polymer Optic Fiber) fiber or equivalent.6.1.4 Jumpers on MCUThe following table shows all the legal jumpering alternatives on an MCU.11


NRC12Modbus applicationUSER’S MANUAL2 4 6 8 10 121 3 5 7 9 11Picture 10: Jumpers on MCUModbus PFC JumpersRS-485 2-wire FiberRS-485 2-wireRS-232RS-485 4-wireFiberRS-485 4-wireRS-232Table 6: Jumpers on MCU12


NRC12Modbus applicationUSER’S MANUAL6.1.5 Terminators and biasing on an RS-485 busTerminatorBiasingNo terminator,No biasingTerminator2-wire4-wireDIP-switchOn OffMCU MCU MCU MCUPicture 11: Terminators and biasing in RS-485 busSet the DIP switches according the picture above in MCU to connectterminators and biasing voltages to an RS-485 bus. Terminators areconnected to both ends of the bus. Bias voltages are fed from only onedevice in the bus. When a 2-wire bus is used, terminators and biasing isneeded only for the used pair.Switch Signal EffectDIP1 TxD TerminatorDIP2 TxD0 - Bias voltageDIP3 TxD1 + Bias voltageDIP4 RxD0 - Bias voltageDIP5 RxD TerminatorDIP6 RxD1 + Bias voltageTable 7: Terminators and biasing on an RS-485 busThe termination of the line is done by a 120 ohm resistor. For biasing, two620 ohm resistors are used.13


NRC12Modbus applicationUSER’S MANUAL6.2 PFC and CCAA remote application needs a PFC and CCA. See manufacturer’s <strong>manual</strong> formore information.6.2.1 How to connect CCA to PFC1.2.3.4.Picture 12: Installing procedure for CCA1. Remove the cover of the connector2. Slide the CCA into the connector track3. Check that the CCA is properly installed4. Remove the protect plugs and connect the fiber cable14


NRC12Modbus applicationUSER’S MANUAL7 Modbus register map for NC-12 PFCOnly Modbus functions 3, 4 and 6 are implemented. Function 7 is notsupported.7.1 Modbus function 4• 32-bit values reserve two consecutive registers.• most significant part of 32-bit value is first register (lower index).• 8-bit values are stored into 16-bit registersTypeS32U32S16U16S8U8Signed 32-bit valueUnsigned 32-bit valueSigned 16-bit valueUnsigned 16-bit valueSing-extended 8-bit valueUnsigned 8-bit valueTable 8: Value typesIndex Name Unit Type1 Active Power W S323 Reactive Power var S325 Apparent Power VA S327 Active Current mA S329 Reactive Current mA S3211 Apparent current mA S3213 Voltage V U3215 Step 1: Number of connections U3217 Step 2: Number of connections U3219 Step 3: Number of connections U3221 Step 4 Number of connections U3223 Step 5 Number of connections U3225 Step 6 Number of connections U3227 Step 7 Number of connections U3229 Step 8 Number of connections U3231 Step 9 Number of connections U3233 Step 10 Number of connections U3235 Step 11 Number of connections U3215


NRC12Modbus applicationUSER’S MANUALIndex Name Unit Type37 Step 12 Number of connections U3239 Operation time of the regulator h U3241 Serial Number U3243 Software version U1644 Voltage distortion 0,1% U1645 Cos φ: Pos=Ind, Neg=Cap 100=1.00 0,01 S1646 Status of steps: bit/relay 1=ON U1647 Latched alarms (alarms in memory) bits inU16table 1348 Internal temperature °C S849 External temperature °C S850 Voltage harmonics 3 rd 0,1% U1651 Voltage harmonics 5 th 0,1% U1652 Voltage harmonics 7 th 0,1% U1653 Voltage harmonics 9 th 0,1% U1654 Voltage harmonics 11 th 0,1% U1655 Voltage harmonics 13 th 0,1% U1656 Voltage harmonics 15 th 0,1% U1657 Voltage harmonics 17 th 0,1% U1658 Voltage harmonics 19 th 0,1% U1659 Voltage harmonics 21 st 0,1% U1660 IRMS/I1 0,01 U1661 Broken status of steps: bit/relay 1=ON U1662 Active alarms: see table 13 U1663 Alarm table, last alarm (alarm code, 0=noU8alarm)64 Alarm table, 2 nd alarm in alarm log U865 Alarm table, 3 rd alarm in alarm log U866 Alarm table, 4 th alarm in alarm log U867 Alarm table, 5 th (earliest) alarm U868 Detected frequency 1=50Hz, 2=60Hz U869 Cos φ sign: Flow of power 0=Direct, -1=Reverse (generator)S870 Status of fan relay 1=ON 0=OFF U8Table 9: Modbus registers, function 416


NRC12Modbus applicationUSER’S MANUAL7.2 Modbus functions 6 and 3Number Name Unit MIN MAX Type1 Latched alarms (alarms in0 0 U16memory) bits in table 132 Alarm mask. 1=enabled. SeeU16table 13 for special function.mask3 Step shutdown mask of alarms.U161=enabled. See table 13 formaskspecial function.4 Temperature limit (temperature °C 20 60 U8alarm)5 Fan offset limit °C 0 50 U86 Voltage distortion limit (Alarm 10) 0,01% 50 200 U167 Irms/I1 limit 0,01 100 150 U168 Application 1=2Q 2=4Q 1 2 U89 Current transformer: If secondary A 25 30000 U161A, primary*510 Input voltage V 80 800 U1611 Wiring, see table 14 1 54 U812 Target cos φ 1: 100=1.00 0,01 80 100 U813 Target cos φ 1 sign: 0=ind, --1 0 S81=cap14 Target cos φ 2: 100=1.00 0,01 80 100 U815 Target cos φ 2 sign: 0=ind, --1 0 S81=cap16 Inductive response value 0,01 1 199 U1617 Capacitive response value 0,01 1 199 U1618 Reconnection delay s 10 900 U1619 Step program: see table 12 1 5 U820 Number of steps 1 12 U821 Step sequence: see table 11 1 10 U822 Step size monitoring: step 1 kvar 0 400 U1623 step 2 kvar 0 400 U1624 step 3 kvar 0 400 U1625 step 4 kvar 0 400 U1626 step 5 kvar 0 400 U1627 step 6 kvar 0 400 U1628 step 7 kvar 0 400 U1629 step 8 kvar 0 400 U1617


NRC12Modbus applicationUSER’S MANUALNumber Name Unit MIN MAX Type30 step 9 kvar 0 400 U1631 step 10 kvar 0 400 U1632 step 11 kvar 0 400 U1633 step 12 kvar 0 400 U1634 Step size monitoring: nominal V 200 800 U16voltage of steps (phase to phasevoltage)35 Current transformer, secondarycurrent 1=1A,2=5AA 1 2 U8Table 10: Modbus registers for function 3 and 67.2.1 Parameter value tablesValue Step sequences1 1.1.1.1.1.1.2 1.1.2.2.2.2.3 1.1.2.3.3.3.4 1.1.2.4.4.4.5 1.2.2.2.2.2.6 1.2.3.3.3.3.7 1.2.3.4.4.4.8 1.2.3.6.6.6.9 1.2.4.4.4.4.10 1.2.4.8.8.8.Table 11: Step sequencesNumber Step programs Allowed sequences1 NORMAL SEQ 1.2.4.2 CIRCULAR 1.1.1 SEQ 1.1.1.3 CIRCULAR 1.2.2 SEQ 1.1.2.4 STACK SEQ 1.1.1.5 OPTIMAL All sequencesTable 12: Stepping programs18


NRC12Modbus applicationUSER’S MANUALAlarm, alarm mask & PFC alarm Step shut down mask effectshut down mask bitReadWrite1 9 as set 1 / 02 10 as set 1 / 03 11 1 not changed4 12 0 not changed5 - (*) 0 not changed6 - (*) 0 not changed7 - (*) 0 not changed8 - (*) 0 not changed9 1 0 not changed10 2 as set 1 / 011 3 0 not changed12 4 1 not changed13 5 0 not changed14 6 0 not changed15 7 0 not changed16 8 1 not changed(*) Always 0 when readTable 13: Alarm bitsWiring CurrentmeasuredVoltagemeasuringCurrent measuringpolarity1 L1 L2-L3 direct2 L1 L3-L1 direct3 L1 L1-L2 direct4 L1 L1-N direct5 L1 L2-N direct6 L1 L3-N direct7 L1 L2-L3 reverse8 L1 L3-L1 reverse9 L1 L1-L2 reverse10 L1 L1-N reverse11 L1 L2-N reverse12 L1 L3-N reverse13 L1 L2-L3 auto detection14 L1 L3-L1 auto detection19


NRC12Modbus applicationUSER’S MANUALWiring CurrentmeasuredVoltagemeasuringCurrent measuringpolarity15 L1 L1-L2 auto detection16 L1 L1-N auto detection17 L1 L2-N auto detection18 L1 L3-N auto detection19 L2 L2-L3 direct20 L2 L3-L1 direct21 L2 L1-L2 direct22 L2 L1-N direct23 L2 L2-N direct24 L2 L3-N direct25 L2 L2-L3 reverse26 L2 L3-L1 reverse27 L2 L1-L2 reverse28 L2 L1-N reverse29 L2 L2-N reverse30 L2 L3-N reverse31 L2 L2-L3 auto detection32 L2 L3-L1 auto detection33 L2 L1-L2 auto detection34 L2 L1-N auto detection35 L2 L2-N auto detection36 L2 L3-N auto detection37 L3 L2-L3 direct38 L3 L3-L1 direct39 L3 L1-L2 direct40 L3 L1-N direct41 L3 L2-N direct42 L3 L3-N direct43 L3 L2-L3 reverse44 L3 L3-L1 reverse45 L3 L1-L2 reverse46 L3 L1-N reverse47 L3 L2-N reverse48 L3 L3-N reverse49 L3 L2-L3 auto detection50 L3 L3-L1 auto detection51 L3 L1-L2 auto detection52 L3 L1-N auto detection20


NRC12Modbus applicationUSER’S MANUALWiring CurrentmeasuredVoltagemeasuringCurrent measuringpolarity53 L3 L2-N auto detection54 L3 L3-N auto detectionTable 14: Wiring7.3 Modbus settings in the PFCPicture 13: Modbus settings in the PFCRequired settings for the PFC are mode, Modbus address and baud rate.21


Menu structureMain menuBANK PRECONFAUTO SETUPMANUAL SETUPMEASUREMENTSPARAMETERSALARMSMAINTENANCEPARAMETERSApplicationTransformersInput VoltageWiringTarget Cos ϕResp valuesAuto SeekDelaysStep ProgramStep SetupVerifyStep TestModbus SetupLanguageMODBUS SETUPStatus 000000ModeREADAddress 7Bit/s 9600Picture 14: Menu structure of the PFCSelect PARAMETERS from the main menu. Access to the parameters menuis locked. To unlock the parameter menu, press both arrow keyssimultaneously for 2 secs. Then select MODBUS SETUP. See PFC’s<strong>manual</strong> for detailed instructions.Modbus setup has the following parameters:Status(not forset)ModeAddressBit/s2 digits for correct frame counter +2 digits for error counter +2 digits for answer counterThe use of PFC’s <strong>communication</strong>:NONE = Communication disabledREAD = Communication is read onlyREAD/RESET = Communication is read only with the exception thatresetting of alarms is allowed..READ/WRITE = Both read and write are allowed.Modbus address of PFC. Value between 1……247Communication baud rate (1200 … 38400 bit/s). Even parity is used.Table 15: Modbus parameters in PFCFor more information, see PFC’s <strong>manual</strong>.


NRC12Modbus applicationUSER’S MANUAL8 Technical specifications8.1 SafetyThe following precautions must be taken into account when installing thesystem.• The installation of the system must be done by a qualified electrician.• Ensure that power supply is switched off before touching any parts in thesystem. Do not touch the connectors when the system is energized.• Do not open the modules, there are no <strong>user</strong> serviceable parts inside.8.2 Environmental conditionsThe modules of the system are designed for the following environmentalconditions:• Indoor use• Altitude up to 2000 m• Ambient temperature within -10°…+60°C• Maximum relative humidity 95% for temperatures up to +40°C• Category IP 20.23


NRC12Modbus applicationUSER’S MANUAL9 PicturesPicture 1: One PFC system ..............................................................................4Picture 2: Two PFC in the system....................................................................5Picture 3: Correct structure of an RS-485 bus................................................6Picture 4: 2-wire connection in an RS-485 bus...............................................6Picture 5: 4 wire connection in RS-485 bus....................................................7Picture 6: Connectors and indicators in MCU ................................................9Picture 7: RS-485 pin numbers ......................................................................11Picture 10: Jumpers on MCU .........................................................................12Picture 11: Terminators and biasing in RS-485 bus.....................................13Picture 12: Installing procedure for CCA ......................................................14Picture 13: Modbus settings in the PFC........................................................21Picture 14: Menu structure of the PFC ..........................................................2210 TablesTable 1: RS-485 bus connections using 2-wire cabling.................................7Table 2: RS-485 bus connections using 4-wire cabling.................................8Table 3: RS-232 cable between the MCU and PC ...........................................8Table 4a: RS-485 port A pins..........................................................................10Table 4b: RS-485 port B pins .........................................................................10Table 5: RS-232 port pins ...............................................................................11Table 6: Jumpers on MCU ..............................................................................12Table 7: Terminators and biasing on an RS-485 bus...................................13Table 8: Value types........................................................................................15Table 9: Modbus registers, function 4...........................................................16Table 10: Modbus registers for function 3 and 6..........................................18Table 11: Step sequences ..............................................................................18Table 12: Stepping programs.........................................................................18Table 13: Alarm bits ........................................................................................19Table 14: Wiring...............................................................................................21Table 15: Modbus parameters in PFC ...........................................................22<strong>Schneider</strong> <strong>Electric</strong> Industries SASAs characteristics and dimensions of our products are constantly changing,please contact our office for confirmation.N°3653572EN-AA 11-200524

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!