Download presentation
1
DeltaV Serial Interface
3
Objectives Upon completion of this module you will be able to:
Interface DeltaV with serial devices Define Serial Interface wiring connections Define Serial Interface capabilities Configure the Serial Interface
4
DeltaV Serial Interface
Port 1 Port 2 Serial Interface Cable Serial Interface Cable Serial Device Serial Device The Serial Interface provides communication to various serial devices including PLCs using Modbus (Master or Slave) RTU or ASCII protocol. You can configure the Serial Card to support RS232, RS422/485 half duplex or RS422/485 full duplex signals. 1
5
DeltaV Serial Interface
The Serial Card requires a Serial Terminal Block to provide terminations for wiring. The figure below shows the wiring connections for RS232. Serial Card Terminal Block Port 1 Modicon Model 984 Controller 9-pin connector Port 2 (GND) 9 (TXD) 11 (RXD) 13 (DTR) 15 (DSR) 16 (GND) 1 (TXD) 3 (RXD) 5 (DTR) 7 (DSR) 8 1 (SHIELD) 5 (GND) 2 (RXD) 3 (TXD) 6 (DSR) 4 (DTR) 7 (RTS) 8 (CTS) 1
6
DeltaV to PROVOX RS232 Wiring
Serial Card Terminal Block Port 1 PROVOX Intelligent Device Interface (IDI) (GND) 1 (TXD) 3 (RXD) 5 (DTR) 7 (DSR) 8 7 (GND) 3 (RXD) 2 (TXD) 6 (DSR) 20 (DTR) Port 2 (GND) 9 (TXD) 11 (RXD) 13 (DTR) 15 (DSR) 16
8
Serial Interface Capabilities
Port Device 1 Device Device 16 16 Devices Max 16 Datasets/Port 100 Registers-Coils /Dataset PLC PLC 2 PLC 16 Coils xxxx Input Registers xxxx Holding Registers xxxx Input Status xxxx Dataset 1 100 Regs/Dataset . Dataset 16 Serial Card 2 Ports 500 DSTs OR 3200 SCADA RS232 (Pt - Pt) RS422/485 (Multi-drop) 1
9
Serial Interface Capabilities
The Serial Interface communicates with a maximum of 250 registers/coils originating in a serial device; translating them to DeltaV Device Signal Tags (DSTs). The Serial card has two communication ports, each port connecting to a single serial device using RS232 wiring. As an option, the ports may be wired using RS422/485 wiring and connected to as many as 16 devices each. The Serial Interface exchanges data with serial devices through a dataset; a collection of DeltaV parameters that correspond to registers/coils in the serial device. You configure the dataset to determine the type of registers as well as the starting address and how many registers will be read or written. You can create as many as 16 datasets for each Serial Card port. These 16 datasets can be allocated to the serial devices in several ways. For example, you can configure one serial device with 16 datasets or you could have 16 devices on the port with one dataset each. 1
10
Serial Interface Configuration
Serial Device Coils xxxx Input Registers xxxx Holding Registers xxxx Input Status xxxx Dataset Register Type Register Address Number of Registers Serial Interface SCADA or Control Module DSTs Workstation Conditionals Hierarchy Alarms Displays I/O Algorithms Module P a r a m e t e r s 1
11
Serial Interface Configuration
The figure above shows the flow of data from a PLC to the DeltaV controller. The Serial Interface requests data from the PLC through it’s serial port. The data type, number of registers and starting address to be requested are all part of the dataset configuration. The dataset, with the registers and their respective values, are available to the DeltaV system as DSTs or SCADA tags. Configuration of the Serial Interface requires the following steps: Step 1. Plug the Serial Interface in the appropriate slot Step 2. Configure the Serial card in the appropriate slot Step 3. Define port(s) properties Step 4. Define the Serial Device and address Step 5. Define the Dataset(s) 1
12
Serial Card Configuration
1
13
Serial Card Configuration
The Serial Card is one of the card types in the DeltaV Explorer. You configure it as you would any other card. You can plug the card into a vacant I/O carrier slot and auto-sense it or you can configure a placeholder for the card before connecting the actual card. To configure a placeholder for the card, select the following from the DeltaV Explorer: Physical Network ï‚® Control Network ï‚® I/O ï‚® New Card 1
14
Serial Port Properties
1
15
Serial Port Properties
Access the Serial Port’s properties from DeltaV Explorer by selecting: Physical Network  Control Network  I/O  P01  Properties The PO1 Properties dialog box appears with the Port tab selected. The Properties dialog box contains such information as the port’s: Description - the description which appears when viewing port properties from the DeltaV Explorer. Enabled - causes the port to scan for input data and transmit outputs when the box is checked.
16
Serial Port Properties
1
17
Serial Port Properties
Clicking the PO1 Properties dialog box’s Advanced tab permits you to change advanced communication properties such as: Protocol Type - RTU is a standard binary data communications mode while ASCII transmits messages as ASCII strings. Mode - determines whether this port acts as a Modbus Master or a Modbus Slave. Retry Count - determines the number of times the Serial Card retries a failed message. When the Serial Card issues a Modbus request to a device it expects a response to be returned, the Serial Card retries the failed message the number of times configured in the Retry count property. Message time out - determines the amount of time the Serial Card waits for a response from the serial device after sending a request message. Transmit Delay - determines the amount of time the Serial Card delays between requests for input data and/or requests to write output data to the Modbus Device. This value is used to slow down requests that are going to a heavily loaded Modbus Device. Send outputs on startup - determines whether the Serial Card sends all current output values to the serial devices on power-up, reset or after a download.
18
Serial Port Properties
1
19
Serial Port Properties
Clicking the PO1 Properties dialog box’s Communications tab permits you to define communication properties such as: Port type - determines the port type to be used for the serial connection, RS232, RS422/485 Full Duplex or RS422/485 Half Duplex. Baud rate - select the baud rate to match the serial device. ( Kbaud) Parity - select the parity to match the serial device. Data bits - select the number of data bits to match the serial device. Stop bits - select the number of stop bits to match the serial device. 1
20
Adding a Serial Device 1
21
Adding a Serial Device Each port can communicate with as many as 16 serial devices. Therefore, once a port is enabled, you must define the address of the serial device(s) it will communicate with. Add a serial device from the DeltaV Explorer in the following manner: Physical Network  Control Network  I/O  P01  (right click) New Serial Devices The new serial device’s Properties dialog box appears. Enter the serial device’s address and click the OK button to continue. 1
22
Dataset Definition 1
23
Dataset Definition A Dataset defines a set of consecutive registers to be mapped into DSTs. To define a Dataset from DeltaV Explorer select: Physical Network  Control Network  I/O  P01  DEV01  (right click) New Dataset The Create Dataset dialog box appears with the General tab selected containing: Description - description appearing when viewing the Dataset from the DeltaV Explorer. Data Direction - defines whether this dataset sends DeltaV data to a serial device (output) or receives data from a serial device (input). Output mode - controls how the Serial Card transmits output data. If the Output Mode is complete block, the card sends all data values when any value in the dataset changes. If the Output Mode is single value, the card sends single data values (register or coil) as the values change. Output read back - determines whether the output dataset should read back registers that have been changed from within the serial device. If this box is checked, the Serial Card reads back the values during the card’s next input scan. The values that are read back update the current output values. If this box is not checked, no output read back will be performed.
24
Dataset Definition 1
25
Dataset Definition The DeltaV tab permits you to configure the DeltaV Data Type and the Dataset Tag. DeltaV data type - determines the type of data this dataset contains (Boolean, Discrete, Integer, and Floating Point). This field value creates storage space for the dataset and determines how the DeltaV System accesses the data. Dataset Tag - identifies the Dataset Tag (i.e., COILS) associated with this dataset. For example, COILS/R17 would be a parameter in the dataset that could be associated with a Discrete Output or Device Control block IO_OUT parameter to manipulate a coil in a PLC. 1
26
Dataset Definition 1
27
Dataset Definition The PLC tab permits you to define PLC information such as: PLC data Type - defines which data table to read from or write to in the serial device. PLC base register address - indicates the PLC register address corresponding to the first value in the Modbus device for the configured data type. PLC register offset - identifies the starting register that maps to the first dataset parameter. Number of values - determines the number of Modbus values (registers or coils) to be read from or written.
28
Module Configuration Assume a PLC is reading a flow transmitter and the value is stored in Holding register By bringing this value into DeltaV as a DST, you can use a control module for higher level control and alarming. This is accomplished by: Step 1. Configure a new module with a PID function block. 1
29
Module Configuration Step 2. Modify the IO_IN parameter to use a Dataset Tag from the PLC. 1
30
Module Configuration Step 3. Browse. 1
31
Module Configuration Step 4. Select R40001 as the parameter for the PID’s input. 1
32
Workshop - Serial Interface Modbus (Master)
RS232 Cable Port 1 Serial Device Modicon 984 = 40001 40002 40003 Modules MTR-MODICON FIC-MODICON FT FY Coil Motor Starter Holding Register Flow Rate 40002 Valve Output 40003 Motor Status 00001 1
33
Workshop - Serial Interface Modbus (Master)
You must configure the motor control module MTR-MODICON in the DeltaV controller. The motor’s I/O is located in a Modicon PLC requiring you to configure the Serial card and two Datasets in order to receive the necessary I/O data from the PLC. Coil in the PLC will start the motor when energized. The motor’s status is reflected in Holding Register You must also configure the flow loop FIC-MODICON in the DeltaV controller. The I/O for this loop is located in the Modicon PLC requiring you to configuring two additional Datasets to receive the necessary I/O data from the PLC. Holding Register contains the output to the valve and Holding Register contains the current flow rate.
34
Workshop - Serial Interface Modbus (Master)
Complete the control strategy workshop in the following manner: Step 1. Insert the Serial Card and Termination block in slot 5. Step 2. Configure the Serial Card. Step 3. Define Serial Card Port 1 Properties. Step 4. Define a Serial Device. Step 5. Define a Dataset referencing a coil. Step 6. Define three Datasets referencing Holding registers. Step 7. Configure a motor control module using PLC registers. Display the module using a dynamo. Step 8. Configure a regulatory module using PLC registers. Display the module using a dynamo.
36
Workshop - Configure & Download The Serial Card
Step 1. Insert the Serial Card and Termination block in slot 5. Step 2. Connect the PLC Serial Interface cable to the Serial Termination block in slot 5. Step 3. Add the Serial Card from the DeltaV Explorer by selecting: your controller ï‚® I/O ï‚® defining the Serial Card in the slot 5 Define Port 1 Properties Define Port 1 properties using the DeltaV Explorer by selecting: the Serial Card ï‚® Port 1 ï‚® Properties 1
37
Workshop - Configure & Download The Serial Card
Step 3. Define the port properties as follows: Port Tab Check Enabled Advanced Tab Protocol Type - RTU Mode - Master Retry Count - 1 Message time out (ms) Transmit Delay - 0 Send outputs on startup - your choice Communications Tab Port Type - RS232 Baud Rate Parity - even Data bits - 8 Stop bits - 1
38
Workshop - Configure & Download The Serial Card
Define a Serial Device Define the Serial Device from the DeltaV Explorer by selecting: Port 1 ï‚® New Serial Device Define Serial Device Address at 10 Define Four Datasets Define four datasets, shown below, from the DeltaV Explorer by selecting: DEV01 ï‚® New Dataset Define all four datasets in the same manner. 1
39
Workshop - Configure & Download The Serial Card
Name DS01 DS02 DS03 DS04 Dataset Tag FY_MODICON FT_MODICON MTR_MODICON MTR_STAT Data Direction output input PLC Data Type holding registers coils PLC Register Offset 1 2 Number of Values DeltaV Data Type 16 bit Int w/status Boolean w/status 8 bit uint w/status 40002 40001 00001 40003 Actual PLC Number
40
Workshop - Configure MTR-MODICON
Configure MTR-MODICON from DeltaV Explorer in the following manner: Step 1. Drag ‘n drop MTR-11 Module Template from the Library to PLANT_AREA_A. Step 2. Rename the Module MTR-MODICON. Step 3. Launch Control Studio and modify the I/O parameters on the Device Control block as follows: IO_IN_1 MTR_STAT R40003 IO_OUT_1 MTR_MODICON R1 Step 4. Assign to the Controller. Step 5. Save and download the Module. 1
41
Workshop - Configure MTR-MODICON
Step 6. Launch DeltaV Operate (Configure) and add the pump dynamo DL_PMP_HL_R from the frsModules dynamo set to an existing picture HINT: Enter THISNODE.MTR-MODICON when prompted for Dynamo Properties. Step 7. Save the display. Step 8. Switch to DeltaV Operate (Run). View the picture with MTR-MODICON and verify that you can START and STOP the motor.
42
Workshop - Configure FIC-MODICON
Configure FIC-MODICON in the following manner using the DeltaV Explorer: Step 1. Drag ‘n drop the PID_LOOP Module Template from the Library to PLANT_AREA_A. Step 2. Rename the Module FIC-MODICON Step 3. Launch Control Studio and modify the I/O parameters on the PID block as follows: IO_IN FT_MODICON R40001 IO_OUT FY_MODICON R40002 1
43
Workshop - Configure FIC-MODICON
Step 4. Assign to the Controller. Step 5. Save and download the module. Step 6. Launch DeltaV Operate (Configure) and add the loop dynamo PID_LOOP_1_ from the frsModules dynamo set to an existing picture. Hint: Enter THISNODE.FIC-MODICON when prompted for Dynamo Properties. Step 7. Save the display. Step 8. Switch to DeltaV Operate (Run). View the picture with FIC-MODICON and verify that the loop controls.
44
Workshop - Serial Interface Modbus (Slave)
PROVOX Coils xxxx Input Registers xxxx Holding Registers xxxx Input Status xxxx Dataset Register Type Register Address Number of Registers Serial Interface SCADA or Control Module DSTs Workstation Conditionals Hierarchy Alarms Displays I/O Algorithms P a r a m e t e r s
45
Workshop - Serial Interface Modbus (Slave)
The Serial Interface may be configured as a Modbus Slave. As such, the Serial Interface does not generate Modbus requests; it responds to requests generated by a Modbus Master. The above illustration uses the PROVOX IDI as the Modbus Master and the DeltaV Serial Interface as the Modbus Slave. This permits the exchange of data between the two control systems.
46
Intelligent Device Interface (IDI)
Workshop - Serial Interface Modbus (Slave) Modules PROVOX-AGIT FIC-102 XVSTAT-101 Port 2 PROVOX PV:LOOP ïƒ FST ïƒ F-C-C ïƒ PV:DI ïƒ FST ïƒ F-C-C ïƒ Analog Input  F-C-C  Discrete Input  F-C-C  Holding Register Flow Rate Coil Agitator Status Holding Register & 2 Flow Rate Coil Block Valve Status Intelligent Device Interface (IDI) The following datasets will be configured to pass variables between PROVOX and DeltaV Dataset 1 will receive an analog variable from PROVOX Dataset 2 will receive a discrete variable from PROVOX Dataset 3 will send an analog variable to PROVOX Dataset 4 will send a discrete variable to PROVOX
47
Workshop - Serial Interface Modbus (Slave)
Complete the control strategy workshop in the following manner: Step 1. Define Serial Card Port 2 Properties. Step 2. Define another Serial Device. Step 3. Define two Datasets referencing Coils. Step 4. Define two Datasets referencing Holding Registers. Step 5. Use a Data Link to display an IDI Holding Register. Step 6. Configure a monitoring discrete module template using an IDI Coil and display the module using a Data Link. Step 7. Modify FIC-102 to pass the PV to a Holding Register. Step 8. Modify XVSTAT-101 to pass the Out_D to a Coil.
48
Workshop - Configure & Download The Serial Card
Connect the IDI Serial Interface cable to the Serial Termination block in slot 5. Define Port 2 Properties Define Port 2 properties from DeltaV Explorer by selecting: Serial Card ï‚® Port 2 ï‚® Properties
49
Workshop - Configure & Download The Serial Card
Step 3. Define the port properties as follows: Port Tab Check Enabled Advanced Tab Protocol Type - RTU Mode - Slave Communications Tab Port Type - RS232 Baud Rate Parity - even Data bits - 8 Stop bits - 1 Important: This must match the settings on the IDI.
50
Workshop - Configure & Download The Serial Card
Define a Serial Device Define the Serial Device from DeltaV Explorer by selecting: Port 2 ï‚® New Serial Device Define Serial Device Address at 1. Hint: The device address must match the device address of the IDI Define Four Datasets Define four datasets, shown below, from DeltaV Explorer by selecting: DEV01ï‚® New Dataset Define Dataset 1 as shown below.
51
Workshop - Configure & Download The Serial Card
Define all four datasets before downloading the Serial Card. Name DS01 DS02 DS03 DS04 Dataset Tag PV_FIC90-3U AGSTAT90-3U FIC102_PV XVSTAT101_PV PLC Data Type holding registers holding registers coils PLC Register Offset 9 1 Number of Values 2 DeltaV Data Type 16 bit Int w/status Discrete w/status Floating point w/status Actual Register Number 40010 0002 40001 00001 PLC register
52
Workshop - Add Data Link PV_FIC90-3U to a Picture
Dataset 1 now contains the PV of the flow loop from PROVOX. The following allows you to display the variable on the DeltaV Operator Interface. Step 1. Add a Data Link to an existing picture. Hint: Browse Object_Type: DST Parameter Step 2. Save the display. Step 3. Switch to DeltaV Operate (Run). View the picture with PV_FIC90-3U and verify the flow rate.
54
Workshop - Configure PROVOX-AGIT
Dataset 2 contains the Agitation Status from PROVOX. The following sequence will place the Agitation Status in a control module allowing us to alarm off of the variable. Configure PROVOX-AGIT from the DeltaV Explorer in the following manner: Step 1. Drag ‘n drop the Monitoring Discrete Module Template from the Library to PLANT_AREA_A. Step 2. Rename the module PROVOX-AGIT. Step 3. Launch Control Studio and modify the Module by selecting: DI block  Assign I/O  Classic I/O Set the Device Tag to AGSTAT90-3U, Parameter R2.
55
Workshop - Configure PROVOX-AGIT
Step 4. Modify the DISC_ALM parameter to 0. Step 5. Assign module properties. Step 6. Assign to the Controller. Step 7. Save and download the module. Step 8. Launch DeltaV Operate (Configure). Add a Data Link to an existing picture and assign dynamic coloring based on DI1/DISC.ALM Step 9. Save the display. Step 10. Switch to DeltaV Operate (Run). View the picture with PROVOX-AGIT and verify the status and alarm color.
56
Workshop - Modify FIC-102 Modify FIC-102 to send its PV to Dataset 3 which will then allow PROVOX to read the variable. Step 1. Launch Control Studio. Step 2. Add an Internal Read parameter. Step 3. Rename to PID1-PV. Step 4. Set the Parameter - Internal Reference FIC-102/PID1/PV. Step 5. Add an Output parameter. Step 6. Rename to FIC-102_PV.
57
Workshop - Modify FIC-102 Step 7. Set the Parameter - External Reference FIC-102_PV/R40001. Step 8. Connect the Internal Read to the Output parameter. Step 9. Assign to the Controller. Step 10. Save and download the module. Step 11. Verify by viewing the PROVOX operator display or using Trace/Tune.
58
Workshop - Modify XVSTAT-101
Modify XVSTAT-101 to send its PV to Dataset 4 which will then allow PROVOX to read the variable. Step 1. Launch Control Studio. Step 2. Add an Output parameter. Step 3. Rename to XVSTAT_101_PV. Step 4. Set the Parameter - External Reference XVSTAT_101/R1. Step 5. Connect DI1/OUT_D to Output parameter. Step 6. Assign, save and download the module. Step 7. Verify by viewing the PROVOX operator display or using Trace/Tune.
59
Summary At this point you should be able to:
Specify an RS232 serial interface cable Define the Serial Interface capabilities Configure the Serial Card as a Modbus Master or Slave Define Serial Devices within DeltaV Configure Datasets Configure control modules using Dataset registers as I/O 1
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.