power meter to plc

mohammad2060

Member
Join Date
Apr 2014
Location
iran
Posts
30
hi Friends
Does anyone have a sample program from method connect plc to power meter Through RS485 ?
No matter the type of Plc
 
I've done this recently (24 Schneider PM3250's on RS-485) with an M340 as the modbus master.

but that's not going to be much use to you if you're using a different PLC.

So tell us what model of PLC and Power meter you're likely to be using and I'm sure someone can provide more details. But no one's going to hand you a nice little project for you to just download.

It's a pretty simple application really - all I do is cycle through each meter's address, read it's registers over modbus using READ_VARS in Unity (the register list and addresses will be provided in the documentation from the meter manufacturer), and then copy them to an array of a custom data type I put together. if there's no response from the meter then set all variables to zero and raise a comms fail flag.
 
Well it looks like your PLC supports modbus over RS-485 with an expansion module on comm port 2. The base CPU only has RS-232 which isn't much good if you've got multiple meters.

Your power meter also supports modbus over RS-485, provided you've ordered the one with this option.

tecomat have a library with functions for using modbus RTU - see document here:

http://www.tecomat.com/wpimages/other/DOCS/eng/TXV00352_02_Mosaic_ModbusRTULib_en.pdf

I would read that carefully, download the library, set up your meter and PLC on the bench and just have a go at reading a register from it.
 
thank you very much for response
Excuse me , I'm very inexperienced :)

Suppose I want to read I1 and I2,
Registers are as follows in power meter:
http://upload.tehran98.com/upme/uploads/f0095208f51ce7951.jpg

How should i change below program

VAR_GLOBAL

I1 : BYTE;

I2 : BYTE;

CmdCH2 : ARRAY [1..2] OF TCmdStruct; // Modbus commands array for channel CH2 control

END_VAR

PROGRAM prgMain

VAR

END_VAR

ModbusCmd(Gr:=1,FNC:=03,SNo:=1,StAdr:=0x0005,NoPoint:=1,PtrData:=adr(current),Cmd:=CmdCH2[1]);

ModbusCmd(Gr:=1,FNC:=03,SNo:=2,StAdr:=0x0008,NoPoint:=1,PtrData:=adr(current 2), Cmd:=CmdCH2[2]);
//description in below figure :
http://upload.tehran98.com/upme/uploads/5e056280e791e2fa1.jpg

DO is now value I1 into variable current ??

END_PROGRAM
 

Similar Topics

Hello gentlemen, Im working on a small project on TIA Portal, about establishing a Modbus TCP connection between my ET200SP plc and a socomec...
Replies
12
Views
305
Hi, I am kinda newbie here. Actually, Can I take the Power data from PM5330 Schneider Electric (KWH,Voltage,Ampere) to my Allan Bradley Micro 850...
Replies
5
Views
1,623
Hi Guys, please help me. I have power meter yigedianqi yg889e-9sy and plc modicon m221. i want to read data from power meter using serial...
Replies
2
Views
2,882
T
-Is it possible for us to connect PLC-S7 300 of Siemens to Power Meter A1700 of ABB? In my PLC System, there is a module PC 340 with RS232 port...
Replies
2
Views
8,076
Hi all. Would anyone happen to have the Modbus register datasheet for the Honeywell/EnergyICT EIMFlex Modular Meter v1.11 We've 40 of these that...
Replies
0
Views
64
Back
Top Bottom