equal
deleted
inserted
replaced
25 import numpy |
25 import numpy |
26 import binascii |
26 import binascii |
27 |
27 |
28 from graphics.DebugDataConsumer import DebugDataConsumer, TYPE_TRANSLATOR |
28 from graphics.DebugDataConsumer import DebugDataConsumer, TYPE_TRANSLATOR |
29 |
29 |
30 #------------------------------------------------------------------------------- |
30 # ------------------------------------------------------------------------------- |
31 # Constant for calculate CRC for string variables |
31 # Constant for calculate CRC for string variables |
32 #------------------------------------------------------------------------------- |
32 # ------------------------------------------------------------------------------- |
33 |
33 |
34 STRING_CRC_SIZE = 8 |
34 STRING_CRC_SIZE = 8 |
35 STRING_CRC_MASK = 2 ** STRING_CRC_SIZE - 1 |
35 STRING_CRC_MASK = 2 ** STRING_CRC_SIZE - 1 |
36 |
36 |
37 #------------------------------------------------------------------------------- |
37 # ------------------------------------------------------------------------------- |
38 # Debug Variable Item Class |
38 # Debug Variable Item Class |
39 #------------------------------------------------------------------------------- |
39 # ------------------------------------------------------------------------------- |
40 |
40 |
41 |
41 |
42 class DebugVariableItem(DebugDataConsumer): |
42 class DebugVariableItem(DebugDataConsumer): |
43 """ |
43 """ |
44 Class that implements an element that consumes debug values for PLC variable and |
44 Class that implements an element that consumes debug values for PLC variable and |