Hello everyone,
I am trying to implement a CAN layer 2 FB for a Cross Control Pilot VI where the manufacturer at this stage is providing the normal CANopen interface.
Did follow the example from Codesys CANbusAPIExample but it seems that this require to periodically call the method CL2.Read().
So, even if the timer is set to 5ms but the program which implements this call is run every 20ms, this will create a min latency of 20ms on the CAN bus.
My question is if there is any way to use interrupt or call back so to run a message processor everytime a specific CAN ID is received.
Thank you to everyone able to help.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
I am trying to implement a CAN layer 2 FB for a Cross Control Pilot VI where the manufacturer at this stage is providing the normal CANopen interface.
Did follow the example from Codesys CANbusAPIExample but it seems that this require to periodically call the method CL2.Read().
So, even if the timer is set to 5ms but the program which implements this call is run every 20ms, this will create a min latency of 20ms on the CAN bus.
My question is if there is any way to use interrupt or call back so to run a message processor everytime a specific CAN ID is received.
Thank you to everyone able to help.
Cheers
Do I need to reformulate the question??
Anybody able to assist on this??
Hi Claudio,
How far did you get with the example in the online help?
https://help.codesys.com/webapp/ISLA-9j ... n=3.5.15.0 m