Flow to Adapt The s7 node to the LOGO from siemens

First Step to adapt S7-node to logo-node

First Step Install & Config

In Node-Red

Install https://flows.nodered.org/node/node-red-contrib-s7

This Part will settle comunication and hability to read most of I Q AI AQ NAI NAQ M AM from LOGO I didn't configured all yet. You can look at https://www.promotic.eu/en/pmdoc/Subsystems/Comm/PLC/LOGO.htm for missing adresses codes.

in LOGO SoftConfort

  • Tools-->Ethernet connections
    • LOGO IP adress
    • Subnet Mask
    • Default Gateway
    • Ok
  • Right Click on Ethernet connections
  • Add Server connection --> S7 Connection
  • Double click on connection1
    • Tick Connect with an Operator Panel (OP)
    • It will change TSAP to 02.00
    • Tick Accept all connection requests (Or you know what you do)
    • Remote Properties (Client) TSAP: 01.00
    • OK

      in Node Red:

  • Menu (Upper Right)-->Import-->Clipboard
  • Paste flow
  • Import
  • In S7-LOGO8 Flow
  • Double click on LOGO8
  • PLC properties (little pencil)
  • Change for your IP adress (where red node is intalled)
  • Deploy

Second Step Setup VM

The Logo has a memory of 850 bytes you can configurate in the way to be able to write in NI NAI and to read function bloc results. This memory is not really organised but LOGO Soft Comfort force you to put all fonction block variables at he begining. I advice to start NI at 600.0 and NAI at 700 to let space for function block variables

|0--Function Block Var-----------------------------|600.0--NI-----|700--NAI---------850|

Read Fontions Blocs Results

in LOGO SoftConfort

-Tools-->Parameter VM Mapping

  • There in the first column, add your block
  • In the second, add the parameter you want to transmit it will fill automaticly the type and the adress
  • Take note of the type (Bit, Word..) and the adress
  • OK

in Node Red

  • Menu-->Configuration nodes
  • In config tab double click on S7-LOGO8
  • Go in Variables tab click add
  • If Byte --> DB1,Bxxx where xxx is the adress
  • If Word --> DB1,INTxx where xx is the adress
  • Update

The new variable is aviable

Write in Network inputs

in LOGO SoftConfort

  • Add a NI or NAI
  • double click on it
    • In Read value from chosse Local Variable Memory (VM)
    • Chose a number that don't cross with function blocks (It's why I propose to start from 600.0 for NI and 700 for NAI)
    • OK

in Node Red

  • Menu-->Configuration nodes
  • In config tab double click on S7-LOGO8
  • Go in Variables tab click add
  • If Bit (NI) --> DB1,Xxxx.x where xxx.x is the adress
  • If Byte --> DB1,Bxxx where xxx is the adres~ I don' know yet I never used
  • If Word (NAI) --> DB1,INTxx where xxx is the adress
  • Update

The new variable is aviable

I'm Newbie in node red & LOGO this contribution is made from my experience with

  • LOGO8 FS4 with 1.82.01 firmware
  • LOGO SoftConfort 8.2
  • Node Red v0.18.7

I've been helped in theses places

Don't h├ęsitate to report bug,fail,comment,ameliorations Enjoy ;-)

