background image

 

Deployment 

 

Wieland Electric GmbH | BA001269 | 09/2021 (Rev. A) 

51 

 

6.9

 

Modbus function codes 

Naming convention 

Modbus has some naming conventions: 

 

 

Modbus differentiates between bit and word access; Bits = 'Coils' and Words = 'Register'. 

 

Bit inputs are referred to as 'Input-Status' and bit outputs as 'Coil Status'. 

 

Word inputs are referred to as 'Input-Register' and word outputs as 'Holding Register'. 

Range definitions 

Normally the access with Modbus happens by means of the ranges 0x, 1x, 3x and 4x.  

0x and 1x gives you access to digital bit areas and 3x and 4x to analog word areas.  

For the 

ricos

 FLEX BC MODBUS is not differentiating digital and analog data, the following assign-

ment is valid: 

 

0x – Bit area for master output  
Access via function code 01h, 05h, 0Fh  

 

1x – Bit area for master input  

Access via function code 02h  

 

3x – Word area for master input  
Access via function code 04h, 17h  

 

4x – Word area for master output  
Access via function code 03h, 06h, 10h, 16h, 17h 

 

Содержание 83.036.1040.1

Страница 1: ...User manual Doc No BA001269 Last Update 09 2021 Rev A ricos FLEX ricosFLEXBCMODBUS 83 036 1040 1...

Страница 2: ...lectric GmbH is prohibited ricos FLEX is a trademark of Wieland Electric Other product or brand names mentioned in this docu ment are brand trademarks or registered trademarks of their respective owne...

Страница 3: ...Components 8 3 3 Hardware revision 10 3 4 Dimension 11 3 5 General data of the ricos FLEX system 12 4 Hardware description 14 4 1 Performance 14 4 2 Surface mounting 14 4 2 1 Interfaces 15 4 2 2 LEDs...

Страница 4: ...gramming 45 6 4 3 Modbus utility 45 6 5 Accessing the ricos FLEX system 46 6 5 1 Overview 46 6 5 2 Address mapping 46 6 5 3 Accessing the I O area 47 6 5 4 Accessing the parameter data 48 6 5 5 Access...

Страница 5: ...ture of the manual The manual consists of chapters Every chapter provides a self contained description of a specific topic As a guide an overall table of contents is available at the beginning of the...

Страница 6: ...ed changes or the use of non approved ac cessories may damage the system and violate existing laws Prohibited changes or the use of non approved accessories may result in the invalidity of warranty cl...

Страница 7: ...s and they can damage components thereby causing the module to become inoperable or unusable Modules that have been damaged by electrostatic discharges can fail after a temperature change mechanical s...

Страница 8: ...nts CPU head module Bus coupler head module Extension module Only Wieland Electric modules may be combined A mixed operation with third party modules is not allowed Bus coupler With a bus coupler bus...

Страница 9: ...odule serves to carry the electronic module contains the backplane bus with power supply for the electronic the DC 24 V power section supply and the staircaseshaped terminal for wir ing Additionally t...

Страница 10: ...ach of them Authoritative for the hardware revision of a ricos FLEX module is the hardware revision of the electronic module This is always located under the labeling strip of the corresponding electr...

Страница 11: ...ception Wieland Electric GmbH BA001269 09 2021 Rev A 11 3 4 Dimension All information in mm Dimensions bus coupler Dimensions extension module Dimensions electronic module 104 109 76 5 15 133 12 9 55...

Страница 12: ...el electrically isolated Insulation resistance Insulation voltage to reference earth Inputs outputs AC DC 50 V test voltage AC 500 V Protective measures against short circuit Environmental conditions...

Страница 13: ...severity 2 EN 61000 4 3 HF field immunity casing 80 MHz 1000 MHz 10 V m 80 AM 1 kHz 1 4 GHz 2 0 GHz 3 V m 80 AM 1 kHz 2 GHz 2 7 GHz 1 V m 80 AM 1 kHz EN 61000 4 6 HF conducted 150 kHz 80 MHz 10 V 80...

Страница 14: ...ports Easy Maintenance Network LEDs for link activity and speed Status LEDs for Ready and Error Order data Product Part No Description ricos FLEX BC MODBUS 83 036 1040 1 Modbus TCP Ethernet coupler fo...

Страница 15: ...r section supply 4 Sys DC 24 V Input DC 24 V for electronic section supply 5 not allocated 6 DC 24 V Input DC 24 V for power section supply 7 0 V Input GND for power section supply 8 Sys 0 V Input GND...

