From: Michael C on
Hi Nishant,
The library that is available from our website is for LabVIEW 7.1.&nbsp; The files and instructions I posted are for anyone using LabVIEW 8.0<a href="http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71&amp;p_node=DZ52363&amp;p_source=External" target="_blank">http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71&amp;p_node=DZ52363&amp;p_source=External</a>
&nbsp;
From: styrum on

Michael C wrote:
> Hi Nishant,
> The library that is available from our website is for LabVIEW 7.1.&nbsp; The files and instructions I posted are for anyone using LabVIEW 8.0<a href="http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71&amp;p_node=DZ52363&amp;p_source=External" target="_blank">http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F1582737BACF5CA8E0340003BA7CCD71&amp;p_node=DZ52363&amp;p_source=External</a>
> &nbsp;

Did anybody try to set outputs of
(AutomationDirect.com) Direct Logic 05 PLC directly
from a LabVIEW program using NI Modbus library? I have
a dead simple question: What "Starting Address" do I
feed to "MB Serial Master Query.vi" to set the
outputs?
The DL 05 manual is confusing about this. I managed to
read the inputs using the same "MB Serial Master Query.vi" with
function 2
(Read Discrete Inputs) and address 2048, but can't set
the outputs with function 15 (Write Multiple Coils) or any
other. With some addresses it sets some coils OK (you
can tell, because this VI reads them back as well),
but, apparently, those are not the output coils
(output lights don't switch)!

From: styrum on
Did anybody try to set outputs of
(AutomationDirect.com) Direct Logic 05 PLC directly
from a LabVIEW program using NI Modbus library? I have
a dead simple question: What "Starting Address" do I
feed to "MB Serial Master Query.vi" to set the
outputs?
The DL 05 manual is confusing about this. I managed to
read the inputs using the same VI with function 2
(Read Discrete Inputs) and address 2048, but can't set
the outputs with 15 (Write Multiple Coils) or any
other. With some addresses it sets some coils OK (you
can tell, because this VI reads them back as well),
but, apparently, those are not the output coils
(output lights don't switch).

From: Srinivas Kharsada Patnaik on
actually i found it in a certain example which is already with LabVIEW 7.1.
its an example related to Queue control.
Its in Queue.llb library named Queue Control Reference Info.vi
Thanks
From: Donald on
Anonymous wrote:Did anybody try to set outputs of (AutomationDirect.com) Direct Logic 05 PLC directlyfrom a LabVIEW program using NI Modbus library? ... With some addresses it sets some coils OK.


Anonymous,
I haven't tried the NIModbus library (yet), and I&nbsp;tend to only work with holding registers (not coils) in Direct Logic CPUs, but&nbsp; 2048/2049 does seem to be the correct starting address for the output coils (Y0 etc.) from all the docs I've got.
Couple of questions:
1) What position is the PLC's Mode switch in? STOP, TERM, or RUN?
2) With what addresses does it set "some coils OK"?&nbsp; Have you tried writing to some internal/memory coils (C0-C777, starting Modbus addr 3072) that aren't used in your PLC program?
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6
Prev: Sudoku
Next: Labview 6.1 vi's for NI USB-8451