Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Page properties


Document status
Status
titleDRAFT
Document owner
Designer
Developers
QA


Description

This class is used for single Single Power Supplies.

Static Fork


Code Block
titleDBFile example
#QUATT007
@HCI(S)[(I32),(DBL),HU32,DBL,DBL,DBL,DBL,DI32,DBL:2:4]
MG1,QUATT007,01010001,0.1,3.0,3.0,3.0,1,11.0:12.0:13.0:14.0:21.0:22.0:23.0:24.0
@ReadOut(A)[(DBL),DBL,DBL,DBL,DBL,DBL,DBL]
currRead,1.5258789E-3,0.0,0.0,100.0,0.05,0.5
voltRead,1.0,0.0,0.0,255.0,255.0,255.0
slewRead,0.002444987775,0.0,1,10.0,0.02,1.0
ADCCRead,1.0,0.0,0.0,10.0,1.0,3.0
@Settings(A)[(DBL),DBL,DBL,DBL,DBL,DBL]
currSett,1.5258789E-3,0.0,0.0,100.0,0.001
slopSett,0.002444987775,0.0,1,10.0,0.02
@EXTRA(S)[DI32,DI32,DI32:2:1]


Code Block
titleJson
{
  "MG1HCISta.ctl": {
    "recordClass": 0,
    "elemName": 0,
    "elemType": 0,
    "maxCmdExeTime#0": 0,
    "maxCmdExeTime#1": 0,
    "maxCmdExeTime#2": 0,
    "maxCmdExeTime#3": 0,
    "polaritySwitch": 0,
    "interpolCoeff": [
      []
    ]
  },
  "readOutArray": [],
  "settingArray": [],
  "MG1ExtraSta": {
    "serialChID": 0,
    "slaveAddress": 0,
    "E642PgmTable": [
      []
    ]
  }
}

Dynamic Fork

Code Block
titleDBFile example
#QUATT007
@HCI(S)[(DBL),DI32,DI32,DI32,DI32,DI32,DI32,TF,TF,TF,TF,TF,TF,DBL,DI32,DI32,DBL,DBL,DI32,DI32,DBL,DBL,DBL,DU32:4]
QUATT007,0,000,0,0,0,0,1,0,1,0,0,0,0.0,0,0,0.0,9.9,0,0,0.0,9.9,0.0,0:0:0:0


Code Block
titleJson
{
  "MG1HCIDyn": {
    "elemName": 0,
    "status": 0,
    "consoleName": 0,
    "errorMask": 0,
    "cmdExeStartTime": 0,
    "maxCmdExeTime": 0,
    "cmdExecution": 0,
    "sysFlags": {
      "onLine": false,
      "byPass": false,
      "remote": false,
      "busy": false
    },
    "triggerArmed": false,
    "rampOn": false,
    "currentPreSetting": 0,
    "statusSetting": 0,
    "polaritySetting": 0,
    "currentSetting": 0,
    "slewRateSetting": 0,
    "cycleMode": 0,
    "outputPolarity": 0,
    "outputCurr": 0,
    "slewRateReadout": 0,
    "outputVolt": 0,
    "faults": []
  }
}

Details

Status codes

MG1HCIDyn.status = readout status readout

0  = Shutted down (status not readable)
1  = Standby
2  = Operational
3  = Faulty (there are some interlocks on the PS)
4  = Bad (Communication error or protocol violation or incoherent information)

The elemType descriptor

The elemType descriptor discriminates the PS sub-class (OCEM E642, DANFISYC SYS8X00, etc...)

@HCI(S)[(I32),(DBL),HU32,DBL,DBL,DBL,DBL,DI32,DBL:1:5]

MG1,DVRTT001,00010101,3,3.0,3.0,3.0,1,0.812713:3.660710:0.002425:-0.000008:-0.0

byte 3

PS type

(Alarm type)

byte 2

polarity control

byte 1

InterfaceType

byte 0

Protocol

0=1,5A,5B

1=2,3,4

2=DIP/WIG

3=TermPoleWIG

0 = bipolar

1 = unipolar with rem. ctl

2 = unipolar without rem. ctl

0 = SYS8000

1 = SYS8X00 uni

2 = SYS8800 bip


0 = E642 uni

1 = E642 bip

2 = E642 pulsed


0 =  Splitter(modbus)

1 = Skew(modbus)

2 = BTF_Pulsed(modbus)

0 = SYS8X00

1 = E642

2 = Modbus

3 = Probus

4 = VSP

5 = Genesys

6 = CAENels Easy Driver

7 = Modbus TCP EEI

00  01  01  01

| 3 | 2 | 1 | 0 |

byte 3      type 1,5A,5B

byte 2      unipolar with remote ctl

byte 1      E642 bip <--- DON'T CARE FOR OCEM

byte 0      Protocol E642


@HCI(S)[(I32),(DBL),HU32,DBL,DBL,DBL,DBL,DI32,DBL:2:4]

MG1,QUATM008,01010001,0.1,3.0,3.0,3.0,1,11.0:12.0:13.0:14.0:21.0:22.0:23.0:24.0


01  01  00  01

| 3 | 2 | 1 | 0 |


byte 3      type 2,3,4

byte 2      unipolar with remote ctl

byte 1      E642 uni <--- DON'T CARE FOR OCEM

byte 0      Protocol E642


An OCEM PS that can switch has the elemType:

XX01XX01

grep [0-9][0-9]01[0-9][0-9]01 ./DEVIL6??.DBSta

or

egrep "^MG1,.{8},[0-9]{2}01[0-9]{2}01," ./DEVIL6??.DBSta

How to search for a specific PS protocol in all the DBSta

Example of DBFile for an element of class "MG1"

%MG1

#DHSA*001

@HCI(S)[(I32),(DBL),HU32,DBL,DBL,DBL,DBL,DI32,DBL:2:4]

MG1,DHSA*001,00020000,0.1,3.0,3.0,3.0,1,11.0:12.0:13.0:14.0:21.0:22.0:23.0:24.0

... etc ...

                           XXXXXX00

The first byte of the elementType field, indicates the PS protocol.

e.g. in the above example, "00" indicates the protocol SYS8X00

 

Using the egrep command


egrep "^MG1,.{8},[0-9]{6}00," ./DEVIL6??.DBSta


^MG1                          matches          "MG1" at the beginning of a line

,                                   matches           ","

.{8}                             matches           any sequence of 8 characters (e.g. DHSA*001)

,                                   matches           ","

[0-9]{6}00                matches           any sequence of 6 digits followed by "00" (e.g. 00020000)

,                                   matches           ","