Command line configurator and commander for a Power Supply from Delta Elektronika BV is CLI tool designed to configure, check communication and control an power supply connected to Ethernet. Program is working under Linux and MS Windows.
Main functions:
- Explore LAN and show connected PSU's
- Easy configure IP address of the PSU
- Send basic SCPI commands to PSU
- Reads response from the PSU
- Can be used in batch files and scripts for task automation
Command line help:
Command line configurator for Delta Elektronika PSU's by www.elso.sk v1.2.33 Win32 i386
When no parameter is specified, program searches for PSU's on Local Network.
Commands are case insensitive. Use Slash (/) or Minus (-) as parameter switch.
Any number can be entered also as Hex with "x" or "0x" prefix, so xFF is 255 decimal.
/h, /? - this text
/b - Do not Bind to all local adresses.
/l - Long, increase delay +5s for response from remote device, can be used more times (/ll adds 10s
/f - Fast, wait 100 ms for response, default is 1 s
/r - send controller Reset command, /MAC is mandatory
/mac - specify MAC Address of PSU as next parameter
use: /mac F4-e1-42-00-03-ab
/dhcp - enable DHCP on PSU with specified MAC Address, /MAC is mandatory
/static - set static IP address on PSU with specified MAC Address
paramters /IP and /MAC are mandatory
/ip - specify IP Address as next parameter
use: /mac F4-e1-42-00-03-ab /static /ip 192.168.2.2
/gw - specify address of Default Gateway as next parameter
If not spefified, it is calculated from /IP, x.x.x.1
/mask - specify Network Mask as next parameter
If not spefified, default is used 255.255.255.0
/bad - specify IP Address to Bind to
/a - ask for IDN and interfaces
/cmd - send command to PSU, use: /IP 10.0.0.1 /cmd "sour:curr 3;outp 1", for " use ''
/hex - send HEX data, use: /IP 10.0.0.1 /hex "0001 0000 0006 00 05 0065 FF00" or /hex 01FF00
/mod - send ModbusTCP 6 byte command, /tport is set to 502, use: /IP 10.0.0.1 /mod 3 100 255
/mde - Modbus device ID, default is 1, use: /mde 5 /mod 2 100 2
/o - try to resolve used IP address to hostname
/d - parse command in /cmd as separate commands and send with 100ms delay, space (; ;) is 500 ms
/t - repeat command in /CMD until CTRL+Break
/ttime - change delay between /t repeats in ms, default is 100 ms, use: /ip 10.10.1.5 /ttime 100 /t /cmd read?
/u - UDP communication mode for /CMD & /CFL, use: /u /ip 192.168.152.1 /cmd initnet;*IDN?;disconnect
/u /ip 192.168.172.1 /cmd "initnet;sour:volt 10;sour:curr 1;sour:outp on;sour on;disconnect"
/cfl - send text file, empty line is pause, use: /IP 10.0.0.1 /cfl file.txt
/hfl - send hex file, empty line is pause, use: /IP 10.0.0.1 /hfl file.txt
/waitl - change delay after each line in /cfl, default is 5 ms, use: /ip 10.10.1.5 /waitl 100 /cfl file.txt
/waitp - empty line pause in /cfl, default is 1000 ms, use: /ip 10.10.1.5 /waitp 5000 /cfl file.txt
/n - while /CMD or CFL shows also outgoing commands
/s - send command specified by /cmd to all found devices, use: /s /cmd syst:fro:hig
/xc - convert Comma in incomming data to system EOL, useful for getting Digitize data from the Vanquish
/xsk - convert Comma to Semicolon and Decimal Dot to Comma - for languages like Slovak
/xts - add timestamp to incoming data, separated by Semicolon, format: ;yyyy-mm-dd;hh:nn:ss;zzz
/xtt - add timestamp to incoming data, separated by TAB, format: [T]yyyy-mm-dd[T[hh:nn:ss[T]zzz
/xtc - add timestamp to incoming data, separated by TAB, format: [T]yyyy-mm-dd hh:nn:ss.zzz
/xtk - add timestamp to incoming data, separated by TAB, format: [T]yyyy.mm.dd[T]hh:nn:ss.zzz
/xtl - add timestamp to incoming data, separated by TAB, format: [T]yyyy.mm.dd hh:nn:ss.zzz
/xti - add timestamp to incoming data, separated by TAB, format: [T]hh:nn:ss.zzz
/xis - translate Escaped special characters in /cmd (\z \b \t \n \r \e \s)
/mb? - convert HEX output as MODBUS data: Integer, Long, Float, Binary and String (/mbi, /mbb, ....)
/ports - change all communication ports use: /ports 53001 /u /ip 192.168.1.21 /cmd *idn?
/tport - change port for TCP communication (8462), use: /tport 9221 /ip 192.168.1.21 /cmd *idn?
/fluke - change port for TCP communication to 3490, use: /fluke /ip 192.168.1.21 /cmd *idn?
/aimtti - change port for TCP communication to 9221, (Thurlby Thandar Instruments)
/sraw - change port for TCP communication to 5025, (SCPI Raw Socket, Agilent/Keysight, Rohde & Schwarz)
/stel - change port for TCP communication to 5024, (SCPI Telnet)
/hislip - change port for TCP communication to 4880, (High-Speed LAN Instrument Protocol)
/tdkla - change port for TCP communication to 8003, (TDK Lambda)
/sport - change UDP server listening port (7025), use: /sport 9221
/cport - change remote client UDP port (7024), use: /cport 9221
/cr - change line terminator to CR (13, 0x0Dh, \r\n) - default is LF (10, 0x0Ah, \n)
/crlf - change line terminator to CRLF (1310, 0x0D0Ah, \r\n)
/terac - do discovery of Teracom moduless
An empty line in text file transmited by /cfl
command means one second pause.
Examples:
Command: edcmde.exe /ip 192.168.1.183 /cmd *idn?
sends to an PSU with IP address 192.168.1.183 request for identification (SCPI command *idn?
) and shows response from the PSU e.g.: DELTA ELEKTRONIKA BV,PSC ETH P256 V3.7.0,10219718,0
Command: edcmde.exe /ip 192.168.1.182 /cmd "meas:volt?;meas:curr?;outp 1;syst:err?"
sends to the an PSU at IP address 192.168.1.184 commands "meas:volt?;meas:curr?;outp 1;syst:err?" and shows responses from the PSU on one line, e.g.: 0.0026,-0.0029,0,None
.
Commands: edcmde.exe /mac 00-12-4D-01-A6-71 /ip 192.168.1.183 /static
sets Static IP address 192.168.1.183 to an PSU with MAC address 00-12-4D-01-A6-71.
Command: edcmde.exe /tport 9221 /ip 192.168.1.21 /cmd V1o?;I2o?;V2o?;I2o?;V3o?;I3o?;
reads actual values of voltage and current from all three channels of the PSU TTi MX1xxP with IP address 192.168.1.21, in this case TCP port 9221 is used.
Command: edcmde.exe /u /ip 192.168.172.180 /cmd "initnet;*idn?;disconnect"
initialise network connection, send *IDN? command by UDP protocol to unit at address 192.168.172.87 and disconnect (/u is aimed for ET1307 controller)
edcmde.exe /u /ip 192.168.172.180 /cmd "initnet;sour:volt 232.7;sour:curr 1;sour:freq 365;sour:outp on;sour on; ;meas:volt?;disconnect"
Look to /download/elso/ for binaries for all supported OS's.
Article: How to Control Delta Elektronika power supplies over Ethernet networks.