05-24-2007 12:37 AM
05-24-2007 06:34 PM
Once you configure an object on your IA OPC Server and then add data members and associated aliases, you should be able to access all published variables using the LabVIEW DSC Module or DataSocket. What specifically do you mean when you say that the IO server does not provide access to your channels? Does this mean that IA OPC Server will not display the data member range that your I/O channel falls in? Or, are you simply having problems viewing the IA OPC Server data within LabVIEW? With some additional information, I would be glad to help you work through this issue and get your system up and running.
Regards,
Casey Weltzin
Applications Engineer
National Instruments
05-26-2007 11:46 AM
05-27-2007 08:52 PM
No worries now. I managed to work it out. The point I missed was that the I/O address space is memory mapped and so was trying to write to a memory address in the PLC and then using ladder logic (on the PLC) to turn ON/OFF the output. I configured the data members (in IR address space) and tried accessing them from Labview and it worked like a charm! I forgot to check but instead I will post it here; does the PLC have to be in RUN mode to control the I/O states?
By the way, thanks Casey for your advice otherwise I would have still been trying something 'clever'.
~Zulfi~
05-29-2007 08:52 AM
I am really glad that you were able to get your program up and running! Regarding your question about the PLC being in "run mode", I think this may depend on the specific PLC that you are using. It would probably be fastest to simply attempt communication with the PLC in and out of "run mode" to determine the answer to this question.
Regards,
Casey Weltzin
Applications Engineer
National Instruments