@@ -10,14 +10,14 @@ CiA 402 CANopen device profile for motion controllers and drives
10
10
11
11
This device profile has a control state machine for controlling the behaviour
12
12
of the drive. Therefore one needs to instantiate a node with the
13
- :class: `Node402 ` class
13
+ :class: `BaseNode402 ` class
14
14
15
- Create a node with Node402 ::
15
+ Create a node with BaseNode402 ::
16
16
17
17
import canopen
18
- from canopen.profiles.p402 import Node402
18
+ from canopen.profiles.p402 import BaseNode402
19
19
20
- some_node = Node402 (3, 'someprofile.eds')
20
+ some_node = BaseNode402 (3, 'someprofile.eds')
21
21
network = canopen.Network()
22
22
network.add_node(some_node)
23
23
@@ -35,7 +35,7 @@ The current status can be read from the device by reading the register
35
35
Changes in state can only be done in the 'OPERATIONAL' state of the NmtMaster
36
36
37
37
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
39
39
routine will change only TPDO1 and automatically go to the 'OPERATIONAL' state
40
40
of the NmtMaster::
41
41
@@ -55,10 +55,10 @@ by the Controlword, for example a 'FAULT' state.
55
55
Therefore the :class: `PowerStateMachine ` class (in similarity to the :class: `NmtMaster `
56
56
class) automatically monitors state changes of the Statusword which is sent
57
57
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 `
59
59
attribute.
60
60
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 `
62
62
class :attr: `._state ` attribute can be read and set (command) by a string::
63
63
64
64
# command a state (an SDO message will be called)
0 commit comments