SPI communication

For the Arduino Uno board, these are the SPI pins

10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK)

Can I get a code to connect these pins to another SPI port for communication.

Can I get a code to connect these pins to another SPI port for communication.

Wouldn't that depend on WHAT you wanted to communicate?

I want to connect the Arduino Uno board's SPI pins to the SPI port of Generation 6 electronics board.

Actually I want to communicate these two board (Arduino & Gen 6) in order to send signal to a dry powder dispensing device.

Javaid: I want to connect the Arduino Uno board's SPI pins to the SPI port of Generation 6 electronics board.

Well I don't think you can get help for a complete tested sketch unless someone around here also owns a "Generation 6" board, as what data to send and receive is specific to that board. However here is the arduino reference section that covers how to use the SPI commands avalible for the arduino. That and a reference manual for the G-6 board should provide you enough information to write your own sketch.

http://arduino.cc/en/Reference/SPI