Home AMXForums Archive Threads AMX Applications and Solutions

RS 485 problem on NI3000

I am controlling a RS485 relais unit via the NI-3000, to controle lights on and off.

While sending commands to the controller often a delay is noticed of more than one second. If I test the RS485 unit via a RS-232/rs485 convertor connected to my PC I can't see this delay.

Do I something Wrong in the NI-3000 settings ?
Cable is connected as described in the manaul. I can controlle the unit and I recieve the answer of the rs485 relais unit .


Code:

DATA_EVENT [SERIAL5_ARU16] // SET SETTINGS SERIAL5_ARU16
{
ONLINE:
{
SEND_COMMAND SERIAL5_ARU16, "'SET BAUD 9600,N,8,1 485 ENABLE'" // SERIAL5_ARU16
}
STRING:
{
ARU16_INFO = DATA.TEXT
//CALL 'ARU16_STATUS' //vertraagd misschien
}
}

SEND_STRING SERIAL5_ARU16, "$02,$00,$01,$91,$1b,$81,$01,$00,$CC,$CC,$03" // disable relais 1

Comments

  • DHawthorneDHawthorne Junior Member Posts: 4,584
    Sounds like it could be a hardware handshaking issue. Try sending the port a HSOFF comand and see it that improves it. It may be necessary to rewire your connection for the proper hardware control lines.
  • pvspvs Junior Member Posts: 6
    thanks, I will try it out, Is this standard enabled or disabeld ?

    What is standard configuration of com port RS232/rs485
  • DHawthorneDHawthorne Junior Member Posts: 4,584
    Default is disabled, but any number of things can set it to enabled, including a command buried in a compiled module file. The setting is non-volatile, it will stay where it's set until changed or the memory reset in the chassis.
Sign In or Register to comment.