LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Communication with DirectLogic 06 PLC via OPC

Solved!
Go to solution

Hello, 

 

I have a test system which cycles pressures via two solenoid valves and a pressure controller. The system is currently controlled by DirectLogic 06 PLC. I would like to know if its possible to use labview to communicate with DirectLogic 06 PLC via OPC or Modbus so that I can control solenoid valves and pressure controller in VI ? I hope to expand system complexity and add User interface using Labview. 

 

Regards

 

Fliu

0 Kudos
Message 1 of 4
(2,683 Views)

Modbus is easy using the NI-supplied Modbus libraries, I've done it with various DirectLogic PLCs.

Message 2 of 4
(2,681 Views)

Awesome !  The Directlogic 06 PLC is currently programmed using DirectSOFT in Ladder Logic. Once in run mode, PLC will execute those code. How will I be able to get rid of that program so I can program using labview via modbus ? 

0 Kudos
Message 3 of 4
(2,662 Views)
Solution
Accepted by topic author FLiu

If you want to completely eliminate the PLC code and essentially just use the PLC's inputs and outputs as field I/O, you can load it with an empty program (don't forget the END or it won't compile) and use Modbus to read and write input and output bits and registers. However, you might want to keep some basic code in the PLC for doing low-level tasks, and just set things like setpoints or timer presets from the computer via Modbus. You can also use the DL06's stages like subroutines which can be activated by setting the stage bits.

Message 4 of 4
(2,645 Views)