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 Sat Dec 07, 2019 4:09 pm

All times are UTC+01:00




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

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


Top
   
PostPosted: Tue Nov 19, 2019 12:42 am 
Offline

Joined: Mon Nov 13, 2017 6:34 am
Posts: 10
Do I need to reformulate the question??
Anybody able to assist on this?? :)


Top
   
PostPosted: Tue Nov 19, 2019 1:31 am 
Offline

Joined: Tue Mar 26, 2019 4:28 pm
Posts: 48
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


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