Skip to content

Commit

Permalink
Merge pull request #16 from janezg-SLAC/TD400_Serial
Browse files Browse the repository at this point in the history
Serial Library for Leybold TD400 controller
  • Loading branch information
janezg-SLAC authored Apr 11, 2024
2 parents 4d15105 + 93a9a30 commit cc2304a
Show file tree
Hide file tree
Showing 35 changed files with 17,592 additions and 1,766 deletions.
135 changes: 133 additions & 2 deletions CoeStartupParameters/Pfeiffer_EP6002-0002_RS485.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,133 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<EtherCATMailbox><CoE><InitCmds><InitCmd><Transition>PS</Transition><Comment><![CDATA[Interface Type Ch 1]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>63488</Index><SubIndex>1</SubIndex><Data>01</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Interface Type Ch 2]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>63488</Index><SubIndex>2</SubIndex><Data>01</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Baudrate]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32784</Index><SubIndex>17</SubIndex><Data>06</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable half duplex]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32784</Index><SubIndex>6</SubIndex><Data>01</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Baudrate]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32768</Index><SubIndex>17</SubIndex><Data>06</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable half duplex]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32768</Index><SubIndex>6</SubIndex><Data>01</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable point to point connection (RS422)]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32768</Index><SubIndex>7</SubIndex><Data>00</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable point to point connection (RS422)]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32784</Index><SubIndex>7</SubIndex><Data>00</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Data frame]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32768</Index><SubIndex>21</SubIndex><Data>03</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Data frame]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32784</Index><SubIndex>21</SubIndex><Data>03</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable XON/XOFF supported tx data]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32768</Index><SubIndex>2</SubIndex><Data>00</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable XON/XOFF supported rx data]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32768</Index><SubIndex>3</SubIndex><Data>00</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable XON/XOFF supported tx data]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32784</Index><SubIndex>2</SubIndex><Data>00</Data></InitCmd><InitCmd><Transition>PS</Transition><Comment><![CDATA[Enable XON/XOFF supported rx data]]></Comment><Timeout>0</Timeout><Ccs>1</Ccs><Index>32784</Index><SubIndex>3</SubIndex><Data>00</Data></InitCmd></InitCmds></CoE></EtherCATMailbox>
<?xml version='1.0' encoding='ISO-8859-1'?>
<EtherCATMailbox>
<CoE>
<InitCmds>
<InitCmd>
<Transition>PS</Transition>
<Comment>Interface Type Ch 1</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>63488</Index>
<SubIndex>1</SubIndex>
<Data>01</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Interface Type Ch 2</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>63488</Index>
<SubIndex>2</SubIndex>
<Data>01</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Baudrate</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>17</SubIndex>
<Data>06</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable half duplex</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>6</SubIndex>
<Data>01</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Baudrate</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>17</SubIndex>
<Data>06</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable half duplex</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>6</SubIndex>
<Data>01</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable point to point connection (RS422)</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>7</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable point to point connection (RS422)</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>7</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Data frame</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>21</SubIndex>
<Data>03</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Data frame</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>21</SubIndex>
<Data>03</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable XON/XOFF supported tx data</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>2</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable XON/XOFF supported rx data</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>3</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable XON/XOFF supported tx data</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>2</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable XON/XOFF supported rx data</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>3</SubIndex>
<Data>00</Data>
</InitCmd>
</InitCmds>
</CoE>
</EtherCATMailbox>
118 changes: 59 additions & 59 deletions CoeStartupParameters/TD20_Classic_to_EL6002.xml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version='1.0' encoding='utf-8'?>
<EtherCATMailbox>
<CoE>
<InitCmds>
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Baudrate]]></Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>17</SubIndex>
<Data>07</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Baudrate]]></Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>17</SubIndex>
<Data>07</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Enable RTS/CTS]]></Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>1</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Data frame]]></Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>21</SubIndex>
<Data>04</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Enable RTS/CTS]]></Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>1</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment><![CDATA[Data frame]]></Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>21</SubIndex>
<Data>04</Data>
</InitCmd>
</InitCmds>
</CoE>
<CoE>
<InitCmds>
<InitCmd>
<Transition>PS</Transition>
<Comment>Baudrate</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>17</SubIndex>
<Data>07</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Baudrate</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>17</SubIndex>
<Data>07</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable RTS/CTS</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>1</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Data frame</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32768</Index>
<SubIndex>21</SubIndex>
<Data>04</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Enable RTS/CTS</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>1</SubIndex>
<Data>00</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>Data frame</Comment>
<Timeout>0</Timeout>
<Ccs>1</Ccs>
<Index>32784</Index>
<SubIndex>21</SubIndex>
<Data>04</Data>
</InitCmd>
</InitCmds>
</CoE>
</EtherCATMailbox>
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,55 @@
<DUT Name="ST_SerLVC4000" Id="{1ecc4b20-fded-4e3a-82c1-cf810d73e466}">
<Declaration><![CDATA[TYPE ST_SerLVC4000 :
STRUCT
(* Readbacks *)
{attribute 'pytmc' := '
(* Readbacks *)
{attribute 'pytmc' := '
pv: voltage;
io: i;
io: i;
'}
i_iOut : INT; //Output voltage
(* Controls *)
{attribute 'pytmc' := '
i_iOut : INT; //Output voltage
(* Controls *)
{attribute 'pytmc' := '
pv: ADC_COEFF;
io: io;
io: io;
'}
q_rADCsl : REAL; //ADC slope coeff
{attribute 'pytmc' := '
q_rADCsl : REAL; //ADC slope coeff
{attribute 'pytmc' := '
pv: ADC_OFFSET;
io: io;
io: io;
'}
q_rADCos : REAL; //ADC offset
{attribute 'pytmc' := '
q_rADCos : REAL; //ADC offset
{attribute 'pytmc' := '
pv: CALIB_SET;
io: io;
io: io;
'}
q_xCal : BOOL; //Activate calibration mode
{attribute 'pytmc' := '
q_xCal : BOOL; //Activate calibration mode
{attribute 'pytmc' := '
pv: DISP_SET;
io: io;
io: io;
'}
q_xFull : BOOL; //Set full displacement during calibration
{attribute 'pytmc' := '
q_xFull : BOOL; //Set full displacement during calibration
{attribute 'pytmc' := '
pv: ZERO_SET;
io: io;
io: io;
'}
q_xZero : BOOL; //Set zero during calibration
{attribute 'pytmc' := '
q_xZero : BOOL; //Set zero during calibration
{attribute 'pytmc' := '
pv: GAIN_SET;
io: io;
io: io;
'}
q_iGain : INT; //Set instrument gain
{attribute 'pytmc' := '
q_iGain : INT; //Set instrument gain
{attribute 'pytmc' := '
pv: CALIB_ABORT;
io: io;
io: io;
'}
q_xAbortCal : BOOL; //Abort calibration mode
(* Internal params *)
{attribute 'pytmc' := '
q_xAbortCal : BOOL; //Abort calibration mode
(* Internal params *)
{attribute 'pytmc' := '
pv: ADDR;
io: io;
io: io;
'}
iAddr : INT; //RS485 address
xTimeout : BOOL; //Timeout (true if no comm)
iAddr : INT; //RS485 address
xTimeout : BOOL; //Timeout (true if no comm)
END_STRUCT
END_TYPE
]]></Declaration>
Expand Down
Loading

0 comments on commit cc2304a

Please sign in to comment.