Added MARTe2 PVs in State Machine

Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
Bernardo Carvalho
2024-04-23 15:57:51 +00:00
parent fa28a411c3
commit a0a43ee5a6
8 changed files with 73 additions and 37 deletions

View File

@@ -0,0 +1,57 @@
# vim: sta:et:sw=4:ts=4:sts=4
#
# Project : ISTTOK slow Control
#
# File :
# Description : Records for ISTTOK MARTe2 Control
#
##
# Author : Bernardo Carvalho (IPFN-IST)
#
# Copyright (c) : (IPFN-IST)
# Created 14-Apr-2024
#
##
#### PVs for ATCA-MARTe2 operation
record(mbbi, "$(P)$(R)MARTe2-Status")
{
field(DTYP, "Soft Channel")
# Writen by MARTe2 Datasource
field(ZRVL, "0")
field(ONVL, "1")
field(TWVL, "2")
field(ZRST, "IDLE")
field(ONST, "RUN")
field(TWST, "ERROR")
}
record(mbbo, "$(P)$(R)MARTe2-Command")
{
field(DTYP, "Soft Channel")
field(ZRVL, "0")
field(ONVL, "1")
field(ZRST, "GOTOIDLE")
field(ONST, "GOTORUN")
field(VAL, "0")
}
record( longin, "$(P)$(R)MARTe2-Reset")
{
field(DTYP, "Soft Channel")
}
record(waveform, "$(P)$(R)ATCAIOP1-EO")
{
field(DESC, "EO parameters for ATCA-IOP Board 1")
field(DTYP, "Soft Channel")
field(NELM, 16)
field(FTVL, "LONG")
}
record(waveform, "$(P)$(R)ATCAIOP1-WO")
{
field(DESC, "WO parameters for ATCA-IOP Board 1")
field(DTYP, "Soft Channel")
field(NELM, 16)
field(FTVL, "FLOAT")
}

View File

@@ -312,37 +312,3 @@ record(mbbo, "$(P)$(R)STOPPINGSTATE") {
field(VAL, "0") field(VAL, "0")
} }
#### PVs for ATCA-MARTe2 operation
#record( mbbi, "$(P)$(R)MARTE-STATUS")
#field(DESC, "Get ATCA-MARTE2 State ")
# field(ZRVL, "0")
# field(ONVL, "1")
# field(ZRST, "IDLE")
# field(ONST, "RUN")
#field(VAL, "0")
record(mbbi, "$(P)$(R)MARTe2-Status")
{
field(DTYP, "Soft Channel")
field(ZRVL, "0")
field(ONVL, "1")
field(TWVL, "2")
field(ZRST, "IDLE")
field(ONST, "RUN")
field(TWST, "ERROR")
#field(VAL, "0")
}
record(mbbo, "$(P)$(R)MARTe2-Command")
{
field(DTYP, "Soft Channel")
field(ZRVL, "0")
field(ONVL, "1")
field(ZRST, "GOTOIDLE")
field(ONST, "GOTORUN")
field(VAL, "0")
}
record( longin, "$(P)$(R)MARTe2-Reset")
{
field(DTYP, "Soft Channel")
}

View File

@@ -5,6 +5,7 @@ include $(TOP)/configure/CONFIG
# Install databases, templates & substitutions like this # Install databases, templates & substitutions like this
DB += ISTTOKstates.db DB += ISTTOKstates.db
DB += ISTTOKmarte2.db
DB += ISTTOKmachineControl.db DB += ISTTOKmachineControl.db
DB += ISTTOKpcf8574.db DB += ISTTOKpcf8574.db
DB += ISTTOKpcf8591.db DB += ISTTOKpcf8591.db

View File

@@ -1,7 +1,8 @@
Terminator = CR; Terminator = CR;
inTerminator = CR; inTerminator = CR;
# CR and LF are control characters, respectively coded 0x0D (13 decimal) and 0x0A (10 decimal) # CR and LF are control characters, respectively coded 0x0D (13 decimal) and 0x0A (10 decimal)
MaxInput = 20; MaxInput = 30;
#MaxInput = 20;
ExtraInput = Ignore; ExtraInput = Ignore;
# Values in millisecond # Values in millisecond

