The Poseidon2 and Damocles2 works as a TCP Server at port 502 (Modbus standard). The Modbus/TCP communication takes place using the given addresses. For details, see http://www.modbus.org .
Caution: Modbus/TCP implementation support requires setting the " Slave ID " variable to number 2. Check the setting of this variable in case you are enable to establish a connection. (The actual name may differ in your software – it used to be an address to distinguish multiple devices on a RS-485 line in case of Modbus/RTU).
What you can find in this application note:
- We describe how to properly setup Modbus Poll program version 3.20
- You find out what is possible to read via Modbus/TCP protocol
Notice: Modbus Poll application version 3.20 in its unregistered version works only for 4 minutes after launch. It is necessary to restart the program after to run it again.
Mapping of variables for the Modbus/TCP protocol
Analog quantities |
||||||||||
Address |
I/O |
Type |
Functions |
Units |
||||||
100 |
int |
4 |
|
Current number of installed (configured in Setup) sensors |
||||||
101-10x |
int |
4 |
0,1°C |
Current value of the sensor No. 1 through x, where x is the value at address 100. Units are configured in WEB Setup. |
||||||
200 |
int |
4 |
- |
Current banknote counters |
||||||
201 - 2xx |
int |
4 |
- |
The current counter value, the first counter is at the address 201(H)-202(L), second on 203(H)-204(L) …. |
||||||
201 - 2xx |
int |
16 |
- |
Set the current counter value, the first counter is at the address 201(H)-202(L), second on 203(H)-204(L) …. |
||||||
Digital values |
||||||||||
Address |
I/O |
Type |
Functions |
Description |
||||||
100 - 1xx |
bit |
2 |
0 - open, 1 - close |
Current values of binary inputs |
||||||
200 - 2xx |
bit |
1 |
0 - open, 1 - close |
Reads the current value of the output |
||||||
200 - 2xx |
bit |
5 |
0 - open, 1 - close |
Sets the value of the output |
Inputs registers |
|
Outputs registers |
Remote INPUTS
Poll Definition |
|
||||||
Slave ID: |
2 |
||||||
Function: |
02 INPUT STATUS |
||||||
Adress: |
100 |
||||||
Length: |
24 |
||||||
Scan Rate: |
1000 |
||||||
Auto Read Enable: |
Checked |
Remote OUTPUTS
Poll Definition |
|
|||
Slave ID: |
2 |
|||
Function: |
01 Coil Status |
|||
Adress: |
200 |
|||
Length: |
4 |
|||
Scan Rate: |
1000 |
|||
Auto Read Enable: |
Checked |
Sensors
Poll Definition |
|
|||
Slave ID: |
2 |
|||
Function: |
04 INPUT REGISTER |
|||
Adress: |
100 |
|||
Length: |
2 |
|||
Scan Rate: |
1000 |
|||
Auto Read Enable: |
Checked |
The Poseidon2 and Damocles2 works as a TCP Server at port 502 (Modbus standard). The Modbus/TCP communication takes place using the given addresses. For details, see http://www.modbus.org .
Caution: Modbus/TCP implementation support requires setting the " Slave ID " variable to number 2. Check the setting of this variable in case you are enable to establish a connection. (The actual name may differ in your software – it used to be an address to distinguish multiple devices on a RS-485 line in case of Modbus/RTU).
Program Modbus Poll & Damocles MINI
Dry contact inputs - model MINI
Connect the Damocles MINI unit to ethernet and power supply. Launch Modbus Poll application (mbpoll.exe file). In setup menu select option Poll Definition (keyboard short cut F2).
Setting of inputs in Modbus Poll program (Picture a)
- Slave ID: 2
- Function: definition of running function 02 INPUT STATUS for monitoring of input states
- Address: definition of used variables that will be loaded (for addresses see figure bellow). Beginning at the address 100 - ending at the address 103
- Length: length of loaded variables
- Scan Rate: delay between two following loadings
- Auto Read Enable: to enable automatic reading of values
- Click OK button to confirm
![]()
Picture b - Network parameters settingAddresses of inputs in terms of protocol are configured, now set up connection to device itself.
- In Connection menu select Connect (keyboard short cut F3)
- Select TCP/IP
- Set up device IP address and Port (standard is 502)
- Push OK button to confirm
Application is now connected to selected device and in periodic interval loads input values (see the picture c).
![]()
Picture d - Damocles MINI - WWW page
>> Damocles MINI
Download and application of Modbus Poll + examples
Binary outputs (Damocles MINI)
Open Poll Definition menu to control binary outputs.
- Slave ID: 2
- Function: definition of running function 01 COIL STATUS for monitoring of output states
- Address: defines the address of used variables that will be logged (for addresses see figure bellow). It begins at the address 200 - ending at the address 201
- Length: number of loaded variables
- Scan Rate: delay between two loadings
- Auto Read Enable: to enable automatic reloading
- Click OK button to confirm
To control binary inputs select option 05 in function menu: Write Single Coil (short cut F7).You can safe setting of Poll Definition to mbp file to simplify your work. Any time you need it simply load the saved setting.
Modbus Poll & Poseidon2 4002
Temperature sensor - model4002
Open Poll Definition in menu.
- Slave ID: 2
- Function: definition of running function 04 INPUT REGISTER for monitoring of output states
- Address: defines address of used variables that will be loaded (for address see figure above).
- Andrea 100 - number of sensors
- Addressed 101 - current value
- Length: number of logged values
- Scan Rate: delay between two readings
- Auto Read Enable: to enable automatic reloading
- Click OK button to confirm
Picture ch - Setting of temperature sensor
Two lines are displayed. The first line shows number of connected sensors and the second current temperature with an accuracy of 0.1° C. Save your setting to mbp file to simplify work with Poll Definition. In case you need it, simply load saved setting.