Repositório do ISTTOK
Sakbe
2020-01-27 c598cc963cad52b45b71883cb7b243b54cd67d94
epics/README.md
@@ -108,7 +108,8 @@
|ISTTOK:temperature:Temperature_1   |ai   | no |
|ISTTOK:temperature:Temperature_2   |ai   | no |
|ISTTOK:temperature:Temperature_3   |ai   | no |
|ISTTOK:temperature:Capbank_Voltage|   ai|   no |
|ISTTOK:temperature:Capbank_Voltage |   ai|   no |
|ISTTOK:temperature:VVessel-Temperature  | ai | yes |
----------
### Central Control/Vacuum Node
@@ -119,10 +120,9 @@
- Main State Machine 
#### Hardware Platform
1. A Raspberry Pi 3, running a linux distribution
  * Has a USB/RS485 port for monitoring pressure (to be connected soon)
2. Two Interface Board, Velleman
   [k8000](https://www.velleman.eu/products/view/?id=9383)
1. A Raspberry Pi 3, running a linux distribution..
  * Has a USB/RS485 port for monitoring pressure (to be connected soon)
2. Two Interface Boards, Velleman Model   [k8000](https://www.velleman.eu/products/view/?id=9383)..
  * connected to raspberry Pi through I2C interface;
  * 8 isolated output connected to the relays (6 relays installed for the rotatory control)
  * 4 isolated outputs connected to SEIKO unit controller
@@ -149,8 +149,7 @@
#### Process Variables 
Process Variables in this IOC Server:
1. State machine PVs
=======
* State machine PVs
|PV Name   |PV Type   |Archive|
|:----------|-------|---:|
@@ -167,7 +166,7 @@
|ISTTOK:central:LogMessage |   stringout    |   yes |
----------
2. Connected to PCF8574 I2C Address = 56 (Bottom Valleman)
* Connected to PCF8574 I2C Address = 56 (Bottom Valleman)
|PV Name   | PV Type   | Bit |
|:----------|-------|---:|
@@ -181,7 +180,7 @@
|ISTTOK:central:TMPump1-NormalOperation | bi | 7 |
----------
3. Connected to PCF8574 I2C Address = 57
* Connected to PCF8574 I2C Address = 57
|PV Name   | PV Type   | Bit |
|:----------|-------|---:|
@@ -189,11 +188,11 @@
|ISTTOK:central:TMPump2-Acceleration | bi | 1 |
|ISTTOK:central:TMPump2-MotorOn | bo | 2 |
|ISTTOK:central:Buzzer| bo | 3 |
|ISTTOK:central:TTSystem-tzero| bo | 7 |
|ISTTOK:central:EmergencyButton| bo | 2 |
|ISTTOK:central:Emergency-PhysButton| bi | 4 |
|ISTTOK:central:TTSystem-tzero| bi | 7 |
----------
4. Connected to PCF8574 Address = 60 (Top Valleman)
* Connected to PCF8574 Address = 60 (Top Valleman)
|PV Name   | PV Type   | Bit |
|:----------|-------|---:|
@@ -202,43 +201,40 @@
|ISTTOK:central:RPump2-Motor| bo | 2 |
|ISTTOK:central:RPump2-Valve| bo | 3 |
|ISTTOK:central:VVessel-Filament| bo | 4 |
|ISTTOK:central:Clean-TorContactor| bo | 7 |
----------
4. Connected to RS485 Bus
* Connected to TDA8444 DAC  @ address 0x20=d32  (Bottom Valleman)
|PV Name   |PV Type   |Archive|
|:----------|-------|---:|
| ISTTOK:central:TDA8444:32:DAC_CH0| longout | no |
| ISTTOK:central:TDA8444:32:DAC_CH1| longout | no |
| ISTTOK:central:TDA8444:32:DAC_CH2| longout | no |
| ISTTOK:central:TDA8444:32:DAC_CH3| longout | no |
| ISTTOK:central:TDA8444:32:DAC_CH5| longout | no |
| ISTTOK:central:TDA8444:32:DAC_CH6| longout | no |
| ISTTOK:central:Shot-TorPSCurrent| longout | no |
----------
* Connected to PCF8591  ADC  / DAC register @ address 0x48=d72
|PV Name   |PV Type   | CH   |Archive|
|:----------|-------|---:|
| ISTTOK:central:TMPump2-Speed| ai | ch1 | no |
| ISTTOK:central:TMPump2-Current| ai | ch2 | no |
| ISTTOK:central:Shot-TorPSCurrentImage"| ai | ch3 | no |
----------
* Connected to RS485 Bus
|PV Name   |PV Type   |Archive|
|:----------|-------|---:|
| ISTTOK:central:RPump1-Pressure | ai | yes |
|ISTTOK:central:RPump2-Pressure  | ai | yes |
|ISTTOK:central:TMPump1-PressureAdmission | ai | yes |
|ISTTOK:central:VVessel-Pressure   | ai | yes |
|ISTTOK:temperature:VVessel-Temperature  | ai | yes |
|  | ai | yes |
----------
ISTTOK:central:TMPump1-ControllerOn
ISTTOK:central:TMPump1-ControllerOff
ISTTOK:central:TMPump1-MotorOn
ISTTOK:central:TMPump1-MotorOff
ISTTOK:central:TMPump2-Motor
ISTTOK:central:Buzzer
ISTTOK:central:Emergency-UserButton
ISTTOK:central:RPump1-Motor
ISTTOK:central:RPump1-Valve
ISTTOK:central:RPump2-Motor
ISTTOK:central:RPump2-Valve
ISTTOK:central:VVessel-Filament
=======
|ISTTOK:central:COUNTDOWN |   mbbi    -
|ISTTOK:central:PULSE-NUMBER |   longout | yes |
|ISTTOK:central:OPSTATE |longout    |  | yes |
|ISTTOK:central:CurrentTime |   stringin    |   no |
|ISTTOK:central:TraceMessage |   stringout    |   no |
----------
ISTTOK:central:VVessel-Pressure   | ai | yes
##### Start the IOC on power up
@@ -249,6 +245,25 @@
           * `sudo screen -r`
## Download and configure CS-Studio
* Install  JAVA JDK (version Java SE Development Kit 8)
* Download ISTTOK EPICS Files to a working folder
   * `git clone  https://bernardo@git.ipfn.tecnico.ulisboa.pt/r/ISTTOK.git`
* Goto site [CS-Studio](http://download.controlsystemstudio.org/release/4.5/) and download latest version to your OS
* Uncompress folder
* Run `cs-studio` executable
   * Choose a workplace folder
* Goto to Menu EDIT->Preferences->CSS Core->Data Sources->Channel Access
   * On Address List replace `localhost` with `epics.ipfn.tecnico.ulisboa.pt`
   * Uncheck `Auto Address List`
   * Restart CS-Studio
* Run File -> Import -> General-> Projects from folder
   * point to cloned folder
* Navigate to `ISTTOK/epics/css/sys-mng-opi/CSS`
   * Open `SystemManagerIsttok.opi` with "OPI Display"
### EPICS Channel Access Configuration
```
export EPICS_CA_ADDR_LIST="192.168.1.110 192.168.1.152"