Automation Direct DL06 modbus slave

JustinW

Member
Join Date
Feb 2012
Location
USA
Posts
5
Hi,

I'm trying to setup an Automation Direct DirectLogic 06 (D0-06DD1) as a modbus slave, taking commands from a PC. The PLC is connected to the PC over port 1 with the standard programming cable, and I'm able to successfully read the digital inputs; however, I cannot update the digital outputs. I've tried both in TERM and RUN mode with no luck. I wrote a simple ladder program to change an output based on one of the inputs, and again I can successfully read the value of the output as it changes. Is there anything in particular I need to do so that digital outs can be updated via modbus RTU commands? Or maybe I'm missing something else entirely?

Thanks,
Justin

example program:
STRN X0
OUT Y1
END
 
All communications are done at the beginning of the scan cycle. This means that if you are using the output coil in the program any change by the communications will get "over-written" by the status of the rung that the coil is on. "The last status of an output always wins."

As Bernie said, use "C" bits in parallel with whatever status bits you use to fire the output rung containing the coil in your PLC program.
 
Bernie and icky812,

Thanks so much for the suggestions! When I initially tried your suggestion of using the internal control register, I still couldn't get it to work. This didn't make any sense, which led me to evaluate my Modbus commands more -- which turned out to be the root of the problem. I'm using a python library called modbus_tk (http://code.google.com/p/modbus-tk/), and my write commands were ill-formed. Fixing that, I was able to control the digital output lines on the PLC using the control relays or just directly (assuming the PLC program wasn't over-writing it, as mentioned by icky812). Thanks so much for your help! Now to figure out how to use the counters on this thing.

Justin
 

Similar Topics

Hi all, I am making a test rig to be able to wire in any DL06 (or DL05) And create a HMI in red lions crimson 3.1 to test all the inputs and...
Replies
4
Views
933
Hi everyone, I have a DL06 I'm trying to get some historical info off of. I don't have access to the actual PLC, but I have the program. I'm...
Replies
0
Views
1,161
I'm new to this software, and just recently installed an F0-04 thm thermocouple card to this plc. I wrote the logic according to instruction...
Replies
3
Views
1,546
I am new to PLCs just started doing this about a month ago. I want to write a ladder program using directsoft5 for DLO6 . The program should have...
Replies
10
Views
4,300
A customer of mine sent me a hard copy printout of the program, I'm modifying the printout program and sending it back to him to make the...
Replies
3
Views
1,747
Back
Top Bottom