Skip to content

Commit a03d024

Browse files
authored
fix naming Node402 -> BaseNode402
1 parent e9fda09 commit a03d024

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/profiles.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ CiA 402 CANopen device profile for motion controllers and drives
1010

1111
This device profile has a control state machine for controlling the behaviour
1212
of the drive. Therefore one needs to instantiate a node with the
13-
:class:`Node402` class
13+
:class:`BaseNode402` class
1414

15-
Create a node with Node402::
15+
Create a node with BaseNode402::
1616

1717
import canopen
18-
from canopen.profiles.p402 import Node402
18+
from canopen.profiles.p402 import BaseNode402
1919

20-
some_node = Node402(3, 'someprofile.eds')
20+
some_node = BaseNode402(3, 'someprofile.eds')
2121
network = canopen.Network()
2222
network.add_node(some_node)
2323

@@ -35,7 +35,7 @@ The current status can be read from the device by reading the register
3535
Changes in state can only be done in the 'OPERATIONAL' state of the NmtMaster
3636

3737
TPDO1 needs to be set up correctly. For this, run the the
38-
`Node402.setup_402_state_machine()` method. Note that this setup
38+
`BaseNode402.setup_402_state_machine()` method. Note that this setup
3939
routine will change only TPDO1 and automatically go to the 'OPERATIONAL' state
4040
of the NmtMaster::
4141

@@ -55,10 +55,10 @@ by the Controlword, for example a 'FAULT' state.
5555
Therefore the :class:`PowerStateMachine` class (in similarity to the :class:`NmtMaster`
5656
class) automatically monitors state changes of the Statusword which is sent
5757
by TPDO1. The available callback on thet TPDO1 will then extract the
58-
information and mirror the state change in the :attr:`Node402.powerstate_402`
58+
information and mirror the state change in the :attr:`BaseNode402.powerstate_402`
5959
attribute.
6060

61-
Similar to the :class:`NmtMaster` class, the states of the :class:`Node402`
61+
Similar to the :class:`NmtMaster` class, the states of the :class:`BaseNode402`
6262
class :attr:`._state` attribute can be read and set (command) by a string::
6363

6464
# command a state (an SDO message will be called)

0 commit comments

Comments
 (0)