0% found this document useful (0 votes)
282 views11 pages

Dat8015 Current and Voltage To Modbus TCP User Guide

Datexel converter

Uploaded by

kardos zoltan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
282 views11 pages

Dat8015 Current and Voltage To Modbus TCP User Guide

Datexel converter

Uploaded by

kardos zoltan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Modbus TCP/IP server

4 isolated channels for mA and Volt


Current and Voltage to Modbus TCP input
Phone: +1 561 779 5660 - e-mail:[email protected] - www.datexel.com

User Guide – MODBUS TCP/IP protocol


Firmware Version : 8400 DAT 8015
PRELIMINARY DESCRIPTION
All of the data shared by a device communicating by Modbus TCP/IP protocol are mapped in tables, at each data is associated a proper address.
Each data can be of two types:
- “REGISTER”, data of 2 bytes size (word of 16 bits) that can be associated to analogue input or output, variables, set-point, etc...
- “COIL”, data of 1 single bit that can be associated to digital input or output or to a logic state.
A register could contain the image (mirror) of more coils; in example the 16 digital inputs of a device could be read or written as bit (singularly)
addressing the coil related to each input or can be read or written as a single word addressing the associated register wherein each bit corresponds to
a coil.
In the Modbus protocol, registers and coils are divided as per the following groups of addresses:
0xxxx and 1xxxx = Coils (bit)
3xxxx and 4xxxx = Registers (word)
When reading functions are performed, use the tables indicated below to address the registers .
It is possible to access to the internal registers of the device by direct command Modbus TCP/IP or by the integrated web server.

REGISTERS TABLE COILS TABLE


Register (*)Coil (Hex) (*)Coil (Dec) Description Access
Position Description Access 0x0092 00146 Watch-dog Enable R/W
(*) 0x0093 00147 Watch-dog Event R/W
40002 Firmware [0] RO 0x0094 00148 Power-Up Event R/W
40003 Firmware [1] RO
40004 Name [0] R/W
40005 Name [1] R/W
40007 Node ID R/W
40011 System Flags R/W
40013 Watchdog timer R/W
40031 Input type Ch 0 (1-0) R/W
40032 Input type Ch 1 (3-2) R/W
40033 Input type Ch 2 (5-4) R/W
40034 Input type Ch 3 (7-6) R/W
40041 Analog Input (0) - mA RO
40042 Analog Input (1) - V RO CH0
40043 Analog Input (2) - mA RO
40044 Analog Input (3) - V RO CH1
40045 Analog Input (4) - mA RO
40046 Analog Input (5) - V RO CH2
40047 Analog Input (6) - mA RO
40048 Analog Input (7) - V RO CH3

SUPPORTED MODBUS FUNCTION CODES


Function Description
01 Read Coil Status (0xxxx)
02 Read Inputs Status (1xxxx)
03 Read Holding Registers (4xxxx)
04 Read Inputs Registers (3xxxx)
05 Force Single Coil
06 Preset Single Register
15 (0F) Force Multiple Coil
16 (10) Preset Multiple Registers

NOTES:
(*) If the software DEV9K is in use subtract 1 to the address position number of the register and/or coil.
Registers and coils marked as RO in the column 'Access' are Read Only registers.
Registers and coils marked as R/W in the column 'Access' are Read and Write registers.
For the devices of DAT8000 series, the group of data 0xxxx is the mirror of the group 1xxxx, the group of data 3xxxx is the mirror of the group 4xxxx,
therefore the first register could be addressed either as 30002 (with function 04) or 40002 ( with function 03).

The maximum number of coils that can be read through Modbus functions 01 and 02 (see "Supported modbus functions codes") are: 128
The maximum number of registers that can be read through Modbus functions 03 and 04 (see "Supported modbus functions codes") are: 64
The maximum number of registers that can be written by Modbus function 16 (see "Supported modbus functions codes") are: 64
The maximum number of coils that can be written by Modbus function 15 (see "Supported modbus functions codes") are: 64

pag 1/11
DESCRIPTION MODBUS REGISTERS
40002 / 40003 : FIRMWARE
Field of 2 read only registers ; contains the firmware identifier provided by the manufactured.
- Default value: 8400 (hex)

40004 / 40005 : NAME


Field of 2 read/write registers (4 bytes or 4 ASCII characters) available for the user, it can contain the name of the device or an abbreviation that
identifies its function inside the plant. Each one of the 4 bytes could be written by values from 0 to 255, ASCII characters included.
The default value of this field contains the identifier of the device expressed in ASCII characters.
- Default value: “8015” (ASCII).

40007 : NODE ID
Contains the MODBUS address of the device; the values allowed are from 1 to 245 decimal.
This data is necessary for the correct addressing of the device into the Modbus net and must follow the IP address.
- Default value: Dec: 1, Hex: 01 INIT: Dec 245, Hex : F5.
40011 : SYSTEM FLAGS
Contains the enable bits and system events of the device. The following parameters are configurable:
Watchdog Event Enable: this bit allows to enable the Watchdog Event (0 = Watchdog disabled, 1 = Watchdog enabled). If this bit is active and the
device doesn't receive commands for the time specified in the register 40013 “Watchdog timer”, the PWR green led blinks.
If this function is required must be implemented at the power-on of the device; the bit must be reset manually when the Watchdog event is occurred.
Watchdog Event: if this bit is set as 1 indicates that the Watchdog condition has happened (0 = Normal condition; 1 = alarm condition)
PowerUp Event: this bit is forced to 1 at each power on and indicates that the device has been switched off or reset. With the setting of this bit as 0
and checking its state, it is possible to know if a reset of the device has occurred (0 = reset not occurred; 1 = reset occurred).
This bit must be reset manually

Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00

Coil - - - - - 163 162 161 - - - - - - - -


Watchdog Event enabling
Descr Watchdog Event
Power-up Event

40013 : WATCHDOG TIMER


Contains the value of the WatchDog timer, expressed in step of 1 second. If the WatchDog is enabled and the device doesn't receive commands in
a time lower or equal to the value of the one expressed in this register the WatchDog will be activated (see description register ”System Flags”).
- Default value: 10 (10 sec.)

40031: INPUT TYPE Ch 0


This register shows the input types that have been configured (see "Input Type Table" on side).
In this device the configuration of input types is fixed: Input # 1 → Volt; Input # 0 → mA. INPUT TYPE TABLE
To disable input simply write 0 on the part relating to the input that you want to disable.
- Default: (0203 Hex) Input Value Value
(Hex) (Dec)
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Disabilitato 00h 0
Descr. Input Type #1 Input Type #0 Volt 02h 2
mA 03h 3

40032: INPUT TYPE Ch 1


This register shows the input types that have been configured (see "Input Type Table" on side).
In this device the configuration of input types is fixed: Input # 3 → Volt; Input # 2 → mA.
To disable input simply write 0 on the part relating to the input that you want to disable. INPUT TYPE TABLE
- Default: (0203 Hex)
Input Value Value
(Hex) (Dec)
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Disabilitato 00h 0
Descr. Input Type #3 Input Type #2 Volt 02h 2
mA 03h 3

40033: INPUT TYPE Ch 2


This register shows the input types that have been configured (see "Input Type Table" on side).
In this device the configuration of input types is fixed: Input # 5 → Volt; Input # 4 → mA.
To disable input simply write 0 on the part relating to the input that you want to disable. INPUT TYPE TABLE
- Default: (0203 Hex)
Input Value Value
(Hex) (Dec)
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Disabilitato 00h 0
Descr. Input Type #5 Input Type #4 Volt 02h 2
mA 03h 3

40034: INPUT TYPE Ch 3


This register shows the input types that have been configured (see "Input Type Table" on side).
In this device the configuration of input types is fixed: Input # 7 → Volt; Input # 6 → mA. INPUT TYPE TABLE
To disable input simply write 0 on the part relating to the input that you want to disable.
- Default: (0203 Hex) Input Value Value
(Hex) (Dec)
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Disabilitato 00h 0
Descr. Input Type #7 Input Type #6 Volt 02h 2
mA 03h 3
40041 : ANALOG INPUT #0 (mA)
40042 : ANALOG INPUT #1 (V)
40043 : ANALOG INPUT #2 (mA)
40044 : ANALOG INPUT #3 (V)
40045 : ANALOG INPUT #4 (mA)
40046 : ANALOG INPUT #5 (V)
40047 : ANALOG INPUT #6 (mA)
40048 : ANALOG INPUT #7 (V)

These registers return the measure of each channel , converted to engineering units .
The values ​are expressed in mV or uA .
20000 → 20mA
10000 → 10V
-20000 → -20mA
-10000 → -10V

The format is an integer number of 16 bit with sign.

pag 3/11
WEB SERVER STRUCTURE
To access the server, run the Web browser and edit in the Address Bar the IP address of the device.
It will appear the following window. Depending on the Web browser used some icons and/or writings may have little variation of shape and colour.
If necessary, it is possible to connect to the Datexel web site to download the data-sheet and the user guide of the device in use clicking on the button
“www.datexel.it” in the bottom part of the window.

Write Username and Password. If the default settings are in use the parameters to access are:
Username: Fact_user; Password: Fact_pwd
Click on the button Login to access to the Home page of the device; it will appear as follows.
In all the web pages, on the top part of the window there are the buttons:
“Page Back” to go back to the page previously visualized; “Home” to return to the main page; “Logout” to quit and get back to the Login page.

To access the page “Main Menu” of the device, select the language by the combobox and click the button “OK”.
The following window will appear.

pag 4/11
By this page it is possible to access the internal parameters of configuration of the device. If the mouse pointer is moved on the button related to a
specific menu, it will appear a green tool tip that will help the user with the selection of menus that are the following:
Network Settings: allows to set the Ethernet communication parameters.
System Configuration: allows to set the system configuration parameters.
Software Update: allows to execute, if necessary a software update.
Username and Password: allows to set the access data used in the Login page.
Analog Input: allows to visualize the value of the analog inputs and if necessary to disable one or more .
In the next sections there is the description of the menus.

Network Settings

IP Address: allows to visualize and set the unique IP address of the device in the network in use.
Subnet Mask: allows to set the parameter of the Subnet Mask in order to determine the local network of the device.
Gateway Mask: allows to set the parameter of Gateway Mask for the correct addressing of the device.
Socket Timeout: allows to set the time expressed as minutes; that when it expires without to receive commands, the device will close the socket of
communication.
To save the modified parameters, click the button “Save”. Wait for the reset of the device and access to it via the new parameters set.
pag 5/11
System Settings

Name: allows to visualize and set the parameter NetBios Name of the device; this parameter, composed by max 15 alphanumeric characters, is
visualized beside the IP address in the software Dev9k; it can also be used in the software that implement the use of this data.
Modbus Address: allows to visualize the modbus address of the device; this parameter is forced to 245 in INIT condition.
Watchdog Enable (ref. Reg “System Flags”): this flag allows to enable the Watchdog event (0 = WatchDog disabled, 1 = WatchDog enabled).
Timeout (ref. Reg “WatchDog timer”): allows to set the value, expressed as step of 1 second, of the WatchDog timer .
Watchdog Event (ref. Reg “System Flags”):this flag is used to signal that the Watchdog condition is happened (0 = Normal condition;1 = Alarm
condition).
Power-up Event (ref. Reg “System Flags”):this flag is forced to 1 at each power-on and indicates that the device has been switched-off or a reset has
occurred. (0 = reset not happened ; 1 =reset happened).
To save the modified parameters, click the button “Save”. To read the parameters from the device click the button “Refresh”.
Software Update

This section allows to update the versions of the firmware or web server and is used in case of necessity. To execute the update click on the button
“Upgrade”; the system will open a pop-up window where to insert the credentials to proceed with the update. Contact the Technical Assistance service
for information about the procedure to follow. The parameter “Actual Firmware” shows the firmware version loaded on the device.
pag 6/11
Username and Password

This section allows to set user name and password to access to the Webserver of the device.
Username: allows to set and visualize the user name of the device. Default “Fact_user”.
Password: allows to set and visualize the password of the device. Default “Fact_pwd”.
To save the modified parameters, click the button “Save”.
Analog Input

This section allows to visualize the value of the analog inputs in the unit of measurement defined by the "Input Type".
Each Input can be disabled selecting “Disabled” by the combobox under the column “Input Type”.
Clicking the button “Read”, it executes the update of all values read by the device and so each field under the column “Value” will be updated .

Input Type (ref. Reg “Input Type”) : allows to visualize the type of the input or to disable it.
Value (ref. Reg “Analog Input”): shows the value contained in the register associated to the analog input.

To save the modifies related to “Input Type”, click the button “Save”.

pag 7/11
PROCEDURES
USE OF THE FUNCTION “INIT” (*)
All of the devices of DAT8000 series are equipped with the INIT modality. This is a procedure to access the device by the default parameters and to
proceed with its configuration:

IP Address: XXX.XXX.XXX.XXX (assigned by DHCP if enabled)


192.168.1.174 (DHCP disabled, verify that the IP is not in use)
Modbus address: 245
By these parameters it is possible to access the device in INIT modality to set and check how it is configured.
To work in INIT follow the procedure:
- Switch-off the device;
- Connect the terminal INIT to terminal -V as shown in the technical datasheet of the device.
- Power-on the device;
- Connect to the device by use of the default above parameters.
When the user finish to work in INIT:
- Switch-off the device;
- Disconnect INIT;
- Power-on the device and connect to it by the known parameters or by those set in INIT modality.
(*): If the software Dev9k is in use, with the goal to allow the correct identification of the device the parameter Netbios name must be set as
“DAT8015”. If different after the to have searched for the device (Pict 1 in next page), access by the menu Settings->Controller as shown in the picture
below.

IP address assigned by DHCP visualised in the menu Search.

WATCHDOG
The devices of the DAT8000 series are equipped with the Watchdog timer; if enabled it actives an alarm each time that there is not communication
between the device and the master for a time greater than that specified .
During this alarm condition the green led PWR on the front of the device blinks and the coil “Watchdog Event” is forced to 1. To exit from the alarm
condition, send any command to the device and reset the coil “Watchdog Event”.

pag 8/11
FUNCTION BUTTON “P”
In the case it is necessary to restore the default parameters of the device , with device powered and not in INIT condition, push the button “P” located
on the front for at least 5 seconds.
The green led PWR will switch-off, the yellow led STS will become orange and the reset of the device will occur.
When the reset procedure is finish, both the leds will set back to the default condition and will be loaded the following parameters:

Ethernet: Username: Fact_user


- IP Address : 192.168.1.100 Password: Fact_pwd
- Subnet Mask : 255.255.255.0
- Gateway Mask: 192.168.1.1

Modbus:
Address : 1.

SEARCH A DEVICE OVER THE NETWORK


The devices of DAT8000 series are provided with default IP address: 192.168.1.100, modbus address 1.
The PC could work with multiple subnets.
In order to connect with the device, the PC and the device of DAT8000 series must be in the same network.
It is possible to visualize the PC's IP address running the software Dev9K clicking the button “Get Local IP” under the menu Tools / Search ( Pict 1)
Pict. 1

Make sure the IP identified is used in the Network which the device is connected to.
Click the button “Search”; in the field “List of networks” the available networks for the PC in use will be shown. The IP addresses visualized are those
assigned to the PC from each network.
Click, if present, the interested network (192.168.1.xxx) to select the network to use.
Click the button “Binding” to set the network over to search the device. Note: the assignment is executed only for the Dev9k that is running. If the PC is
in a subnet different from the one of default of the device , the user has to change the IP of the PC to make possible the change of the device's IP.
To do this, open the " Network and Sharing center " of the operating system, go to the Properties of Internet Protocol version 4 of PC ( Pict 2 ) and
configure the network parameters in according to the default IP of device : (refer to the section "examples to check Windows configurations" )

IP Address : 192.168.1.XXX; modbus address (xx)


Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1

Pict. 2

pag 9/11
Now the device of DAT8000 series is searchable and the user can change its IP with the desired one. It must be different from the other ones in the
network (right click → Set IP address).
Once the device's IP address has been modified, the device will not appear in the results of Dev9k. So the user has to modify the network parameters
of PC again in order to display the device.

ADDITIONAL COMMANDS TO DETERMINE THE NETWORK IN USE


It is possible to use the following additional commands to determine to which network is connected the PC.
To use it run the command Prompt (cmd.exe) as Administrator in the Windows in use .
Command “Ipconfig”
It is possible to visualize the nets used by the PC writing this command and press enter.
The system will return a list of all the nets used by the PC. Before to try to estabish a communication with the device the user must be sure to be in the
correct subnet (ref previous chapter).
Command “ping”
To determine if a device is connected on the net it is possible to use the "ping " command that is an utility for computer networks used to measure the
time, in milliseconds, used by one or more packets to reach a network device and to return to the origin.
To use the command , type the command " ping " followed by the IP address of the device and press Enter .
Example:
ping 192.168.1.100
If the device is connected the system will return the answer from the device with the IP mentioned.
If the systems returns the message Host Unreachable the device is not connected in the net in use.
In this case it is suggested to check the network assigment.

pag 10/11
EXAMPLE TO CHECK WINDOWS ® CONFIGURATION
How to change the IP address of the PC (each version of the operative system could change in part from others)
- Access to Control Panel of PC

- Network and Sharing Center→ Change Adapter Settings → select the interested network → right click → Property → Internet Protocol version 4
→ Property.

- Change parameters and click OK.

RIF. FW : 8400
ED.03.16 REV.00
Datexel s.r.l. reserves its right to modify the characteristics of its products totally or in part without warning at any time . pag 11/11

You might also like