590 likes | 790 Views
Graphical Programming – fall 2004 Lecture 8 - Distributed I/O Device - NI FieldPoint. Witold Nocoń, Ph.D. http://terminator.ia.polsl.gliwice.pl/ dydaktyka/ virtual. Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Introduction.
E N D
Graphical Programming – fall 2004Lecture 8 - Distributed I/O Device - NI FieldPoint Witold Nocoń, Ph.D http://terminator.ia.polsl.gliwice.pl/dydaktyka/virtual
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Introduction Distributed I/O Devices are helpful when you need to distribute measurement and control functionality in the field. Replacing long signal wires with a single low-cost network cable can save significant time and money during both installation and maintenance. In addition noise corruption problems that occur when using long-distance analog signal wiring are avoided. A well designed distributed I/O should allow using different networks standards, easy addition of new functionality's etc. In today's lecture, I will describe the National Instruments FieldPoint distributed I/O, including: - hardware - software - special features like: Real-Time operating system
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Introduction What is the difference between a distributed I/O device and a PLC (Programmable Logic Controller)? Programmable Logic Controller, can be programmed (usually using Ladder Diagram) to perform certain functions (usually control algorithms), but it also provides distributed I/O functions. A distributed I/O device provides only distributed I/O functions. While FieldPoint is a distributed I/O device, FP-20XX series also provide programming capabilities (programs are written in LabVIEW instead of Ladder Diagrams)
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. General Overview
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware FieldPoint is a modular system, that modularises the communications, I/O functions and signal termination. FieldPoint includes three classes of components that make the working system: - I/O modules - FP system includes two general types of I/O modules - standard 8 and 16 channel modules and dual-channel modules for maximum mix-and-match flexibility. I/O modules provide isolated analog and discrete inputs and outputs for a variety of signals and sensor types and are hot-swappable and auto-configurable. - terminal bases - I/O modules are installed on terminal bases that provide terminals for field wiring connections, as well as module power and communications. Modules can be plugged and unplugged without disconnecting the field power. - network modules - provide connectivity to open, industrial networks. The network modules communicate with the local I/O modules via the high-speed local bus formed by linked terminal bases. Options for network modules include RS-232, RS-485, Ethernet (10 and 100 Mb/s) and Foundation FieldBus.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware I/O modules can be plugged and unplugged without disconnecting the field power.
network module Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware Terminal bases and network modules are mounted on a DIN-rail
wiring terminals are provided by the terminal base Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware I/O modules can be latched and unlatched from to and from the terminal base (without disconnecting the terminal bases form power and from the network) 2500 VRMS module-to-module isolation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Power Supply Each FP network moduleon your network requires an 11–30 VDC power supply. The network modulefilters and regulates the supplied power and provides power for all the I/O modules in the bank. This power is sufficient for most FieldPoint I/O modules. Refer to the documentation for the individual I/O modules to determine whether they require any additional power in your applications.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Power Supply Field Wiring
Field power for I/O must usually be provided Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Power Supply
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules Different Network modules are provided: - FP-1000 and FP-1001 (serial network) - FP-1600 (Ethernet) - FP-2000, FP-2010 and FP-2015 (Ethernet + RT) - FP-3000 (FOUNDATION FieldBus)
Serial interface modules (RS232/RS-485) Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-1000 and FP-1001 • Connects FieldPoint I/O modules to RS-232 and RS-485 networks • Connect directly to a PC serial port (FP-1000) • Connect up to 25 network modules (225 I/O modules) on a single RS-485 network • Power-up configuration for I/O • HotPnP plug and play operation • Watchdog timer • -40°C to 70°C operating range
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-1600 • Fast Ethernet TCP/IP Interface - 100BaseTX (100 Mb/s) - 10 BaseT (10 Mb/s) • Event-driven communications • Deadband on analog channels • 0 to 55°C operating range
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX • Dedicated processor for running LabVIEW Real-Time embedded code • Stand-alone operation • 8 MB user-accessible DRAM • Flash Memory - 3 MB (FP-2000) - 11 MB (FP-2010) - ?? MB (FP-2015) • Serial Port • 5 user-defined DIP switches • 4 user-defined LEDs • -25°C to 55°C operating range Since the FP-20XX modules contain a dedicated processor for running LabVIEW Real-Time embedded code, they can be considered as a sort of PLC.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX - in detail
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX - in detail LED Indicators • POWER LED - The green POWER LED is lit while the FP-20xx is powered up. This LED indicates that the power supply connected to the FP-20xx is acceptable, and that the FP-20xx is supplying power to the I/O modules. • STATUS LED - The red STATUS LED is off in normal operation mode. The FP-20xx indicates specific error conditions by flashing STATUS a specific number of times. • LINK LED - The green LINK LED is lit when the FP-20xx is connected to a functioning Ethernet segment. • ACTIVE LED - The green ACTIVE LED is lit when the FP-20xx receives data from or transmits to the Ethernet. Because of unrelated network activity, this LED • blinks occasionally even when the FP-20xx is inactive. • 100 Mbps LED - The yellow 100 Mbps LED is lit when the FP-20xx is communicating at 100 megabits per second. If the 100 Mbps LED does not light, all • communications with the FP-20xx will be at 10 megabits per second.
Power-On self test (POST) The FP-20xx runs a power-on self test (POST) at power-up to verify its own operational status. The test takes several seconds, does not affect the operation of the network, and does not affect any of the field wiring connected to the terminal bases in the bank. Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX - in detail LED Indicators • User-Configurable LEDs - A-D (for Count-Output Channels 5-8)LEDs A, B, C, and D correspond to count-output channels 5, 6, 7, and 8, • respectively, on the network module. LEDs B, C, and D can be sent values • of 0, 1, or 2. LED A should be sent only 0 or 1. LED A handles a 2 as a 1. • The values sent to these LEDs manifest as 0 = off, 1 = green, and 2 = red.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX - in detail DIP Switches Switches 1, 2, 3, 4, and 5 are user-configurable DIP switches. FieldPoint LabVIEW VIs, CVI, OPC, Lookout, and other applications can read these switches, but the switches have no default functionality. The DISABLE VI, SAFE MODE, and RESET DIP switches are read only when you power up or reboot the FP-20xx network module. You must reboot the module with one of these switches ON for its setting to take effect. If you reboot the system with more than one of these switches ON, only the left-most switch is read, and the others are ignored.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX - in detail DIP Switches • The position of the DISABLE VI switch determines whether any VIs run • at startup. You can instruct the FP-20xx network module to run a VI when • it starts up, but if this VI consumes all of the FP-20xx CPU for any reason, • it can make the module inaccessible on the network. If you reboot the • FP-20xx with the DISABLE VI switch in the ON position, the module does • not run any VIs at startup unless you have enabled them through • LabVIEW RT.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-20XX - in detail DIP Switches • The position of the SAFE MODE switch determines whether the FP-20xx • network module starts up in safe mode. If the software or configuration • information on the module becomes corrupt or cannot be correctly read, • the system may hang after being rebooted or become inaccessible over the • network. All LabVIEW functions are disabled in safe mode, and I/O • module data is not accessible. • If you reboot the FP-20xx with the SAFE MODE switch in the ON position, • the embedded LabVIEW RT engine does not start; the module starts up in • safe mode. Now you can reconfigure the TCP/IP settings, download new • software using Remote System Explorer, and reboot the FP-20xx with the • SAFE MODE switch in the OFF position. • The position of the RESET switch determines whether the IP settings of the • FP-20xx network module are reset at startup. Reset the TCP/IP settings if • you are moving the module from one subnet to another or if you suspect • that the current TCP/IP settings are bad.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Network modules - FP-3000 FOUNDATION Fieldbus specific capabilities: • FOUNDATION Fieldbus H1 interface • FOUNDATION Fieldbus PID, Expression, AI, AO, DI, DO and CDO function blocs • Instantiates function blocks • Onboard alarming, trending scaling, filtering interlocks • Link Active Scheduler capability
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - Wireless interface SRM6000 - Spread-spectrum Radio Modem for FieldPoint • Wireless FP-1000-to-PC link or FP-20XX-to-PC link • Cables directly to FP-1000 network module • Operates in 902-928 MHz range • Transmits up to 20 miles (32 km) with line-of sight antennas This is a third-party product
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Analog Input FP-AI-100 8-Channel, 12-Bit Analog Input Module • Eight analog voltage or current input channels • 11 input ranges: ±15 V, ±5 V, ±1 V, 0–15 V, 0–5 V, 0–1 V, ±20 mA, 0–20 mA, 4–20 mA, 0–30 V, ±30 V • 12-bit resolution • 2,500 Vrms input-to-output isolation • Double insulated for 250 V safe working voltage • –40° to +70° C operation • Hot plug and play operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Analog Input FP-AI-110 8-Channel, 16-Bit Analog Input Module • Eight analog voltage or current input channels • 11 input ranges: ±10 V, ±5 V, ±1 V, ±300 mV, ±60 mV, 0-10 V, 0-5 V, 0-1 V, ±20 mA, 0-20 mA, 4-20 mA • Three filter settings: 50 Hz, 60 Hz, and 500 Hz • 16-bit resolution • 3,000 V input to output isolation • Double insulated for 250 V safe working voltage • -40° to +70° C operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Analog Input FP-AI-110 16 Channel, 16-Bit Analog mA Input Module • 16 analog current input channels • 3 input ranges: ±20 mA, 0-20 mA, 4-20 mA • Three filter settings: 50 Hz, 60 Hz, and 500 Hz • 16-bit resolution • 3,000 V input to output isolation • Double insulated for 250 V safe working voltage • –40° to +70° C operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Analog Input Basic Field Connections (Two Channels Shown)
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Thermocouple abd RTD Modules FP-TC-120 8-Channel Thermocouple Input Module • Eight thermocouple or millivolt inputs • Built-in linearization and cold-junction compensation for eight thermocouple types: J, K, R, S, T, N, E, and B • Four voltage ranges: ±25, ±50, ±100, and –20 to +80 mV • Open thermocouple detection and indicator LEDs • Differential inputs • Filtered against 50 and 60 Hz noise • 16-bit resolution • 3,000 V input isolation • Double insulated for 250 V safe working voltage • –40° to +70° C operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Thermocouple abd RTD Modules FP-TC-120 8-Channel Thermocouple Input Module Basic Field Connections with Two Channels Shown
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Thermocouple abd RTD Modules FP-RTD-122 8-Channel 3-Wire RTD and Resistance Input Module • Measures 100 and 1000 W platinum RTDs (Resistance Temperature Detectors) • Built-in linearization for six TCR (Temperature Coefficient of Resistance, or alpha) values of RTDs • Direct resistance measurements in 400 or 4000 W ranges • True 3-wire compensation, which is more accurate than typical bridge techniques • Filtered against 50 and 60 Hz noise • 16-bit resolution • 3,000 V input isolation • Double insulated for 250 V safe working voltage • –40° to +70° C operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Thermocouple abd RTD Modules FP-RTD-122 8-Channel 3-Wire RTD and Resistance Input Module Basic Field Connections with Three Channels Showing 2-, 3-, and 4-Wire Configurations
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Analog Outputs FP-AO-200 8 Channel, 20 mA Loop Output Module FP-AO-210 8 Channel, 10 V Loop Output Module • Eight 0-20/4-20 mA outputs (FP-AO-200) • Eight 0-10V outputs (FP-AO-210) • 0.5 mA over-range ability • 12-bit resolution DACs • Open current loop indicators • 3,000 V input-to-output isolation • Double insulated for 250 V safe working voltage • Up to 1 kOhm load impedance (with 24 V loop supply) • Short circuit protection • -40° to +70° C operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Analog Outputs FP-AO-200 8 Channel, 20 mA Loop Output Module Basic Field Connections (Two channels shown)
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Discrete Inputs FP-DI-300 8–Channel, 24 V Discrete Input Module FP-DI-301 16 Channel, 24 V Discrete Input Module FP-DI-330 8 Channel, Universal Discrete Input Module • 8 discrete input channels (16 for FP-DI-301) • Sinking inputs, compatible with 24-VDC sourcing outputs (3-250-VDC for FP-DI-330) • On/Off LED indicators • 3,000 V input to output isolation • Double insulated for 250 V safe working voltage • -40° to +70° C operation
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Discrete Inputs FP-DI-300 8–Channel, 24 V Discrete Input Module Basic Field Connections to Sourcing Output Devices
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Discrete Outputs FP-DO-400 8 Channel, 24 V Discrete Output Module FP-DO-401 16 Channel, 24 V Discrete Output Module
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Discrete Outputs FP-DO-403 16 Channel, 24 V Sinking Discrete Output Module
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Discrete Outputs FP-DO-410 8 Channel, 24 V Protected Discrete Output Module
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Relay Modules FP-RLY-420 8–Channel, SPST (Single Pole Single Throw) Relay Module
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Relay Modules FP-RLY-422 4–Channel, SPDT (Single Pole Double Throw) Relay Module
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - other modules FP-CTR-500 8-Channel, 16-Bit Counter Module FP-PWM-520 8 Channel, 5 or 24 V PWM Output Module FP-QUAD-510 4-axis quadrature encoder inputs
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware - I/O modules - Dual-channel I/O modules Up to 6 different double I/O modules can be placed on one FP-TB-10 terminal base. Each double I/O module contains two identical inputs or outputs.
Compact FieldPoint is the same as the (traditional) FieldPoint – the only difference is the „industrial” casing. Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Hardware – Compact FieldPoint
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software FieldPoint I/O is configured using NI Measurement & AutomationExplorer
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software FieldPoint in LabVIEW Once FieldPoint Explorer is installed on a PC that has LabVIEW installed as well, a set of FieldPoint VIs is added in LabVIEW.
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software OPC Servers and Software Interfaces FieldPoint systems also include a free OPC Server for industry-standard connectivity. Therefore, you can integrate FieldPoint systems with any software that has OPC-client capability. Using Datalogging & Supervisory Control Module (in LabVIEW), FieldPoint can be accessed using OPC. This module will be discussed sometime later (lecture 12 as planned)
Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software - accessing FieldPoint from a LabVIEW application FP Open The FP Open.vi opens a communication session with the FieldPoint server and a specified configuration file. If the IAK Configuration File input is left empty or unwired, it automatically uses the last IAK file that was opened in FieldPoint Explorer.
This VI creates a tag reference for the specified data item on the device and comm resource that is accessed by the communication session FP refnum. FP refnum in - The input handle of an FP operation. FP Open creates the handle and FP Close terminates it. The handle is necessary to perform FP operations such as read, write, advise, and create tag. comm resource name - Name of configured comm resource in the server configuration file. device name - Name of configured device on the comm resource. item name - name of configured data item on the device Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software - accessing FieldPoint from a LabVIEW application FP Create Tag
The FP Read.vi performs a synchronous read of the module. This VI reads a single set of values from the tag specified by the FP refnum. values - Data value(s) read from tag. If you configure a tag to represent one value, the server returns the data as the only element in the array. FP refnum in - The input handle of an FP operation. FP Open creates the handle and FP Close terminates it. The handle is necessary to perform FP operations such as read, write, advise, and create tag. Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software - accessing FieldPoint from a LabVIEW application FP Read
The FP Read (Polymorphic).vi performs a synchronous read of the module. This VI reads a single set of values from the tag specified by the FP refnum. The FP Read (Polymorphic) VI is available with LabVIEW versions 6.0 and higher. type - The data type of values. Valid data types are Float (DBL), Float Array, Boolean, and Boolean Array. FP refnum in - The input handle of an FP operation. FP Open creates the handle and FP Close terminates it. The handle is necessary to perform FP operations such as read, write, advise, and create tag. Graphical Programming Lecture 8- Distributed I/O Device - NI FieldPoint presented by Witold Nocoń Ph.D. Software - accessing FieldPoint from a LabVIEW application FP Read (Polymorphic)