When we are doing embedded software development, we will do various tests in combination with hardware or products. On this day, I received a test request, requiring me to linearly increase the product voltage from 9V to 18V, increasing by 0.1V every 20s. In fact, I am usually a lazy person. Generally, if it is easy to operate by hand, I will not use my brain. But this is too much, so I want to automate it.
PC software and operation manual download
First of all, we open the product link https://delta-elektronika.nl/products/sm3300-series on Delta’s official website
and pull down to enter the Download interface to download PC software and programming manuals
. But our company does not allow software downloads, so I use web version
Delta power supply configuration
- Connect the computer and power supply with an Ethernet cable.
- Configure the IP address on the power supply device
Click Menu -> Interface -> LAN -> DHCP , select Enable , and the IP address will be automatically configured.
If you choose Disable, you need to manually configure the IP, and make sure it is on the same network segment as the PC. - Selecting a Control Source on the Power Supply On
the power supply, click Menu -> Configuration -> Source .
Set Vsetting and Isetting respectively . Because I only need to use the program to control the voltage, I choose Seq for Vsetting , and the default front for Isetting , which is the control of the power equipment panel.
Create programming sequence
- Create a new txt file and save it as *.seq* type. Be careful not to save it as .seq.txt here.
- Edit a program as follows
1 sv=9
2 sc=50
3 w=60
increase:
4 inc sv,0.1
5 w=20
6 cjl sv,18,increase
7 w=1
8 end
Note:
a. The preceding 1 2 3 4 are required
b. sv = 9
It means that the power supply voltage is set to 9V.
c. sc=50
It means to set the power supply current to 50A, which is not practical here. I write it here just to tell you the current setting command.
d. w=60
means to wait for 60s.
e. increase:
Here is a label, :
which is the sign of the label. .
f. inc sv,0.1
means to increase the power supply voltage by 0.1V
g. cjl sv,18,increase
means to jump to if sv<18V label increase
. cjl
It is compare jump lower, and the corresponding command is cjg
, compare jump greater. See the programming manual for details.
h. The last end indicates the end of the program. Here, it should be noted that there must be a blank line after end , otherwise an error will always be reported
Power control via web seq
- Check the IP address on the power supply unit. Menu -> Interface -> LAN -> Address .
- Connect the power supply and computer with a network cable.
- Select the control source on the power supply unit. On the power supply, click Menu -> Configuration -> Source . Set Vsetting to Seq, and Isetting still uses the default front, which is the power device panel control.
- Open the PC browser, enter the IP address, you can control