Re: [foxboro] set_confirm for boolean

  • From: Freddy Why <freddy.why@xxxxxxxxxxxx>
  • To: foxboro@xxxxxxxxxxxxx
  • Date: Mon, 24 Jun 2002 15:11:03 +0200

Ronny,

I had a similar problem on an application using
'setval' command , that used to work on an AP20.
On porting to a 50 Series I could not set any Boolean
parameters.
I gave up trying to troubleshoot this as I was pushed for time, and used the
'omset' command . Not very elegant but at least it works  Part program
follows:

sprintf(exstr,"/opt/fox/bin/tools/omset -b FALSE %s", fbmgw_fail[0]); 
system(exstr);          

Where  fbmgw_fail[0] contains the full path name of the variable.


Regards,

Freddy Why
Protea Automation Solutions
                                             


> -----Original Message-----
> From: De Maeyer Ronny [SMTP:Ronny.DeMaeyer@xxxxxxxxxx]
> Sent: Monday, June 24, 2002 2:16 PM
> 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:             //www.freelists.org/list/foxboro
> to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
> to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
>  

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
For more information please visit www.marshalsoftware.com
#####################################################################################


 
 
_______________________________________________________________________
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:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: