Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-02313// Views: AA-02313// Created: 2024-04-23 21:43:00// Last Updated: 2024-04-24 17:29:51
Problem & Solution
Network Connectivity Issues with Magna Power Supply

Problem 1: Network connection with Magna Power Supply down.

We will try to retrieve the network configuration of the Magna PS, you will see a reset button next to the LAN of the Magna PS in the rear.
 
The LAN Reset button provides a way to reset the LAN configuration password and to set the device back to DHCP/Auto-IP mode. To activate the LAN Reset function, ensure the power supply is on and in standby mode. Hold down the LAN Reset button for approximately 4 seconds. Observe that the LAN LED rapidly flashes and after 4 seconds, release the LAN Reset button. The LAN configuration password will be reset to blank and the module will be set to DHCP/Auto-IP enabled.

 

After that the Magna power supply defaults to DHCP, then you should change the host PC 's IP to DHCP and then connect directly via ethernet to the Magna PS in order to restore the communications. On doing this, you should be able to configure a static IP address for Magna PS by changing the address of the device by pressing Change Device’s Settings in RIS panel.

 

In addition to configuring the IP address, please set the subnet mask to 255.255.255.0 for all the three devices (your host PC, the magna PS and simulator eth1 port (for simulator subnet selection settings is here: https://www.opal-rt.com/support-knowledge-base/?article=AA-01176). Then,  once you are connected to the power supply, open the virtual control panel on the host PC to set up the remote mode as explained in the section: "Setting Remote Mode from RIS Panel's Command Panel (Recommended)" https://magna-power.com/learn/kb/configuring-the-power-supply-for-computer-control


 

After setting the IP address, you should check for the LAN light of the Magna PS, if its off then you should reboot it.

 

Problem 2: In my SCPI simulation with the Magna PS, I am receiving Connected = 1 and Reception error = 1 indicating a connection has been made, however a "Reception error" is present. Checking the logs I see commands being transmitted (TX), but nothing is being received (RX)...

 

Check when you modified the IP of the magna PS to set a static value , did you also set the same value in the SCPI's RT-LAB configuration and did you make sure all the three connections: PC, magna PS and eth1 are on the same subnet 255.255.255.0. Make sure eth0 through which you connect from the simulator to the host PC is on a different subnet from eth1 and that you are connected to the Magna PS from the simulator through the eth1 on simulator. If the issue persists, you can log the SCPI data to a CSV file and send the log to support@opal-rt.com . 


 

Also, to retrieve the log from the SCPI driver after the reset of the model, the model must be put in exhaustive mode and the driver in verbose mode.


The Magna PS cannot communicate with two devices at the same time. So either we can control Magna PS from the RIS panel on the host PC or from the RT-LAB simulation. If the RIS panel is open and then we try to load the FAT model, the RT-LAB SCPI driver will not connect with the Magna PS. An example network configuration of all the devices in connectivity is shown below. 

eth0:

IP: 192.168.10.101

Mask: 255.255.255.0 

 

eth1:

IP: 192.168.11.104

Mask: 255.255.255.0 

 

Host:

IP: 192.168.10.99

Mask: 255.255.255.0 

 

Magna:

IP: 192.168.11.105

Mask: 255.255.255.0 

Port: 50505

 

OpalRT SCPI Config: 

NIC: eth1

IP: 192.168.11.105

Mask: 255.255.255.0

Port: 50505


 

For terminators It's important to have the right formatting for command termination (\n, \r\n,....), it can change from one device to another. The terminator \r \n refers to the carriage return followed by new line/line feed.  Therefore, \n alone just creates a new line (and by default returns the cursor/reader to start of the line) while \n \r creates a new line and then forces the cursor/reader to return to start of the line.