Defaut COM modbus

Forum traitant des automates industriels de marque Siemens.
Avatar du membre
lolodu013
Codeur fou
Codeur fou
Messages : 261
Enregistré le : 05 mars 2016, 08:31

Re: Defaut COM modbus

Message par lolodu013 »

Bonsoir,
Avec :"Ajouter dans FC10 le test de la tempo pour ne pas changer d'esclave si REQ_CONTRAT_MODBUS est encore actif"

https://drive.google.com/file/d/1AJIzk_ ... sp=sharing
Avatar du membre
lolodu013
Codeur fou
Codeur fou
Messages : 261
Enregistré le : 05 mars 2016, 08:31

Re: Defaut COM modbus

Message par lolodu013 »

DurandO
Maître du binaire
Maître du binaire
Messages : 482
Enregistré le : 21 mars 2021, 15:31

Re: Defaut COM modbus

Message par DurandO »

Bonsoir,
lolodu013 a écrit : 16 nov. 2021, 18:44 Bonsoir,
Avec :"Ajouter dans FC10 le test de la tempo pour ne pas changer d'esclave si REQ_CONTRAT_MODBUS est encore actif"
Oui, désolé. la fin tempo monte et du coup la requête est réactivée pour le même esclave.
Je te propose ceci :
tu vire le dernier reseau qui tgére activation contrat.
SUPP.png
SUPP.png (7.93 Kio) Vu 1525 fois
Tu ajoutes un réseau a la suite du reseau 2
Deplac.png
Deplac.png (11.35 Kio) Vu 1525 fois

Code : Tout sélectionner

        UN    "CONTRAT ESCLAVE 2"         //     ET PAS Contrat ESCLAVE 2
      UN    "CONTRAT ESCLAVE 3"         //     ET PAS Contrat ESCLAVE 3
      UN    "CONTRAT ESCLAVE 4"         //     ET PAS Contrat ESCLAVE 4
      UN    "CONTRAT ESCLAVE 5"         //     ET PAS Contrat ESCLAVE 5
      UN    "CONTRAT ESCLAVE 6"         //     ET PAS Contrat ESCLAVE 6
      UN    "CONTRAT ESCLAVE 7"         //     ET PAS Contrat ESCLAVE 7
      UN    "CONTRAT ESCLAVE 8"         //     ET PAS Contrat ESCLAVE 8
      UN    "CONTRAT ESCLAVE 9"         //     ET PAS Contrat ESCLAVE 9
      UN    "CONTRAT ESCLAVE 10"        //     ET PAS Contrat ESCLAVE 10
      UN    "CONTRAT ESCLAVE 11"        //     ET PAS Contrat ESCLAVE 11
      UN    "CONTRAT ESCLAVE 12"        //     ET PAS Contrat ESCLAVE 12
      UN    "CONTRAT ESCLAVE 13"        //     ET PAS Contrat ESCLAVE 13
      UN    "CONTRAT ESCLAVE 14"        //     ET PAS Contrat ESCLAVE 14
      UN    "CONTRAT ESCLAVE 15"        //     ET PAS Contrat ESCLAVE 15
      UN    "CONTRAT ESCLAVE 16"        //     ET PAS Contrat ESCLAVE 15
      S     "CONTRAT ESCLAVE 2"         //   Alors Activation contrat ESCLAVE 2 
      SPB   SUIT

      U     "CONTRAT ESCLAVE 2"         //     Si Contrat ESCLAVE 3
      R     "CONTRAT ESCLAVE 2"         //        Alors Activation contrat ESCLAVE 4
      S     "CONTRAT ESCLAVE 3"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 3"         //     Si Contrat ESCLAVE 3
      R     "CONTRAT ESCLAVE 3"         //        Alors Activation contrat ESCLAVE 4
      S     "CONTRAT ESCLAVE 4"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 4"         //     Si Contrat ESCLAVE 4
      R     "CONTRAT ESCLAVE 4"         //        Alors Activation contrat ESCLAVE 5
      S     "CONTRAT ESCLAVE 5"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 5"         //     Si Contrat ESCLAVE 5
      R     "CONTRAT ESCLAVE 5"         //        Alors Activation contrat ESCLAVE 6
      S     "CONTRAT ESCLAVE 6"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 6"         //     Si Contrat ESCLAVE 6
      R     "CONTRAT ESCLAVE 6"         //        Alors Activation contrat ESCLAVE 7
      S     "CONTRAT ESCLAVE 7"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 7"         //     Si Contrat ESCLAVE 7
      R     "CONTRAT ESCLAVE 7"         //        Alors Activation contrat ESCLAVE 8
      S     "CONTRAT ESCLAVE 8"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 8"         //     Si Contrat ESCLAVE 8
      R     "CONTRAT ESCLAVE 8"         //        Alors Activation contrat ESCLAVE 9
      S     "CONTRAT ESCLAVE 9"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 9"         //     Si Contrat ESCLAVE 9
      R     "CONTRAT ESCLAVE 9"         //        Alors Activation contrat ESCLAVE 10
      S     "CONTRAT ESCLAVE 10"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 10"        //     Si Contrat ESCLAVE 10
      R     "CONTRAT ESCLAVE 10"        //        Alors Activation contrat ESCLAVE 11
      S     "CONTRAT ESCLAVE 11"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 11"        //     Si Contrat ESCLAVE 11
      R     "CONTRAT ESCLAVE 11"        //        Alors Activation contrat ESCLAVE 12
      S     "CONTRAT ESCLAVE 12"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 12"        //     Si Contrat ESCLAVE 12
      R     "CONTRAT ESCLAVE 12"        //        Alors Activation contrat ESCLAVE 13
      S     "CONTRAT ESCLAVE 13"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 13"        //     Si Contrat ESCLAVE 13
      R     "CONTRAT ESCLAVE 13"        //        Alors Activation contrat ESCLAVE 14
      S     "CONTRAT ESCLAVE 14"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 14"        //     Si Contrat ESCLAVE 14
      R     "CONTRAT ESCLAVE 14"        //        Alors Activation contrat ESCLAVE 15
      S     "CONTRAT ESCLAVE 15"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 15"        //     Si Contrat ESCLAVE 15
      R     "CONTRAT ESCLAVE 15"        //        Alors Activation contrat ESCLAVE 16
      S     "CONTRAT ESCLAVE 16"
      SPB   SUIT

      U     "CONTRAT ESCLAVE 16"        //     Si Contrat ESCLAVE 16
      R     "CONTRAT ESCLAVE 16"        //        Alors Activation contrat ESCLAVE 2
      S     "CONTRAT ESCLAVE 2"
