background image

APPENDIX C:  MODBUS PROTOCOL SERIAL COMMANDS

MODBUS FUNCTION CODES

03 (0x03) Read Holding Registers

This function code is used to read the contents of a contiguous block of holding registers in a 

remote device. The Request specifies the starting register address and the number of registers. 

The registers are addressed starting at zero. Therefore registers numbered 1-16 are addressed as 
0-15. The register data in the response message are packed as two bytes per register, with the 

binary contents right justified within each byte. For each register, the first byte contains the high 

order bits and the second contains the low order bits.

Request

Function code: (1 Byte) 0x03
Starting Address: (2 Bytes) 0x0000 to 0xFFFF
Quantity of Registers: (2 Bytes) 1 to 125 (0x7D)

Response

Function code: (1 Byte) 0x03
Byte count: (1 Byte) 2 x N*
Register value: (N* x 2 Bytes)

*N = Quantity of Registers

Error

Error code: (1 Byte) 0x83
Exception code: (1 Byte) 01, 02, 03, or 04

16 (0x10) Write Multiple registers

This function code is used to write a block of contiguous registers (1 to approx. 120 registers) 

in a remote device. The requested written values are specified in the request data field. Data is 

packed as two bytes per register. The normal response returns the function code, starting
address, and quantity of registers written.

Request

Function code: (1 Byte) 0x10
Starting Address: (2 Bytes) 0x0000 to 0xFFFF
Quantity of Registers: (2 Bytes) 0x0001 to 0x007B
Byte Count: (1 Byte) 2 x N*
Registers Value: (N* x 2 Bytes value)

*N = Quantity of Registers

Response

Function code: (1 Byte) 0x10
Starting Address: (2 Bytes) 0x0000 to 0xFFFF
Quantity of Registers: (2 Bytes) 1 to 123 (0x7B)

C-3

Summary of Contents for STXplus

Page 1: ...he equipment STXplus Signal Transmitter Installation and Operation Manual 97 1180 01 Revision G Jan 2012 O Or rd de er r f fr ro om m C C A A B Br ri ig gg gs s C Co om mp pa an ny y 622 Mary Street S...

Page 2: ...les from the signal processor 2 Ground the welder as close to the welding joint as possible The welding ground must be between the sensor transducer and the weld joint to prevent the welding current f...

Page 3: ...the Modbus or Serial Port Address 2 3 Changing from Half Bridge 3 Wire to Full Bridge 4 Wire 2 3 Enabling Remote Sense 2 3 Enabling Remote Loop Voltage for the 0 20mA 4 20mA 2 3 Enabling the Modbus 5...

Page 4: ...Rate 3 7 Channel Enable 3 7 Tare 3 8 APPENDIX A PRODUCT SPECIFICATIONS A 1 APPENDIX B KISTLER MORSE PROTOCOL SERIAL COMMANDS B 1 Introduction B 1 Command Table B 1 Checksum Calculation B 4 Examples B...

Page 5: ...n analog signal from either half bridge sensors transducers Load Cell Microcell Load Stand II and Load Disc II or from full bridge sensors transducers The analog engine is calibrated using the calibra...

Page 6: ...o not mount the STXplus near high power equipment contactors SCR drives 440V lines etc Refer to Appendix A for environmental specifications before mounting Stand Alone STXplus with Customer Supplied P...

Page 7: ...nnected to the protective earth PE terminal See Appendix D Page D 8 for Installation Instructions for AC Line Varistors Refer to the instructions below and Appendix D DC STXplus operates on 12 30VDC p...

Page 8: ...ches to set the port Changing from Half Bridge 3 Wire to Full Bridge 4 Wire Half bridge will have 12V excitation and full bridge will have 10V excitation automatically Enabling Remote Sense The remote...

Page 9: ...tor is used where there is a long cable run causing a loss of communications The end of line resistor is used on the last device in the serial chain Changing from RS 422 to RS 485 SW5 changes the Seri...

