CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Nov 13, 2019 7:51 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: CAN CL2 Using Callbacks
PostPosted: Wed Sep 04, 2019 9:18 am 

Joined: Mon Nov 13, 2017 6:34 am
Posts: 9
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.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited