Problem with send commands with dashboard in B&R PLC

I’m trying to send commands to my ur20 robot, but only received the line of ‘connected: universal robots dashboard server$n’, and when only i write an ‘$’ in command to send i receive he cant recognise the command. I use a string variable and the \n final. I’m trying with a code of TCP library:

20: (* Send Data to the Server )
Client_TCP_Comm.TcpSend_0.enable := 1;
Client_TCP_Comm.TcpSend_0.ident := Client_TCP_Comm.TcpOpen_0.ident; (
Connection Ident from AsTCP.TCP_Open )
Client_TCP_Comm.TcpSend_0.pData := ADR(Client2Data.send_data); (
Which data to send )
Client_TCP_Comm.TcpSend_0.datalen := SIZEOF(Client2Data.send_data); (
Lenght of data to send )
Client_TCP_Comm.TcpSend_0.flags := 0;
Client_TCP_Comm.TcpSend_0; (
Call the Function*)
I proved send other types of variables, using the function of concat strings,etc… but the robot can’t respond me and can’t do the action that I say to him.