09-11-2015 05:48 AM
Hello,
i have read this Thread and it helped a little bit, because at the beginning there is the same problem.
The problem is that i try to set DO but it didnt work.
I use the Ni Modbus Libary and the MB Ethernet Master and Slave Example. I have communication if i write the IP in the box because COM lamp is blinking. But i dont know what registers i have to write. Where do i find out what register/adress my DO have. I dont understand how to adress the DO. I know its a basic knowdledge but i dont get it and its driving me crazy.
Iam glad for any help
Solved! Go to Solution.
09-11-2015 06:50 AM
@mrgigi wrote:
Where do i find out what register/adress my DO have.
Usually, DOs are not treated as registers, but as coils, and you need to call the Write Coils function. To find the address you will need to look at the documentation of the device, but if it's coils, it usually starts from 1.
Some devices also map DI/DOs to registers (sometimes packing 16 DIs in one 16 bit register), but you should go with the coil functions.
09-15-2015 08:18 AM
Thanks a lot!
Over the days i have tried a lot of other ways but i still have connection (so the COM led is blinking) but nothingelse happens.
This is my example which iam using.
I have also tried to write a single coil by using software like Modsak but i still have only communication but no statusled is blinking if iam writing a coil.
I really dont know what iam doing wrong.
Thanks!
09-15-2015 02:58 PM
I don't know the device you're using, so I certainly can't say what's wrong. Like I said, you need to start with the documentation for the device and find the addresses for the relevant parts. Is it really 0x1120? Is that supposed to be coils or registers? Look that up.
If it doesn't work with an external program it likely means you're configuring or connecting something incorrectly. You might need to contact Beckhoff for support.
Some other comments about what you're doing, which are probably not a real problem, but which you should be aware of:
09-16-2015 12:38 AM
A few other comments:
09-16-2015 05:06 AM
Hello,
thanks a lot for your help and advice.
I solved the problem by changing the output Terminal.
greetings