Page 10: ...seconds the STXplus exits the programming mode Trim the 0mA Current Output 1 Press the DOWN or UP buttons until the PARAM LEDs look like Press the ENTER button 2 Press the UP button to adjust the 0mA...

Page 11: ...rocedure sets up the input voltage range for all 4 channels simultaneously Setting Range 1 Press the DOWN or UP buttons until the PARAM LEDs look like Press the ENTER button 2 Press the UP or DOWN but...

Page 12: ...Accuracy Calibration If a monitoring device is not being used connect the ammeter positive lead to the positive terminal of the current loop Connect the negative lead to the negative terminal of the c...

Page 13: ...own Quantity of Material NOTE If you do not press a button within 15 seconds the STXplus exits the programming mode Once step 3 has been completed above the HI Span value will be restored Calibration...

Page 14: ...DOWN buttons until the appropriate current output is achieved Press the ENTER button 3 Add a known quantity of material to the vessel 4 Press the DOWN or UP buttons until the PARAM LEDs look like Pre...

Page 15: ...net The default is gross weight Current Output Fail safe If the STXplus detects a problem one of three fail safe Fsafe conditions can be applied to the analog current output 1 0mA or 4mA 2 20mA 3 No c...

Page 16: ...t output as well as the serial output The DSP when in analog mode will use a default factor of 80 and a quality of 3 DSP Enable DSP Enable turns the DSP Filter on and off The default state is on DSP S...

Page 17: ...the STXplus current output is in net mode the current output will correspond to the change in weight since the last time the vessel was tared rather than the total weight of material in the vessel 2 W...

Page 18: ...CHAPTER 3 STAND ALONE ANALOG CALIBRATION AND SET UP Table 3 2 3 9...

Page 19: ...remote marque display or slave communications via Kistler Morse protocol Port 2 RS 485 Baud Rate 9600 19 2K 38 4K 115 2K Modbus RTU protocol ANALOG OUTPUT Format 0 20mA 4 20mA 20 0mA or 20 4mA Resolut...

Page 20: ...ocol syntax used for serial communications between the host or master PC etc and the STXplus Detailed explanations and examples of the commands are included If any parameter or set of parameters that...

Page 21: ...APPENDIX B KISTLER MORSE PROTOCOL SERIAL COMMANDS B 2...

Page 22: ...APPENDIX B KISTLER MORSE PROTOCOL SERIAL COMMANDS B 3...

Page 23: ...character A and the checksum character ss Overflows from the addition are ignored Request To request gross engineering units such as weight from an STXplus the command is aaWssr If the STXplus s addre...

Page 24: ...oduct identification code code is 36 for the STXplus For this example the master requests the code from an STXplus at address 01 which returns a code of 36 and a checksum of 69 Request from Master Res...

Page 25: ...Xplus at address 01 which returns a net weight of 4466 and a checksum of 2F assuming tht the format selected was 2 X Request from Master Response from STXplus aaBssr A ffffffssr Format 01BA3r A 4466 2...

Page 26: ...format to 4 to an STXplus at address 01 Any of the 6 leading zeros may be omited Request from Master Response from STXplus aawa000000dssr Ar Format 01wa00000048Dr Ar Example A Command Read Current Out...

Page 27: ...ful but there was a less than desirable difference between the HI Span and LO Span values or 2 for successful but the HI Span value was less than the LO Span value For this example the master sends th...

Page 28: ...sr Addssr Format 01V0E7r A0161r Example G0 Command Read Vessel Name This command is sent by the master to request the STXplus to send its vessel name The maximum number of characters for a vessel name...

Page 29: ...of 1 0 20mA and a checksum of 51 Request from Master Response from STXplus aan2ssr A000000dssr Format 01n200r A000000151r Example m2 Command Write Output Current Range This command is sent by the mas...

Page 30: ...esponse from STXplus aaR2ssr A fffffffssr Format 01R2E5r A92347 56Cr Example w2 Command Write Digital Delta Scale Factor Weight This command is sent by the master to set the delta weight calibration v...

Page 31: ...us which would only be in effect when in digital mode This would force a re calibration of the digital zero counts value based on the A D counts currently being read applied to the zero weight value t...

Page 32: ...uests the digital high span weight for an STXplus at address 01 assuming a format of 3 X X which returns 347 5 engineering units and a checksum of 01 Request from Master Response from STXplus aaR6ssr...

Page 33: ...ital Low Span Weight This command is sent by the master to request the STXplus to send the low span weight calibration value which would only be in effect when in digital mode This would be the weight...

Page 34: ...in digital mode refer to commands n1 m1 for analog digital mode required in order for the current output to change over the entire range that the current output is set to refer to commands n2 m2 for c...

Page 35: ...Xplus aawC fffffffssr Ar Format 01wC14865 51r Ar Example RD Command Read Tare Weight This command is sent by the master to request the STXplus to send the tare weight value This value would be the dif...

Page 36: ...e 0 for DSP Filter disabled or 1 for DSP Filter enabled Thedefault value is 1 enabled For this example the master requests the DSP Filter enable state for an STXplus at address 01 which returns 1 enab...

Page 37: ...r an STXplus at address 01 assuming a format of 2 X which returns 1896 and a checksum of 06 Request from Master Response from STXplus aaRYssr Affffffffssr Format 01RY0Cr A1896 06r Example wY Command W...

Page 38: ...f an STXplus The trim value is used to calibrate the current output engine at the 20mA point The range of acceptable values is 0 65535 For this example the master sets the 20mA trim value for an STXpl...

Page 39: ...nd is sent by the master to request the STXplus to send the current output high weight calibration value This would be the maximum A D counts if operating in analog mode or the maximum weight units if...

Page 40: ...fssr Format 01RAF4r A347 501r Example wA Command Write Current Output Low Weight This command is sent by the master to set the current output low weight calibration value of an STXplus This would be t...

Page 41: ...not enabled and a checksum of 50 Request from Master Response from STXplus aatIssr A000000dssr Format 01tI1Er A000000050r Example bI Command Write Current Output Test Mode This command is sent by the...

Page 42: ...dddssr Format 01tJ1Cr A000784366r Example bJ Command Write Current Output Value in Counts This command is sent by the master to set the current output value of an STXplus This can only be done if the...

Page 43: ...a checksum of 51 Request from Master Response from STXplus aaG8nssr A000000dssr Format 01G8212r A000000151r Example P8 Command Write Setpoint Fail safe Mode This command is sent by the master to set...

Page 44: ...and a checksum of 50 Request from Master Response from STXplus aaG7nssr A000000dssr Format 01G7211r A000000050r Example P7 Command Write Setpoint Tracking Mode This command is sent by the master to s...

Page 45: ...ddress 01 which returns 0 test mode disabled and a checksum of 50 Request from Master Response from STXplus aaGTnssr A000000dssr Format 01GB21Cr A000000050r Example PB Command Write Setpoint Test Mode...

Page 46: ...lus aaGSnssr A ffffffffssr Format 01GS12Cr A347 5132r Example PS Command Write Raw In Linearization Value This command is sent by the master to set the raw in linearization value of an STXplus Accepta...

Page 47: ...r A000000050r Example m3 Command Write Linearization Enable This command is sent by the master to set the linearization enable status of an STXplus The range of acceptable values is 0 1 where 0 is dis...

Page 48: ...L3 Command Write AB RIO Address This command is sent by the master to set the AB RIO address of an STXplus The range of acceptable values is 0 255 For this example the master sets AB RIO address for a...

Page 49: ...000dssr Ar Format 01L5113r Ar Example K6 Command Read AB RIO Last Rack This command is sent by the master to request the STXplus to send the AB RIO last rack The range of acceptable values is 0 1 wher...

Page 50: ...STXplus aaK1ssr A000000dssr Format 01K8E4r A000000050r Example K9 Command Read DeviceNet Address This command is sent by the master to request the STXplus to send the DeviceNet address The range of a...

