EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: OPC with binary out records
From: Carsten Winkler <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Tue, 14 Aug 2012 14:56:08 +0200
Hallo Patrick,

the OPC specification for binary values says a zero value will be mapped to FALSE and all other numbers will be mapped to TRUE and stored as -1.
If you start your OPC IOC it gets the current value from the OPC server for all OPC variables. The OPC server writes 0xffff for bo-records if they are true and so you get 65535 or -1 as integer value. If you want to get 0 for FALSE and 1 for TRUE you should use in your boolean records (bo and bi) the definition field(DTYP, "opc Raw")

Carsten
Hi,

I am using the OPC device support module version 3.8.0.0 to connect to an
OPC server supplied with Beckhoff TwinCAT 2.11. This is running on Windows
7 Professional with Service Pack 1. For the binary out records, if they
are set to 1, and the EPICS OPC IOC is then restarted, their value is
changed to 65535. If they are set to 0, and the EPICS IOC is then
restarted, they remain set to 0. I do not think I have seen this behavior
with the binary input records.

Thank you for your time,
Patrick





Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de

Replies:
Re: OPC with binary out records pthomas
References:
OPC with binary out records pthomas

Navigate by Date:
Prev: OPC with binary out records pthomas
Next: Re: EPICS Base version 3.15.0.1 released Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: OPC with binary out records pthomas
Next: Re: OPC with binary out records pthomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·