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 Jun 24, 2019 4:18 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Dec 17, 2018 11:55 am 
Offline

Joined: Mon Oct 28, 2013 12:31 pm
Posts: 6
Function "GetBusState" has an output parameter called xDiagnosisInfoAvailable that, if TRUE, means that a red exclamation appears in device tree. Is there any way to get that extended diagnosis info programmatically?

Thank you!


Top
   
PostPosted: Mon Dec 17, 2018 5:13 pm 
Online
Frequent User
Frequent User

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 116
Have you tried calling Device.State? (Where device = the name of the device you are trying to get the state of)


Top
   
PostPosted: Tue Dec 18, 2018 10:44 am 
Offline

Joined: Mon Oct 28, 2013 12:31 pm
Posts: 6
Comingback4u wrote:
Have you tried calling Device.State? (Where device = the name of the device you are trying to get the state of)


I have called Device.State, and have PREOPERATIONAL. Calling "Device.GetDeviceState" I get CONFIGURED. This is because of one returns CANOPEN_STATE enum and the other one, DEVICE_STATE.

But I would like to reach programmatically to the additional info that appears in "Diag. String" in tab "State" when I click the Device in the device tree (in this case, "EMCY.Nodeguarding error".

Thank you!


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: Andreas Kehrer and 7 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