Massimo Cristofolini / Mbed 2 deprecated SettiminoReadDB

Dependencies:   EthernetInterface Settimino mbed-rtos mbed

Homepage

The test program requires that the MBED can see the PLC whithin the network, and that the PLC expose the requested DB. It is possible to simulate a PLC running Snap7 server example program, contained in the Snap7 library package (http://snap7.sourceforge.net), from a PC.

Running this example the mbed will output something similar from the serial port:

Connect to network...
Connected: IP Address is 10.0.10.213
Connecto to PLC at 10.0.10.51...
Connected: PDU Length = 240
Read 10 bytes from DB21, starting at 0...
Read data:
DB content
Disconnect from PLC...
Disconnect from network...

-- Test terminated --

All wikipages