Re: [foxboro] set_confirm for boolean
- From: "Heath, Graham" <gheath@xxxxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Mon, 24 Jun 2002 09:50:50 -0400
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
Other related posts: