background image

 

- 28 - 

6.1.4 

Modbus RTU Communication Interval 

This section describes the Modbus RTU (RS-485) communication interval

.

   

 

  
 

Current request 
 
 

Data 

Start 

 

Idling 
time(>3.5 
letters) 

Unit 

ID 

Function 

code 

Data 

CRC(L)

CRC(H)

End 

 

Idling 
time(>3.5 
letters) 

Data   

▲ Previous response message                                  ▲Error check code                     

▲Current response message 

 
 

Provide  a  non-communication  interval  (idling  time  of  more  than  3.5-letter)  between  message 
frames, to identify the end and start of each message. 
 
The slave returns a response message after non-communication interval (idling time of more than 
3.5-letter) from its receipt of a request message. 
 
If a space of more than 3.5 letters is detected within a message frame, the slave judges that the 
message frame ends then discards the message, then judges the next received data to be the 
start of the request message. 
 

 

Idling time calculation method 
For example, when the communication speed is 9600bps and 1 letter is 11-bit long 

(Modbus RTU communication data), 

Interval per letter = 1 /9600 x 11 x 1000 

 1.15 msec.   

If converted to 3.5 letters, 1.15 x 3.5 

 4.01 msec. 

 

NOTE 

Summary of Contents for PS-7-M

Page 1: ...Instruction Manual No GAE 159 00 June 2020 PS 7 M Communication Specifications Guide Keep this guide for easy reference Carefully read this guide prior to use or maintenance for safe operation ...

Page 2: ...i Revision History Revision Document No Date Contents of change 00 GAE 159 00 June 2020 Initial issue ...

Page 3: ...ystem Configuration 10 5 2 Wiring Procedure 12 5 2 1 Modbus RTU RS 485 Wiring Procedure 13 5 2 2 Modbus TCP Ethernet Wiring Procedure 15 5 3 Communication Setup 17 5 3 1 DIP Switches 17 5 3 2 Status LEDs 22 6 Communication Protocol 23 6 1 Modbus Communication Protocol Overview 24 6 1 1 Message Configuration 24 6 1 2 CRC 16 Calculation for Modbus RTU only 26 6 1 3 Communication Procedure 26 6 1 4 M...

Page 4: ...ters 37 6 4 4 Function Code 23 Read and Write Multiple Holding Registers 39 6 4 5 Exception Response Response in the event of an error 41 6 5 Register Address Map 42 7 Device Status Information 49 7 1 Gas Alarm Operation 50 7 2 Trouble Alarm Operation Fault Alarm Operation 51 7 3 Test Mode Setup and Operation 52 7 4 Maintenance Mode Setup and Operation 53 7 5 Full Scale Codes 55 8 Troubleshooting ...

Page 5: ...as detector hereinafter detector or product This detector consists of a main unit and a base unit A main unit includes a display a pump and a sensor while a base unit has external communication terminals to connect to external devices This product supports RS 485 and Ethernet communications ...

Page 6: ...tem administrators supervisors Password Changing settings All the items set for this product e g alarm set values are password protected One manual is provided per system not per unit 3 PS 7 pyrolyzer s operation manual Doc No GAE 020 xx This manual describes installation and replacement procedure for a pyrolyzer sold separately A manual is provided per system if the unit includes a sensor unit wi...

Page 7: ...ons and connection method for using the product s Modbus communication functions For the operation and handling of the external Modbus devices that send receive data to from this product refer to each device s instruction manual 1 3 Trademark Registration Modbus is a registered trademark of Modicon Inc AEG Schneider Automation International S A S Their company name and product name are also their ...

Page 8: ...ts related to the precautions before starting operation or maintenance work This guide uses DANGER WARNING CAUTION and NOTE symbols to draw attention to procedures materials methods and processes that require particular attention Indicates an imminently hazardous situation that can result in death or serious injury Indicates a potentially hazardous situation that may result in death or serious inj...

Page 9: ...h the applicable technical standards This product is not explosion proof and should not be installed in a hazardous area Ground the product to prevent electric shocks In the event of a gas leak alarm follow safety procedures in accordance with your company s regulations Do not disassemble modify or alter the structure of the product or its electrical circuits doing so may compromise product perfor...

Page 10: ...on the main and base units and other parts of the detector refer to the PS 7 M series gas detector s instruction manual Item Component Description Function 1 Main unit Includes a display a pump and a sensor 2 Base unit Used for wiring and tubing Includes two terminal blocks for exterior communication ...

Page 11: ...le slave SMMS communication method is used for a system configuration in which Modbus slaves PS 7 M series gas detectors can send receive data to from the Modbus master It is assumed that the Modbus master high order device is a personal computer a programmable logic controller PLC or a fieldbus controller in case of Modbus TCP ...

Page 12: ... 1 2km when the communication speed is 9600 bps Terminal resistance 120 Ohm Can be set to on off with switch Error checking method CRC 16 4 2 Modbus TCP Ethernet Communication Specifications Modbus TCP Ethernet communication specifications Item Specifications Communication protocol Modbus TCP IP Communication specifications Ethernet Communication interface RJ 45 Ethernet IEEE 802 3af ANSI X3 263 S...

Page 13: ... 9 5 Connection Specifications This chapter describes the connection specifications for this product ...

Page 14: ...istor at each end of the communication line There is a terminal resistor switch on the base unit Set the switch to the ON position when the terminal resistors are used at both ends of the line one resistor at each end Master RS 485 MODBUS RTU RS 485 RS 485 G G G G G 120 terminal resistor is on 120 terminal resistor Unit ID 1 Unit ID 2 Unit ID 3 Unit ID N N 7 to 254 Slaves The maximum number of con...

Page 15: ...PoE compliant provide 24 VDC to PS 7 M units 2 In case of using a fieldbus controller as a Modbus TCP master Master L2 Switch PoE HUB 1 Slaves Fieldbus controller 2 Ethernet MODBUS TCP PoE HUB 1 Unit ID 1 Unit ID 2 Unit ID 3 Unit ID 4 Unit ID 5 Unit ID 6 Unit ID N N 7 to 254 NOTE ...

Page 16: ...e wiring is correct by referring to 6 1 Wiring Procedure of the PS 7 M series gas detector s instruction manual and the delivery specifications if any The analog output line and power line of the gas detector are not isolated from each other When using with external devices provide isolation to prevent noise from other power lines from interfering with the analog output of the detector When wiring...

Page 17: ...ables Dia 8 11mm x 2pcs Use appropriate cables for the installation environment 1 Run a RS 485 digital signal cable thru the grommet located at the bottom of the base unit and connect the cable wires to their corresponding RS 485 terminals Component Marking on board Function Recommended cable RS 485 terminals A RS 485 IN OUT 2 core shielded twisted pair cable B RS 485 IN OUT GND Shielded Grommet T...

Page 18: ... detector on the terminal block for power cable to avoid 2 point grounding If used in a place exposed to electrical noises use a shielded twisted pair STP cable When using STP cable provide signal grounding so that all the connected devices are ground looped ground continuity to avoid noise interference due to ground discontinuity Set the terminal resistor switch located on the base unit to the ON...

Page 19: ...e unit Component Function Applicable cables RJ 45 jack 8P8C Ethernet and PoE Power Device port 100BASE TX unshielded twisted pair UTP cable Category 5e or greater Cable length Max 100 m distance to HUB When using a PoE compliant switching hub PoE HUB Go to step 2 Turn off the PoE before disconnecting the LAN cable from the RJ 45 jack When using a non PoE compliant switching hub PoE HUB 24 VDC powe...

Page 20: ...d inside the gas detector on the terminal block for power cable to avoid 2 point grounding If used in a place exposed to electrical noises use a shielded twisted pair STP cable 2 Perform the communication setup select DY or ST select the ETHERNET mode and set the 4th value of the IP address with the DIP switches Refer to pages 19 to 21 for the procedure 3 Set the base unit power switch to the ON p...

Page 21: ...eration e g communication becomes disabled 5 3 1 DIP Switches This section explains how to operate the DIP switches Set the base unit power switch to the OFF position before using the DIP switches to avoid incorrect operation or device failure Set the DIP switches in accordance with your selected communication method Ensure that each switch is clearly set to the 1 0 DY ST and Ethernet RS485 positi...

Page 22: ...nit ID for this product Settable range 1 0000 0001 to 254 1111 1110 The unit ID set here will also serve as the 4th value of the IP address when Modbus TCP Ethernet is selected with the mode change switch If the 4th value is set to 0 0000 0000 with the address setting switches it will be superseded by the value set by a web browser The DIP switches are accessible when the address plate is removed ...

Page 23: ...ters the ON status when it is set to the ON position IP address type DIP switch position Switch No 1 DY Dynamic IP address DHCP ON ST Static IP address OFF by default when shipped out 2 Set the communication mode ETHERNET or RS485 Select the Modbus communication mode between ETHERNET and RS485 by using the mode change switch Each DIP switch enters the ON status when it is set to the ON position Co...

Page 24: ... 8 digit number is an 8 bit binary number representing the address The address settable range is 1 0000 0001 to 254 1111 1110 Set value Description 0 0000 0000 Invalid address Modbus RTU RS 485 Do not use the address 0 0000 0000 because the relevant units cannot communicate Modbus TCP Ethernet If the address is set to 0 0000 0000 with the address setting switches it will be superseded by the value...

Page 25: ... address type switch is in the ST static IP address position the address set for Modbus TCP Ethernet communication will supersede The set address represents the 4th value of IP address Set the 4th value of IP address with the address setting switches The default IP address when shipped out is 192 168 100 1 For example if you want to set the IP address of the detector to 192 123 45 10 take the foll...

Page 26: ...e RJ 45 jack and a switching hub 2 When flashing Ethernet or RS 485 communication is in progress 3 Communication status between the base unit and main unit When flashing communication is normal transmitting and receiving are in progress When steady no response from the main unit no receiving When not lit no request from the base unit no transmitting Address plate With address plate removed Status ...

Page 27: ...ion Protocol This chapter describes the communication protocol 1 Modbus communication protocol overview 2 Function codes and their functions 3 Response in the event of an error 4 Message examples 5 Register address map ...

Page 28: ...s setting switches represents the 4th value of the IP address For how to set the address setting switches refer to 3 Set the address of 5 3 1 DIP Switches Do not use the address 255 1111 1111 because the communication will be disabled The address can be set to any value within the settable range but if the same address is used by more than one unit detector the relevant units cannot communicate 2 ...

Page 29: ...nly A Modbus RTU RS 485 message contains an error check code CRC value calculated by the CRC 16 method to detect a request response message error The data size of a CRC value is 2 bytes and they are sent by the byte in the sequence of low order byte followed by high order byte CRC 16 calculation uses data items from unit ID through the one before the error check code the end of the Data The slave ...

Page 30: ...atch the slave will not take any action or send a response message The slave includes the generated CRC value 2 byte error check code in a response message then sends it by the byte in the sequence of low order byte followed by high order byte In the Modbus RTU RS 485 communication if no response is returned from the slave this detector the master must check that the error check code CRC value con...

Page 31: ...s 5 After sending a request message the master checks if it receives a response from the slave If there is no response or exception response message exception code the master will perform a communication error process Master Slave Request message Command Response message Command Response message Exception code No response ...

Page 32: ...start of each message The slave returns a response message after non communication interval idling time of more than 3 5 letter from its receipt of a request message If a space of more than 3 5 letters is detected within a message frame the slave judges that the message frame ends then discards the message then judges the next received data to be the start of the request message Idling time calcul...

Page 33: ...col identifier Protocol ID data size 2 bytes Fixed at 0 Field length data size 2 bytes Quantity of transferred data from to Address Unit identifier data size 1 byte This is unit ID for Modbus RTU and the 4th value of IP address for Modbus TCP Function code data size 1 byte Function code supported by this detector Data data size variable length Message data corresponding to the function code Error ...

Page 34: ...s concentrations status information and device setup details including gas trouble alarm related setups 06 0x06 Write single holding register 125 16 0x10 Write multiple holding registers 123 23 0x17 Read and write multiple holding registers 125 read 121 write Register data access unit is 16 bits data length 1 word Function code 23 0x17 applies to Modbus TCP Ethernet only Register address range use...

Page 35: ...aster should be capable of checking its contents In the Modbus RTU RS 485 communication if a communication error listed in the table below occurs the slave will not return an exception response message and wait for the next request Error Description Framing error The stop bit of the received data cannot be detected Overrun error In the RS 485 communication before reading the received data from the...

Page 36: ...ious request slave is in a busy state 0x07 Negative acknowledge NACK The read write data size of a request message is 0 or exceeds the maximum limit 125 words Refer to 6 2 Function Codes for the function codes supported by this product The maximum data size differs depending on the function code If the specified read write starting register address falls in the reserved area an illegal address err...

Page 37: ...tration and F S code will be read from register addresses 41039 and 41040 Message frame Modbus TCP Modbus RTU Remarks Data item Data size byte No Byte data Hex No Byte data Hex TRXN ID Hi 2 1 0 0x00 Modbus TCP only Lo 2 0 0x00 Protocol ID Hi 2 3 0 0x00 Modbus TCP only Fixed at 00 Lo 4 0 0x00 Quantity of comm data Hi 2 5 6 0x00 Modbus TCP only Number of data which follows unit ID Lo 6 0x06 Unit ID ...

Page 38: ...4 0 0x00 Quantity of comm data Hi 2 5 13 0x00 Modbus TCP only Number of data which follows unit ID Lo 6 0x0D Unit ID 1 7 1 0x01 1 1 0x01 Function code 1 8 3 0x03 2 3 0x03 Quantity of data 1 9 4 0x04 3 4 0x04 Quantity of response data N x 2 bytes N Quantity of registers N range 1 125 Data1 Hi 2 10 25 0x00 4 25 0x00 Sent by the byte in the sequence of high order byte followed by low order byte Data ...

Page 39: ...essage frame Modbus TCP Modbus RTU Remarks Data item Data size byte No Byte data Hex No Byte data Hex TRXN ID Hi 2 1 0 0x00 Modbus TCP only Lo 2 0 0x00 Protocol ID Hi 2 3 0 0x00 Modbus TCP only Fixed at 00 Lo 4 0 0x00 Quantity of comm data Hi 2 5 6 0x00 Modbus TCP only Number of data which follows unit ID Lo 6 0x06 Unit ID 1 7 3 0x03 1 3 0x03 Function code 1 8 6 0x06 2 6 0x06 Starting address Hi 2...

Page 40: ...ex No Byte data Hex TRXN ID Hi 2 1 0 0x00 Modbus TCP only Lo 2 0 0x00 Protocol ID Hi 2 3 0 0x00 Modbus TCP only Fixed at 00 Lo 4 0 0x00 Quantity of comm data Hi 2 5 13 0x00 Modbus TCP only Number of data which follows unit ID Lo 6 0x0D Unit ID 1 7 3 0x03 1 3 0x03 Function code 1 8 6 0x06 2 6 0x06 Starting address Hi 2 9 49 0x00 3 49 0x00 Lo 10 0x31 4 0x31 Data Hi 2 11 17 0x00 5 17 0x00 Write by th...

Page 41: ...RXN ID Hi 2 1 0 0x00 Modbus TCP only Lo 2 0 0x00 Protocol ID Hi 2 3 0 0x00 Modbus TCP only Fixed at 00 Lo 4 0 0x00 Quantity of comm data Hi 2 5 11 0x00 Modbus TCP only Number of data which follows unit ID Lo 6 0x0B Unit ID 1 7 3 0x03 1 3 0x03 Function code 1 8 16 0x10 2 16 0x10 Starting address Hi 2 9 47 0x00 3 47 0x00 Write starting register address Lo 10 0x2F 4 0x2F Quantity of registers Hi 2 11...

Page 42: ...l ID Hi 2 3 0 0x00 Modbus TCP only Fixed at 00 Lo 4 0 0x00 Quantity of comm data Hi 2 5 13 0x00 Modbus TCP only Number of data which follows unit ID Lo 6 0x0D unit ID 1 7 3 0x03 1 3 0x03 Function code 1 8 16 0x10 2 16 0x10 Starting address Hi 2 9 47 0x00 3 47 0x00 Write starting register address Lo 10 0x2F 4 0x2F Quantity of registers Hi 2 11 2 0x00 5 2 0x00 Quantity of registers to be written Ran...

Page 43: ...n two words of data Test mode ON command and test gas concentration will be written to register addresses 40048 relative address 47 0x002F and 40049 relative address 48 0x0030 respectively Test mode ON command ON 0x0001 Test gas concentration 25 F S 0x0019 Message frame Modbus TCP Modbus RTU Remarks Data item Data size byte No Byte data Hex No Byte data Hex TRXN ID Hi 2 1 0 0x00 Lo 2 0 0x00 Protoc...

Page 44: ...Modbus TCP Modbus RTU Remarks Data item Data size byte No Byte data Hex No Byte data Hex TRXN ID Hi 2 1 0 0x00 Lo 2 0 0x00 Protocol ID Hi 2 3 0 0x00 Fixed at 00 Lo 4 0 0x00 Quantity of comm data Hi 2 5 13 0x00 Number of data which follows unit ID Lo 6 0x0D Unit ID 1 7 1 0x01 Function code 1 8 3 0x03 Quantity of data 1 9 4 0x04 Quantity of response data N x 2 bytes N Quantity of registers N range 1...

Page 45: ... 2 CRC 16 Calculation for error check codes Example of transactions in the event of an error is as follows Example of request message The master sends function code 16 0x10 to the slave unit ID 03 The request specifies the non existent register address 40100 relative address 99 0x0063 and number of registers to be written Example of response message The slave returns the following exception respon...

Page 46: ...ombination 0 High High limit 0x0000 1 Low Low limit 0x0001 2 High Low limit 0x0002 40005 4 AL1 delay time R Word Read AL1 delay time Response example 0x0005 when delay time is 5 sec 40006 5 AL2 delay time R Word Read AL2 delay time Response example 0x0005 when delay time is 5 sec 40007 6 Zero suppression value 21vol suppression value for oxygen R Word Read zero suppression value Response example 0...

Page 47: ...ord Read current test mode status ON 0x0001 OFF 0x0000 40018 11 Test gas concentration R Word Read test gas concentration value Response example 0x0019 when test gas concentration is 25 40019 12 Sensor current value R Word Read sensor current value Range 2 00 to 6 00 mA Multiplied by 100 then converted to hex to create the data to send Response example 0x00C8 in case of 200 2 00 mA 40020 13 f valu...

Page 48: ...9 1C Linear table X5Y5 R Word Read linear table X5 Y5 Response example When X5 80 0x0050 high order byte of word data When Y5 80 0x0050 low order byte of word data 40030 1D Linear table X6Y6 R Word Read linear table X6 Y6 Response example When X6 90 0x005A high order byte of word data When Y6 90 0x005A low order byte of word data 40031 1E Main unit software version R Word Read PS 7 M main unit sof...

Page 49: ... sec 40055 36 AL2 delay time W Word Set AL2 delay time Write example 0x0005 to set to 5 sec 40056 37 Zero suppression value 21vol suppression value W Word Set zero suppression value Write example 0x0005 to set to 5 40057 38 Calibration gas concentration W Word Set calibration gas concentration value Write example 0x004B to set to 75 40516 203 Current value device status information R Word Read cur...

Page 50: ...s 41284 503 Modbus setting change permit R W Word Permission for Modbus setting change 41291 50A Dynamic IP address high order R Word Read currently set IP address high order Dynamic IP address high order assigned to DHCP 41292 50B Dynamic IP address low order R Word Read currently set IP address low order Dynamic IP address low order assigned to DHCP 41293 50C DHCP subnet mask high order R Word R...

Page 51: ...ST R Word Read IP address type dynamic or static which is set with IP address type switch 0x0000 Dynamic IP address 0x0001 Static IP address 41305 518 MAC address 1st and 2nd bytes R Word Read MAC address 1st and 2nd bytes of PS 7 M base unit 41306 519 MAC address 3rd and 4th bytes R Word Read MAC address 3rd and 4th bytes of PS 7 M base unit 41307 51A MAC address 5th and 6th bytes R Word Read MAC...

Page 52: ...to 1 to 254 but invalid if set to 255 If set to 0 with the switches it will be superseded by the one set by high order device web browser 41318 525 Subnet mask high order W Word Set subnet mask high order Valid when 0x0001 static IP is set at register address 41304 Invalid if bits are set to 1 0 1 from high to low bit 41319 526 Subnet mask low order W Word Set subnet mask low order Valid when 0x00...

Page 53: ... 49 7 Device Status Information This chapter describes the device operation statuses during gas alarm trouble alarm test mode and maintenance mode ...

Page 54: ... Operation Gas Alarm of the PS 7 M series gas detector s instruction manual The device status information register address 40516 is one word consisting of two bytes Status byte 1 high order byte and Status byte 2 low order byte The 1st stage gas alarm AL1 is assigned to bit1 1 of Status byte 1 and the 2nd stage gas alarm AL2 is assigned to bit 0 of Status byte 1 as shown below Bit assignment gas a...

Page 55: ...vates low flow rate 2 For the information on the LCD refer to 5 6 LCD Indicator Icons of the PS 7 M series gas detector s instruction manual 2 Broken pyrolyzer wire when detector uses a pyrolyzer A broken wire occurs 3 Sensor fault The sensor s zero level output is extremely low or A broken sensor wire occurs applies to CHS 7 combustible gas sensor only The device status information register addre...

Page 56: ... off status and the test gas concentration value by reading the device status information located at register address 40516 It can also check them by reading register address 40017 for test mode and register address 40018 for test gas concentration respectively The device status information register address 40516 is one word consisting of two bytes Status byte 1 high order byte and Status byte 2 l...

Page 57: ...ff via Modbus communication MNT1 or MNT2 appears on the LCD while in maintenance mode and MNT1 appears while in host maintenance mode The host maintenance mode will automatically turn off 10 minutes later Register for host maintenance mode setting Register name Register address Data type Data contents Host maintenance mode on off 40050 Word Set host maintenance mode to on off OFF 0x0000 ON 0x0001 ...

Page 58: ... external devices release the interlocks beforehand as needed to prevent a possible activation of the interlocks during the maintenance mode Trouble alarm will activate if the main unit power switch is set to the OFF position while in any maintenance mode The analog output may change when the main unit power switch is set to the OFF position During normal operation gas monitoring mode ensure the m...

Page 59: ...S code F S value F S code F S value 010 1 030 3 079 0 7 100 10 300 30 070 7 101 100 301 300 700 70 102 1000 302 3000 701 700 702 7000 159 1 5 049 0 4 759 7 5 150 15 040 4 750 75 151 150 400 40 751 750 152 1500 401 400 752 7500 402 4000 020 2 050 5 089 0 8 200 20 500 50 080 8 201 200 501 500 800 80 202 2000 502 5000 801 800 802 8000 259 2 5 069 0 6 099 0 9 250 25 060 6 090 9 251 250 600 60 900 90 2...

Page 60: ...stance are within the limit 4 2 Modbus TCP Ethernet Communication Specifications Incorrect conditions Check and reconnect the IP address subnet mask and default gateway 6 5 Register Address Map Incorrectly set DIP switches for unit ID Check that the unit ID 4th value of the IP address set with the DIP switches is correct Check that the unit ID is not set to 255 Restart the unit after setting with ...

Page 61: ...ommunication interval is not good Check the Modbus RTU protocol communication interval then rewire 6 1 4 Modbus RTU Communication Interval No terminal resistors installed Check that the terminal resistors are used at both ends of the communication line Install them if they are not installed Set the terminal resistor switch to the on position 5 1 System Configuration Received data incorrect Communi...

Page 62: ...2 5 4 Mitsuya naka Yodogawa ku Osaka 532 0036 Japan https www newcosmos global com ...

Reviews: