Example Code

DF1 driver

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Instrument Control

    Software

  • LabVIEW

    Driver

  • NI VISA

Code and Documents

Attachment

Overview

 

This example includes DF1 driver for micrologix PLC.

 

Description

The configure VI configures the com port. The read VI reads the data logging memory from Micrologix 1400 and it can read from any file depending on the file number and element number. The write vi writes into any file depending on the file number and element number as well.

 

Requirement

Software:
    Labview 2012 (or compatible)
Hardware:
    Micrologix 1400

 

Steps to Implement or Execute Code

1. Ensure Micrologix 1400 device is normally connected
2. Run the VI

 

Additional Information or References

 The controller must be configured as BBC ,1 NAK , 1 ENQ and allow duplication.

77.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors