MODBUS – NETWORK SETUP
tekening
1
CAN NETWORK - MODBUS
RTU variant / RS485 half-duplex
– Master – Slave principle: only answering after request is received
Internal buffer in ComBox-S / Mk5 gateway
– Update cycle !
– Answer given from this buffer (not real-time)
Modbus addressing
– One to One link with Machine Node ID
– The address is part of each request
2
CAN NETWORK – MODBUS
Address mapping generated with Speci5 (4.4.0) for Mk5 controllers
– Generate from database / controller
Different mapping for ComBox / Gateway
Dynamic IO mapping from FDP is still valid for MkIV controllers
User manual Modbus for ComBox-S is still valid
– Last update (edition 12) is published on LN Software db
– Be aware that not all registers as mentioned in the guide might be supported
E.g. Dryer speed from MkIV is NOT supported
Address mapping (from Speci5) of Mk5 controller is also guaranteed for MkIV controller
– Only here you can find the information for ES130 and ES8
Address mapping generated by ES tuner edition 1.4.6.1 (1.4.10.3)
– For ES16 - ES360
Different Airnet = different CAN Node ID
ComBox only supports 1 airnet (ES130)
Gateway supports more airnets / more then 3 SPS
3
MODBUS PROTOCOL SUPPORT
Supported functions is limited
Function 01: read coil status (read general status)
Function 03: read holding register (read individual data)
Function 06: write single register (send commands, reprogram setting)
Function 08: loopback test is no longer supported (under investigation)
Definitions of registers
– IO mapping generated by FDP for MkIV
– Address mapping generated by Speci5 for Mk5
– Address mapping generated by ES Tuner for ES16-360
– For MkiV/ES6/8/130 General descriptions part of old user manual
Interpretation status
Applicable commands
Consult the manuals
4
MODBUS ADDRESS MAPPING
Engineering job to define mapping as expected by customer
– Sensor range: Speci5 / Modi5 or FDP / FSP
– Technical units: mbar / 0.1 °C (for more info check all manuals)
5
CAN NETWORK – MODBUS PROTOCOL
Function 1: read coil status
– General compressor condition
Modbus address Starting address (n.a. for coil)
Function 1 8 bits/coils
# bytes in answer
0001 0000 interpretation = general shutdown
6
CAN NETWORK – MODBUS PROTOCOL
Function 3: read holding register
– Detailed machine condition, speed, …
MkIV => check ‘old’ user manual
Mk5 => check address mapping from Speci5
– Inputs & Outputs
Machine specific, generate I/O list with FDP/Speci5
– Counters
Machine specific, generate I/O list with FDP/Speci5
– ES6 / ES8 / ES130
Check ‘old’ user manual
– ES16 / ES360
Check report generated by ES Tuner
7
CAN NETWORK – MODBUS PROTOCOL
Request
Modbus address Starting Modbus address
Answer
Function 3 4 Data records (each 2 byte long)
1 data: Status
Modbus address 8 bytes returned Modbus reg1
2 data: Value
Modbus reg2
Function 3
3 data: Status 4 data: Value
Modbus reg3 Modbus reg4
8
CAN NETWORK – MODBUS PROTOCOL
1: 80(hex) = 10000000(bin) => Input set
2: 2841(hex)=10305(dec) => 10.3 bar
3: C0(hex)=11000000(bin)=> Input set, sensor error
4: 7FFF(hex)= sensor error
1 data: Status
Modbus reg1
2 data: Value
Modbus reg2
3 data: Status 4 data: Value
Modbus reg3 Modbus reg4
9
CAN NETWORK – MODBUS PROTOCOL
Function 6: preset single register - unit controller
– Commands: start /stop / (un)load
– Change control mode (2=local / 3=dig.remote / 4= LAN a / b / c / d)
– Change active Pressure Band Or Setpoint
– Change PB levels or setpoint
– Speed control for a VSD
– ESi pressure band
Function 6: preset single register – ES systems
– Commands: system central control start / Stop / local control
– Integrate / isolate a machine
– Change SPS / regulation mode, …
– based on ES system; check manuals / address mapping
10
CAN NETWORK – MODBUS PROTOCOL
Send command to start (only when controller is in LAN control)
Modbus address Modbus register: 7D0(hex)= 2000(dec) (minus 1)
Function 6 Value 1: start command
Answer = mirroring the request
11
PROTOCOL (VALID FOR BOTH MODBUS/ PROFIBUS)
External control support by Mk5 gateway
– Check address mapping generated by Speci5 for a Mk5 controller
– Check address mapping generated by ES Tuner for a ES16-360
– Check old user manuals for a MkiV / ES6 / ES8 / ES130
Different external control modes in Mk5 Gateway
– Gateway Parameters – ‘Full Remote Control’ by default disabled
Enabling only by Modi5 – Expert access level
– Similar limitation when connected to a MkIV controller
– Available commands / reprog params for customer (only accepted in LAN)
Start / stop / (un)load
Switch active PB / Switch active Setpoint
12
PROTOCOL (VALID FOR BOTH MODBUS/ PROFIBUS)
Compatibility sheets
– Mapping for MkIV read by Combox vs Gateway (excel sheet)
– Mapping for Mk5 read by ComBox vs Gateway
Generate both address mapping (Speci5) and compare by yourself
13
PROTOCOL (VALID FOR BOTH MODBUS/ PROFIBUS)
Different external control modes in Mk5 Gateway
– Only available in Full remote Control
Change to 4b / 4c control mode
External speed command (only in 4c)
External Setpoint level control (only in 4b) Mk5 2.0.x application required
External PB levels control (only in 4b) Mk5 2.0.x application required
14
PROTOCOL (VALID FOR BOTH MODBUS/ PROFIBUS)
Mk5 application versions 2.x version - Use Speci5 database info
15
PROTOCOL (VALID FOR BOTH MODBUS/ PROFIBUS)
VSD: motor speed requested from Mk5 unit controller (older ZTVSD database NOK)
– Only ‘Main’ motor speed is supported (not for Dryer, not for FAN)
– In Mk5 structure ‘Compressor’ speed added
– Gateway only supports ‘Main’, not ‘Compressor’
Modi5 ‘full control’
16
CAN NETWORK – MODBUS PROTOCOL
Internal data
– Every Mk5 application can have some specific data; this depends of the application.
– The data can only be read if the setting “Internal data” is enabled
– By default this is only applicable for the Energy Recovery application
– Registers and data specification: can be found in the address mapping generated by Speci5
– Example for ER90; for more detailed explanation of this data, you should contact the technical
specialist of this type of machine.
17