Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:app-note:siemens_logo_modbus [2024-03-20 08:07] mattias [Limitation] |
blocks:app-note:siemens_logo_modbus [2024-03-20 13:19] (current) mattias [Programming the PLC] |
||
---|---|---|---|
Line 3: | Line 3: | ||
====Introduction==== | ====Introduction==== | ||
This application note describes the steps to configure the device and blocks to be able to set the coils and read inputs of the device. Device version LOGO!8.3 is used in this example, but it is likely to work for any model of the Siemens LOGO! PLC. It is possible to buy a get started kit that contains a device and the configuration software in one single kit. | This application note describes the steps to configure the device and blocks to be able to set the coils and read inputs of the device. Device version LOGO!8.3 is used in this example, but it is likely to work for any model of the Siemens LOGO! PLC. It is possible to buy a get started kit that contains a device and the configuration software in one single kit. | ||
- | This application makes use of modbus implementation enhancements so make sure to use Blocks 6.3.1 or more recent. | + | |
+ | This application makes use of recent Blocks | ||
A few of the benefits of this type of device is: | A few of the benefits of this type of device is: | ||
* Good value for money | * Good value for money | ||
- | * Can be extended with additional | + | * Can be extended with additional modules. |
- | * Fits in a standard | + | * Fits in a standard |
* Electricians will be happy to install them in any mains system. | * Electricians will be happy to install them in any mains system. | ||
- | * Can be programmed for special tasks from programming the PLC. | + | * Can be programmed for special tasks from programming the PLC (not within the scope of this tutorial) |
Line 30: | Line 31: | ||
{{: | {{: | ||
- | * | + | Here it is possible to specify connections from a perticular server/ |
{{: | {{: | ||
Line 50: | Line 51: | ||
This is done from the manage page and the Modbus I/O modules tab. | This is done from the manage page and the Modbus I/O modules tab. | ||
- | {{: | + | {{: |
As soon as we got that setup we can use all channels as properties in Blocks allowing us to bind controls or texts to display or control the property values.. | As soon as we got that setup we can use all channels as properties in Blocks allowing us to bind controls or texts to display or control the property values.. | ||
Line 60: | Line 61: | ||
- | ====Limitation==== | + | ====Temporary limitations==== |
- | Currently it is not possible to read holding registers with modern addressing. We have | + | Currently |
- | To work around this, one can use the classic modicon addressing and translate the siemens addressed | + | To work around this, one can use the classic modicon addressing and translate the Siemens addresses |
In example: | In example: | ||
Line 71: | Line 72: | ||
Addresses starting with 4XXXXX will use function 3 (holding registers) | Addresses starting with 4XXXXX will use function 3 (holding registers) | ||
- | {{: | + | In this blocks configuration I added the same as in the example above, but I also added a holding register. I wanted to read that because I programmed a pulse counter in the PLC that outputs to the holding register. This way I can expose the value as a property in blocks and make use of it in any task logic or expose it in content. |
+ | {{: | ||
+ | |||
+ | ====Programming the PLC==== | ||
+ | |||
+ | It is not that hard to program a PLC, please use online tutorials and Siemens documentation regarding how to create programs. |