Arduino and Rockwell - ModBus RS485

Hello, my name is Lucian, I am new to arduino, I'm trying to connect the Arduino via Modbus with a rockwell plc, would help a lot if someone had some sample code for modification.

I am wanting to use the Arduino and interface with plc Rockwell (Micrologix 1400) as the main driver.

Thanked already.

would help a lot if someone had some sample code for modification.

All you needed to do was ask.

void setup()
{
}

void loop()
{
}

Hope that helps. Good luck.

ya SURE.tELL US ABOUT setup and also paste your code

Actually not even know where to start , create the logic to receive commands via Modbus in micrologix is a little easier for me than writing code from start to send commands to arduino micrologix . Appreciate it if someone had some sample code or a sample code to send ASCII data to ASCII micrologix.Eu can export the data as follows micrologix these data by the open notepad . The extension of the file is EAS .

" B3 : 0 " , " 0 " , " " , "on" , " " , " " , " " , " " , " 0 " , " " , " " , " 0 " , " "
" N7 : 0 " , " 0 " , " " , "on" , " " , " " , " " , " " , " 0 " , " " , " " , " 0 " , " "
" N7 : 0 / 1 " , " 0 " , " " , "on" , " " , " " , " " , " " , " 0 " , " " , " " , " 0 " , " "
" O: 0 " , " 0 " , " " , "out", " " , " " , " " , " " , " 0 " , " " , " " , " 0 " , " "
" The 1 ", " 0 ", "" , "", "", " ", "" , "", "0 ", "" , "", "0" " "
"S: 0 " , "0" , "", " Arithmetic ", " Flags" , "", "", " " , "0" , "", "", " 0" " "
"S: 0/ 0 ", " 0 ", "" , "processor ", " Arithmetic ", " carry", " Flag" , "", "0 ", "" , "", "0" " "
"S: 0/1" , "0" , "", "processor ", " Arithmetic ", " underflow / ", " overflow ", " Flag" , "0" , "", "", " 0" " "
"S: 0/ 2" , "0" , "", "processor ", " Arithmetic ", " Zero ", " Flag" , "", "0 ", "" , "", "0" " "
"S: 0/3 ", " 0 ", "" , "processor ", " Arithmetic ", " Sign" , " Flag" , "", "0 ", "" , "", "0" " "
" S 1 " , " 0 " , " " , " Processor " , "Mode " , " Status / " , " Control" , " " , " 0 " , " " , " " , " 0 " , " "
"S: 1/ 0 " , "0" , "", " processor", "Mode ", " bit 0 ", "" , "", "0 ", "" , "", "0" " "
"S: 1/1 " , "0" , "", " processor", "Mode ", " Bit 1 ", "" , "", "0 ", "" , "", "0" " "
"S: 1/2" , "0" , "", " processor", "Mode ", " bit 2 ", "" , "", "0 ", "" , "", "0" " "
"S: 1/3" , "0" , "", " processor", "Mode ", " Bit 3 ", "" , "", "0 ", "" , "", "0" " "
"S: 1/4" , "0" , "", " processor", "Mode ", " Bit 4 ", "" , "", "0 ", "" , "", "0" " "
" S : 1/ 5" , "0" , "", " Forces" , "Enabled ", "" , "", "", " 0 ", "" , "", "0" " "
" S : 1/6 " , " 0 " , " " , " Forces " , " Present " , " " , " " , " " , " 0 " , " " , " " , " 0 " , " "
"S: 1/7 " , "0" , "", " comms ", " Active ", "" , "", "", " 0 ", "" , "", "0" " "
"S: 1/8" , "0" , "", "Fault ", " Override ", "at powerup ", "" , "", "0 ", "" , "", "0" " "
"S: 1/9 " , "0" , "", "Startup ", " Protection" , "fault ," " ," " ," "0" " ," " ," "0" " "
" S : 1/ 10" , " 0 " , " " , " Load" , "Memory " , " Module on " , "Memory " , " Error " , " 0 " , " " , " " , " 0 " , " "
" S : 1/ 11" , " 0 " , " " , " Load" , "Memory " , " Module" , "Always " , " " , " 0 " , " " , " " , " 0 " , " "
" S : 1/12 " , " 0 " , " " , " Load" , "Memory " , " Module ", "and RUN " , " " , " 0 " , " " , " " , " 0 " , " "
" S : 1/ 13" , "0" , "", " Major" , "Error ", " halted" , "", "", " 0 ", "" , "", "0" " "
" S : 1/ 14" , "0" , "", " Access ", " Denied" , "", "", " " , "0" , "", "", " 0" " "
"S: 1/15 " , "0" , "", "First Pass" , "", "", " ", "" , "0" , "", "", " 0" " "

Hi Lucian,

Start with Google Code Archive - Long-term storage for Google Code Project Hosting.. One of a few modbus libraries for arduino. It is pretty stable as I have tested it with many commercial, industrial and marine equipment.