This
support module provides ASYN drivers to control CAENels
Easy Driver power supplies. The module consists of C source and and example database.
Several files need minor modifications to use CAENels Easy Driver support in an application.
Set DTYP=asynOctet, INP="@asyn($(PORT) xxx)",
where $(PORT) expands to the port name in the devDriverConfigure
command and xxx is a numeric value as described in the following
table.
ASYN |
Description |
0 |
Version
information read from Easy Driver supply. |
Set DTYP=asynInt32 and INP="@asyn($(PORT) xxx)", where $(PORT)
expands to the port name in the devDriverConfigure
command and xxx is a numeric value as described in the following
table. Subaddresses less than 50 must be
SCAN="I/O Intr".
ASYN |
Description |
0 |
Supply
on |
1 |
Generic
fault |
2 |
DC
voltage too low |
3 |
MOSFET
temperature too high |
4 |
Shunt
temperature too high |
5 |
External
interlock |
50 |
Slew
control status (0-Immediate, 1-Rate Limit). This record is typically SCAN=Passive
and has an FLNK from the slew control record. |
99 |
Readback poll. Processing this record initiates a status
read operation and updates the status bits and measured current. This
record is typically processed at one of the standard
scan rates. For faster status updates this record can
be processed by a state notation program or a sequence record. |
Set DTYP=asynFloat64 and INP="@asyn($(PORT) xxx)", where $(PORT)
expands to the port name in the devCAENelsEasy DriverConfigure command and xxx is a numeric
value as described in the following table. Subaddresses
less than 40 must be SCAN="I/O Intr".
ASYN |
Description |
0 |
Supply
measured ouput current (Amps).
|
40 |
Bulk
supply voltage. |
41 |
MOSFET
regulator temperature (degrees C). |
42 |
Shunt
temperature (degrees C). |
43 |
Supply
output voltage. |
Set DTYP=asynInt32 and OUT="@asyn($(PORT) xxx)", where $(PORT)
expands to the port name in the devCAENelsEasy DriverConfigure command and xxx is a numeric value
as described in the following table. Resetting faults or turning a
supply on or off triggers a status and current read back operation.
ASYN |
Description |
80 |
Stop
waveform output when processed. The value written is unused. |
100 |
Turn
supply off (0) or on (1). |
101 |
Reset
latched faults when processed. The value written is unused. |
102 |
Enable
(1) or disable (0) slew rate limiting. This record typically has an
FLNK to the slew status binary input record. |
104 |
Enable
(1) or disable (0) the bulk supply. The bulk supply is
turned off only when all supplies have requested that it be disabled. |
Set DTYP=asynFloat64 and OUT="@asyn($(PORT) xxx)", where $(PORT)
expands to the port name in the devCAENelsEasy DriverConfigure command and xxx is a numeric value
as described in the following table.
ASYN |
Description |
0 |
Supply
setpoint (Amps). Processing this record sets the supply setpoint and
performs a status and current read back operation. |
13 |
Supply
PID controller proportional gain. |
14 |
Supply
PID controller integral gain. |
15 |
Supply
PID controller derivative gain. |
Set DTYP=asynIntFloat32ArrayOut and OUT="@asyn($(PORT) xxx)",
where $(PORT) expands to the port name in the devCAENelsEasy
DriverConfigure command and xxx is a numeric
value as described in the following table.
ASYN |
Description |
0 |
The
array of setpoints to be written,
one per millisecond, when waveform output is enabled. |
Set DTYP=asynInt32 and OUT="@asyn($(PORT) xxx)", where $(PORT)
expands to the port name in the devCAENelsEasy DriverConfigure command and xxx is a numeric value
as described in the following table.
ASYN |
Description |
0 |
Set
the number of cycles of waveform output. The supply starts waveform
output whenever this record is processed. The example database shows
how to provide separate 'start', 'stop' and 'set count' operations. |
The example application distributed with this support module
comes with databases containing all the above process variables and EDM screens
to display them.
After
obtaining a copy of the distribution, it must be installed
and built for use at your site.
To
be used with this driver the network interface
in the supply must be configured to use TCP communication. To allow
setpoint changes faster than 40 Hz or so the
network interface in the supply must be configured to use a carriage-return
character ('\r', hex 0x0D) as a trigger. This can
be changed from the network interface web server or from the network
interface telnet server (port 9999). The value is set in the ¨Match
Bytes¨ field of the web server as shown below.
If
using the telnet server to make the change the terminal session will look
something like the following.
> telnet 192.168.1.51 9999
MAC address 00204AC47B1C
Software version V6.6.0.2 (080926) XPTEXE
Press Enter for Setup Mode
*** basic parameters
Hardware: Ethernet TPI
IP addr 192.168.1.51, no gateway set,netmask
255.255.255.0
DNS Server not set
*** Security
SNMP
is
enabled
SNMP Community Name: public
Telnet Setup is enabled
TFTP Download is enabled
Port 77FEh is enabled
Web Server is enabled
Web Setup is enabled
ECHO
is
disabled
Enhanced Password is disabled
Port 77F0h is enabled
*** Channel 1
Baudrate 921600, I/F Mode 4C, Flow 00
Port 10001
Connect Mode : CC
Datagram Type 01
Pack Cntrl: 00
Remote IP Adr: --- none ---, Port 00000
*** Expert
TCP Keepalive : 45s
ARP cache timeout: 600s
CPU performance: High
Monitor Mode @ bootup : enabled
RS485 tx enable : active low
HTTP Port Number : 80
SMTP Port Number : 25
MTU Size: 1400
Alternate MAC: disabled
Ethernet connection type: auto-negotiate
*** E-mail
Mail server: 0.0.0.0
Unit :
Domain :
Recipient 1:
Recipient 2:
- Trigger 1
Serial trigger input: disabled
Channel: 1
Match: 00,00
Trigger input1: X
Trigger input2: X
Trigger input3: X
Message :
Priority: L
Min. notification interval: 1 s
Re-notification interval : 0 s
- Trigger 2
Serial trigger input: disabled
Channel: 1
Match: 00,00
Trigger input1: X
Trigger input2: X
Trigger input3: X
Message :
Priority: L
Min. notification interval: 1 s
Re-notification interval : 0 s
- Trigger 3
Serial trigger input: disabled
Channel: 1
Match: 00,00
Trigger input1: X
Trigger input2: X
Trigger input3: X
Message :
Priority: L
Min. notification interval: 1 s
Re-notification interval : 0 s
Change Setup:
0 Server
1 Channel 1
3 E-mail
5 Expert
6 Security
7 Defaults
8 Exit without save
9 Save and
exit Your
choice ? 1
Baudrate (921600) ?
I/F Mode (4C) ?
Flow (00) ?
Port No (10001) ?
ConnectMode (CC) ?
Datagram Type (01) ?
Send as Broadcast (N) ?
Remote IP Address : (000) .(000) .(000) .(000)
Remote Port (0) ?
Pack Cntrl (00) ?
SendChar 1 (00) ? 0d
SendChar 2 (00) ?
Change Setup:
0 Server
1 Channel 1
3 E-mail
5 Expert
6 Security
7 Defaults
8 Exit without save
9 Save and exit
Your choice ? 9
Parameters stored ...
Connection closed by foreign host.