Страница 16: ...7 32 25 32 8 Web server 0 disabled 1 enabled Ranking for the IP address configuration The switch for DHCP activation pos 1 has the highest priority If there is no DHCP server the IP address 192 168 1...

Страница 17: ...PWR IO green PWR green PF red Description x Power section supply OK Electronic section supply OK x x Fuse electronic section supply defective x not relevant off Status indication bus interface LED Col...

Страница 18: ...x x x The Ethernet coupler is power supplied x x 2 Hz The Ethernet coupler communicates without error via Ethernet x x x x x The Ethernet coupler is ready for Modbus TCP com munication x x x x x No Mo...

Страница 19: ...r loss 3 W Status information alarms diagnostics State indication yes Alarms yes parameterizable Process alarm yes parameterizable Diagnostic interrupt yes parameterizable Diagnostic functions yes par...

Страница 20: ...es Supported communication method Supported command Cyclic Supported command Event driven Supported command Message Datasizes Input bytes Output bytes Parameter bytes Diagnostic bytes Housing Material...

Страница 21: ...pling Magnetic fields with power frequency Bus system Power supply Yellow green conductor Depending on the spreading medium lead bound or lead free and the distance to the interference cause interfere...

Страница 22: ...e shunt via cable isolation to the ground Here you have to make sure that the connection to the protected earth conductor is impedance low because otherwise the interference currents may appear as int...

Страница 23: ...g rail The bus coupler is fixed to the mounting rail by pushing downward the locking levers The bus coupler is directly mounted at a mounting rail Up to 64 modules may be mounted The electronic and po...

Страница 24: ...mounting the extension modules you have to remove the bus cover at the right side of the bus coupler by pulling it forward Keep the cover for later mounting Mount the extension modules you want After...

Страница 25: ...grated power module Terminals with spring clamp technol ogy are used for wiring The spring clamp technology allows quick and easy connection of your sig nal and supply lines In contrast to screw termi...

Страница 26: ...y 5 not allocated 6 DC 24 V Input DC 24 V for power section supply 7 0 V Input GND for power section supply 8 Sys 0 V Input GND for electronic section supply Since the power section supply is not inte...

Страница 27: ...ith the order number 83 036 0030 0 is to be placed between the extension mod ules 5 3 2 Wiring bus coupler Terminal module terminals Do not connect hazardous voltages If this is not explicitly stated...

Страница 28: ...A Cross section 0 08 1 5 mm AWG 28 16 wire strip length 1000 mm Wiring procedure 1 Pin number at the connector 2 Opening for screwdriver 3 Connection hole for wire Insert a suited screwdriver at an a...

Страница 29: ...for bus coupler and I O area with a 2 A fuse fast respectively by a line circuit breaker 2 A characteristics Z The electronic power supply for the I O area of the power module PW 24 V 5 V order no 83...

Страница 30: ...DC 24 V for power section supply I O area max 4 A 4 DC 24 V for electronic power supply I O area Sys DC 5V DC 24V 10A Sys DC 5V DC 24V 10A DC24V 0V DC24V 0V DC24V max 10A S ys DC5V max 3A DC24V max 1...

Страница 31: ...em Remove if exists the wiring of the bus coupler Press the unlocking lever at the lower side of the just mounted right module near the bus cou pler and pull it forward Turn all the locking lever of t...

Страница 32: ...he lower side until this engages to the terminal module Now you can bring your system back into operation Exchanging the extension module For demounting and exchange of a head module or a group of mod...

Страница 33: ...ve to remove the electronic module right beside After mounting it may be plugged again Power off your system Remove if exists the wiring of the module group Press the unlocking lever at the lower side...

Страница 34: ...ON the RUN LED of each module is off and the MF LED of each module is spo radically on Reason The maximum current for the electronic power supply is exceeded Remedy As soon as the sum current of the e...

Страница 35: ...ea With address mapping there is an area for input and an area for output data Using the integrated Web server you have access to the current mapping Here you can also parameterize your modules Commun...

Страница 36: ...resses that are normally written in four octets of each 8bit e g 172 16 192 11 One octet may represent numbers between 0 and 255 A part of the address specifies the network the rest identifies the sin...

Страница 37: ...e access to a Modbus slave happens via function codes that are described in detail in this chapter further below 6 2 Operating modes Description SF red MT yellow SB green Init DHCP discovery x 2 Hz 2...

