serial transmission between multiple arduino uno using rs485

i have done this transmission code here is a master and 2 slaves all are arduino…i want the master to transmit an id if the id matches with the id of the slave the slave performs the instruction under it
the arduinos are connected with wires from tx and rx pin
i am trying communication between two arduinos first

the master code is as follows

#include<Wire.h>
void setup()
{
Wire.begin(9600);
pinMode(13, OUTPUT);

}

void loop()
{

int val=Wire.read(); //this would be much more exciting if it was a sensor value

delay(1000);
Wire.write(val);
}

the slave code is as follows

#include<Wire.h>
int val = 0;
int id =1;

void setup() {
Wire.begin();
pinMode(13, OUTPUT);

}

void loop()
{

delay(1000);
val = Wire.read();
delay(100);
if (val == id)
{
Wire.println(“id received is for slave 1”);
}

}

but what ever is typed in slave com port gets print in the master com port and what ever i type in the slave get prints in the master
i dont want the output that way
i am stimulating on proteus…

if some one has a better code then plz add it in the comment

the proteus output is added

i am stimulating on proteus...

Quit your whining. Ditch the stupid simulator. Get some real Arduinos. When you have them, if you still have an issue, feel free to come back here.