SUIT: NOP   0

C'est SPB et non SPA j'ai du corriger
Avatar du membre
lolodu013
Codeur fou
Codeur fou
Messages : 261
Enregistré le : 05 mars 2016, 08:31

Re: Defaut COM modbus

Message par lolodu013 »

bonjour,

Je pense avoir suivis tes indications mais je t'envoi en MP le pdf de mon FC10 modifié. Je suis pas sur d'avoir bien compris

en tout la vidéo après la modifications

https://drive.google.com/file/d/1mhBqJm ... sp=sharing
DurandO
Maître du binaire
Maître du binaire
Messages : 482
Enregistré le : 21 mars 2021, 15:31

Re: Defaut COM modbus

Message par DurandO »

Bonsoir,
lolodu013 a écrit : 17 nov. 2021, 13:29 Je pense avoir suivis tes indications mais je t'envoi en MP le pdf de mon FC10 modifié.
Dans ta vidéo, je ne vois pas d'attente entre chaque requête, je ne vois pas monter M100.0, les "CONTRAT ESCLAVE x" n'évoluent pas normalement.
Je n'ai pas de quoi tester véritablement la communication gérée par le FB10 (je l'ai simulée), mais l’enchaînement des CONTRAT ESCLAVE x avec attente entre activation de nouvelle commandes si : donc je ne comprends pas, peut-être une erreur de saisie.

Envoi-moi ton FC10 que je vérifie.
Avatar du membre
lolodu013
Codeur fou
Codeur fou
Messages : 261
Enregistré le : 05 mars 2016, 08:31

Re: Defaut COM modbus

Message par lolodu013 »

Bonsoir,

Je t'ai mis le FC en MP.

Merci
Répondre