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 Mon Nov 18, 2019 5:37 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Aug 16, 2019 2:30 pm 
Offline

Joined: Sun Jun 23, 2019 3:00 pm
Posts: 4
Sorry if these are noob questions.

Is there a way to create a user defined exception? Is it possible to raise an exception in a user defined function or function block?


Top
   
PostPosted: Fri Aug 16, 2019 3:27 pm 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 190
Hi.
You can use function "SуsЕxcеptGеnеratеЕxcеption" from "SуsЕxcеpt" library.

_________________
Make CODESYS great again


Top
   
PostPosted: Sat Aug 17, 2019 12:32 am 
Offline

Joined: Sun Jun 23, 2019 3:00 pm
Posts: 4
Great. Thanks!

Is there any documentation on best practices for raising exceptions or some good coding examples?


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 6 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