View File

@@ -7,3 +7,6 @@ and check the executable name on the first line of the st.cmd file
You may need to change the name of the .dbd file given in the You may need to change the name of the .dbd file given in the
st.cmd's dbLoadDatabase() command before starting the ioc. st.cmd's dbLoadDatabase() command before starting the ioc.
Purge save files older than 15 days
$ find ./save/ -mindepth 1 -mtime +15 -delete

View File

@@ -17,4 +17,8 @@ $(P)$(R)RPump1-Pressure.HIGH
ISTTOK:central:RPump1-Pressure.HIHI ISTTOK:central:RPump1-Pressure.HIHI
#ISTTOK:central:RPump2-Pressure.HIGH #ISTTOK:central:RPump2-Pressure.HIGH
#ISTTOK:central:RPump2-Pressure.HIHI #ISTTOK:central:RPump2-Pressure.HIHI
# MARTe2 AtcaIop
ISTTOK:central:ATCAIOP1-EO
ISTTOK:central:ATCAIOP1-WO

View File

@@ -137,6 +137,7 @@ ISTTOK:central:STARTINGSTATE
ISTTOK:central:CLEANINGSTATE ISTTOK:central:CLEANINGSTATE
ISTTOK:central:WSHOTINGSTATE ISTTOK:central:WSHOTINGSTATE
ISTTOK:central:STOPPINGSTATE ISTTOK:central:STOPPINGSTATE
ISTTOK:central:MARTe2-Command
ISTTOK:SR_rebootStatus ISTTOK:SR_rebootStatus
ISTTOK:SR_status ISTTOK:SR_status
ISTTOK:SR_0_Status ISTTOK:SR_0_Status
@@ -147,8 +148,6 @@ ISTTOK:SR_4_Status
ISTTOK:SR_5_Status ISTTOK:SR_5_Status
ISTTOK:SR_6_Status ISTTOK:SR_6_Status
ISTTOK:SR_7_Status ISTTOK:SR_7_Status
ISTTOK:central:MARTe2-Command
ISTTOK:central:MARTE2-Reset
ISTTOK:central:PCF8591:72:ADC_CH1 ISTTOK:central:PCF8591:72:ADC_CH1
ISTTOK:central:PCF8591:72:ADC_CH2 ISTTOK:central:PCF8591:72:ADC_CH2
ISTTOK:central:PCF8591:72:ADC_CH3 ISTTOK:central:PCF8591:72:ADC_CH3
@@ -160,6 +159,9 @@ ISTTOK:central:P003:M
ISTTOK:central:P003:E ISTTOK:central:P003:E
ISTTOK:central:P004:M ISTTOK:central:P004:M
ISTTOK:central:P004:E ISTTOK:central:P004:E
ISTTOK:central:MARTe2-Reset
ISTTOK:central:ATCAIOP1-EO
ISTTOK:central:ATCAIOP1-WO
ISTTOK:central:TMPump1-ControllerOnInv ISTTOK:central:TMPump1-ControllerOnInv
ISTTOK:central:TMPump1-ControllerOffInv ISTTOK:central:TMPump1-ControllerOffInv
ISTTOK:central:TMPump1-MotorOnInv ISTTOK:central:TMPump1-MotorOnInv

View File

@@ -50,6 +50,8 @@ drvAsynIPPortConfigure("L0","193.136.136.3:25",0,1,0)
dbLoadRecords("db/sendmail.db", "P=ISTTOK:,PORT=L0,R=central:,L=0,A=0") dbLoadRecords("db/sendmail.db", "P=ISTTOK:,PORT=L0,R=central:,L=0,A=0")
dbLoadRecords("db/ISTTOKmarte2.db","P=ISTTOK:,R=central:")
# Uncomment to Debug STREAMDEVICE serial activity # Uncomment to Debug STREAMDEVICE serial activity
# 2021/12/14 13:11:50.019969 RS0 ISTTOK:central:P002:M: No reply within 200 ms to "0020074002=?107<0d> # 2021/12/14 13:11:50.019969 RS0 ISTTOK:central:P002:M: No reply within 200 ms to "0020074002=?107<0d>
#var streamError 1 #var streamError 1