You are on page 1of 10

Modbus focus control 2.

0
Modbus RTU and Modbus TCP
Screw- and piston compressor

Date of issue January, 30th 2020


Software release V3.1
Document version V6

page 1 Modbus fc2.0 Screw Piston_EN.docx


Contents
HISTORY OF CHANGES........................................................................................................................ 3
COMMON................................................................................................................................................ 4
SETTINGS............................................................................................................................................... 4
MODBUS RTU ....................................................................................................................................... 4
MODBUS TCP........................................................................................................................................ 4
FUNCTION CODES ................................................................................................................................ 5
DATA TYPES ........................................................................................................................................... 5
ADDRESSING.......................................................................................................................................... 5
INPUT REGISTER (READ ONLY) ................................................................................................................ 5
HOLDING REGISTER (READWRITE).......................................................................................................... 9
Switch Compressor on/off ................................................................................................................ 9
Load request .................................................................................................................................... 9
Pressure range............................................................................................................................... 10
Confirmation ................................................................................................................................... 10
Connection check bit ...................................................................................................................... 10

Modbus fc2.0 Screw Piston_EN.docx page 2


History of changes

Index Date Chapter Description


1 25.04.2017 Creation
2 12.05.2017 Input Register (read only) Some missing register descriptions inserted
3 20.04.2018 Cover page for V2.1
4 05.12.2018 Input Register (read only) Register address 8…9 added (V2.1 Rev.12)
5 05.02.2019 Modbus TCP description added
6 30.01.2020 Cover page for V3.1

page 3 Modbus fc2.0 Screw Piston_EN.docx


Common
Modbus is a serial communications protocol, based upon a master - / slave - architecture. It has
become a de facto standard communication protocol in industry, and is now the most commonly
available means of connecting industrial electronic devices. The main reason for the extensive use of
Modbus over other communications protocols is that it is openly published and royalty-free.

Using Modbus, a master (eg PC) and many devices (eg temperature and humidity measurement)
could be connected. The focus control 2.0 supports as well Modbus RTU over serial line (EIA-485
(formerly RS-485) in halfduplex specification as Modbus TCP via Ethernet interface.

Each bus device must have a unique address. Address 0 is reserved for broadcasting. Each device is
allowed to send messages over the bus. In general, however, this is initiated by the master and an
addressed slave responds.

The description of the various specifications and protocols are available here: http://modbus.org/.

Settings
Modbus RTU

All adjustments to operate the serial interface must be made in the parameters P2.50 to P2.55. Here,
the following options are supported:

Parameter
Name Options
Base module RS485 module
P2.50 P2.53 Device address (1/2) Master: The device acts as Master
1…248: device address (Slave)
P2.51 P2.54 Bit rate (1/2) 2400
4800
9600
19200
38400
57600
115200
P2.52 P2.55 Protocol frame (1/2) 8 Even 1
8 None 1
8 None 2
8 Even 2
8 Odd 1
8 Odd 2

 All Parameters could be modified with Login-Level ‘User’. Please refer to the manual of focus
control 2.0.

Modbus TCP

Parameter Name Meaning


P2.56.1 IP-Address IP-Address
P2.56.2 Subnet mask Grouping of logical units
P2.56.3 Default gateway Node that serves as forwarding host to other
networks
P2.56.4 Mb TCP device address 1…247 device address

Modbus fc2.0 Screw Piston_EN.docx page 4


 All Parameters could be modified with Login-Level ‘User’. Please refer to the manual of focus
control 2.0.

Function codes
Following functions are support by focus control 2.0:

Code Function
04 (04hex) Read Input Registers
06 (06hex) Write Single Register
16 (10hex) Write Multiple Register

Data types
All data are transferred in 16bit registers. According to Modbus specification, the high byte is always
transferred first in a register followed by the low byte (Big Endian). 32bit values are transmitted in 2
consecutive registers. Since there is no fixed rule for this, it should be pointed out here that the
transmission also takes place according to this rule.

Register (n) Register (n+1)


32bit value Bit 31…24 Bits 23…16 Bits 15…8 Bits 7…0

 To ensure data consistency, 32bit values must always be read out in ascending order.
However, reading in two successive protocols is possible.

Addressing
Normally, the data is subdivided into reference groups in the Modbus protocol:

Group Reference
Coils 0xxxx
Discrete Inputs 1xxxx
Input Register 3xxxx
Holding Register 4xxxx

Specifically, the numbering of the registers is starting with 1, but starting with 0 in the telegram.

 In the following the reference is not indicated.

Input Register (read only)

 1
Unless otherwise indicated, all pressure values in [ /10 bar] and all temperatures in [°C]

Register
Type Description
address
1 UINT16 Identification
12883 (3253hex) = focus control 2.0 screw compressor
12880 (3250hex) = focus control 2.0 piston compressor
2 reserved
3 UINT16 Version No. (major)
4 UINT16 Version No. (minor)

page 5 Modbus fc2.0 Screw Piston_EN.docx


Register
Type Description
address
5 UINT16 Special version No. (0 means default version)
6 UINT16 Revision No.
7 UINT16 Build No.
8…9 UINT32 LoadCycles
10 reserved
1
11 INT16 Pressure value that is used for BLS [ /100 bar]
12 WORD Relay outputs
Bit 0…5, 10, 14, 15: reserved
Bit 6: CLOCK SWITCH (even if option is not present)
Bit 7: FAULT INDICATION (inverted)
Bit 8: READY FOR OPERATION
Bit 9: IN OPERATION
Bit 11: LOAD OPERATION (even if option is not present)
Bit 12: MAINTENANCE INDICATION
Bit 13: PRE-SELECTION REMOTE (even if option is not present)
13 WORD Bit 0: reserved
Bit 1: maintenance indication
Bit 3…2: active pressure range
00: - - -
01: pressure range 1
10: pressure range 2
11: pressure range 3 (0 bar / psi)

If this compressor acts as master, bit 4…7 have the following meaning:
Bit 4: load request compressor ‘A’
Bit 5: load request compressor ‘B’
Bit 6: load request compressor ‘C’
Bit 7: load request compressor ‘D’

Bit 8: load request from generic control


Bit 9…15: reserved
14…15 reserved
16 INT16 Compressor efficiency [%]
17 UINT16 Battery voltage [mV]
18 INT16 >=0: Compressor utilization [%] (VSD compressors only)
<0 = fixed speed compressor
1
19, 20 UINT32 time since last power on [ /100 s]:
Bits 31…16
21 UINT16 Compressor state
0: off
1: ready
2: start-up(1)
3: start-up(2)
4: load-run
5: idle-run
6: idle-run(after switching off)
7: fault
8: auto-restart
9: emergency-stop
10: FC power-on (manually)
11: testing digital outputs
12: waiting for stand-by of catalyzer (BLUEKAT)
14: switch on blocked
15: inspection idle-run
16: service run
22 INT16 Temperature input value
Screw compressor : Final compression air temperature
Piston compressor: see circuit diagram

Modbus fc2.0 Screw Piston_EN.docx page 6


Register
Type Description
address
23 INT16 Net pressure
24 INT16 Pressure value
Screw compressor : system pressure
Piston compressor: see circuit diagram
25 UINT16 fault message (see operating manual for details)
26 UINT16 Service message (see operating manual for details)
27, 28 UINT32 Operating time [s]
29, 30 UINT32 Idling time [s]
31 INT16 operating hours until next compressor service [h]
32 INT16 operating hours until next motor service [h]
n
33 INT16 Number of load cycles until next receiver servicing [ /1000]
34…35 reserved
36 UINT16 Key switch function (P2.66):
0: deactivated
1: On/Off
2: Release
3: On/Off AND release
37 UINT16 ON/OFF mode (P2.65):
0: Local
1: Remote (contact)
2: Remote (bus)
3: Remote (contact AND bus)
4: Remote (Ethernet)
5: Remote (contact AND Ethernet)
38 UINT16 Pressure control (P2.63):
0: Internal release
1: Release via contact
2: Release via bus
3: Release via bus AND contact
4: Release via Ethernet
5: Release via Ethernet AND contact
39 INT16 maximal system pressure
piston compressor: only relevant if system pressure sensor is built-in
40 INT16 P2.12, switch-off pressure (1)
41 INT16 P2.13, switch-on pressure (1)
42 INT16 P2.11, Minimum hysteresis
43 INT16 P2.42, Booster pressure (see functional description)
44 INT16 P2.41 Delta p Rotational direction monitoring (screw compressor only)
45 INT16 P2.43, Delta p oil separator (screw compressor only)
46 INT16 P2.30, start-up time [s]
47 INT16 P2.31, Minimum running time [s]
n
48 INT16 P2.33, number of motorstarts [ /h]
49 INT16 P2.21, Auto-restart time [s]
50 INT16 P2.14, switch-off pressure (2)
51 INT16 P2.15, switch-on pressure (2)
52 reserved
53 INT16 P2.10, Sensor range
54 INT16 P2.16, Delta p (FC)
55 WORD Timer channel settings#1
Bits 15…14: reserved
Bits 13…11: day off week (0: not used, 1…7: Monday…Sunday)
Bits 10…6: hour
Bits 5…0: minute

page 7 Modbus fc2.0 Screw Piston_EN.docx


Register
Type Description
address
56 WORD Timer channel settings#2
Bits 15…9: selected channel (see Holding Register (ReadWrite), address 2)
Bit 8: timer relay
Bits 7…0: pressure range
FFh: no change of pressure range
0h: pressure range 1
1h: pressure range 2
2h: pressure range 3 (0 bar / psi)
57 WORD Timer channel settings#3
Bits 15…8: priority of group A
Bits 7…0: priority of group B
58 WORD Timer channel settings#4
Bits 15…8: priority of group C
Bits 7…0: priority of group D
59…599 Reserve
600 INT16 Dryer ambient temperature [°C]
601 INT16 dryer tendency [%]
602, 603 UINT32 Dryer operating time [s]
604 INT16 -1: no dryer present
>= 0: efficiency [%]
605 INT16 Operating hours until next dryer servicing
606 WORD Dryer state
Bit1…0:
00: Motor OFF
01: load-run
10: - - -
11: idle-run

Bit 2: fan motor

Bit 3…7: reserved

Modbus fc2.0 Screw Piston_EN.docx page 8


Holding Register (ReadWrite)

Register
Type Description
address
1 WORD Bit 0: compressor ON
Bit 1: compressor OFF
Bit 2: Load request
Bit 3: pressure range
Bit 4: confirmation of malfunction/service message
Bit 5: reserved
Bit 6: Connection check
Bit 7…15: reserved
2 INT16 Timer channel select
0…49: select timer channel (1…50) for reading (see Input Register 55…58)

 Elements marked as not used must contain 0, because those elements are used as reserve for
upgrades.

Switch Compressor on/off


By use of bit 0 and bit 1 the compressor could be switched on and off. Both bits are recognized only
on rising edges by the controller. If bit 1 is set while the controller detects a rising edge on bit 0, the
compressor would not be switched on. In this case bit 1, which is set, has a higher priority than a
rising edge.

Following conditions must be fulfilled to switch the compressor on/off by bus:


The controller has to be configured for remote ON/OFF, this could be done by:

• P2.65 (On/Off function) = Modbus RTU: ‘Remote (bus)’ or


‘Remote (contact AND bus)’
Modbus TCP: ‘Remote (Ethernet)’ or
‘Remote (contact AND Ethernet)’
• P2.66 (Key switch function) = ‘On/Off’ or ‘On/Off AND release’ (if key switch is installed)

 When remote ON/OFF is configured and active, the compressor could not be switched on/off
using the push buttons ‚I‘ respectively ‚O‘.
 If On/Off function is configured in mode ‘Remote (contact AND bus/Ethernet)’, the signal is
ANDed with an external contact.
 If a key switch is installed, the position decides whether the compressor could be accessed by
remote or local.

Load request
Using bit 2 the load request of the compressor could be controlled. If bit 2 is set, the compressor runs
in load mode when the controller has detected a load request. Load request controlled via bus is only
possible when the following conditions are fulfilled:

The controller must be configured for external pressure control

• P2.63 (Pressure control) = Modbus RTU: ‘Release via bus’ or


‘Release via bus AND contact
Modbus TCP: ‘Release via Ethernet’ or
‘Release via Ethernet AND contact
• P2.66 (Key switch function) = ‘Release’ or ‘On/Off AND release’ (if key switch is installed)

 If the connection check bit is not served, the request is controlled by the external contact,
respectively by the internal pressure control when the terminal is jumpered.

page 9 Modbus fc2.0 Screw Piston_EN.docx


 If a key switch is used in mode ‘Release’ or ‘On/Off AND release’, the load request via bus is
ignored when the switch is in position ‚local‘.

Pressure range
If bit 3 is set the controller switches to pressure range 2 (defined by P2.14 / P2.15)

 If the connection check bit is not served pressure range 1 (P2.12 / P2.13) will be activated.
 Changing pressure range is only available when release is also made via bus.

Confirmation
Bit 4 is used to confirm malfunction, warning and service messages. If a message is displayed, this
message is confirmed on a rising edge of this bit

Connection check bit


For controlling the bus application bit 6 must change the condition (toggle) in a timeframe less than
5 seconds. If the Pressure control function is configured in mode ‘Release via bus’, the controller
switches automatically to mode ‘Release via contact’ after 5 seconds without condition change of
connection check bit

 To ensure that the controller detects condition changes, the time between changes should be in
a timeframe less than 4 second and greater than 0.2 seconds

Modbus fc2.0 Screw Piston_EN.docx page 10

You might also like