EPICS Home

Experimental Physics and Industrial Control System


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

Subject: RE: Process Record at ioc initialization with OPCUA module
From: LORIOT Vivien via Tech-talk <tech-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 12 Dec 2024 07:51:38 +0000

Hi Ralph,

 

Ok thanks for your help, I think well understand the difference now between the PINI field, which does not seem to be implemented with the OPCUA driver and the bini option.

 

Best,

 

Vivien

 

 

De : Tech-talk <tech-talk-bounces at aps.anl.gov> De la part de Ralph Lange via Tech-talk
Envoyé : mercredi 11 décembre 2024 14:54
À : EPICS Tech Talk <tech-talk at aps.anl.gov>
Objet : Re: Process Record at ioc initialization with OPCUA module

 

Hi Vivien,

 

The bini option (behavior at initialization) determines what the driver is doing when the communication is established.

This is different from the record's PINI field which determines record processing when the IOC initializes.

 

bini=read (default): When the OPC UA communication is established, the value is read from the device and the EPICS record is updated.

bini=write: When the OPC UA communication is established, the value is written from the EPICS record to the device.

bini=ignore: When the OPC UA communication is established, neither the EPICS record nor the device is updated.

 

The bini option does not cause the record to process.

The configure action happens every time the connection comes up. (Also if the OPC UA server is started after the IOC boots or when the connection is reestablished after a communication loss.)

 

In your configuration, the BO gets the value from the device when the connection comes up, silently.

With monitor=y (default) your BO record is bidirectional. Changes on the EPICS side are written to the device, changes in the device update the EPICS record.

 

Cheers,
~Ralph

 

 

On Wed, 11 Dec 2024 at 13:12, LORIOT Vivien via Tech-talk <tech-talk at aps.anl.gov> wrote:

 

De : LORIOT Vivien
Envoyé : mercredi 11 décembre 2024 11:48
À : 'tech-talk-bounces at aps.anl.gov' <tech-talk-bounces at aps.anl.gov>
Objet : Process Record at ioc initialization with OPCUA module

 

Hi everyone,

 

I’m currently using the OPCUA epics module (with the open62541 librairy) to communicate with a PLC Siemens s7-1500 and I would have a question about the process of a BO record at initialization.

With OPCUA, it seems possible to process a record at the initialization with defining the option bini inside the OUT field :

But my BO are still not processing during the IOC init. It fonctionne well with the input record (AI and BI). Maybe I didn’t understand well the bini option ?

 

Does someone already had this problem and have a solution to propose ?

 

Sinceraly,

 

cid:image001.png@01D9F098.F40035D0

 

Vivien LORIOT

Ingénieur Contrôle-Commande

Laboratoire de Développement et d’Intégration des Systèmes de Contrôle

 

Commissariat à l’énergie atomique et aux énergies alternatives

CEA Paris-Saclay

 

DRF/IRFU/DIS/LDISC

Bâtiment 472 – Pièce 105

Tel : +33 1 69 08 95 17

 


Replies:
Re: Process Record at ioc initialization with OPCUA module Ralph Lange via Tech-talk
References:
TR: Process Record at ioc initialization with OPCUA module LORIOT Vivien via Tech-talk
Re: Process Record at ioc initialization with OPCUA module Ralph Lange via Tech-talk

Navigate by Date:
Prev: RE: Process Record at ioc initialization with OPCUA module LORIOT Vivien via Tech-talk
Next: Re: Process Record at ioc initialization with OPCUA module Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: Process Record at ioc initialization with OPCUA module Ralph Lange via Tech-talk
Next: Re: Process Record at ioc initialization with OPCUA module Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025