Information on PROXR using VB.net

Hello,

I tried to follow the instruction given in the documentation, unfortunately i could get it work with SerilaPort1, but when i tried using the sample, the hardware is working with any issues

Should I use the component “NCDComponent.dll” all the time ? can I make my own code to communicate using SerialPort1 from .NET framework

If anyone have a sample for managing Relay Module without NCDComponent.dll let me know

Thank you

ProXR.pdf (2.7 MB)
provided

Hi,

I don’t have any samples in .net without using the NCDComponent.dll, but you shouldn’t need to use it if you don’t prefer to.

To control the boards you simply open a serial port or a TCP socket to them and start sending commands and reading responses.

The NCDComponent just simplifies the implementation a bit.

Hello Jacob,

Thanks for reply,

Any simple code will help

i gave a very simple code

SerialPort1.Writeline(Chr(254))
SerialPort1.Writeline(Chr(27))
SerialPort1.Writeline(Chr(8))

I did not receive any response in DataReceived event and Relay 1 was not getting on.

Could you please tell me what should the serialport settings?

Awaiting your reply

Ah, I just noticed you had posted an old proxr guide. The new guide is at: https://ncd.io/proxr-quick-start-guide/

The newest version of the ProXR boards use an optional API wrapper that speeds up communications and reduces communication errors.

Try sending:
SerialPort1.Writeline(Chr(170))
SerialPort1.Writeline(Chr(4))
SerialPort1.Writeline(Chr(254))
SerialPort1.Writeline(Chr(140))
SerialPort1.Writeline(Chr(0))
SerialPort1.Writeline(Chr(1))
SerialPort1.Writeline(Chr(57))

That is the command to turn all relays off in bank 1

To turn all relays on in bank 1 you can use this:

SerialPort1.Writeline(Chr(170))
SerialPort1.Writeline(Chr(4))
SerialPort1.Writeline(Chr(254))
SerialPort1.Writeline(Chr(140))
SerialPort1.Writeline(Chr(255))
SerialPort1.Writeline(Chr(1))
SerialPort1.Writeline(Chr(56))