![]() ![]() |
Hi,
I have a Twido with an Ethernet port.
I want to use the PhpModBus scripts (http://code.google.com/p/phpmodbus/) in order to create a PHP web page that can read and write value on my Twido.
Nevertheless, it doesn't work and I can't find an example on Internet.
Did someone successfully implement the PhpModBus script (or another) to communicate with a Twido?
I have a Twido with an Ethernet port.
I want to use the PhpModBus scripts (http://code.google.com/p/phpmodbus/) in order to create a PHP web page that can read and write value on my Twido.
Nevertheless, it doesn't work and I can't find an example on Internet.
Did someone successfully implement the PhpModBus script (or another) to communicate with a Twido?
![]() ![]() |
I did not try phpmodbus, but my command line client modbus-cli should be helpful for you to see that the PLC is connected and responding to Modbus Ethernet. After installing the Ruby gem, you should be able to run for example:
modbus read 192.168.1.1 %MW0 3
To read the first three registers of the PLC.
Good luck!
Tallak Tveide
---
Installation instructions:
Install ruby (version 1.9.x should be fine). www.rubylang.com.
After installing ruby, open a command line prompt with ruby (on the start menu on windows), and then run:
gem install modbus-cli
Next run
modbus --help
to see if installation is successful.
The program is supplied free of charge under the MIT license, with source code at http://github.com/tallakt/modbus-cli/
modbus read 192.168.1.1 %MW0 3
To read the first three registers of the PLC.
Good luck!
Tallak Tveide
---
Installation instructions:
Install ruby (version 1.9.x should be fine). www.rubylang.com.
After installing ruby, open a command line prompt with ruby (on the start menu on windows), and then run:
gem install modbus-cli
Next run
modbus --help
to see if installation is successful.
The program is supplied free of charge under the MIT license, with source code at http://github.com/tallakt/modbus-cli/
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-2013 Nerds in Control, LLC. All rights reserved.
Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.
Fortune
"Here's something to think about: How come you never see a headline like
`Psychic Wins Lottery'?"
-- Jay Leno








on 12 June, 2012 - 5:36 am
