Re: [foxboro] C code for reading BLKSTA

  • From: "QUEIROLO, IGNACIO ESTEBAN" <ignacio.queirolo@xxxxxxx>
  • To: "foxboro@xxxxxxxxxxxxx" <foxboro@xxxxxxxxxxxxx>
  • Date: Tue, 5 Jan 2016 11:48:31 +0000

Hi Sean,
You are right. The proper call to get this value is omx_getval, but I couldn´t 
find any example of its use and all the times I tried to use it, were not 
successful. Also, the proper call to set the ACK bit in the SUP_IN parameter 
(this is not the ACK bit like we know for alarms) is st_setcnf. This bit could 
be set using special OM calls like this, but I couldn't find any example of its 
use. This ACK bit is used for SSC (Supervisory Setpoint Control) handshake when 
you need to put a controller in supervisory control mode.
Ignacio

-----Mensaje original-----
De: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] En ;
nombre de Redmond, Sean S
Enviado el: lunes, 04 de enero de 2016 10:37 p.m.
Para: foxboro@xxxxxxxxxxxxx
Asunto: Re: [foxboro] C code for reading BLKSTA

Hi,
I think bit extension do not work with get/set val.
BLKSTA is a packed long so you will have to bit match it if you want the SE 
parameter.  If you are only interest in SE then you can use C:B.SE The ACK 
parameter is not settable well the UNACK parameter is not settable.  The only 
way I know how to acknowledge an alarm is via the display manager command 
almack C:B

Sean

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On ;
Behalf Of QUEIROLO, IGNACIO ESTEBAN
Sent: Tuesday, 29 December 2015 4:51 a.m.
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] C code for reading BLKSTA

I need to make a C program to get a value of the BLKSTA parameter. I have this 
program from the Sun Compiler installation notes with the modifications 
required to get the value of the BLKSTA.SE parameter:
#include <stdio.h>
#include <stdlib.h>
#include <fox/om_user.h>
#include <fox/om_ecode.h>
main()
{
     unsigned int   value;              /* object value     */
     unsigned int   status;             /* object data type */
     int            data_len;           /* data length      */
     getval ("COMPOUND:BLOCK.BLKSTA.SE", VARIABLE, 0, &value, &status, 
&data_len);
     printf ("The value is = %f\n", value); }

Is this code right?

Also I have to use the setval call to set the SUP_IN.ACK parameter. Does 
anybody have some example to accomplish this?

Thanks!


________________________________



NOTICE - This message and any attached files may contain information that is 
confidential, legally privileged or proprietary. It is intended only for use by 
the intended recipient. If you are not the intended recipient or the person 
responsible for delivering the message to the intended recipient, be advised 
that you have received this message in error. Any dissemination, copying, use 
or re-transmission of this message or attachment, or the disclosure of any 
information therein, is strictly forbidden. BlueScope Steel Limited does not 
represent or guarantee that this message or attachment is free of errors, virus 
or interference.

If you have received this message in error please notify the sender immediately 
and delete the message. Any views expressed in this email are not necessarily 
the views of BlueScope Steel Limited.


_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric 
(formerly The Foxboro Company).  Use the info you obtain here at your own 
risks.  See the disclaimer at www.thecassandraproject.org/disclaimer.html

foxboro mailing list:               //www.freelists.org/list/foxboro
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave


AVISO LEGAL: Este mensaje y cualquier archivo anexo al mismo son privados y 
confidenciales y está dirigido únicamente a su destinatario. Si usted no es el 
destinatario original de este mensaje y por este medio pudo acceder a dicha 
información por favor elimine el mismo. La distribución o copia de este mensaje 
está estrictamente prohibida. Esta comunicación es sólo para propósitos de 
información y no debe ser considerada como propuesta, aceptación, tratativas 
contractuales, contrato preliminar ni como una declaración de voluntad oficial 
por parte de YPF S.A. y/o subsidiarias y/o afiliadas y no genera 
responsabilidad precontractual ni contractual alguna por su contenido y/o sus 
adjuntos. La transmisión de estos mensajes a través de mensajería corporativa 
no garantiza que el correo electrónico sea seguro o libre de error. Por 
consiguiente, no manifestamos que esta información sea completa o precisa. Toda 
información está sujeta a alterarse sin previo aviso. LEGAL NOTICE: The 
contents of this message and any attachments are private and confidential and 
are intended for the recipient only. If you are not the intended recipient of 
this message and through this message you had access to this information, 
please delete it. The distribution or copying of this message is strictly 
prohibited. This communication is for information purposes only. It shall not 
be regarded as a proposal, acceptance, contract negotiation, preliminary 
contract or official statement of will by YPF S.A. and/or its subsidiaries 
and/or affiliates, and shall not create any precontractual or contractual 
liability whatsoever with regard to its contents and/or attachments. Email 
transmission cannot be guaranteed to be secure or error-free. Therefore, we do 
not represent that this information is complete or accurate. All information is 
subject to change without prior notice.
 
 
_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company).  Use the info you obtain here at your own
risks.  See the disclaimer at www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:               //www.freelists.org/list/foxboro
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: