8
8
9
9
10
10
class PDO (PdoBase ):
11
- """PDO Class for backwards compatibility
11
+ """PDO Class for backwards compatibility.
12
+
12
13
:param rpdo: RPDO object holding the Receive PDO mappings
13
14
:param tpdo: TPDO object holding the Transmit PDO mappings
14
15
"""
@@ -27,9 +28,11 @@ def __init__(self, node, rpdo, tpdo):
27
28
28
29
29
30
class RPDO (PdoBase ):
30
- """PDO specialization for the Receive PDO enabling the transfer of data from the master to the node.
31
+ """Receive PDO to transfer data from somewhere to the represented node.
32
+
31
33
Properties 0x1400 to 0x1403 | Mapping 0x1600 to 0x1603.
32
- :param object node: Parent node for this object."""
34
+ :param object node: Parent node for this object.
35
+ """
33
36
34
37
def __init__ (self , node ):
35
38
super (RPDO , self ).__init__ (node )
@@ -38,8 +41,10 @@ def __init__(self, node):
38
41
39
42
def stop (self ):
40
43
"""Stop transmission of all RPDOs.
44
+
41
45
:raise TypeError: Exception is thrown if the node associated with the PDO does not
42
- support this function"""
46
+ support this function.
47
+ """
43
48
if isinstance (self .node , canopen .RemoteNode ):
44
49
for pdo in self .map .values ():
45
50
pdo .stop ()
@@ -48,8 +53,11 @@ def stop(self):
48
53
49
54
50
55
class TPDO (PdoBase ):
51
- """PDO specialization for the Transmit PDO enabling the transfer of data from the node to the master.
52
- Properties 0x1800 to 0x1803 | Mapping 0x1A00 to 0x1A03."""
56
+ """Transmit PDO to broadcast data from the represented node to the network.
57
+
58
+ Properties 0x1800 to 0x1803 | Mapping 0x1A00 to 0x1A03.
59
+ :param object node: Parent node for this object.
60
+ """
53
61
54
62
def __init__ (self , node ):
55
63
super (TPDO , self ).__init__ (node )
@@ -58,8 +66,10 @@ def __init__(self, node):
58
66
59
67
def stop (self ):
60
68
"""Stop transmission of all TPDOs.
69
+
61
70
:raise TypeError: Exception is thrown if the node associated with the PDO does not
62
- support this function"""
71
+ support this function.
72
+ """
63
73
if isinstance (canopen .LocalNode , self .node ):
64
74
for pdo in self .map .values ():
65
75
pdo .stop ()
0 commit comments