diff --git a/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKpcf8591.db b/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKpcf8591.db index 21e2800..0fe5896 100644 --- a/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKpcf8591.db +++ b/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKpcf8591.db @@ -78,6 +78,35 @@ record( ai, "$(P)$(R)TMPump2-Current" ) { field(LSV, "MINOR") # # field(LLSV,"MAJOR") } + +# Receiving two bytes. last one counts +record( longin, "$(P)$(R)PCF8591:72:ADC_CH3" ) { + field(DTYP, "stream") + field(INP, "@pcf8591.proto rConvAdc2(72) I2C") +} +record( calc, "$(P)$(R)PCF8591:72:BYTE2_CH3" ) { + field(INPA, "$(P)$(R)PCF8591:72:ADC_CH3 PP NMS") +# extract LSB =last byte received + field(CALC, " (A & 255 )" ) +} +record(ai, "$(P)$(R)Shot-TorPSCurrentImage" ) { + field(DESC, "Toroidal Current Image") + field(DTYP, "Raw Soft Channel" ) + field(INP, "$(P)$(R)PCF8591:72:BYTE2_CH3 PP NMS") + field(SCAN, "1 second") + field(ASLO, "39.215686275" ) + field(AOFF, "0.0" ) + field(EGU, "A" ) + field(PREC, "3" ) + field(HOPR, "10000" ) + field(LOPR, "0" ) + field(LOW, "200.0") +# # field(LOLO,"0.0") + field(LSV, "MINOR") +# # field(LLSV,"MAJOR") +} + + record( longout, "$(P)$(R)PCF8591:72:DAC") { field(DTYP, "stream") field(OUT, "@pcf8591.proto wDac(72) I2C") diff --git a/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKstates.db b/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKstates.db index c63d378..642729b 100644 --- a/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKstates.db +++ b/epics/iocs/ISTTOKrpi/ISTTOKrpiApp/Db/ISTTOKstates.db @@ -23,7 +23,7 @@ record(mbbi, "$(P)$(R)OPSTATE") { field(SXVL, "6") field(ZRST, "Stopped") field(ONST, "Starting") - field(TWST, "Process") + field(TWST, "Idle") field(THST, "Clean") field(FRST, "WaitShot") field(FVST, "Stopping") @@ -42,7 +42,7 @@ record(mbbo, "$(P)$(R)LASTOPSTATE") { field(SXVL, "6") field(ZRST, "Stopped") field(ONST, "Starting") - field(TWST, "Process") + field(TWST, "Idle") field(THST, "Clean") field(FRST, "WaitShot") field(FVST, "Stopping") diff --git a/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/pvList.txt b/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/pvList.txt index e68893a..8514491 100644 --- a/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/pvList.txt +++ b/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/pvList.txt @@ -8,6 +8,7 @@ ISTTOK:central:COUNTDOWN ISTTOK:central:COUNTER ISTTOK:central:PCF8591:72:BYTE2_CH1 ISTTOK:central:PCF8591:72:BYTE2_CH2 +ISTTOK:central:PCF8591:72:BYTE2_CH3 ISTTOK:central:Emergency ISTTOK:central:VVessel-Pressure ISTTOK:central:RPump1-Pressure @@ -15,6 +16,7 @@ ISTTOK:central:TMPump1-PressureAdmission ISTTOK:central:RPump2-Pressure ISTTOK:central:TMPump2-Speed ISTTOK:central:TMPump2-Current +ISTTOK:central:Shot-TorPSCurrentImage ISTTOK:central:PCF8574:56:REGISTER ISTTOK:central:PCF8574:57:REGISTER ISTTOK:central:PCF8574:60:REGISTER @@ -29,7 +31,7 @@ ISTTOK:central:TDA8444:32:DAC_CH3 ISTTOK:central:TDA8444:32:DAC_CH4 ISTTOK:central:TDA8444:32:DAC_CH5 ISTTOK:central:TDA8444:32:DAC_CH6 -ISTTOK:central:TDA8444:32:DAC_CH7 +ISTTOK:central:Shot-TorPSCurrent ISTTOK:SR_0_State ISTTOK:SR_1_State ISTTOK:SR_2_State @@ -40,6 +42,7 @@ ISTTOK:SR_6_State ISTTOK:SR_7_State ISTTOK:central:PCF8591:72:ADC_CH1 ISTTOK:central:PCF8591:72:ADC_CH2 +ISTTOK:central:PCF8591:72:ADC_CH3 ISTTOK:central:P001:M ISTTOK:central:P001:E ISTTOK:central:P002:M diff --git a/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/save/iocISTTOKrpi.sav b/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/save/iocISTTOKrpi.sav index 6f23ca2..3bc0211 100644 --- a/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/save/iocISTTOKrpi.sav +++ b/epics/iocs/ISTTOKrpi/iocBoot/iocISTTOKrpi/save/iocISTTOKrpi.sav @@ -1,9 +1,9 @@ -# autosave R5.3 Automatically generated - DO NOT MODIFY - 200115-154642 +# autosave R5.3 Automatically generated - DO NOT MODIFY - 200115-194537 ISTTOK:central:PULSE-NUMBER.VAL 48392 ISTTOK:central:LogMessage.VAL Olá Mundo -ISTTOK:central:LASTOPSTATE.VAL 5 +ISTTOK:central:LASTOPSTATE.VAL 2 ISTTOK:central:OPREQ 1 -ISTTOK:central:PROCESS-MODE.VAL 0 +ISTTOK:central:PROCESS-MODE.VAL 1 ISTTOK:central:CLEANINGMANMODE.VAL 0 ISTTOK:central:Emergency-UserButton.VAL 0 ISTTOK:central:TMPump1-ManualValve.VAL 1