0121-18 Monarco HAT Siemens LOGO!

Example Projects > 0121 Monarco HAT > 0121-18 Monarco HAT Siemens LOGO!

Monarco HAT as a 1-Wire data bridge for Siemens LOGO!

...

Timing of the project

The algorithm runs each 100 milliseconds (0.1 s). See the EXEC function block,
tick x ntick0 = 0.01 x 10 = 0.1 s.

Prerequisites

  • REXYGEN Runtime Core, MonarcoDrv, OwsDrv and S7Drv modules must be installed and running on the Raspberry Pi.
  • The LOGO! device is in RUN mode (logo_integration.lsc attached).
  • The IP address 192.168.1.111 is assumed in the LOGO! device. If the IP address differs, remember to change it in the configuration dialog of the IO driver file according to your LOGO! base module. As was already mentioned, LOGO! acts as a server the clients connect to.
  • Owserver (part of the OWFS package) must be installed, correctly configured and running on the Raspberry Pi.

Running the example

  • The *exec.mdl file is the project main file, open it with REXYGEN Studio.
  • Specify the 64-bit ROM ID of the attached temperature sensor. See the 1-Wire driver manual below.
  • Compile and download the project to the target device.
  • Switch to Watch mode and observe the algorithm (use Target->Watch Selection to display real-time data).

Documentation

Additional information