To locate the example, open LabVIEW and navigate to the Help tab > Find Examples > Hardware Input and Output > Serial > Simple Serial.vi. A MODBUS message sent from a master to a slave contains the address of the slave, the command (e.g. If you are using NI-VISA, refer to the following examples: For both RS-232 and RS-485 (4-wire), communicate with your instrument with the shipping example Simple Serial.vi. The sole purpose of the presented driver is to write the setpoint(s) and to read the process value(s). MODBUS© Protocol is a messaging structure, widely used to establish master-slave communication between intelligent devices. '(LabVIEW)\examples\Plasmionique\MB Master\MBMaster Multiple Sessions.vi' Run multiple Modbus sessions on either shared or separate comm ports/IP addresses. The LabVIEW driver for the Mini8 controller using Modbus has been derived from the driver for the Eurotherm 3500 controller. Examples: '(LabVIEW)\examples\Plasmionique\MB Master\MBMaster Comm Tester.vi' Demonstrates usage of API to open/close connection and communicate with a Modbus slave device. The control unit in the example has 6 active control loops and is connected to COM1 at a baudrate of 19200. This file also includes all supporting vis as well as additional samples.Īll these vis have been made with LabVIEW 8.5.1.
This vi shows how to use the driver vis with a Mini8 control unit with a number of setpoint/readout pairs. This vi (functional global) executes write actions. This vi (functional global) executes read actions.
for all write channels write the setpoint if it has changed.for all read channels read the process value.open the serial port to which the Mini8 controller has been connected.MODBUS libraries for LabVIEW slaves (server) for both the serial and TCP implementation of the MODBUS protocol. shows an example of a setup with 6 temperature controllers inside the control unit.Ĭommunication with a Eurotherm control unit works like this: There are examples for master (client) and. With the provided demonstration program it should be easy to create some working program. It's easy to setup the connection between LabVIEW and your Eurotherm Mini8 control unit.