Member Login
Search
Jump to a Date
Sponsored Communities
Cool stuff
Neat Stuff

Visit our shop for nerds in control lifestyle products.
Thermal Overload
The threads that wouldn't die...
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
Fortune
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.
-- Bert Whitney
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.
-- Bert Whitney
RSS Feed
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Hi,
I am developing an application for Wago I/O system with Modbus devices. I am using Wago (750-841) ethernet controller. The Wago PLC must work as a master to the slave devices, which are connected to the Wago I/O Modbus through RS485 serial interface module 750-653/003-000.
I have tried to use the library "Modb_l05.lib" (http://www.wago.com/wagoweb/documentation/app_note/libraries/Modb_l05 .lib , http://www.wago.com/wagoweb/documentation/app_note/libdoku/ml01101e.pdf) to send and receive data, but I didn't get any data back. I am not interested to write anything to the slaves. I only want to receive data from them. My slave device is a digital multimeter (Lovato). Here is the program in CoDeSys with the parameters I am using:
PROGRAM DataExchange
VAR
Master: MODBUSMASTER_RTU;
SlaveAddress:BYTE;
FunctionCode:BYTE;
St artAddress:WORD;
NumberOfPoints:WORD;
start: BOOL:=TRUE;
state: INT;
send:typRing_buffer;
rec: typRing_buffer;
slavedata:ARRAY[0..100] OF BYTE;
i: INT;
END_VAR
SlaveAddress:=1;
FunctionCode:=16#4;
S tartAddress:=1;
NumberOfPoints:=2;
start:=TRUE;
Master(Sl aveAddress:=SlaveAddress ,
FunctionCode:=FunctionCode ,
StartAddress:=StartAddress ,
NumberOfPoints:= NumberOfPoints,
bCOM_PORT:=2 ,
cbCOM_BAUDRATE:=1920,
cpCOM_PARITY:=0 ,
csCOM_STOPBITS:=1 ,
cbsCOM_BYTESIZE:=8 ,
cfCOM_FLOW_CONTROL:=4,
TimeOut:=t#100ms ,
StartFunction:=start ,
ReceiveBuffer:=rec ,
SendData:=send);
Is there something mising? Must I use some other libraries? Is there a ready application in CoDeSys, which configures the PLC as a master for the communication with the slave devices through RS485 serial interface module 750-653/003-000?
I hope for some replies and solutions.
Thanks!
I am developing an application for Wago I/O system with Modbus devices. I am using Wago (750-841) ethernet controller. The Wago PLC must work as a master to the slave devices, which are connected to the Wago I/O Modbus through RS485 serial interface module 750-653/003-000.
I have tried to use the library "Modb_l05.lib" (http://www.wago.com/wagoweb/documentation/app_note/libraries/Modb_l05 .lib , http://www.wago.com/wagoweb/documentation/app_note/libdoku/ml01101e.pdf) to send and receive data, but I didn't get any data back. I am not interested to write anything to the slaves. I only want to receive data from them. My slave device is a digital multimeter (Lovato). Here is the program in CoDeSys with the parameters I am using:
PROGRAM DataExchange
VAR
Master: MODBUSMASTER_RTU;
SlaveAddress:BYTE;
FunctionCode:BYTE;
St artAddress:WORD;
NumberOfPoints:WORD;
start: BOOL:=TRUE;
state: INT;
send:typRing_buffer;
rec: typRing_buffer;
slavedata:ARRAY[0..100] OF BYTE;
i: INT;
END_VAR
SlaveAddress:=1;
FunctionCode:=16#4;
S tartAddress:=1;
NumberOfPoints:=2;
start:=TRUE;
Master(Sl aveAddress:=SlaveAddress ,
FunctionCode:=FunctionCode ,
StartAddress:=StartAddress ,
NumberOfPoints:= NumberOfPoints,
bCOM_PORT:=2 ,
cbCOM_BAUDRATE:=1920,
cpCOM_PARITY:=0 ,
csCOM_STOPBITS:=1 ,
cbsCOM_BYTESIZE:=8 ,
cfCOM_FLOW_CONTROL:=4,
TimeOut:=t#100ms ,
StartFunction:=start ,
ReceiveBuffer:=rec ,
SendData:=send);
Is there something mising? Must I use some other libraries? Is there a ready application in CoDeSys, which configures the PLC as a master for the communication with the slave devices through RS485 serial interface module 750-653/003-000?
I hope for some replies and solutions.
Thanks!
From Control Engineering magazine...
Related articles from Control
Engineering magazine- ODVA announces new editions of CIP network specifications and testing of Ethernet/IP products
- Molex releases new connection system and expanded line of Ethernet switches
- Synapse Wireless California Eastern Laboratories form partnership
- Prosoft introduces wireless 802.11g point I/O adapter and appliance transaction manager
- Belden releases new continuous flex Ethernet cables
- Easier startup: Petropiar Oil Refining Facility is 2008 HART Plant of the Year
- Embedding wireless: one chip, security platform
- Wireless manager for instrumentation and control devices
- New podcast: One road to wireless instrumentation
- Upgraded communication modules make PLC to PLC communications easier
Above articles copyright 2008 Reed Business Information.
Subject to its Terms of Use.
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Patronize our advertisers!




