Experimental Physics and Industrial Control System
|
Hi Tim, guys
You are right - I want the record to automatically switch its value back to 0 after somebody sets it to 1. Time doesn't really matter. Imagine a pneumatic valve. I have two records two control it: cmd:valve_ON and cmd:valve_OFF. The reason I use two records instead of one is simply because there are two buttons on the front panel of my control cubicle. And the PLC logic is that it checks whether only one button is pressed at a time. This is local control. Yet, at the same time I want to remotely control my system by means of EPICS.
Steve, do you recommend to change the SCAN field to passive?
-- Pavel
On Wed, Apr 4, 2012 at 6:12 PM, Tim Mooney <[email protected]> wrote:
Hi Pavel,
I don't understand. Do you want the record automatically to switch its value back to 0 after somebody sets it to 1? Do you want the switch back to happen after some time interval? If so, the bo record's HIGH field might do what you want.
Tim
----- Original Message -----
From: "Pavel Masloff" < [email protected]>
To: "EPICS Tech Talk" < [email protected]>
Sent: Wednesday, April 4, 2012 8:42:40 AM
Subject: [db] simple command ?
Hello tech-talkers,
I would like to implement a simple command record, the idea of which is to switch its VAL to 1 and then back to 0. Let's assume we have got the following record:
record (bo,"cmd:valve_trigger")
{
field(PINI, "YES")
field(DTYP, "S7plc")
field(OUT, "@plc/0 T=UINT8 B=0")
field(SCAN, "I/O Intr")
field(ONAM, "ONE")
field(ZNAM, "ZERO")
}
Is there any straightforward solution?
Thank you.
--
Best regards,
Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia
Mobile: +7 (951) 672 22 19
Phone: +7 (812) 461 01 01
--
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab
-- Best regards,
Pavel Maslov, MS Controls Engineer at Pulsed power Lab Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia
Mobile: +7 (951) 672 22 19
Phone: +7 (812) 461 01 01
- Replies:
- Re: [db] simple command ? Hartman, Steven M.
- Re: [db] simple command ? Benjamin Franksen
- References:
- [db] simple command ? Pavel Masloff
- Re: [db] simple command ? Tim Mooney
- Navigate by Date:
- Prev:
Re: Doubt regarding Process Variable Kasemir, Kay
- Next:
Re: [db] simple command ? Hartman, Steven M.
- 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
2024
- Navigate by Thread:
- Prev:
Re: [db] simple command ? Tim Mooney
- Next:
Re: [db] simple command ? Hartman, Steven M.
- 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
2024
|
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|