Page 51: ...at 01KBEEr A1234CAr Example KC Command Read ProfiBus PCB Present This command is sent by the master to request the STXplus to send confirmation that the ProfiBus PCB has been detected The range of acc...

Page 52: ...monitor state for an STXplus at address 01 to 1 On which returns a checksum of 32 Request from Master Response from STXplus aawWnssr Ar Format 01wW60r Ar Example e1 Command Read Serial Port 1 Baud Rat...

Page 53: ...d ModBus Port Baud Rate This command is sent by the master to request the STXplus to send the ModBus port baud rate The range of acceptable values is 0 3 where 0 for 9600K 1 for 19 2K 2 for 38 4K or 3...

Page 54: ...eserved for exception responses When a message is sent the function code field tells what kind of action to perform Function code 0 is not valid Sub function codes are added to some function codes to...

Page 55: ...er all the bytes of the message have been applied is the CRC value When the CRC is appended to the message the low order byte is appended first followed by the high order byte Modbus PDU for serial li...

Page 56: ...Quantity of Registers 2 Bytes 1 to 125 0x7D Response Function code 1 Byte 0x03 Byte count 1 Byte 2 x N Register value N x 2 Bytes N Quantity of Registers Error Error code 1 Byte 0x83 Exception code 1...

Page 57: ...of the request returned after the coil state has been written Request Function code 1 Byte 0x05 Output Address 2 Bytes 0x0000 to 0xFFFF Output Value 2 Bytes 0x0000 or 0xFF00 Response Function code 1...

Page 58: ...The exception response message has two fields that differentiate it from a normal response Function Code Field In a normal response the device echoes the function code of the original request in the...

Page 59: ...DBUS PROTOCOL SERIAL COMMANDS COMMANDS Tare Request Used to force a tare on the vessel The response is an echo of the query after the Action state has been forced Data 0xFF00 will force a tare to be p...

Page 60: ...the device IMPORTANT POINTS All register values that are numeric are either 1 byte 1 word or 1 double word integers For those values that are floating point values you must read the format register t...

Page 61: ...APPENDIX C MODBUS PROTOCOL SERIAL COMMANDS Table C 1 Modbus Address Map C 8...

Page 62: ...APPENDIX C MODBUS PROTOCOL SERIAL COMMANDS C 9 Table C 1 Modbus Address Map continued...

Page 63: ...APPENDIX C MODBUS PROTOCOL SERIAL COMMANDS Table C 1 Modbus Address Map continued C 10...

Page 64: ...APPENDIX C MODBUS PROTOCOL SERIAL COMMANDS C 11 Table C 1 Modbus Address Map continued...

Page 65: ...APPENDIX C MODBUS PROTOCOL SERIAL COMMANDS Table C 1 Modbus Address Map continued C 12...

Page 66: ...CAL DRAWINGS This appendix contains the following technical drawings for the STXplus signal processor DRAWING NUMBER TITLE TI SP STXP 01 Model STXplus Enclosure Boardset Installation Dimensions TI SP...

Page 67: ...APPENDIX D TECHNICAL DRAWINGS D 2...

Page 68: ...APPENDIX D TECHNICAL DRAWINGS D 3...

Page 69: ...APPENDIX D TECHNICAL DRAWINGS D 4...

Page 70: ...APPENDIX D TECHNICAL DRAWINGS D 5...

Page 71: ...APPENDIX D TECHNICAL DRAWINGS D 6...

Page 72: ...APPENDIX D TECHNICAL DRAWINGS D 7...

Page 73: ...uctions For AC Line Varistors Shipped along with your STXplus you will find a small plastic bag with 3 Varistors These devices must be installed on the incoming AC line that feeds the AC DC power supp...

Page 74: ...NOTES...

Page 75: ...NOTES...

Page 76: ...rg SC 29306 800 426 9010 Toll Free 864 574 2763 Phone 864 574 8063 Fax www kistlermorse com sales kistlermorse com O Or rd de er r f fr ro om m C C A A B Br ri ig gg gs s C Co om mp pa an ny y 622 Mar...

Reviews: