Modbus Data Logger with Digital IO

DAT9000DLIO

Modbus Data Logger with Digital IO DAT9000DLIO
Data Logger for Modbus.
• Modbus Data Logger.
• 4 Digital Inputs.
• 2 SPDT Relay Outputs.
• Modbus RS485 Master.
• Modbus RS485, Slave.
• Modbus Ethernet 10 Base-T Modbus TCP.
General Description

The Data Logger DAT9000DLIO is a Data Acquisition unit with a built in SD Ram port that can take a Micro SD card. The DAT9000DLIO also has 4 digital inputs and 2 relay outputs. The DAT9000DLIO is a Modbus master and Modbus slave and has RS485, and Ethernet Communication ports. The DAT9000DLIO can control a network of slaves and perform logical and mathematical functions. The DAT9000DLIO can save the internal registers value on to the SD card. It is possible to remove the card for analysis or use the Ethernet port to retrieve the saved values on the SD Ram.

INPUT OUTPUT POWER SUPPLY
4 Digital Inputs 2 Relays SPDT Power Supply Voltage 18-30Vdc
Modbus Master/Slave RS485/RS232 Modbus TCP Ethernet 10/100T Reverse polarity protection 60Vdc
Modbus TCP Ethernet 10/100T Modbus Master/Slave RS485/RS232
CURRENT CONSUMPTION CONFIGURATION ISOLATION
Between 45 and 80 mA PC Programmable Between Input/Comms/Power Supply 1500Vac.
EMC HOUSING TEMPERATURE
For Industrial environments Material self-extinguishing Operating Temperature 14°F +140°F -10°C +60°C
Immunity EN 61000-6-2 Dimensions W x H x T 4" x 4 3/4 " x 7/8 " Storage Temperature -40°F +185°F-40°C +85°C
Emission EN 6100-6-4 100 x 120x x 22.5 mm Humidity (non condensing) 0-90%
Weight 7 oz 200 g

Specifications
Input 4 Channels.
Threshold 0-3 Volts OFF 10-30V On.
Frequency 300 Hz Maximum.
Output 2 Relays SPDT 2 Amp at 250 V.
Data Logging: 1 Micro SD Card
Communication:  
RS485: Port 1 Modbus RTU Master, Port 0 Modbus RTU Slave.
Ethernet: Ethernet 10Base-T, Modbus TCP.
Power Supply: Voltage 10 - 30 Vdc. Reverse polarity protection 60 Vdc.
Current Consumption: 80 mA max.
Temperature rating: Operative Temperature -4°F +140°F -20°C +60°C
Storage Temperature -40°F +185°F -40°C +85°C.
Humidity: (none condensing) 0-90%.
Housing: Material self-extinguishing.
Dimensions: W x L x H 4 x 4 3/4 x 1inch, 100 x 120 x 22.5mm.
Weight: 7 oz 200 g.
EMC. For industrial environments.
Immunity: EN 61000-6-2.
Emission: EN 61000-6-4.
Isolation: 1500Vac, 50Hz, 1 Minute.
Configuration: PC Configurable, DIP Switches.
Drawings

DAT9000DLIO Wiring Diagram

RS-485 Slave Master
D- Port 0 Pin 1 Port 1 Pin 5
D+ Port 0 Pin 2 Port 1 Pin 6
GND Port 0 GND Port 1 GND
RS-232D Front view PC DB9
GND Port 0 Pin 4 Pin 5
RX Port 0 Pin 5 Pin 3
TX Port 0 Pin 6 Pin 2
Power Supply (18-30Vdc). Positive G Negative F.  
INIT Short pin E to F  
Digital Input Common Input
DI0 Pin 12 Pin 13
DI1 Pin 12 Pin 14
DI2 Pin 12 Pin 15
DI3 Pin 12 Pin 16
Relay 0 K NO L NC M
Relay 1 N NO O NC P
Modbus RTU Data Logger wiring Diagram.
Applications
Back to General Description
Application Note, Logging Temperatures over Modbus RTU RS485 with DAT9000DL Version 2.
This application is converting an RTD Sensor input on a DAT3019 to a register. The DAT9000DL Modbus Master polls the DAT3019 and stores the temperature reading to it’s own register and then saves it to an SD RAM card.
Printed Version

Start-up.

  1. The DAT3019 eight channel Modbus Slave has a Baud rate of 9600, Parity None, 1 Stop bit and it is Address 20.
  2. You can connect to the DAT9000 V2 with Ethernet, uUSB or on the RS485 Slave port. For this application we have decided to connect with the Ethernet Port using a cross-over Cat-5 cable.
  3. The minimum time period between logs is 10 Seconds.
Application note for Logging Temperatures over Modbus RTU RS485

Wiring connections for DAT3019 and the DAT9000DL.

  1. Connect power to the DAT3019 and the DAT9000 DL Version 2 Modbus Data Logger Master Controller.
  2. Connect the DAT3019 Modbus Slave port to the DAT9000 Modbus Master Port.
  3. Connect Cat 5 crossover cable to the Ethernet port and PC.
  4. Connect an RTD Temperature calibrator to the channel 0 input.
  5. Download Dev9K Version 2 software from Datexel download page and run software.

Connecting to the Dev 9K V2.

  1. Select English.
  2. Select DAT9000DLIO from the drop down menu.
  3. Click Connect.
Opening Modbus Development Software.

Search for the Modbus Master.

  1. Click Get Local IP.
  2. This will display the Local IP Address of the PC.
Search for the Modbus Master.

Bind the IP Address.

  1. Click on the IP Address of the network of the DAT9000.
  2. Click Bind.
Binding the IP Address of a Modbus Master.

Search for the Modbus Master.

  1. Click Get Local IP.
  2. This will display the Local IP Address of the PC.
Locating local IP Address.

The Control screen opens.

This is the main control screen for the Dev 9k Version 2. From here you can configure the Communication ports. Design and save new projects and open existing projects. In the left panel you have the function blocks. The center is the layout page for the program with the START position. On the right panel you have the registers. By Clicking the Refresh you can see what is stored in the registers.

dev 9k version 2 control screen.

Set the Communication port.

The DAT3019 and the DAT9000DL Modbus Controller need to have the same communication settings. The Master control port (1) on the DAT9000DL needs to be set up.

  1. To change the Communication settings of the DAT9000DL Master port click Tools.
  2. Click Config.
  3. Change the Baud Rate to 9600 to match the Baud Rate of the DAT3019.
  4. Click the pencil to write to the DAT9000DL.
Setting up Modbus Master communication port.

Build the Function Block Program.

There is only 1 Function block in the program. The Function Block will read register 40015 which is Channel 0 on the DAT3019 and the Address of the DAT3019 is 20. The Function block will poll the DAT3019 and obtain the Integer and place it into the DAT9000DL on register 35. We will be using a Read Input and must deduct 40001 from the register table so the actual Register we use on the read Input Function Block will be 14.

  1. Click the Read/Write label on the lower left panel.
  2. Drag the Read Input Function block to below the Start Icon.
  3. The Insert Data Block will open and you can enter the data needed to obtain the Register.
  4. Address 20, Register 14, Number 1 (we only need the flow input register), Dest 35 (we will store the register reading in Register 35 on the DAT9000DL) Click OK.
Setting up Read Input Function Block.

Complete the Function Block sequence.

  1. Hover over the bottom of the Start circle until a hand is present and pull the line generated down to the Read Input function block.
  2. Do the same from the Read Input Function block to the top of the End circle.
  3. Click Compile and OK.
  4. Click File.
  5. Click Save.
  6. Save as flow-read.
Reading the Temperature register from the DAT3019 Modbus Temperature Slave.

Downloading the program to the Modbus Master.

  1. Click Program.
  2. Click Connect if not connected to the DAT9000DL. It could have timed out. The bottom of the panel should say Connected.
  3. Click Debug.
  4. Now the Download is visible and click “Download”.
  5. Accept the download twice.
  6. Click Release.
  7. Click Refresh and there should be a reading in %R35. It will be the temperature reading in Celsius and be x 10.
  8. Should no reading be present in R35 check the communication port settings or wiring.
Displaying the Temperature in Celsius.

Now set up what needs to be Logged (Variables).

  1. Click Tools.
  2. Click Variables.
  3. In the First line type Date in the Label box.
  4. Under Type Click the Date in the drop down box.
  5. Under CVS Header Name Type Date.
  6. Click the pencil to write to the program.
  7. Repeat on the next line for Time.
  8. Click the third line.
  9. Enter Temperature Under Label.
  10. The type will be Int for Integer.
  11. The Output Format will be 5 digits and 1 decimals. This is because the current reading is 233 which is actually 23.3.
  12. Click the pencil and then Click OK.
Setting the Date for Data Logging Setting the temperature for Data Logging

Scheduler, at what period of time it will log.

  1. Click Scheduler and the Scheduler box will open.
  2. Click “Create New” at the bottom.
  3. Step One, and select CSV standard and then click Next.
  4. Step Two, insert a Temperature in Insert name of Profile.
  5. Select time from as todays date and change the date to December 2099. Which should happen by clicking the down arrow. Click Next.
  6. Step Three now select at what period of time you want to log. Write in Clock 1 and select Minute. The DAT9000DL will now log every 1 Minute. Click Next.
  7. Step four, select how often you require a new file to be written click Hour. Click Next.
  8. Step Five, drag over which ID you want to log. Drag over #000, for the Date, #001, for Time, #002, for the Temperature. Now click Save.
  9. Check the screen and make any changes that may be needed.
Step 1 setting the CSV file. Step 2 setting the start time for logging. Selecting what to Log. Complete view of Scheduler settings.

Save and Run the Program.

  1. Click Save, reconnect to the DAT9000DL, Debug, Download wait for the download to finish. This may happen twice. Very Important, click release to write to the eeprom.
  2. Wait about 10 minutes and remove the SD Ram or USB Stick and Check on a PC for the logged file. Or you can click Web above the Register table.
  3. Enter the User name Fact_user and password Fact_pwd.
  4. Click Log Data.
  5. Click DIR0 and drill down to the CSV file and open with Notepad.

Explanation of the Project.

Back to General Description