Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple Remote Nodes #15

Open
PHinnersOSMA opened this issue Jun 9, 2023 · 0 comments
Open

Add multiple Remote Nodes #15

PHinnersOSMA opened this issue Jun 9, 2023 · 0 comments

Comments

@PHinnersOSMA
Copy link

PHinnersOSMA commented Jun 9, 2023

Hi,
is it possible to add multiple "Remote Nodes" to it´s network, like it´s possible with CANOpen for python?

import canopen

# Start with creating a network representing one CAN bus
network = canopen.Network()

# Add some nodes with corresponding Object Dictionaries
node = canopen.RemoteNode(6, '/path/to/object_dictionary.eds')
network.add_node(node)

# Connect to the CAN bus
network.connect()

# Read a variable using SDO
device_name = node.sdo['Manufacturer device name'].raw
vendor_id = node.sdo[0x1018][1].raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant