Page 1 of 1

Symbol CAN-ID as variable?

Posted: Thu 15. Feb 2024, 23:01
by masmith1553
Hello,

I am creating a project where the user can configure CANOpen devices by using the Panel in PCAN Explorer 6. Is there a way to write the CAN-ID field in Symbols?

For example:

The user enters the NODE ID they wish to configure the CANOpen device and click a Button to set the Node address to XXXh (which I can do with no issue using LSS). Next the user needs to configure the device using the Object Directory where the CAN-ID 600h + Node-ID XXXh just configured.

Re: Symbol CAN-ID as variable?

Posted: Fri 16. Feb 2024, 14:42
by K.Wolf
Hello,
no, the CAN ID of a symbol cannot be modified, it is determined solely by the definitions made in the loaded Symbols file.

Re: Symbol CAN-ID as variable?

Posted: Fri 16. Feb 2024, 19:10
by masmith1553
Thanks for the reply.

Re: Symbol CAN-ID as variable?

Posted: Sat 17. Feb 2024, 11:22
by PEAK-Support
I had a customer in the past who changed a symbol file inside a script. This is possible if you have good VBS knowledge.
A symbol file could be changed at runtime (Apply) with a script. Maybe this is a solution for your project.
So that you „edit“ the ID in the Symbol File, based on the customer input of the node id.
Send a e-mail to our support, maybe i found the sample project again…

Re: Symbol CAN-ID as variable?

Posted: Mon 19. Feb 2024, 19:00
by masmith1553
U.Wilhelm wrote:
Sat 17. Feb 2024, 11:22
I had a customer in the past who changed a symbol file inside a script. This is possible if you have good VBS knowledge.
A symbol file could be changed at runtime (Apply) with a script. Maybe this is a solution for your project.
So that you „edit“ the ID in the Symbol File, based on the customer input of the node id.
Send a e-mail to our support, maybe i found the sample project again…
Do you mean that you did send an email to support or I should? I haven't used VB in a while but I could probably figure it out with the help of a sample project.

Re: Symbol CAN-ID as variable?

Posted: Mon 19. Feb 2024, 19:53
by PEAK-Support
Send a email to support[at]peak-system.com.