Re: [foxboro] set_confirm for boolean
- From: De Maeyer Ronny <Ronny.DeMaeyer@xxxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Tue, 25 Jun 2002 11:34:11 +0200
Hi,
I did some further tests but none were positive.
When I set a boolean parameter I get a return code 16 (esecure) meaning the
input is secured ?.
When I change the programm to write to a INT input of the same block, it
works.
The blok is a CALC block in a test compound, I tryed already in an other CP
but with the same results.
There are no connections to the BI parameters, and the bloc is in manual
extract of the code:
#include<stdio.h>
#include<ctype.h>
#include <stdlib.h>
#include <string.h>
#include <fox/om_user.h>
#include <fox/om_ecode.h>
main()
{
char temp[40],x2;
unsigned int status;
int rtn,data_len;
data_len=1;
strcpy(temp,"UCM4:TESTBOOL.BI01");
x2=0;
status=OM_BOOL;
rtn=set_confirm(temp,VARIABLE,0,&x2",&status,&data_len);
printf (" %d %u %u \n",rtn,status,x2);
return 0;
}
Any suggestions ?
Greetings
Ronny
> -----Original Message-----
> From: Heath, Graham [SMTP:gheath@xxxxxxxxxxx]
> Sent: Monday, June 24, 2002 3:51 PM
> To: 'foxboro@xxxxxxxxxxxxx'
> Subject: Re: [foxboro] set_confirm for boolean
>
>
> This works for me
>
>
> Regds
>
>
> Graham M. Heath - EMEA TAC
> Europe, Middle East & Africa Technical Assistance Centre
> Invensys Process Systems
> E-Mail eurotac@xxxxxxxxxxx
> Internet www.ips.csc.invensys.com
> Intranet http://eurocsc-161-web:81
> Tel +44 (0)1293 406508
> Fax +44 (0)1293 417726
>
> #include <stdio.h>
> #include "fox/om_user.h"
> main()
> {
> int data_len=1;
> char x2;
> char temp[30];
> unsigned status,rtn;
>
> strcpy(temp,"X:M.MA");
> puts(temp);
> status=OM_BOOL ;
> x2 = 0;
> rtn=setval(temp,VARIABLE,0,&x2,&status,data_len);
> printf ("return = %d %u \n",rtn,status);
> }
>
> -----Original Message-----
> From: De Maeyer Ronny [mailto:Ronny.DeMaeyer@xxxxxxxxxx]
> Sent: 24 June 2002 13:16
> To: 'foxboro@xxxxxxxxxxxxx'
> Subject: [foxboro] set_confirm for boolean
>
>
>
> Hi all,
>
> I am trying to set a boolean from whitin a c-program.
> I use the following code : (part of the programm)
>
> data_len=4;
> strcpy(temp,"UCM4:CHECKSAP.IN");
> x2=1;
> status=OM_BOOL;
>
> rtn=set_confirm(temp,VARIABLE,0,&x2,&status,&data_len);
>
> My problem : whatever I use for x2 (0,1, true,T, false,F) the input of the
> bloc does not change.
> when I use 0 or 1 I declare x2 as an integer, for Trur,T,False or F I
> declare x2 as char.
> In the manual (BO193BC) page 19 under set_confirm they say for OM_BOOL is
> a
> byte with True/False values only.
>
> Can somebody explain what I am doing wrong ?
>
> Thanks in advance,
>
> Ronny
>
> > Ronny De Maeyer
> >
> > Fluxys n.v.
> > LNG TERMINAL ZEEBRUGGE
> > H.V. Wolvensstraat 3, Kaai 615
> > B - 8380 ZEEBRUGGE
> > Tel.: (++32) (0)50 36 66 24 (direct)
> > Tel.: (++32) (0)50 36 66 11 (central)
> >
> > mailto:ronny.demaeyer@xxxxxxxxxx
> > http://www.fluxys.net
> >
> >
> >
> >
> **************************************************************************
> This e-mail and any attachments thereto may contain information which is
> confidential and/or protected by intellectual property rights and are
> intended for the sole use of the recipient(s) named above.Any use of the
> information contained herein (including, but not limited to, total or
> partial reproduction, communication or distribution in any form) by
> persons
> other than the designated recipient(s) is prohibited.Any liability for the
> correct and complete transmission of the information or for any delay or
> interruption of the transmission or for damages arising from the use of
> reliance of the information shall be disclaimed.If you have received this
> e-mail in error, please notify the sender either by telephone or by e-mail
> and delete the material from any computer.
> Thank you for your cooperation
> **************************************************************************
>
>
> _______________________________________________________________________
> This mailing list is neither sponsored nor endorsed by Invensys Process
> Systems (formerly The Foxboro Company). Use the info you obtain here at
> your own risks. Read http://www.thecassandraproject.org/disclaimer.html
>
> foxboro mailing list: http://www.freelists.org/list/foxboro
> to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
> to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
>
>
>
> _______________________________________________________________________
> This mailing list is neither sponsored nor endorsed by Invensys Process
> Systems (formerly The Foxboro Company). Use the info you obtain here at
> your own risks. Read http://www.thecassandraproject.org/disclaimer.html
>
> foxboro mailing list: http://www.freelists.org/list/foxboro
> to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
> to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
>
>
>
**************************************************************************
This e-mail and any attachments thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above.Any use of the
information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) by persons
other than the designated recipient(s) is prohibited.Any liability for the
correct and complete transmission of the information or for any delay or
interruption of the transmission or for damages arising from the use of
reliance of the information shall be disclaimed.If you have received this
e-mail in error, please notify the sender either by telephone or by e-mail
and delete the material from any computer.
Thank you for your cooperation
**************************************************************************
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
Other related posts: