12-02-2014, 01:58 AM
Bonjour a tous,
J'ai recu mon 750-881 et suis en train de faire quelques tests
. J'ai fait un projet tres simple avec Calaos-Installer (une entree a 1 = une sortie a 1) et envoye le code a l'automate et a Calaos-server.
Lorsque je deconnecte le cable reseau, l'automate fonctionne comme attendu en mode degrade mais lorsque je branche le cable la sortie ne s'allume pas ! Ou est le probleme ?
Voici le log de Calaos-Server :
rules.xml
IO.xml
J'ai recu mon 750-881 et suis en train de faire quelques tests

Lorsque je deconnecte le cable reseau, l'automate fonctionne comme attendu en mode degrade mais lorsque je branche le cable la sortie ne s'allume pas ! Ou est le probleme ?

Voici le log de Calaos-Server :
Code:
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_network UDPServer.cpp:153 void UDPServer::ProcessRequest(Ecore_Con_Client*, std::string)() received input 0 state=1
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_input IO/Wago/WIDigitalBP.cpp:72 virtual void Calaos::WIDigitalBP::ReceiveFromWago(std::string, int, bool, std::string)() Got 1 on std input 0
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_rule Rule.cpp:90 bool Calaos::Rule::ExecuteActions()() Rule(Michael's bedroom,xxxx): Starting execution (1 actions)
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_output IO/OutputLight.cpp:61 bool Calaos::OutputLight::_set_value(bool)() output_0: got action, True
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_rule Rule.cpp:99 bool Calaos::Rule::ExecuteActions()() Rule(Michael's bedroom,xxxx): Execution done.
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:135 bool Calaos::WagoCtrl::write_single_bit(Utils::UWord, bool)() WagoCtrl::write_single_bit(0, true): Ok
Dec 02 01:24:55 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
Dec 02 01:24:59 n450 calaos_server[433]: INF<433>:calaos_network UDPServer.cpp:153 void UDPServer::ProcessRequest(Ecore_Con_Client*, std::string)() received input 0 state=0
Dec 02 01:24:59 n450 calaos_server[433]: INF<433>:calaos_input IO/Wago/WIDigitalBP.cpp:72 virtual void Calaos::WIDigitalBP::ReceiveFromWago(std::string, int, bool, std::string)() Got 0 on std input 0
Dec 02 01:24:59 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
Dec 02 01:25:05 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
rules.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:rules xmlns:calaos="http://www.calaos.fr">
<calaos:rule name="xxxx" type="Michael's bedroom" specialType="">
<calaos:condition type="standard" trigger="true">
<calaos:input id="input_1" oper="==" val="true"/>
</calaos:condition>
<calaos:action type="standard">
<calaos:output id="output_0" val="true"/>
</calaos:action>
</calaos:rule>
</calaos:rules>
IO.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:ioconfig xmlns:calaos="http://www.calaos.fr">
<calaos:home>
<calaos:room name="Michael's bedroom" type="chambre" hits="0">
<calaos:input host="192.168.1.100" id="input_1" name="Switch - Door - I1:1:1" port="502" type="WIDigitalBP" var="0" wago_841="false"/>
<calaos:output gtype="light" host="192.168.1.100" id="output_0" name="Light - Ceiling" port="502" type="WODigital" var="0" wago_841="false"/>
</calaos:room>
</calaos:home>
</calaos:ioconfig>