Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2.5 out of 5     Rate this Document

Can I Programmatically Change the Baud Rate of My DeviceNet Device?

Hardware: Industrial Communications>>DeviceNet

Problem:
I want to change the Baud Rate of my DeviceNet device programmatically. How can I do this?

Solution:
You can use the Set Device Net Attribute VI in LabVIEW, or the ncSetDnetAttribute() function in text-based languages with the following settings:


ClassId: 3
InstanceId: 1
AttributeId: 2
AttrDataLength: 1
AttrData: 0 = 125K, 1 = 250K, 2 = 500K



Also, you need to reset your device after setting the Baud Rate for the changes to take effect. To do this, run the Write Device Net Explicit Message VI with the following settings:


ServiceCode: 5
ClassId: 1
instanceId: 1
ServDataLength: 0
ServData: NULL




Related Links:
Product Manuals: NI-DNET Programmer Reference Manual

Attachments:





Report Date: 04/15/2006
Last Updated: 04/15/2006
Document ID: 3WE5P65N

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit