Micrologix 1400 Modbus problem

A quick look at the manual seems to indicate you can send a message function code X04 which instructs the unit to send the data continuosly.


Yes, and the manual for the relay module also has other functions you can send, such as flash the relays and such.


I am just happy to get to this point, I was stumped as to why the Click worked, but the Micrologix didn't.



At the moment, I bought these because they were inexpensive to do some testing and learning about modbus. Now I am sure I will think of something to use these for now :D


Mike
 
It could be the way it handles communications, I have seen various problems in the past, recently when I was developing MB protocol on an FX with standard 232 adapter module I noticed that on the MB simulator there was originally an error every other request, cured this by a small delay between actual recieve from the salve & the next request although there was an inherrant delay of 40ms due to scan time between a recieve of the reply before sending the next request, this was due to the send request being at the start of the program so had to process the plc program to the end before the recieved data was processed & a reset of the recieve bit from the 232 card.
Even when I got it to work without any errors I noticed that the simulator RX/TX data was showing part or all of the CRC data twice once in the actual request & again afterwards, it was almost as if my plc was sending the correct message but then sending the last one or two bytes again, however, another test using a data capture program confirmed it was not.
It did fox me at first as the simulator was not showing any bad transactions as i would expect if the datagram was incorrect, again tested that it was not the simulator I sent messages for example a wrong CRC, missing CRC & missing bytes from the data, everytime the simulator picked this up as a bad format. the only thing I can think of was the simulator had a bug where in com monitor mode it was populating the recieved message 7 then for some reason duplicating the last couple of bytes.
It is known that the modbus protocol has many variations probably not in the original design but interpreted by others with slight tweaks i.e. byte swapping 0 or 1 base addresses using the 4000 - 64000 range rather than a base offset of 0/1. It does get confusing.
 
Last edited:

Similar Topics

I have a spare Micrologix 1400 Series B I bought used on Ebay awhile back. I had thought of it as a spare PLC for my train project but I screwed...
Replies
4
Views
1,255
Good Day! Would anyone be able to explain what is happening with the COP's and MOV's in this Modbus poll routine? If anything I am confused by...
Replies
6
Views
1,731
I been tasked with setting up communication between a heating cooling unit manufactured by Advantage Engineering and a Microloagix 1400 plc. The...
Replies
6
Views
2,512
Hi, I am trying to communicate between a MicroLogix 1400 and a Click PLC. There is a great video from AD that shows the simplicity of...
Replies
2
Views
1,770
Hello everybody, I want to communicate with two PLCs (PC1: GE Fanuc: proficy machine edition which runs under quick panel IC754C & PLC2: Microlgix...
Replies
18
Views
5,015
Back
Top Bottom