PeBi
[203128%2F8550466%2Fmceclip0]
 
 
[203128%2F8550467%2Fmceclip0]
 
bug_report_2024_01_21__09-47-43.txt
 
app-title:
beremiz
app-version:
3.0
Release: 2024-01-18
cwd:
C:\Users\P\OpenPLC_Editor
date:
Sun Jan 21 09:47:43 2024
e-type:
<class 'AttributeError'>
e-value:
'FBD_Variable' object has no attribute 'GetValue'
locals:
event: <wx._core.CommandEvent object at 0x0000028109726B80>
element: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3C790>
iec_path: 'CONFIG0.RES0.INSTANCE0.ANALOG'
iec_type: 'INT'
self: <editors.Viewer.Viewer object at 0x0000028111E46700>
platform:
Windows-10-10.0.19045-SP0
python-version:
3.9.13
self:
VARIABLE_PANEL_TYPE: 'program'
ParentWindow: <BeremizIDE.Beremiz object at 0x000002817E671DC0>
Controler: <ProjectController.ProjectController object at 0x000002810B0E3190>
TagName: 'P:😋rogram0'
Icon: <wx._core.Bitmap object at 0x0000028109192940>
Debug: True
MenuItems: []
VariableEditor: <controls.VariablePanel.VariablePanel object at 0x0000028111E46670>
Editor: <wx._core.ScrolledWindow object at 0x0000028111E44670>
SubscribeTick: True
Inhibited: False
DataConsumers: {<graphics.GraphicCommons.Wire object at 0x0000028111E3CBB0>: 'CONFIG0.RES0.INSTANCE0.ANALOG', <graphics.GraphicCommons.Wire object at 0x0000028111E3C1C0>: 'CONFIG0.RES0.INSTANCE0._TMP_INT_TO_REAL20_OUT', <graphics.GraphicCommons.Wire object at 0x0000028111E2B610>: 'CONFIG0.RES0.INSTANCE0.SCALE_REAL0.OUT', <graphics.GraphicCommons.Wire object at 0x0000028111E2B070>: 'CONFIG0.RES0.INSTANCE0.TEST', <graphics.GraphicCommons.Wire object at 0x0000028111E2B400>: 'CONFIG0.RES0.INSTANCE0._TMP_GT25_OUT'}
LastRefreshTime: 1705826863.3268132
HasAcquiredLock: False
AccessLock: <unlocked _thread.lock object at 0x0000028111E3C180>
LastRefreshTimer: None
TimerAccessLock: <unlocked _thread.lock object at 0x0000028111E3CDE0>
DataProducer: <ProjectController.ProjectController object at 0x000002810B0E3190>
rubberBand: <graphics.RubberBand.RubberBand object at 0x0000028111E3C1F0>
Blocks: {16: <graphics.FBD_Objects.FBD_Block object at 0x0000028111E3C8E0>, 20: <graphics.FBD_Objects.FBD_Block object at 0x0000028111E3CB80>, 17: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3C790>, 18: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3C2B0>, 19: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3CAF0>, 22: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3C910>, 21: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E2B100>, 23: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E2B370>, 25: <graphics.FBD_Objects.FBD_Block object at 0x0000028111E3C820>, 28: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E2B040>, 26: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E2B0A0>, 27: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3CC40>}
Wires: {<graphics.GraphicCommons.Wire object at 0x0000028111E3CBB0>: 1, <graphics.GraphicCommons.Wire object at 0x0000028111E3C1C0>: 2, <graphics.GraphicCommons.Wire object at 0x0000028111E3CDC0>: 3, <graphics.GraphicCommons.Wire object at 0x0000028111E3CF70>: 4, <graphics.GraphicCommons.Wire object at 0x0000028111E2B160>: 5, <graphics.GraphicCommons.Wire object at 0x0000028111E2B340>: 6, <graphics.GraphicCommons.Wire object at 0x0000028111E2B2E0>: 7, <graphics.GraphicCommons.Wire object at 0x0000028111E2B610>: 8, <graphics.GraphicCommons.Wire object at 0x0000028111E2B070>: 9, <graphics.GraphicCommons.Wire object at 0x0000028111E2B130>: 10, <graphics.GraphicCommons.Wire object at 0x0000028111E2B400>: 11}
Comments: {}
Subscribed: {}
SelectedElement: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3C790>
HighlightedElement: None
ToolTipElement: <graphics.FBD_Objects.FBD_Variable object at 0x0000028111E3C790>
LastClientSize: wx.Size(1342, 607)
Scaling: (10.0, 10.0)
DrawGrid: True
GridBrush: <wx._core.Brush object at 0x0000028111E47160>
PageSize: None
PagePen: <wx._core.Pen object at 0x000002817D525AF0>
DrawingWire: False
current_id: 28
Highlights: []
SearchParams: None
SearchResults: None
CurrentFindHighlight: None
InstancePath: 'Config0.Res0.instance0'
StartMousePos: None
StartScreenPos: None
InstanceName: <editors.Viewer.DebugInstanceName object at 0x0000028111E3CE80>
LastHighlightCheckTime: 1705826861.690503
LastToolTipCheckTime: 1705826862.542177
Buffering: False
CurrentCursor: 0
wire_id: 11
Mode: 0
SavedMode: False
CurrentLanguage: 'FBD'
ElementRefreshList: []
ElementRefreshList_lock: <unlocked _thread.lock object at 0x0000028111E3CF30>
MiniTextDC: <wx._core.MemoryDC object at 0x0000028111E47040>
CurrentScale: 6
ViewScale: (1.0, 1.0)
RefreshHighlightsTimer: <wx._core.Timer object at 0x000002810AD25E50>
traceback:
File "C:\Users\P\OpenPLC_Editor\.\editor\editors\Viewer.py", line 1551, in ForceVariableFunction
dialog = ForceVariableDialog(self.ParentWindow, iec_type, str(element.GetValue()))
<class 'AttributeError'>: 'FBD_Variable' object has no attribute 'GetValue'
wx-platform:
__WXMSW__
wx-version:
4.2.0
 
Reply 0 0
thiagoralves
Thanks for the report! I’ll take a look at it
Reply 0 0
thiagoralves
Fixed!
Reply 0 0
PeBi
Yes, forcing the analog variable now works.
But when I want to stop forcing, the forced value is retained.
The condition can only be rectified by restarting the Arduino.
 
[203128%2F8553592%2Fmceclip0]
 
[203128%2F8553593%2Fmceclip0]
 
[203128%2F8553594%2Fmceclip0]
 
[203128%2F8553595%2Fmceclip0]
 
[203128%2F8553596%2Fmceclip0]
Reply 0 0
thiagoralves
This is a bug on the debugger firmware (the part that goes to the arduino board). It may take some time for me to be able to fix this
Reply 0 0
thiagoralves
Reply 0 0
Reply