[{"id":"7a88f7f5.94823","type":"tab","label":"S7-LOGO8","disabled":false,"info":"First Step to adapt S7-node to logo-node\n\nLogoComfort side:\n\nTools-->Ethernet connections\nEnter:\n-LOGO IP adress\n-Subnet Mask\n-Default Gateway\n\nRight Click on Ethernet connections\nAdd Server connection --> S7 Connection\nDouble click on connection1\n\nTick Connect with an Operator Panel (OP)\nIt will change TSAP to 02.00\n\nTick Accept all connection requests (Or you know what you do)\n\nRemote Properties (Client) TSAP: 01.00\n\nRed Node Side:\nMenu (Upper Right)-->Import-->Clipboard\nPaste flow\nImport\n\nIn S7-LOGO8 Flow\nDouble click on LOGO8\nPLC properties (little pencil)\nChange for your Red Node IP adress\n\nDeploy\nNow you could already read all I/O of Logo\n"},{"id":"de665f4.8a9612","type":"s7 in","z":"7a88f7f5.94823","endpoint":"ab1b0b4c.23e","mode":"all-split","variable":"","diff":true,"name":"LOGO8","x":490,"y":180,"wires":[[]]},{"id":"ab1b0b4c.23e","type":"s7 endpoint","z":"","address":"0.0.0.0","port":"102","rack":"0","slot":"2","localtsaphi":"01","localtsaplo":"00","remotetsaphi":"02","remotetsaplo":"00","connmode":"tsap","cycletime":"500","timeout":"1500","verbose":"default","name":"S7-LOGO8","vartable":[{"addr":"DB1,X1064.0","name":"Q01"},{"addr":"DB1,X1064.1","name":"Q02"},{"addr":"DB1,X1064.2","name":"Q03"},{"addr":"DB1,X1064.3","name":"Q04"},{"addr":"DB1,X1064.4","name":"Q05"},{"addr":"DB1,X1064.5","name":"Q06"},{"addr":"DB1,X1064.6","name":"Q07"},{"addr":"DB1,X1064.7","name":"Q08"},{"addr":"DB1,X1065.0","name":"Q09"},{"addr":"DB1,X1065.1","name":"Q10"},{"addr":"DB1,X1065.2","name":"Q11"},{"addr":"DB1,X1065.3","name":"Q12"},{"addr":"DB1,X1065.4","name":"Q13"},{"addr":"DB1,X1065.5","name":"Q14"},{"addr":"DB1,X1065.6","name":"Q15"},{"addr":"DB1,X1065.7","name":"Q16"},{"addr":"DB1,X1066.0","name":"Q17"},{"addr":"DB1,X1066.1","name":"Q18"},{"addr":"DB1,X1066.2","name":"Q19"},{"addr":"DB1,X1066.3","name":"Q20"},{"addr":"DB1,X1024.0","name":"I01 AI03"},{"addr":"DB1,X1024.1","name":"I02 AI04"},{"addr":"DB1,X1024.2","name":"I03 High Freq"},{"addr":"DB1,X1024.3","name":"I04 High Freq"},{"addr":"DB1,X1024.4","name":"I05 High Freq"},{"addr":"DB1,X1024.5","name":"I06 High Freq"},{"addr":"DB1,X1024.6","name":"I07 AI01"},{"addr":"DB1,X1024.7","name":"I08 AI02"},{"addr":"DB1,X1025.0","name":"I09"},{"addr":"DB1,X1025.1","name":"I10"},{"addr":"DB1,X1025.2","name":"I11"},{"addr":"DB1,X1025.3","name":"I12"},{"addr":"DB1,X1025.4","name":"I13"},{"addr":"DB1,X1025.5","name":"I14"},{"addr":"DB1,X1025.6","name":"I15"},{"addr":"DB1,X1025.7","name":"I16"},{"addr":"DB1,X1026.0","name":"I17"},{"addr":"DB1,X1026.1","name":"I18"},{"addr":"DB1,X1026.2","name":"I19"},{"addr":"DB1,X1026.3","name":"I20"},{"addr":"DB1,X1026.4","name":"I21"},{"addr":"DB1,X1026.5","name":"I22"},{"addr":"DB1,X1026.6","name":"I23"},{"addr":"DB1,X1026.7","name":"I24"},{"addr":"DB1,INT1032","name":"AI01"},{"addr":"DB1,INT1034","name":"AI02"},{"addr":"DB1,INT1036","name":"AI03"},{"addr":"DB1,INT1038","name":"AI04"},{"addr":"DB1,INT1040","name":"AI06"},{"addr":"DB1,INT1042","name":"AI07"},{"addr":"DB1,INT1044","name":"AI08"},{"addr":"DB1,INT1046","name":"AI09"},{"addr":"DB1,INT1072","name":"AQ01"},{"addr":"DB1,INT1074","name":"AQ02"},{"addr":"DB1,INT1076","name":"AQ03"},{"addr":"DB1,INT1078","name":"AQ04"},{"addr":"DB1,INT1080","name":"AQ05"},{"addr":"DB1,INT1082","name":"AQ06"},{"addr":"DB1,INT1084","name":"AQ07"},{"addr":"DB1,INT1086","name":"AQ08"},{"addr":"DB1,INT1088","name":"AQ09"},{"addr":"DB1,X1104.0","name":"M01"},{"addr":"DB1,X1104.1","name":"M02"},{"addr":"DB1,X1104.2","name":"M03"},{"addr":"DB1,X1104.3","name":"M04"},{"addr":"DB1,X1104.4","name":"M05"},{"addr":"DB1,X1104.5","name":"M06"},{"addr":"DB1,X1104.6","name":"M07"},{"addr":"DB1,X1104.7","name":"M08 Start"},{"addr":"DB1,X1105.0","name":"M09"},{"addr":"DB1,X1105.1","name":"M10"},{"addr":"DB1,X1105.2","name":"M11"},{"addr":"DB1,X1105.3","name":"M12"},{"addr":"DB1,X1105.4","name":"M13"},{"addr":"DB1,X1105.5","name":"M14"},{"addr":"DB1,X1105.6","name":"M15"},{"addr":"DB1,X1105.7","name":"M16"},{"addr":"DB1,X1105.0","name":"M17"},{"addr":"DB1,X1105.1","name":"M18"},{"addr":"DB1,X1105.2","name":"M19"},{"addr":"DB1,X1105.3","name":"M20"},{"addr":"DB1,X1105.4","name":"M21"},{"addr":"DB1,X1105.5","name":"M22"},{"addr":"DB1,X1105.6","name":"M23"},{"addr":"DB1,X1105.7","name":"M24"},{"addr":"DB1,X1106.0","name":"M25 LOGO Screen White"},{"addr":"DB1,X1106.1","name":"M26 TDE Screen White"},{"addr":"DB1,X1106.2","name":"M27 CharSet"},{"addr":"DB1,X1106.3","name":"M28 LOGO Screen Orange"},{"addr":"DB1,X1106.4","name":"M29 LOGO Screen Red"},{"addr":"DB1,X1106.5","name":"M30 TDE Screen Orange"},{"addr":"DB1,X1106.6","name":"M31 TDE Screen Red"},{"addr":"DB1,X1106.7","name":"M32"},{"addr":"DB1,X1106.0","name":"M33...64"},{"addr":"DB1,INT1118","name":"AM1"},{"addr":"DB1,INT1120","name":"AM2"},{"addr":"DB1,INT1122","name":"AM3"},{"addr":"DB1,INT1124","name":"AM4"},{"addr":"DB1,INT1126","name":"AM5...64"},{"addr":"DB1,X1246.0","name":"NI1"},{"addr":"DB1,X1246.1","name":"NI1..64"},{"addr":"DB1,X1390.0","name":"NQ1"},{"addr":"DB1,X1390.1","name":"NQ1..64"},{"addr":"DB1,INT1262","name":"NAI1"},{"addr":"DB1,INT1264","name":"NAI1...64"},{"addr":"DB1,INT1406","name":"NAQ1"},{"addr":"DB1,INT1408","name":"NAQ2...64"}]}]

Flow Info

Created 2 years, 6 months ago
Updated 2 years ago
Rating: not yet rated

Owner

Node Types

Core
  • tab (x1)
Other
  • s7 endpoint (x1)
  • s7 in (x1)

Tags

  • S7
  • Configuration
  • LOGO
  • E/S
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option