HSPY Programming
HSPY Programming
1000V 0.1A Digital Adjustable Variable Lab Bench Power Source High Voltage Programmable
DC Regulated Power Supply (The one on the photo is 0,3 A)
I bought mine to calibrate duspols on 24, 50, 120, 230, 400 and 690 Vdc. So I choose the 0,1 A type,
since I only want to check the voltage, more current makes it more expensive.
I bought mine for € 236,95 + local taxes. It is now 1 month later € 275-
Since I’m going to change the current 6 times every measurement, I wanted to use the programmable
part, since using the buttons is only nice for a single setting. But continuously changing the setting using
the device interface, is rubbish.
The power supply comes with some default setting as shown to the right.
You can enter the settings, by turning on the device HSPY-xxx en then
press the rotary-button once.
When done, press the rotary-button again and your back to normal
display.
1. Set Mode to N
2. Set the device (slave) address (RS-Adder) to 001, or whatever
might make you happy
3. Set speed (RS_BT) to 9600
4. Set Stop_Bit to 1
Setting up windows
Modbus Poll, license based, 30 days free, need to restart after 10 minutes. Still very useful while
experimenting. Download it from https://www.modbustools.com/
You need to do the connection setup, since you have set the power supply earlier, you only need to set
the same settings to this software, remember to set the RTU mode (Modbus over RS232 remember?)
As you can see in the overview on the topleft, , you can name the
registers and save this setting. I like it, since I forget that the fifth
register (Line nr4) is on/off for the Aux clamps on the device, etc
Start at adres 0, ask for 10 register (quantity) and I left the scanrate
default.
I default set the focus on register 0 (Set Voltage)
data field.
You can set the current, the voltage, Stop/Run, KeyLock (Rotery-button off) and Mode .You can only
read the active current and voltage.
That’s it, I like this program a lot, it save you tons of time not using the knobs. I did not actually buy it,
since I want to trigger program-changes to the device from an excel spreadsheet, where I log my
measurements for customers. Or from a Arduino, being able to use the power supply without a PC.
More over that, in the next chapter.
I will also supply the batch file, you need to adapt the path to the executable, the Com-port and the
slave number. I added some error trapping.
How to use Modpoll?
Reading: How to use? Run Modpoll.exe -h from the command line, you only need a few parameters:
At the end you see “[5]: 0”, meaning My stop/run button is off.
The writing of a register is nearly the same as reading it. You omit the -1 and at the end you set the
value needed.
So I want to set the voltage: Register =1, my Comport =7, My slaveID=3, Voltage=50V
Voltage and current are written with the digit behind the comma, without the comma
So writing 17,5 V means you type 175
So writing 400 V, means you write 4000.
You can write any number, the device is limited to its max.
It does some basic checking. You can select preset voltages, but you
can also set Voltage (9) and Current (10)
Enjoy! The lack off information on internet over this device is strange, since it is sold at many places.
Please share!
Arduino:
I am busy, getting an Arduino programming the device. I’m not really a network specialist, so I’m still
fighting. If finished, I will publish the used components and the code.
Using the Arduino with a display, makes unattended use possible. I still want to select the Voltages, but
also want Step-up en step-down buttons.
I want to use relais, to switch between my AC and DC power supply and also connect to my resistance
testing, doing so, it is no longer needed to switch connection to the testing device.