Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://community.home-assistant.io/t/anyone-experience-with-siemens-logo-0ba7/446790
- HOW TO COMMUNICATE BETWEEN SIEMENS LOGO 0BA7 AND NODE RED
- **STEP 1:** Follow this guide: https://flows.nodered.org/flow/272a6d2104474c68f7b0e01bae025ead
- But where it says
- * PLC properties (little pencil)
- * Change for your IP adress (where red node is intalled)
- There is a mistake, this should be the IP address of your Logo. See my examples of configuration that works for me. 192.168.0.2 is the IP of my Logo in this example. Node Red S7 node config:
- https://imgur.com/joFAInF
- "Name" change to whatever you like, it's just left at the default "S7-LOGO8" here.
- LOGO!Soft Comfort v8.3 config:
- https://imgur.com/qKpviP0
- Fill in your default gateway IP here if you for some reason want to access the Logo directly from outside of your local network, otherwise i'ts fine to leave it blank, or at least it was in my case.
- **STEP 2:** If you followed every step in the Logo 8 guide you will have a list of Logo 8 variables configured in your s7 node. However, these are for Logo 8 and need to be altered for the Logo 7. I won't go into detail on Logo 7 adressing, parameter VM mapping and such but I'll help you along.
- As a reference for figuring out the 0BA7 adresses I used this document:
- https://docplayer.net/126912375-Application-note-connecting-a-logo-0ba7-0ba8-s7a-driver-v7-51-build-104.html
- Here's my list of variables to get you started, this is far from a complete list and it may contain errors since I'm only using some of these myself, but it should get you started. If you save this as a .csv you may be able to import it directly as a file to your variable config.
- ```
- DB1,X942.0;Q01
- DB1,X942.1;Q02
- DB1,X942.2;Q03
- DB1,X942.3;Q04
- DB1,X942.4;Q05
- DB1,X942.5;Q06
- DB1,X942.6;Q07
- DB1,X942.7;Q08
- DB1,X923.0;I01
- DB1,X923.1;I02
- DB1,X923.2;I03
- DB1,X923.3;I04
- DB1,X923.4;I05
- DB1,X923.5;I06
- DB1,X923.6;I07
- DB1,X923.7;I08
- DB1,X924.0;I09
- DB1,X924.1;I10
- DB1,X924.2;I11
- DB1,X924.3;I12
- DB1,INT926;AI01
- DB1,INT928;AI02
- DB1,INT944;AQ01
- DB1,INT946;AQ02
- DB1,X948.0;M01
- DB1,X948.1;M02
- DB1,X948.2;M03
- DB1,X948.3;M04
- DB1,X948.4;M05
- DB1,X948.5;M06
- DB1,X948.6;M07
- DB1,X948.7;M08
- DB1,X949.0;M09
- DB1,X949.1;M10
- DB1,X949.2;M11
- DB1,X949.3;M12
- DB1,X949.4;M13
- DB1,X949.5;M14
- DB1,X949.6;M15
- DB1,X949.7;M16
- DB1,X950.0;M17
- DB1,X950.1;M18
- DB1,X950.2;M19
- DB1,X950.3;M20
- DB1,X950.4;M21
- DB1,X950.5;M22
- DB1,X950.6;M23
- DB1,X950.7;M24
- DB1,X951.0;M25
- DB1,X951.1;M26
- DB1,X951.2;M27
- DB1,INT952;AM1
- DB1,INT954;AM2
- DB1,INT956;AM3
- DB1,INT958;AM4
- DB1,INT960;AM5
- DB1,INT962;AM6
- DB1,INT964;AM7
- DB1,INT966;AM8
- DB1,INT968;AM9
- DB1,INT970;AM10
- DB1,INT972;AM11
- DB1,INT974;AM12
- DB1,INT976;AM13
- DB1,INT978;AM14
- DB1,INT980;AM15
- DB1,INT982;AM16
- DB1,B0;VB0
- DB1,B1;VB1
- DB1,B2;VB2
- DB1,B3;VB3
- DB1,B4;VB4
- DB1,B5;VB5
- DB1,B6;VB6
- DB1,B7;VB7
- ```
- With boolean values you can use symbolic adressing such as Q0.0, Q0.1 etc but in my example I use the full addresses. With block parameter from the Bxxx blocks such as analog amplifier, PI controller and so forth you have to use parameter VM mapping in LSC. E.g. if you address a "Word" (2 bytes) in LSC to address 0 you use "DB1,B0;VB0" and "DB1,B0;VB0" to catch it in NR. Some tinkering to format these values, e.g. timestamp from a timer is sent in Hex format, was a struggle for me to figure out and format but piece of cake if you are decent with NR (or HA if you prefer to format there). Here's an example of my VM mapping, these translate to VB0..5 in the s7 node (2 bytes per parameter for the "Word" type).
- https://imgur.com/HlZqEit
- Hope this will be useful for a few people out there, good luck!
Add Comment
Please, Sign In to add comment