So your picture shows the wire for a 3 wire switch + E/stop wires ?
It looks like you have the brown wire connected to black and yellow ?
You need brown to pin 1(VCC), black to either pin 2,3, or 4, blue to pin 6(Ground)
Eventually you will need 3 switches so just connect the browns together into pin1, the blacks will go one into each of pins 2,3,& 4 and the blues together into pin 6.