tests/wamp/plc.xml
author |
Andrey Skvortsov <andrej.skvortzov@gmail.com> |
|
Wed, 05 Apr 2017 14:24:52 +0300 |
changeset 1673 |
fab1b8da6eba |
parent 1448 |
20ff66dcc31d
|
child 2290 |
52afa2dec4fb |
permissions |
-rw-r--r-- |
clean PLC log only if there is something to clean
Otherwise exception happens in Beremiz service.
Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/connectors/PYRO/_init_.py", line 113, in catcher_func
return func(*args, **kwargs)
File "/home/developer/WorkData/PLC/beremiz/beremiz/connectors/PYRO/_init_.py", line 194, in my_local_func
return RemotePLCObjectProxy._getattr_(attrName)(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 381, in _call_
return self._send(self._name, args, kwargs)
File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 456, in _invokePYRO
return self.adapter.remoteInvocation(name, Pyro.constants.RIF_VarargsAndKeywords, vargs, kargs)
File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 457, in remoteInvocation
return self._remoteInvocation(method, flags, *args)
File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 532, in _remoteInvocation
answer.raiseEx()
File "/usr/lib/python2.7/dist-packages/Pyro/errors.py", line 72, in raiseEx
raise self.excObj
AttributeError: 'PLCObject' object has no attribute '_ResetLogCount'
+--- This exception occured remotely (Pyro) - Remote traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 719, in _handleInvocation2
res = obj.Pyro_dyncall(req[1],flags,req[3]) # (method,flags,args)
File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 108, in Pyro_dyncall
return getattr(self.delegate or self,method) (args,*keywords)
File "/home/developer/WorkData/PLC/beremiz/beremiz/runtime/PLCObject.py", line 101, in ResetLogCount
if self._ResetLogCount is not None:
AttributeError: 'PLCObject' object has no attribute '_ResetLogCount'
+--- End of remote traceback
<?xml version='1.0' encoding='utf-8'?>
<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Beremiz" productName="Beremiz" productVersion="1" creationDateTime="2015-02-05T11:44:55" contentDescription=" "/>
<contentHeader name="WAMPTest" modificationDateTime="2015-02-18T23:59:50">
<coordinateInfo>
<fbd>
<scaling x="0" y="0"/>
</fbd>
<ld>
<scaling x="0" y="0"/>
</ld>
<sfc>
<scaling x="0" y="0"/>
</sfc>
</coordinateInfo>
</contentHeader>
<types>
<dataTypes/>
<pous>
<pou name="program0" pouType="program">
<interface>
<localVars>
<variable name="LocalVar0">
<type>
<DINT/>
</type>
</variable>
</localVars>
<externalVars>
<variable name="PyVar0">
<type>
<DINT/>
</type>
</variable>
<variable name="PyVar1">
<type>
<DINT/>
</type>
</variable>
</externalVars>
</interface>
<body>
<FBD>
<inVariable localId="1" executionOrderId="0" height="25" width="55" negated="false">
<position x="144" y="70"/>
<connectionPointOut>
<relPosition x="55" y="12"/>
</connectionPointOut>
<expression>PyVar0</expression>
</inVariable>
<block localId="3" typeName="ADD" executionOrderId="0" height="60" width="65">
<position x="245" y="52"/>
<inputVariables>
<variable formalParameter="IN1">
<connectionPointIn>
<relPosition x="0" y="30"/>
<connection refLocalId="1">
<position x="245" y="82"/>
<position x="199" y="82"/>
</connection>
</connectionPointIn>
</variable>
<variable formalParameter="IN2">
<connectionPointIn>
<relPosition x="0" y="50"/>
<connection refLocalId="4">
<position x="245" y="102"/>
<position x="228" y="102"/>
<position x="228" y="113"/>
<position x="198" y="113"/>
</connection>
</connectionPointIn>
</variable>
</inputVariables>
<inOutVariables/>
<outputVariables>
<variable formalParameter="OUT">
<connectionPointOut>
<relPosition x="65" y="30"/>
</connectionPointOut>
</variable>
</outputVariables>
</block>
<inVariable localId="4" executionOrderId="0" height="25" width="73" negated="false">
<position x="125" y="101"/>
<connectionPointOut>
<relPosition x="73" y="12"/>
</connectionPointOut>
<expression>LocalVar0</expression>
</inVariable>
<outVariable localId="2" executionOrderId="0" height="25" width="55" negated="false">
<position x="344" y="70"/>
<connectionPointIn>
<relPosition x="0" y="12"/>
<connection refLocalId="3" formalParameter="OUT">
<position x="344" y="82"/>
<position x="310" y="82"/>
</connection>
</connectionPointIn>
<expression>PyVar1</expression>
</outVariable>
</FBD>
</body>
</pou>
</pous>
</types>
<instances>
<configurations>
<configuration name="config">
<resource name="resource1">
<task name="Task0" priority="0" interval="T#100ms">
<pouInstance name="Instance0" typeName="program0"/>
</task>
</resource>
</configuration>
</configurations>
</instances>
</project>