Home

WM3-96 - CARREMM CONTROLS LTD

image

Contents

1. contrat inet orcas cs eot we dede te be tun eu arene Be 12 READING ALARM DIAGNOSTIC AND REMOTE CONTROL OUTPUT STATUS mmm 12 WRITE COMMAND FORREMOTE CONTROL OUTPUT essseeeee nennen rrr rrr raria 15 FORMAT OF THE PRESENT MODULES VARIABLE ccccccccececececececececeeccecececececeeeeeeeceeececeesesesess 16 HARMONIC ANALYSIS 18 READING OF THE HARMONIC DATA s e e rr 19 EEPROM VARIABLE MAD 5 err eere deed eme terres eee etra ELLE tee eee 20 EVENT LOGGING NS NS LS 23 MONTHLY ENERGY 2 EEPROM CONFIGURATION DATA FORMAT ccccccccccccccececececececeeecececeeececececeaeeeeeceeeeeeeeeeeeeees 6 EXAMPLES HOW TO READ THE DATA 10 READING AND RESETTING MAXIMUM 10 EVENTS BEADINGSS ence tetas ace che ae eA etl ener ce Me Seth Ai 12 CRC CALCULATION ALGORITHM 0 0cccecccecccececcccccccceeeeeececeeeeececeeceeeeaeeeeeaeaneeaeeeeeaeeeeneeeeaes 14 HARDWARE SPECIFICATIONS cccccccccececccecececeeecececeeecececececeeece
2. ee ee en ne en ee eee eed eee eee ee eee eee ee eee 22 4 4 fe ee SB HOLIDAY page 13 3720 Ehe page 14 3740 Table C CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 EEPROM CONFIGURATION DATA FORMAT Variable type coding VARIABLE V 3 s BRE 4 N lt w E 99 o z yey er M Ww Fo ES lt D E D elt N lt D E 5 5 zz n n L M e NINI DOP DO NO db H H H H H H M tj E N System coding 3 phases wnbal Average type coding Average type XXXXXXXX XXXXXXX1 avg float 0101 XXXXXXXX bit check CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Info out 1 2 3 4 coding info out XXXXXXXX XX000000 variable type from 000000 to 110011 default 110011 XXXXXX00 O0XXXXXX XXXXXX00_01XXXXXX XXXXXXOO 1 OXXXKXX XXXXXX00_11XXXXXX Field n coding The field n n 0 1 2 3 variables are the variables chosen by the user to be shown on page 0 of the WM3 display Field 1 and 2 coding Field JODOOOOOK 3000000 33330000 00 000 10110000 Field 3 and 4 coding Field XXKXXXXX XX000000 XXxx0000 0000000x 0101 900 3000000 MAX and MIN type coding MAX and MIN type XXXXXXXX XX000000 field 1 variabl
3. from110255 04h LsB MSB LB Function 06 write one word Request frame Address Function Dataaddress Value CRC Answer frame Address Function Dataaddress Value CRC from 1 to 255 NOTE the answer frame is an echo of the request frame which confirm the execution of the command The write function cannot be used to modify the contents of the energy counter memory area Function 08 send a check frame Request frame Address Function Diagnostic code Vale CRC From 1 to 255 Answer frame Address Function Diagnosticcode Value CRC NOTE the answer frame is an echo of the request frame which confirm the execution of the command IMPORTANT if the address is 00 zero all the instruments connected to the network will execute the command but won t send an answer frame If the request frame contains an invalid function the answer frame will be an exception response Exception response Address Function Diagnostic code Value CRC 2 byte LSB CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 MEMORY AREA WM3 96 manages four different memory areas addressed as follows Memory area Area Byte reading order Internal RAM 00005 internal RAM ooren The bytes which are included in the answer frame following a read request of a short or int variable stored in the internal RA
4. 9 the initial 20 bytes grouped 5 by 5 are the four summer tariff 4 partial counters values Page 10 the initial 20 bytes grouped 5 by 5 are the four holiday tariff 1 partial counters values Page 11 the initial 20 bytes grouped 5 by 5 are the four holiday tariff 2 partial counters values Page 12 the initial 20 bytes grouped 5 by 5 are the four holiday tariff 3 partial counters values Page 13 the initial 20 bytes grouped 5 by 5 are the four holiday tariff 4 partial counters values Page 14 the initial 4 bytes are the four total counter MSB part then 10 not used bytes follow then the following two bytes are relevant respectively to the year and month when the table were stored How to reconstruct the energy counter values The energy values have to be reconstructed according to the procedure described at page 11 The value of byte 5 multiplied by 1000000000 must be added to the byte1 byte2 byte3 byte4 value and the sum divided by 100 Total counters byte5 is stored at page 14 of the relevant monthly table byte1 byte2 byte3 byte4 are stored at page 1 byte 1 has the lower address Partial counters byte5 and byte1 byte2 byte3 byte4 are consecutively stored starting from the address of the required counter byte 5 has the lower address then byte 1 is stored etc To obtain the energy consuption relevant to a given month the tables relevant to the end and the beginning of that month must be read and the difference between th
5. of the kWh total counter 7 F2h FF FF 59 94h 42604 10 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 1000000000 0 0 42604 0 1000000000 100 426 04 kWh WRITING OF THE ENERGY COUNTER VALUES The user is not allowed to write in the energy counter memory area It is only possible to reset the energy counter using fixed frames ENERGY COUNTERS RESET COMMANDS The fixed frames to be used to reset the energy counters are listed below 1 General reset command reset of all the total partial and monthly counters Reset request frame 8 byte Reset answer frame 8 byte 2 Total positive energy counters kWh and kvarh and monthly counters reset command Reset request frame 8 byte Reset answer frame 8 byte 3 Total negative energy counters kWh and kvarh and monthly counters reset command Reset request frame 8 byte Reset answer frame 8 byte 4 Partial positive energy counters kWh and kvarh and monthly counters reset command Reset request frame 8 byte Reset answer frame 8 byte Partial negative energy counters KWh and kvarh and monthly counters reset command Reset request frame 8 byte Heset answer frame 8 byte 11 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 ALARM STATUS MAP BYTE a Variable associated to alarm 2 ADDRESS BYTE Variable type 141 Remote 1 Remote 2 1 Remot
6. see note 1 pul pulse KVARh see note 1 pul KVARh see note 1 pulse 3 KVARh see note 1 pulse 3 KVARh see note 1 pulse 4 Kwh default see note 1 pulse 4 Kwh see note 1 pulse 4 KVARh see note 1 pulse 4 KVARh see note 1 NOTE 1 the multiplier type depends on the info P variable refer to the instantaneous variables map alo ojo wI NIN CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 EXAMPLES HOW TO READ THE DATA FROM EEPROM NOTE EEPROM is structured in word if not differently advised which are sent in the order MSB LSB contrary to what happens during the INTERNAL RAM reading The value of the variables stored in EEPROM are 4 byte integer except from the values of the power which are stored in a different way Refer to example 21 to know how to read the power values READING AND RESETTING MAXIMUM AND MINUMUM Example 18 12 MAXIMUM variable type read command 4 word read command request frame 8 byte read command answer frame 7 byte 12 MAX variable type address 20D6h Stored variable value OAh 10 decimal Variable type A L3 phase 3 current Example 19 Current info read command Info A read request frame frame 8 byte Info A read answer frame frame 7 byte Info V value 06 decimal point position 1111 Info A value 04h decimal point position 11 11 Example 20 value of the 42 MAXIMUM read command 1 w
7. 00 1110 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1101 0000 0100 1111 Execute 3rd right Shift 0110 1000 0010 0111 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1100 1000 0010 0110 Execute 4th right Shift 0110 0100 0001 0011 0 Execute 5 right Shift 0011 0010 0000 1001 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1001 0010 0000 1000 Execute 6th right Shift 0100 1001 0000 0100 Execute 7th right Shift 0010 0100 1000 0010 Execute 8th right Shift 0001 0010 0100 0001 O0 CRC Result 0001 0010 0100 0001 12h 41h NOTE the byte 41h is sent first even if it s the LSB then byte 12h is sent 14 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 HARDWARE SPECIFICATIONS RS485 INTERFACE General technical specifications Baud rate 1200 2400 4800 9600bps Data format 1 start 8 data 1 stop bit no parity 1 start 8 data 1 stop bit even parity 1 start 8 data 1 stop bit odd parity Note es address o ito o Broadcast Yes address 0 with function 06 F Standard functions 04 Read function max 108 words J o Soei Write function max 1 word O O special functions 80 Read from Flash memory data logging Identification code 16 am B Physical interface O RX
8. CARO GRACE iin Serial Protocol WM3 96 rev B02 and following WM3 96 N2 rev C01 and following SERIAL COMMUNICATION PROTOCOL Vers 1 Rev 3 July 7 2005 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Index WN OX d EM 2 SERIAL COMMUNICATION PROTOCOL s s 00s0eeeeeeeeseeeeeeesesesesesesesesessecsesessseessesseeeeeeees 3 CERE waits ole i eles ae ee 3 FUNGTIONS orbe sedate wae ee at ee 3 MEMORYARE AY ss eie 5 RAM VARIABLES MAP cccccccecccececececececececececececececececeeeceaeaeaneeaeaeaeaeaeaeaeananananaeaeaeanenenenananees 5 INSTANTANEOUS VARIABLES MAP ccccccecccececececeeecececececccececececececececececececeeceuceeteceeeeeeeseueceeeeecesecereeecess 5 VARIABLE FORMA Tess 6 INSTANTANEOUS VARIABLES READING 7 ENERGY f COUNT RO MAE e aa a aaaea A EE aa Aan 8 READING OF THE ENERGY COUNTER VALUES ccccccccecececececececececececececececececeeseeeteeeteteeeseseeess 10 WRITING OF THE ENERGY COUNTER VALUES ccecceeeeeeeeeeeeeeeeeereeetereeesetecereeetererenetenens 11 ENERGY COUNTERS RESET COMMANDS cccccccecececececececececececececetccecececececeeeeeeeteeeceteesesesess 11 ALARM
9. M data format tables 2082 min an out 1 1000 max an out 1 208A See EEPROM data format tables 208C min 5 an out 2 1000 2088 max an out 2 i000 min an out 3 max an out 3 5 20A0 an out 4 1000 20a2 max s an out 4 1000 20a PT 2c 20 E Eua O agg 3 2084 286 2088 oP o 3gc 1 Co 20c0 feme SS 20C2 type MAX2 8 0 h 0 h nln X X 20 type H n HnH E Er H H H N e AIN H oju Alane oN N o ral o H e EEPROM data format tables o 10 not present o pooo net present 5 5 not presen o q0 not present pooo net present data format tables not present ctr ct ct not presen not presen ct not presen not presen jo o ct fom ox unju a not presen o foo net present ct ct ct O101XXXX XXXXXXXX 101XXXX XXXXXXXX 01 XXXXXXXX 01 XXXXXXXX 01 XXXXXXXX OLXXXX XXXXXXXX 01 XXXXXXXX 101XXXX XXXXXXXX 101XXXX ojojo lol Ke ojo 1XXXX XXXXXXXX 1XXXX XXXXXXXX 1XXXX XXXXXXXX 1XXXX XXXXXXXX 1XXXX XXXXXXXX 1XXXX XXXXXXX
10. M from address OOE8h to address 1FFFh are sent in the following order LSB MSB NOTE in the following pages the following notation will be used 1 int 4 byte 1 short 2 byte 1 word 2 byte 1 byte 8 bit RAM VARIABLES MAP INSTANTANEOUS VARIABLES MAP Word ADDRESS BYTE VARIABLE Fora E vii ot rw pu m VIN A 12 io ADDRESS BYTE VARIABLE THD V2 THDe V2 4 rupe v2 D V3 De V3 4 HDo V3 4 HD A1 Al HDo Al 4 HD A2 HDe A2 Do A2 HD A3 HDe A3 HDo A3 VA dmd TPF avg W dmd Ofc 4 4 3 1 1 1 n 1 I 6 W VIS e oicl _4 ana 3 920 4 ws oa 4 2 6 8 9 o lo lo lo lo lo o W WOT WO CO CO CO CO II Co e Ke Q lt D E p o lo lo o o D 7175 ojejo 4 4 E E g ies alt l Q sp spas ojo lt D E N lt n NS 16 3 4 17 40 aja nj L N wj ww w Q o s5 o lt elt 4 4 ns T D N Q 4 C8 EC VL N Hj M5 M wlt N gt o D n K C Ww 55 olo AJO G z c Jg e VA Y var Y PF Y THD V1 THDe V1 E 1 Unit V A P inf1 2 V1 6 CARLO GAVAZZI WM3 96 CONTROLS
11. Serial Protocol V1 R3 NOTE all the variables in this table are contiguous It is possible to read the whole area with a single command sending in the request frame 000h as data address and 0076h as number of words that is 118 in decimal The values of the instantaneous variables are stored in the addresses from 000h to OE7h The data are sent in 4 byte groups in the following order MSB LSB VARIABLE FORMAT The value of all the instantaneous variables is stored as a 4 byte 2 word integer value The decimal point and the multiplier have to be set according to the inf1 2 word coding see the following table for voltage V current A and power P in the position 111 1 for the variables of type THD 96 and H Hz and in position 1 111 for the variables of type C PF The variables PF L1 PF L2 PF L3 PF are stored with a positive value if the power factor is L inductive and with a negative value if the power factor is C capacitive Variable format info map O58 Info voltage value E os oa wes current value er Decimal point and multiplier coding zr valvs dp ar vate ap 111 1k 1111k 11 11M mur I TII IM 1111M 11 11G 111 16 5 NOTE if a power value exceeds 9999 the autoranging function will intervene and modify the inf2 value If the power value is lower than 99999 the inf2 will be increased of 1 unit if the power value is gr
12. X 101XXXX XXXXXXXX ojojo ojo ce oO LXXXX XXXXXXXX lXXXX XXXXXXXX ce 21 CARLO GAVAZZI o o o o LS c o o CONTROLS MAX MIN DEFAULT BIT CHECK lsb IN8 WM3 96 configuration map continue ADD 2100 val 22 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 EVENT LOGGING Event logging map The stored information relevant to every event are the following event type hour minutes seconds day month year value All these data are included in the relevant 4 words coded as follow Event 6 FEE 2328 Event 6 To reset the events it is necessary to write 0 in every of the sideways listed addresses and a to reset the event counter placed at the address 80Ch N event coding O101XXXXXX XXXXXX XXXXXXXXXXXXXXXX Variable type coding Refer to the relevant table in EEPROM configuration data chapter Event type coding MAX 1 REMOTE 4 ON 14 MIN 2 REMOTE 1 OFF 15 DIAGNOSTIC 1 ON 3 REMOTE 2 OFF 16 DIAGNOSTIC2 ON 4 REMOTE 3 OFF 17 DIAGNOSTIC3 ON 5 REMOTE 4 OFF 18 DIAGNOSTIC 4 ON 6 ALARM 1 ON 19 DIAGNOSTIC 1 OFF 7 ALARM 2 ON 20 DIAGNOSTIC2 OFF 8 ALARM 3 ON 21 DIAGNOSTIC 3 OFF 9 ALARM 4 ON 22 DIAGNOSTIC 4 OFF 10 ALARM 1 OFF 23 REMOTE 1 ON 11 ALARM 2 OFF 24 REMOTE 2 ON 12 ALARM 3 OFF 25 REMOTE 3 ON 13 ALARM 4 OFF 26 23 CARLO GAVA
13. ZZI WM3 96 CONTROLS Serial Protocol V1 R3 MONTHLY ENERGY COUNTERS The reading of the values of the energy counters relevant to the previous three months is feasible by reading the data stored in the three tables described below The tables have the same structure they are composed of 14 32 bytes pages where the total and partial counter values are stored on the first day of the month at 0 00 00 The storing order of the table is the following assuming for example to begin the WM3 use in January January data table A February data table B March data table C April data table A overwriting the January data and so on Pages structure Page 1 the initial 16 bytes grouped 4 by 4 are the four total counter LSB part KWh KWh Kvarh Kvarh Page 2 the initial 20 bytes grouped 5 by 5 are the four winter tariff 1 partial counters values Page 3 the initial 20 bytes grouped 5 by 5 are the four winter tariff 2 partial counters values Page 4 the initial 20 bytes grouped 5 by 5 are the four winter tariff 3 partial counters values Page 5 the initial 20 bytes grouped 5 by 5 are the four winter tariff 4 partial counters values Page 6 the initial 20 bytes grouped 5 by 5 are the four summer tariff 1 partial counters values Page 7 the initial 20 bytes grouped 5 by 5 are the four summer tariff 2 partial counters values Page 8 the initial 20 bytes grouped 5 by 5 are the four summer tariff 3 partial counters values Page
14. ad command 4 word read command request frame 8 byte Read command answer frame 13 byte Digital output 0 Not used digital output 0 is not set as alarm see example 7 Digital output 1 Normally energized Digital output 2 Not used Digital output 3 Not used Example 10 Variable associated to the alarm read command 4 word read command request frame 8 byte Read command answer frame 13 byte Digital output 0 not used digital output 0 is not set as alarm see example 7 Digital output 1 THD A1 Digital output 2 not used Digital output 3 not used Example 11 ON Set point alarm activation read command 4 word read command request frame 8 byte Read command answer frame 13 byte Digital output 0 not used digital output 0 is not set as alarm see example 7 Digital output 1 10 0 0064h 100 decimal Digital output 2 not used Digital output 3 not used 14 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Example 12 OFF Set point alarm deactivation read command 4 word read command request frame 8 byte Read command answer frame 13 byte Digital output 0 not used digital output 0 is not set as alarm see example 7 Digital output 1 5 0 0032h 50 decimal Digital output 2 not used Digital output 3 not used Example 13 Alarm activation delay read command 4 word read command request frame 8 byte Read command answer fram
15. ceaeenaeaeaeaeaeseaeaeaeaeenaeaeeneneeaes 15 RS485 INTERFACE oc tee dee obo mote fe rere Mia oth la ER Ee Oe 15 RS 232 INTERFACE leet eee A eM UN DM Ue A T NE A e 17 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 SERIAL COMMUNICATION PROTOCOL INTRODUCTION WM3 96 can be equipped with a RS485 or RS232 serial interface The serial communication protocol MODBUS RTU is the same on both interfaces When using RS485 it is possible to connect up to 255 instruments using MODBUS protocol When using RS232 it is only possible to connect a single instrument multidrop feature is not available The time out for the answer is fixed in 300 ms The command s structure of the protocol allows the user to read and write from in the uP RAM memory the EEPROM measured data stored data real time clock so that all the functions are completely transparent The communication parameters are configurable when using the RS485 interface while are fixed when using the RS232 one in accordance with the following table None even odd None even odd None even odd None even odd NOTE please refer to the instruction manual for any detail on the instrument programming The communication can be started only by the HOST unit which sends the request frame Each frame contains the following information e slave address is a number from 1 to 255 which identifies the instrument connected b the network Address 0 zero is acce
16. e 13 byte Digital output 0 not used digital output 0 is not set as alarm see example 7 Digital output 1 4 seconds Digital output 2 not used Digital output 3 not used Example 14 Latch alarm reset command To reset a UP LATCH or DOWN LATCH alarm the relevant alarm byte must be set to 1 Reset command request frame 8 byte Reset command answer frame 8 byte To reset the alarm 1 the byte at address 01C5h must be set to 1 The byte at address 01C4h must be set to 00 since it is relevant to alarm 0 WRITE COMMAND FOR REMOTE CONTROL OUTPUT The remote control digital output memory area is described in Table 4 and consists in 4 bytes starting from address 08DCh Remote1 8DCh Remote2 8DDh and so on To switch ON the rt remote control output the value 02h must be written in the Remote n byte while to switch OFF the n remote control output the value 01h must be written in the Remote n byte Note again that the write command always writes 1 word 2 bytes Request frame H1 ON and R2 OFF 8 byte Answer frame 8 byte 15 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Request frame H1 OFF and R2 OFF 8 byte Answer frame 8 byte NOTE a digital output can be used as remote control output only if the relevant digital output type variable stored in EEPROM is correctly set see page 20 and following FORMAT OF THE PRESENT MODULES VARIABLE ADDRESS BYTE Va
17. e from 000000 to 110011 see TABLE A 0101 XXXXXXXX bit check Digit type coding TIRE XXXXXXXX XXXXXXXO 4 digit visualization XXXXXXXX XXXXXXX1 3 digit visualization Ol101XXXX XXXXXXXX bit check RS485 baud rate coding R5485 baud rate XXXXXXXX_XXXXXX11 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 FFT enable coding fft V3 13 enable USA EURO clock format Language Pulse type selection 1p to period 2 energ 1 to period 3 energy coun 1 2 to period 1 energ 2 to period 2 energ 2 to period 3 energ 2 3 3 9 3 3 4 4 to period 4 energy coun to period 4 energy t pulses related to total energy counter to period 1 energ to period 2 energ to period 3 energ la to period 4 energy XXXXO11X XXXXXXXX XXXX100X XXXXXXXX to period 3 energ O pu Out 4 pu to period 2 energ O O Lses rel to period 4 energy Info ang analogue output 1 2 3 4 coding XXXXXXXX XX000000 Ang X variable from 000000 to 110011 see TABLE A CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Digital output type coding dig out 2 pulse default type out 2 dig out 2 alarm EEEE dig out 4 control XXXXXX10 XXXXXXXX pulse KVARh see note 1 XXXXXX11 XXXXXXXX pulse KVARh see note 1 XXXXXXXX pulse Kwh default see note 1 se Kwh
18. e 3 Remote 4 NOTE the variables included in each of the previous tables are contiguous so it is possible to read every variables with two request frames With the first request frame the 28 words included in Table 3 can be read with the second request frame the 2 words included in Table 4 can be read In order to know the current digital output settings see the EEPROM map paragraph READING OF ALARM DIAGNOSTIC AND REMOTE CONTROL OUTPUT STATUS The d digital output can work as pulse output alarm output diagnostic output or remote control output In order to know if the n digital output is set as alarm the n alarm byte alarm n must be read If the byte is equal to 0 it means that the digital output is not set as alarm if it is equal to 1 the alarm status is OFF if it is equal to 2 the alarm status is ON The same considerations are valid in case of diagnostic output diagn n byte must be read or remote control output Remote n byte must be read Of course only one among alarm n diagn n and remote n byte can be different from 0 If all these three bytes are equal to 0 it means that the nf digital output is set as pulse output 12 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 The values stored in addresses from 1C8h to 1CEh explain the control type coded as follows 0 2 UP 1 UP LATCH 2 DOWN 3 DOWN LATCH The values stored in addresses from 1DOh to 1D6h explain if th
19. e considered is 06 1207 11 11K Variable value W1 25 48 kW Example 4 Reading of all the instantaneous variables All instantaneous values info request frame 8 byte All instantaneous values 4 info answer frame 241 byte Porm oan Ech 00h 005 37h __ VL1 N stored value 0137h 0311 decimal Info V type value 07h Info A type value 07h Info P type value OAh Variable value VL1 N 3 11 kV CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 ENERGY COUNTERS MAP ADDRESS BYTE SEASON PERIOD COUNTER TYPE E KWh ESB LS E HOLYDAY CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 BYTE SEASON PERIOD COUNTER TYPE WINTI h MS HOLYDAY ft o U n A further table relevant to the monthly energy counters will be explained afterwards NOTE Table 1 and Table 2 are not contiguous The variables included in each table are contiguous so that it is possible to read every variables with two request frames With the first request frame the 106 words included in Table 1 could be read with the second request frame the 24 words included in Table 2 could be read The values of all the total and partial energy counters are stored as a 5 byte integer the first 4 bytes are the less significant part the 5 is the most significant one The resolution of the counters i
20. e relay is normally energised or de energized 0 Normally de energized 1 Normally energized In the addresses from 1D8h to 1DEh the variables associated to the alarms are stored according to the Variable type coding table see page 28 Example if a control on variable W1 has been associated to alarm1 in the address 1DAh the value 12 must be stored The Set point ON and OFF values are stored as unsigned short The delay values are stored as short and must be included in the range from 0 to 255 seconds Example 6 Diagnostic read command 2 word read command request frame 8 byte Read command answer frame 9 byte Digital output 0 NO Diagnostic Digital output 1 NO Diagnostic Digital output 2 Diagnostic OFF Digital output 3 NO Diagnostic Example 7 Alarm read command 2 word read command request frame 8 byte Read command answer frame 9 byte Digital output 0 NO Alarm Digital output 1 Alarm OFF Digital output 2 NO Alarm Digital output 3 NO Alarm 13 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Example 8 Control type read command 4 word read command request frame 8 byte Read command answer frame 13 byte PSB MSB LSB MSB LSB MSB LSB MSB Digital output 0 Not used digital output 0 is not set as alarm see previous example Digital output 1 UP control Digital output 2 Not used Digital output 3 Not used Example 9 Relay status re
21. e respective values must be carried out CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Monthly energy counters map ADDRESS BYTE SEASON PERIOD COUNTER TYPE 3220 page D 4 om 3224 ti W 3249 O l l a ral W 1 1 12 1 1 Table A CARLO GAVAZZI o o o o LS c o o CONTROLS E 0 Leg o g c 5 o gt o E o c o gt c z El E 4 E o U O H d E al m E a d LSB KVARh es es ee a ee a ee ee ee ee ee ee ee ee ee ed eee ene ene nh ee ee eee eee eee eee 22 R bf SB HOLIDAY page 13 3540 Ehe page 14 3560 Table B CARLO GAVAZZI o o o o LS c o o CONTROLS a E 0 Leg o g c 5 o gt o E o c o gt c z El al E E o U O H d E al m E a d LSB KVARh asas a o e 7 ee ee a ee ae EE E E ee
22. eater than 99999 but lower than 999999 the inf2 will be increased of 2 units and so on Example 1 reading of an int variable stored at address 100h An int variable is 4 byte 2 word long so a 2 word read request must be sent Read command request frame Address Function Word address from 1 to 255 Read command answer frame Address Function n byte Value of int type variable from 1 to 255 04 04 isB MSB 8 LSB NOTE Char variables Char type variable 1 byte must always be read carrying out a 1 word 2 bytes read request and taking only the needed byte into account Note that the first byte which is sent is the byte relevant to the specified word address The following bytes are relevant to the previous address 1 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Example 2 reading of 4 char variables 4 bytesz2 words starting from address 1COh Read command request frame Address Function Word address from 1 to 255 Head command answer frame Address Function n byte Value Value Value Value 255 INSTANTANEOUS VARIABLES READING Example 3 Reading of a single variable w1 Value request frame 8 byte Value answer frame 9 byte Info request frame 8 byte Info answer frame frame 9 byte Stored value 638Dh 25485 decimal Info value P type 06h Since 9999 lt 25485 lt 99999 the inf2 value to b
23. le associated to the MAX or MIN must be known Then the info of the variable decimal point position must be acquired Finally the stored value must be read 4 word read command frame 8 byte read command answer frame 13 byte Word 1 7BC1h 01111 011110 00001 Word 2 6180h 0110 00011 0000000 Word 3 5B42h 0101 101101 000010 Word 4 0036h 0000000000110110 Event type 0001 1 MAX Minutes 011110 30 Hour 01111 15 Year 0000000 00 Day 00011 03 Month 0110 06 Variable type 001000 08 A L1 Seconds 101101 45 Value 110110 54 The engineering unit and the decimal point position of the variable are obtained by reading the info value in the instantaneous variables area see example 2 12 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 RTC DATA READING The reading of the information regarding the RTC is carried out by transferring 4 words starting from address 4000h as described in the following example Example 24 RTC data read command 4 word read command frame 8 byte read command answer frame 13 byte Week Month Year E RH Oth 04h 08h 12h 08h 11h OAh 01 00h 30h 6Bh Seconds 12h 18 Minutes 08h 8 Hour 11h 2 17 Day of the week 01h 1 Monday Day of the month 08h 8 Month OAh 10 Year 0001h 1 2001 13 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 CRC CALCULATION ALGORITHM CRC is calculated according to the relevant fl
24. mum time for a new query 10ms T null maximum interruption time on the request frame 50msec Note T null is independent of the selected baud rate value n request frame n 1 request frame E en H n word as wort oe adil com ser ada word ce z c 5 n reply frame E Ls eb m T x li delay 17 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 APPLICATION NOTES 1 If the instrument does not answer within the max answering time it is necessary to repeat the query If the instrument does not answer after 2 or 3 consecutive queries it must be considered as not connected faulty or having a different address The same consideration is valid in case of CRC errors or incomplete frames 2 By entering the programming mode by pressing the S key the communication is interrupted Any data received during the programming mode are ignored 3 EEPROM read and write commands must be carried out to manage static variables Use them only during the instrument set up and not during the normal measuring mode in order to avoid to extend the answer time and to limit the writing in EEPROM max 100 000 4 Control lines are not managed 18
25. new query on a different address 10ms T null maximum interruption time on the request frame 3 char n request frame n reply frame n 1 request frame byf wed me adaf com m word add word cro add com n word add word cre aad com n by woa cre com _n word add word cre ote byte byte byte byte byte ove ovie byte T null T request APPLICATION NOTES T delay 1 If the instrument does not answer within the max answering time it is necessary to repeat the query If the instrument does not answer after 2 or 3 consecutive queries it must be considered as not connected faulty or having a different address The same consideration is valid in case of CRC errors or incomplete frames 2 By entering the programming mode by pressing the S key the communication is interrupted Any data received during the programming mode are ignored 3 EEPROM read and write commands must be carried out to manage static variables Use them only during the instrument set up and not during the normal measuring mode in order to avoid to extend the answer time and to limit the writing in EEPROM max 100 000 4 To avoid reflections or couplings between the communication wires it is suggested to terminate the last instrument of the network and of the host If some problems persist bias the host transmission It is advisable to terminate the network also in case of short point to point c
26. onnections 5 If the connection is longer than 1200 m a signal amplifier has to be used 6 To calculate the time required to scan all the instruments of a network the following formulae are to be used N bit Trequest 8 Baud _ rate N bit Treply BP N char Baud _ rate TS T request T response T_reply T delayl TA TS N request TM TS Tdelay2 N instruments 10 no parity 11 even or odd parity 5 number of Words 2 function 04 8 function 06 16 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 RS232 INTERFACE General technical specifications O O Note Baud rate 2aoo 4800 9600 38400 bps Data format i start 8 data 1 stop bit no parity Note A Nevertheless in the address cell a value from 1 to 255 must be g pole female RS232 connector ote Pin 2 TX To be connected to the RX terminal of the PC COM X Pin 3 R be connected to the TX terminal of the PC COM Pin 5 GND To be connected to the GND terminal of the PC COM Noeued 1 Ping O Noued 1 Ping o fNoued Note to connect WM4 with a PC use a serial cable with pin to pin connections Timing characteristics for RS232 communication T response max answering time 600ms T response typical answering time 100ms T delay mini
27. ord read request command 8 byte read answer frame 7 byte Address of 12 MAX value 2116h Stored value 036Ch 876 decimal Taking into account the results of the previous examples A L3 value 8 76 A 10 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Example 21 value of the 121 MAXIMUM read command in case of power type variable The structure of the value of the power stored in EEPROM is the following hase ase s s 1 word read request command 8 byte read answer frame 7 byte value ap Eh 8h Address of 12 MAX value 2116h Stored value 19E8h gt value 19Eh 414 decimal decimal point position code 8h 111 1 k Considering that for example the variable code is 12 W L1 W L1 value 4 14 kW Example 22 12 MAXIMUM reset command 1 word write request command 8 byte Write answer command 8 byte 11 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 EVENTS READING Example 23 read command of the event stored at address 2240h The reading of the information regarding an event is carried out by transferring 4 words starting from the first address of the selected event location according to the Event Logging Map table page 24 The description of the event is obtained by decoding the data contained in the 4 words according to n event coding table In accordance to the above listed procedure before reading a MAX or MIN event the variab
28. ow diagram see below An explanatory example will follow Example 25 calculation of CRC starting from frame 0207h CRC Inizialization 1111 1111 1111 1111 Load first byte 0000 0010 Execute XOR with the first byte of the frame 1111 1111 1111 1101 Execute 1st right Shift 0111 1111 1111 1110 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1101 1111 1111 1111 Execute 2nd right Shift 0110 1111 1111 1111 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1100 1111 1111 1110 Execute 3rd right Shift 0110 0111 1111 1111 0 5 Execute 4th right Shift 0011 0011 1111 1111 1 e Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1001 0011 1111 1110 Execute 5th right Shift 0100 1001 1111 1111 0 Execute 6th right Shift 0010 0100 1111 1111 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1000 0100 1111 1110 Execute 7th right Shift 0100 0010 0111 1111 0 Execute 8th right Shift 0010 0001 0011 1111 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1000 0001 0011 1110 Load the second byte of the frame 0000 0111 FEY ete caledlation polynominal A001 Execute XOR with the second byte of the frame 1000 0001 0011 1001 Execute 1st right Shift 0100 0000 1001 1100 1 Carry 1 load polynomial 1010 0000 0000 0001 Execute XOR with the polynomial 1110 0000 1001 1101 Execute 2nd right Shift 0111 0000 01
29. pted in write frames only by all the instruments which will execute the relevant command but won t send any answer frame NOTE The request frame must always contain the address even if when using RS232 it is not considered every legal value is accepted e command it defines the command type e g read function write function etc e data fields these numbers define the operating parameters of the command e g the address of the word the value of the word to be written etc e CRC word it allows to detect transmission errors that may occur CRC calculation is carried out by the MASTER unit once it has defined address command and data fields When the frame is received by the SLAVE it is stored in a temporary buffer The CRC is calculated and then compared with the received one If they correspond and the address is recognised by the SLAVE unit the command is executed and an answer frame is sent If the CRC is not correct the frame is discarded and no answer is sent FUNCTIONS WM3 96 accepts the following three commands e Read words code 04 e Write one word code 06 e Senda check frame code 08 Function 04 read words Request frame Function CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 NOTE The maximum number of word is 120 240 byte The address 00 is not allowed it generates no answer Answer frame Address Function n byte 2 x n word n byte 2 x n word
30. rding to the selected electrical system the voltages can be Phase to Phase Voltage or Phase to Neutral Voltages Negligible values when the selected system is without neutral All the variables of the previous table are contiguous Since the read command can read at most 120 words it is possible to read all the harmonic analysis values with at least four request frames The values of the harmonic and distortion variables are represented as short 2 byte long The decimal point must be set to 111 1 for distortion and angle variables THD THDo THDe and to 111 11 for the harmonic variables h The stored values have physical meaning only if the harmonic analysis of the relevant phase is enabled please refer to the user manual for FFT enable function READING OF THE HARMONIC DATA EXAMPLES Example 16 reading of the vL1 3 order harmonic Value request frame frame 8 byte Value answer frame frame 7 byte Variable value 0D13h 3347 decimal Value format 111 11 VL1 3 order harmonic value 33 47 the display shows 33 4 Example 17 reading of the phase 1 3 order relative angle Value read request frame frame 8 byte Value read answer frame frame 7 byte Variable value O6EFh 1775 decimal Value format 111 1 Phase 1 3 order relative angle 177 5 the display shows 177 19 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 EEPROM VARIABLE MAP NOTE f s means full
31. riable type Input module 0 jNotpreent Analogue output AG12 Analogue out 1 2 module 0 Notpreent AG34 Analogue out 3 4 module 0 Notpreent Serial output 0 jNotpresent RS232 module O0 Not present RTC Clock O Notpreent 16 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Digital output code S4A Available digital outputs on the inserted modules o 1 2 3 4 o NM 99 EN holy C A 1 LS one Digital inputs code 2 4 4 3 3 375 sadi S4A o i9 zi N C EN In1 Digital input 1 o0 ON sj Digital input 2 Digital input 3 Example 15 reading of the present modules variable 1 word read request frame 8 byte 1 word read answer frmae 8 byte Module variable value 615Bh 0110000101011011 Available modules input module digital inputs analogue output AG12 RS485 clock digital output 3 4 Digital inputs In82OFF open contact In22OFF In12ON close contact 17 CARLO GAVAZZI o 9 o o LS c o o CONTROLS HARMONIC ANALYSIS MAP Relative angles Currents Voltages 3B2 3B4 3B6 3B8 BO o p zs ps 55 IO oo iw i Ir S8C E 8 1 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 NOTE Acco
32. s 10W 9 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 the decimal point position has to be set to 1 11Kwh Kvarh Whereas the total counters MSB 5 byte is contiguous to the less significant bytes the partial counters MSB 5 byte is stored in a different area of the memory For this reason it is required to carry out two different read commands in order to get all the energy counter information READING OF THE ENERGY COUNTER VALUES 8 bytes request frame read command 10 word 25 bytes answer frame read command s oa g Ect EDn een efn ron et ran ron ran ron oin oan 14h 00h 00h 608 00h 94h 59h FFh FFn 12 17 T 00h BER T 00h 00h 00h 00h CRE CRC Starting from address ECh it is possible to read all the energy counters by means of a single read command 10 word see the example above Reconstruction of the kWh total counter The first 4 data bytes less significant bytes have to be placed side by side in the opposite order 00000000h 0 The obtained 32 bit value has to be interpreted as a two s complement value The relevant kWh MSB byte n 17 which has to be interpreted as a two s complement value too must be multiplied by 1000000000 decimal value The result has to be algebraically added to the previous value 17 FCh 00h 1000000000 0 0 Finally the last result has to be divided by 100 0 0 100 0 kWh Example 5 reconstruction
33. scale b s means beginning of the scale WM93 96 configuration map Arb VARIABLE MAX MIN DEFAULT BIT CHECK z000 Fassword 5300 U 0 U10IXKXK XXXXKXXK 2002 System 9 2 616999 30000000 ot present t present 100XXXX XXXXXXXX 101 XXXXXXXX 101XXXX XXXXXXXX 0101 XXXXXXXX ns485 baud rate 3 oo o 3 net present ns485 parity oOo 0 o 0 met presen munere erg B E 201E 2027 event selection Tooo annua a erea o o nq cic c OI0TX000ft X000000 not present Pulses KWh outl 1000 1 1 1 Pulses KWh out3 1000 fa P01XXXXXX XXXXXXXX See EEPROM data format tables ot present Delay ou 1 fess 90 ot present 204E Hysteresis out 1 f s 0o LXXXXXX XXXXXXXX See EEPROM data format tables ot present 2052 delay out 200255 Jo ot present See EEPROM data format ot present 205a delay ow 3 255 ot present LXXXXXX_XXXXXXXX See EEPROM data format tables ot present 255 o i ot present f s 1XXXXXX XXXXXXXX aoe S XXXXXXXX XXXXXXXX E ij ie 2 e lXXXXXX XXXXXXXX 20 CARLO GAVAZZI CONTROLS WM3 96 configuration map continue Ano VARIABLE MAX O WM3 96 Serial Protocol V1 R3 MIN DEFAULT BIT CHECK 2080 info analog out 1 See EEPRO
34. termination Jumper between Rat and T terminals J available connections 4 wire RS422 half duplex interface D P wire RS485 interface Note A With a single request maximum 132 words can be read from WM4 B See paragraph 1 4 WM4 96 identification code C It is the time that must elapse without receiving any character before starting the analysis of the received frame D RS422 interface is managed with the same protocol of the RS485 one in this way only the halfduplex communication is allowed TX and RX not simultaneous Timing characteristics for 4 wire communication msec T response max answering time T response typical answering time T delayl minimum time for a new query on the same address 10ms T delay2 minimum time for a new query on a different address 10ms f 3 char T null maximum interruption time on the request frame n request frame n 1 request frame IEEE EEESTEEIETU REM ere one one Tone ore ors ore ove eve oe eve ore Tore eda com n reply frame pac Soom word e RX Master TX Master T reply T delay response 15 CARLO GAVAZZI WM3 96 CONTROLS Serial Protocol V1 R3 Timing characteristics for 2 wire communication msec T response max answering time T response typical answering time T delayl minimum time for a new query on the same address T delay2 minimum time for a

Download Pdf Manuals

image

Related Search

Related Contents

Betriebsanleitung Babywaage  HP tc1000 Hardware manual  MUSTEE 96 Instructions / Assembly  livret leuzoscope.indd  Philips Audio extension cable SWA2530T  User Manual LCD 128 - WS  Operating instructions Gas cooktops KM 2034 KM 2054  

Copyright © All rights reserved.
Failed to retrieve file