Home AMX User Forum NetLinx Studio

Rs-485 Feed Back

Dear ...........

If I have this code to controll the camera for example :

BUTTON_EVENT [TP,171] //PAN RIGHT
{
PUSH:
{
SEND_STRING CAMERA,"$01,$01,$24"
}
HOLD[5,REPEAT]:
{
SEND_STRING CAMERA,"$01,$01,$84"
}
}
BUTTON_EVENT [TP,172] //PAN LEFT
{
PUSH:
{
SEND_STRING CAMERA,"$01,$02,$24"
}
HOLD[5,REPEAT]:
{
SEND_STRING CAMERA,"$01,$02,$84"
}
}

So what the code for the feed back

With best regards

Comments

  • When initialized your serial port i.e. with 'SET BAUD 9600,N,8,1 485 ENABLE', you can operate the feedbacks just the same as RS-232 (DATA_EVENT..STRING, CREATE_BUFFER, etc).

    If wired as 485, you short TX+ and RX+ to one single + line, the same with the - lines. If you run the port w/o '485 ENABLE' you'll receive your own data immediately. The '485 ENABLE' will ignore the data your have sent on the receive pins, and you only will get the data from the remote device(s). Keep in mind that RS-485 is a half-duplex bus, so you have to wait for the response of your remote device, before you send your next string.
  • TurnipTruckTurnipTruck Posts: 1,485
    The '485 ENABLE' will ignore the data your have sent on the receive pins, and you only will get the data from the remote device(s).

    I have never gotten that to work an Axcent 3s connected as slaves to Netlinx masters, my TX data always echoes back. On Netlinx master serial ports it's ignored.
Sign In or Register to comment.