CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sun Jul 23, 2017 3:43 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CommState Values
PostPosted: Tue Jul 07, 2015 2:16 pm 
Offline

Joined: Mon Apr 13, 2015 5:10 pm
Posts: 1
Hello,

Does anyone have a list of possible values and their meanings for the OPC tag CommState? I had found a list before in an old manual, but I can no longer find it.

Thanks!


Top
   
 Post subject: Re: CommState Values
PostPosted: Wed Jan 20, 2016 8:10 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 401
See the .pdf in your installation folder, e.g. c:\program files (x86)\codesys\codesys opc server 3\
This will tell you the following (PS, it describes the name with single underscore, but if I remember correctly it is a double underscore...):


For each configured PLC the OPC Server V3 generates the status variables _CommState and _CommStateOK. _CommState can be interpreted from an OPC Client and the following states can
be requested:
STATE_TERMINATE = -1
STATE_PLC_NOT_CONNECTED = 0
STATE_PLC_CONNECTED = 1
STATE_NO_SYMBOLS = 2
STATE_SYMBOLS_LOADED = 3
STATE_RUNNING = 4
STATE_DISCONNECT = 5
STATE_NO_CONFIGURATION = 6
_CommStateOK is a Boolean variable indicating in state TRUE a communication with the OPC server.
The name of the plc can be taken from the prefix of the Boolean variable. If the variable is FALSE,
currently no communication is possible. This happens for example during download.


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

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