Страница 38: ...nd from the Commissioning state Maintenance This state is automatically activated in the case of physical changes to the backplane bus or in the event of a bus error This activates BASP and stops the...

Страница 39: ...Password and module parameter are deleted On delivery the switches pos 2 7 of the address switch are set to 0 see Address switch p 16 Subnet mask 255 255 255 0 IP Address 10 0 0 1 If the systems are i...

Страница 40: ...sys tem administrator The adaptation happens with the following proceeding Connect your Modbus TCP coupler via Ethernet with the network card of your PC and switch on the power supply of the Modbus T...

Страница 41: ...ricos FLEX BC MODBUS and ricos FLEX system modules in installed or der 2 Functions for the module which is se lected in the module list 3 Information respectively input field for the according functio...

Страница 42: ...munication for the specified time BASP is set on the ri cos FLEX bus o With the value 0 you can deactivate the time monitoring IO cycle o With IO cycle you can specify the cycle for the ricos FLEX bus...

Страница 43: ...Commissioning state should only be used for test purposes respectively for troubleshooting Export station configuration o With Save a window is opened and shows the configuration as XML Select File S...

Страница 44: ...code 01h 05h 0Fh 1x Bit area for master input Access via function code 02h 3x Word area for master input Access via function code 04h 17h 4x Word area for master output Access via function code 03h 06...

Страница 45: ...rces for TCP m_lsock socket AF_INET SOCK_STREAM 0 Establish connection to external device SockAddr sin_port htons m_wPort SockAddr sin_addr S_un S_addr inet_addr m_szIpAddress connect m_lsock LPSOCKAD...

Страница 46: ...nnected extension modules certain addresses in the Ethernet coupler have to be assigned to them For input and output area the Ethernet coupler has an address range of each 1024byte The address allocat...

Страница 47: ...areas and 3x and 4x to analog word areas For the ricos FLEX BC MODBUS is not differentiating digital and analog data the following assign ment is valid 0x Bit area for master output Access via functio...

Страница 48: ...hardware interrupt and diagnostic interrupt To distinguish there is a 64bit wide field bit 0 Modbus TCP Slot 1 to bit 63 Modbus TCP Slot 64 in the diagnostic image each for hardware and diagnostics i...

Страница 49: ...automatically to Maintenance state 2 The process data communication is ended The SF LED remains off The MT LED lights up The SB LED turns off The message Missing Module ID is shown on the website Com...

Страница 50: ...TCP is a Modbus protocol put upon TCP IP where the IP address serves the addressing Modbus TCP allows a client server communication several clients may be provided from one server Telegram structure i...

Страница 51: ...Register Range definitions Normally the access with Modbus happens by means of the ranges 0x 1x 3x and 4x 0x and 1x gives you access to digital bit areas and 3x and 4x to analog word areas For the ri...

Страница 52: ...nd contains m read words of the master input area 3x Byte sequence in a word 1 word High byte Low byte Respond of the coupler If the slave announces an error the function code is sent back with a OR a...

Страница 53: ...er output area 0x A status change is via Status bit with following values Status bit 0000h Bit 0 Status bit FF00h Bit 1 Command telegram Modbus TCP Header Slave address Function code Address bit Statu...

Страница 54: ...ite n words to master output area 4x Command telegram Modbus TCP Header Slave address Function code Address 1 word Number of words Number of bytes Data 1 word Data 2 word x x 0 0 0 6 byte 1 byte 1 byt...

Страница 55: ...telegram Modbus TCP Header Slave ad dress Function code Read address Read number words Write address Write number words Write number bytes Write data 1 word Write data 2 word x x 0 0 0 6 byte 1 byte...

Страница 56: ...in terrupt has not yet been acknowledge by the ricos FLEX BC MOD BUS module Diagnostics Address Function code Access 4001h 4040h 01h 02h 05h Bit access to hardware interrupt state 4001h Hardware inte...

Страница 57: ...SUPPORT Service Hotline 49 0 951 9324 995 E Mail Industry Support wieland electric com Wieland Electric GmbH Brennerstra e 10 14 D 96052 Bamberg Tel 49 0 951 9324 0 Fax 49 0 951 9324 128 E Mail info w...

Страница 58: ...Wieland Electric GmbH Brennerstra e 10 14 DE 96052 Bamberg Tel 49 951 9324 0 Fax 49 951 9324 198 info wieland electric com www wieland electric com...

Отзывы: