background image

 

TABLE OF CONTENTS

 

 E 15 

 

MODBUS TCP communication 

Note: 

For /BUS model, the address are shifted by [1000 x bus address]. 
For example: 
The register addresses for the master module (address 0) range from 0 ($ 0000) to 134 ($ 0086). 
A module with a bus address = 5, have measures registers reachable from 5000 ($1388 hexa) to 5134($140E) 

1) Feature 

Protocol: 

 

 

MODBUS TCP 

Link:   

 

 

Ethernet 10/ 100 base T 

IP address by default: 

192.168.0.253 

Port:   

 

 

502 

Connector:   

 

RJ45 

Read request: 

 

Function code 03, 04 

Write request: 

 

Function code 06, 16 

Type of data: 

 

Inputs measurements. 

data format:  

 

16 bits and 32 bits unsigned integer.  

 
 

2) Communication

 

Measures are refreshed every 2 seconds. 
The CPL165 supports to be questioned by several Modbus TCP masters (maximum 6). 
The response time to a request is about 20ms, it is strongly influenced according to the network traffic. Excessive load 
can cause communication errors (response time of the slave exceeded (timeout), ....). 
The response time for a write request is in the order of 0.6 s and up to 1.2 s. This is due to the mechanism for reading 
BUS devices: The master continuously polls the present BUS modules. As the write request is inserted between two 
readings, so you have more time to finish reading, proceed the writing, wait and return the BUS module acknowledg-
ment. 

 
3) 

Data’s description

 

3.1) Available data's 

All measures are reachable in reading mode. Data are available in different formats: 
 

- 1 word or 2 bytes for voltage, current, phi cosines (power factor) measurements. 

 

- 2 word or 4 bytes for power measurements and energy meters. 

 
  

3.2) 

Data’s format

 

- The voltages are transmitted in 16 bits unsigned integer format corresponding to the measurement * 10. 
- The currents are transmitted in 16 bits unsigned integer format corresponding to the measurement * 100. 
- The phi cosines are transmitted in 16 bits unsigned integer format corresponding to the measurement * 100. 
- The powers are transmitted in 32 bits unsigned integer format corresponding to the measurement in W * 100. 
- The energies are transmitted in 32 bits unsigned integer format corresponding to the measurement in kWh * 100. 
 
Data are transmitted Most Significant Byte first. 
 

4) Reset of the energy meters

 

 
The reset of the energy meters is done by writing 1, 2 or 3 registers at address 300, 301 or 302. 
The register at address 300 corresponds to phase 1,  301 to phase 2 and 302 to phase 3. 
The value of the register corresponds to the different channels "A-F" to clear: 
 

- Bit 0 (LSB) corresponds to channel A, bit 1 to channel B, up to bit 5 witch corresponds to channel F. 

 

- To clear a counter, set the corresponding bit to 1. 

Ex: 
If you want to reset the counters W1A, W2B, W3C, so you writes 0001 at address 300, 0002 at 301, 0004 at 302. 

Содержание CPL165

Страница 1: ...i electrical feeders LOREME 12 rue des Potiers d Etain Actipole BORNY B P 35014 57071 METZ CEDEX 3 Phone 03 87 76 32 51 Telefax 03 87 76 32 52 Contact Commercial Loreme fr Technique Loreme fr Download...

Страница 2: ...p8 2 Configuration p8 2 1 Method p8 2 2 Language p9 2 3 Current inputs p9 2 4 Communication p10 2 5 Energy p10 2 6 End of configuration p11 FIRMWARE UPDATE p12 EMC CONSIDERATION p13 1 Introduction p1...

Страница 3: ...TCP Ethernet Modbus TCP link CPL165 BUS Slave version over internal bus Modbus TCP CPL165 SNMP Ethernet link SNMP protocol no internal bus CPL165 CM RS485 Modbus link 9600 19200 bauds No internal bus...

Страница 4: ...h Page 22 to 24 display phase 2 information s Page 25 to 27 display phase 3 information s PA 3 21KW Page 28 Display total active power and accumulated energy per channel A WA 0 01KWh sum of powers P1A...

Страница 5: ...o to the Y N next rubric 2 3 2 Common configuration The rated current will be applied to all 18 channels RATED CURRENT Press or buttons to change the value Config to validate 32A 2 4 Communication con...

Страница 6: ...forbid the access to the device configuration s When the Password function is activated the user must enter a 4 characters code to access the configuration mode 3 1 Activating the function When the de...

Страница 7: ...ates another communication port number COMx and re quires the reconfiguration of the HyperTerminal The terminal emulation software for PC HyperTerminal is resident in windows up to XP version For late...

Страница 8: ...0 KWh 0 KWh 2 Configuration To access to the configuration mode just press C key The following message is displayed on LCD display CONF BY RS232 IN PROGRESS The following message is displayed on the t...

Страница 9: ...Enter to confirm the selection ENTER I1C 32 A I1D 32 A 0 ALL CHANNELI1E 32 A To set the rated current for all the channels to the same value press the 0 key SELECTION I1F 32 A and Enter to confirm I2A...

Страница 10: ...ON Y N Press Y to access the rubric 2 4 1 CMTCP option IP ADDRESS Enter the IP address with each field separated by a dot Enter to validate 192 168 000 253 IP MASK Enter the IP mask with each field se...

Страница 11: ...W3F 0 KWh LEAVE Press L 2 5 1 Individual configuration CHANNEL 1A Channel identification PRESET W Counter value acquisition for one channel 0 02 KWh 2 5 2 Common configuration COMMON CONFIGURATION AC...

Страница 12: ...e load mode and is waiting for the firmware file This file is provide by LOREME and contain the firmware code in Intel HEX format Select the Transfer Send a text file in the HyperTerminal menu Select...

Страница 13: ...n fifty centimeters of a device with a transmitter walkie talkie of a power of 5 W be cause the latter can create a field with an intensity higher than 10 V M for a distance fewer than 50 cm 2 2 Power...

Страница 14: ...vice and should be different for each BUS module connected as shown below Example of BUS Module CMTCP Module BUS BUS address 1 Module BUS BUS address 2 Possible address range from 0000 Range of measur...

Страница 15: ...the BUS module acknowledg ment 3 Data s description 3 1 Available data s All measures are reachable in reading mode Data are available in different formats 1 word or 2 bytes for voltage current phi c...

Страница 16: ...2 0002 Current 1B A x100 Word 1 3 03 0003 Current 1C A x100 Word 1 4 04 0004 Current 1D A x100 Word 1 5 05 0005 Current 1E A x100 Word 1 6 06 0006 Current 1F A x100 Word 1 7 07 0007 Cos phi 1A x 100 W...

Страница 17: ...1 43 43 002B Current 2F A x100 Word 1 44 44 002C Cos phi 2A x 100 Word 1 45 45 002D Cos phi 2B x 100 Word 1 46 46 002E Cos phi 2C x 100 Word 1 47 47 002F Cos phi 2D x 100 Word 1 48 48 0030 Cos phi 2E...

Страница 18: ...7 77 004D Current 3C A x100 Word 1 78 78 004E Current 3D A x100 Word 1 79 79 004F Current 3E A x100 Word 1 80 80 0050 Current 3F A x100 Word 1 81 81 0051 Cos phi 3A x 100 Word 1 82 82 0052 Cos phi 3B...

Страница 19: ...d 2 115 115 0073 Channel C total power Word 1 116 W x 100 Word 2 117 117 0075 Channel D total power Word 1 118 W x 100 Word 2 119 119 0077 Channel E total power Word 1 120 W x 100 Word 2 121 121 0079...

Страница 20: ...ment 100 The powers are transmitted in 32 bits unsigned integer format corresponding to the measurement in W 100 The energies are transmitted in 32 bits unsigned integer format corresponding to the me...

Страница 21: ...ts The manager sends request to agents by the UDP port 161 This requests therefore contain the OID the path of the parameter and the type of action to perform read or write But an agent can also sends...

Страница 22: ...y shown Modification of the BUS composition It s better to switch off the rail when a module is added or removed Important remark on the bus discovery function During a scan it is necessary to make su...

Страница 23: ...u want to clear and click on the button Reset W Individual selection of channels in the group Selection of all the chan nels in the group Button to reset the selected channels A window will appear ask...

Страница 24: ...PL165 3 5 2 DIAGRAMS OF CONNECTIONS Group 1 Group 2 Group 3 Power connector Constitution of a group One voltage input up to 6 current channels input for opening current transformer Tio When a current...

Страница 25: ...TABLE OF CONTENTS E 25 CPL165 connection with DATA CENTER BOX PLC 1 kohms 1 kohms Male DB9 connector to PLC RS485 bus to CPL165 A B 2 3 5 6 7 8 Gnd Vcc...

Отзывы: