PDA

View Full Version : Wago 750-841 ->ModbusTCP.DLL addressing


bapetc
March 25th, 2009, 07:58 AM
Hello,

I've a Wago 750-841 IO system with IO cards.
For example input %IX0.0
output %QX1.0
memory %MX10.0

I want to read and write my IO's via an .NET Csharp application.
First question: difference between Coil and Register?
What is the startAddress of for exmample %MX10.0?
How can I set MX10.0 to 1 via the modbus dll?


LONG MBTWriteRegisters(
IN HANDLE hSocket,
IN WORD dataStartAddress,
IN WORD numWords,
IN LPBYTE pWriteBuffer,
OPTIONAL IN MBTWriteCompleted fpWriteCompletedCallback
OPTIONAL IN DWORD callbackContext);

shooter
May 5th, 2009, 03:44 AM
see page 164 in the mnaual of your 750-841 markers start at 12288 dec = 3000 hex
please only use the markers if using a controller. this way you can also use it in excel with a dde coupling.
works great.