MicroLogix 1400 connection via modbus RTU

madballer12

Member
Join Date
Aug 2012
Location
Torrance
Posts
4
Hello,
I'm a newbie to PLC's and network protocols, and I need your help with setting up a modbus rtu network.

Hardware 1: Micrologix 1400
Hardware 2: Stepping motor driver
Software: RSLogix Micro Starter
Communication label: 1763-NC01

First I just want to establish communication between PLC and Driver. I'm having problems with setting up "MSG" function and data files.

Any help would be appreciated!
Thank you,
Bryan
 
Welcome to the Forum !

Post details about what you've already configured; either ZIP and post the *.RSS file itself or use screenshots.

Post details about the stepper motor controller and its Modbus interface, both physical and addressing.

Since you're using RS-485 and the 1763-NC01 cable, be sure to set the Channel 0 handshaking mode for "No Handshaking (485 Network)". No two manufacturers seem to label Data A and Data B the same, so be ready to try swapping them.

And of course make sure you've configured Channel 1 to be a Modbus RTU Master !

The MSG instruction always requires three data table entries: the MSG Instruction Control Block (MGx:y), the Destination or Source data table (usually Nx:y), and a Routing Information element (RIx:y).

The User Manual and Online Help really are useful for the MSG instruction and the configuration of the communication ports.
 
Remove the SVC rung

Change "MSG File" argument to MG9:0

Then you'll be able to start the setup of the message by double clicking "Setup Screen" - though it may come up automatically with a correct MSG File argument.

Add a normally closed (XIO) of MG9:0/DN in the rung before the message to repetedly call the message. You'll have to modify this as you add more message blocks though but it's fine for a test.

Edit - if you need later I'll reference our method of controlling and sequencing multiple messages.
 
Last edited:
Actually this line

Add a normally closed (XIO) of MG9:0/DN in the rung before the message to repetedly call the message.

May not work. Instead of that contact ...

Add a rung after your MSG with an XIC of MG9:0/DN in parallel with an XIC of MG9:0/ER ending with an unlatch (OTU) of MG:9/EN
 
Hello Bernie,
I removed the original contact and added the what you recommended to the next rung. I'm still getting communication error with my driver. I checked the baud rate, stop bit, parity, data bit and everything matches up. Anything else I should look at?

Thanks.
 
If everything matches try flipping the two data lines.

9If that doesn't do it open the 'Setup' of the message, do a screen shot then post it here.)
Instead just repost your small program.
 
Glad you got it. As Ken Roach noted this seems to be a standard troubleshooting tool when first setting up an RS485 connection. As usual, if it's a 50/50 chance you'l get it wrong 90% of the time - it seems.
 

Similar Topics

We are using ab micrlogix 1400 and citec scada 16 we need to connect both using Ethernet connection can we assign tags for inputs and outputs in...
Replies
0
Views
1,133
Good night friends, I have to communicate a 1400 micrologix directly with a HMI IX-T5F-2 from the Altus. I have enabled the DH-485 CH2 through the...
Replies
0
Views
1,795
Hello, I am considering setting up wireless laptops to interface with the micrologix PLCs. I have Comcast internet in the classroom with a WIFI...
Replies
3
Views
2,833
Hi, I need some assistance in establishing a modbus RTU connection (communication) with a Micrologix 1400 and a accuvim ii. An AIC was used to...
Replies
3
Views
2,070
Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
21
Back
Top Bottom