Samwontech TEMP1000 Series Communications Manual Download Page 20

SAMWONTECH 

1th  Edition  of  TEMP1000_Series  IM  :  Apr.  2014                                                                          Page    18  /  63 

6. MODBUS Protocol 

 
 

6.1 The Frame Structure of MODBUS protocol 

 
 

▣ Data Format 

 

Item 

ASCII 

RTU 

Protocol Header 

:(Colon) 

N/A 

Protocol Tail 

[CR][LF] 

N/A 

Data length 

7-bit(Fixed) 

8-bit(Fixed) 

Data type 

ASCII 

Binary 

Error detecting 

LRC 

(Longitudinal Redundancy Check) 

CRC-16 

(Cyclic Redundancy Check) 

Data time interval 

Under 1sec. 

Under 24-bit time 

 
 

▣ 

The Frame Structure of MODBUS protocol

 

 

▶ Modbus ASCII  

 

Protocol Header 

Address 

Function Code 

Data 

LRC Check 

Protocol Tail 

1 character 

2 character 

2 character 

N character 

2 character 

2 character 

(CR+LF) 

 

▶ Modbus RTU  

 

Protocol Header 

Address 

Function Code 

Data 

LRC Check 

Protocol Tail 

N/A 

8-Bit 

8-Bit 

N * 8-Bit 

16-Bit 

N/A 

 
 
▪ N : Number of Hexadecimal data 
 
 

Summary of Contents for TEMP1000 Series

Page 1: ...COMMUNICATION MANUAL Programmable Controller TEMP1000 SERIES...

Page 2: ...1300 TEMP1500 and TEMP1900 The model stated the manual content is TEMP1500 Contents 1 Safety Precautions 1 2 Communication Specifications 3 3 Communication Setting 4 4 Wiring for Communication 5 5 Com...

Page 3: ...C Symbolizes Supplementary Explanation The information with this symbol describes additional explanation for features D Symbolizes Reference This symbol indicates further information and page to refe...

Page 4: ...alfunction Limitation of Liability A SAMWONTECH does not guarantee or accept responsibility for this product other than the clauses stated in our warranty policy B SAMWONTECH assumes no liability to a...

Page 5: ...Parameter Range Description PROTOCOL PCLINK Default protocol PCLINK SUM Default protocol CheckSum MODBUS ASC MODBUS ASCII MODBUS RTU MODBUS RTU SPEED BPS 9600 9600 bps 19200 19200 bps 38400 38400 bps...

Page 6: ...over In Figure 2 Communication settings by moving the socket It is recommended to use tool like tweezers for setting socket to pin header correctly Make sure setup completed correctly Figure 1 TEMP150...

Page 7: ...terface setting RS232C RS485 Modular Connector Pin Mapping for COM2 port Description of Modular Connector Pin Mapping for COM2 port PIN no RS232C RS485 Signal Symbol Signal Symbol 1 Transmit Data TxD...

Page 8: ...1 slave TEMP1500 controllers can be connected to a master device by multi drop networking Make sure to install 200 1 4W resistor on Last Leg at both end of terminal Slave and Master PC PLC TEMP1500 CO...

Page 9: ...1500 Command Function Command for communication Refer to 5 2 5 10 Delimiter Symbolize to separate Command and Data by Comma Data Formal text strings regulated by communication command rule Check Sum S...

Page 10: ...SD 05 0001 by ASCII code is 2C8 and lower digit 2 characters C8 will be used for CheckSum Text 0 1 R S D 0 5 0 0 0 1 Ascii value 30 31 52 53 44 2C 30 35 2C 30 30 30 31 ASCII Table High Low 0 1 2 3 4 5...

Page 11: ...ision of TEMP1500 Read Write Command Command Description RSD Read data in consecutive D Register in sequence Read RRD Read data in arbitrary single D Register Read WSD Write data in consecutive D Regi...

Page 12: ...Code SUM CR LF Description of Error Code Error Code Description Remarks 01 Invalid Command setting 02 Invalid D Register setting 04 Data Setting Error Invalid text data input Available 0 9 A F hexadec...

Page 13: ...er 1 64 Data Hexa decimal 16bit string 4 character with no decimal point Example To read the D Register FROM D0001 NPV TO D0002 NSP Request stx 01RSD 03 0001 cr lf Request with CheckSum stx 01RSD 03 0...

Page 14: ...bytes 1 2 3 1 2 1 4 1 Frame STX Address RRD OK Data 1 1 4 2 1 1 Data n SUM CR LF Count Number 1 64 Data Hexa decimal 16bit string 4 character with no decimal point Example To read the D Register D000...

Page 15: ...1 Data n SUM CR LF Response Message Frame bytes 1 2 3 1 2 2 1 1 Frame STX Address WSD OK SUM CR LF Count Number 1 64 Data Hexa decimal 16bit string 4 character with no decimal point Example To write...

Page 16: ...onse Message Frame bytes 1 2 3 1 2 2 1 1 Frame STX Address WRD OK SUM CR LF Count Number 1 64 Data Hexa decimal 16bit string 4 character with no decimal point Examlpe To write 50 0 into the D0102 TSP...

Page 17: ...Frame bytes 1 2 3 1 2 1 4 1 4 Frame STX Address STD Count Number D Reg 1 D Reg 2 1 1 4 1 4 2 1 1 D Reg n 1 D Reg n SUM CR LF Response Message Frame bytes 1 2 3 1 2 2 1 1 Frame STX Address STD OK SUM...

Page 18: ...which had been registered by STD command Request Message Frame bytes 1 2 3 2 1 1 Frame STX Address CLD SUM CR LF Response Message Frame byte 1 2 3 1 2 1 4 1 4 Frame STX Address CLD OK Data 1 Data 2 1...

Page 19: ...Address AMI SUM CR LF Response Message Frame bytes 1 2 3 1 2 1 Frame STX Address AMI OK 9 2 7 2 1 1 Model Name SPACE Version Revision SUM CR LF Example To confirm controller own information Request st...

Page 20: ...or detecting LRC Longitudinal Redundancy Check CRC 16 Cyclic Redundancy Check Data time interval Under 1sec Under 24 bit time The Frame Structure of MODBUS protocol Modbus ASCII Protocol Header Addres...

Page 21: ...Back detecting test Function Code Description 03 Read data in consecutive D Register in sequence 06 Write data to arbitrary single D Register 08 Diagnostics Loop Back Test 16 Write data to consecutive...

Page 22: ...message to read the D Register FROM D0001 NPV TO D0002 NSP should be MODBUS ASCII 010300000002FA cr lf MODBUS RTU 010300000002C40B D Register has to be subtracted 1 from the designated address number...

Page 23: ...LF Exmaple Request message to write 2 to D0100 pattern number should be MODBUS ASCII 01060063000294 cr lf MODBUS RTU 010600630002F815 D Register has to be subtracted 1 from the designated address numb...

Page 24: ...haracters 16 Bit Protocol Tail 2 characters CR LF Exmaple Request message to test loopback for self diagnosis should be MODBUS ASCII 010800000002F5 cr lf MODBUS RTU 01080000000261CA Response Message F...

Page 25: ...aracters 8 Bit Data n Lo 2 characters 8 Bit Error detecting 2 characters Protocol Tail 2 characters CR LF 16 Bit Example Request message to write 99 to the D0110 TEMI OP_H and 50 to the D0111 TEMI OP_...

Page 26: ...00 D0999 INPUT Sensor Input setting D1000 D1099 OUTPUT Control retransmission Output setting D1100 D1199 DO CONFIG1 DO Digital Output Relay setting 1 D1200 D1299 DO CONFIG2 DO Digital Output Relay set...

Page 27: ...WAIT 2 PROG IS3 TS3 ALM3 T3 UP UP 3 HOLD IS4 TS4 ALM4 T4 DOWN DOWN 4 WAIT IS5 TS5 T5 SOAK SOAK 5 AT IS6 TS6 T6 FEND FEND 6 IS7 TS7 T7 PTEND PTEND 7 IS8 TS8 1REF 1REF 8 2REF 2REF 9 10 11 12 13 14 15 B...

Page 28: ...eg D0001 NPV Current PV D0002 NSP Current SP D0005 HMVOUT Heating output volume D0006 CMVOUT Cooling output volume D0007 MVOUT Control output volume D0009 CPIDNO Currently running PID number D0024 RUN...

Page 29: ...DANGER DISPLAY Set to the usage of warning 0 OFF 1 ON D0149 BUZ ONOFF Buzzer sound 0 UNUSE 1 USE D0152 UTAG_USING Tags enable 0 OFF 1 ON D0153 D0155 UTAG NAME1 UTAG NAME3 Tag name is set up to 6 digi...

Page 30: ...tion D0104 OP MODE PROG 0 Set PROG Operation MODE FIX 1 Set FIX Operation MODE D0105 PWR MODE STOP 0 Not using Power Mode COLD 1 COLD MODE HOT 2 HOT MODE To activate PROG operation RUN or FIX operatio...

Page 31: ...211 C HOUR Current HOUR setting in TEMP1500 D0212 C MIN Current MN setting in TEMP1500 D0213 R YEAR YEAR setting for RESERVE Operation D0214 R MONTH MONTH setting for RESERVE Operation D0215 R DAY DAY...

Page 32: ...MSP Middle SP for ON OFF SIGNAL T1 D0303 T1 HSP High SP for ON OFF SIGNAL T1 D0304 T1 HDV High zone Deviation for operating Point at High Zone T1 D0305 T1 LDV Low zone Deviation for operating Point at...

Page 33: ...of INNER SIGNAL1 0 SP 1 PV 2 MV D0402 IS1 BAND Direction Band of INNER SIGNAL1 0 IN B 1 OUT B D0403 IS1 RH Range High of INNER SIGNAL1 D0404 IS1 RL Range Low of INNER SIGNAL1 D0405 IS1 DYT DELAY TIME...

Page 34: ...ALM4 H_POINT Limit High point of ALARM signal 4 D0529 ALM4 L_POINT Limit Low point of ALARM signal 4 D0530 ALM4 HYS Hysteresis of ALARM signal 4 D0531 ALM4 DYT DELAY TIME of ALARM signal 4 D Register...

Page 35: ...IME SIGNAL 2 D0602 TS2DYTM_L DELAY TIME MIN SEC of generating TIME SIGNAL 2 D0603 TS2KPTM_H OPER TIME HOUR to keep generating TIME SIGNAL 2 D0604 TS2KPTM_L OPER TIME MIN SEC to keep generating TIME SI...

Page 36: ...tion criteria 0 PV 1 SP General Heating PID setting D Register D Reg Symbol Descriptions D0717 1_HP Proportional band of PID1 D0718 1_HI Integral time of PID1 D0719 1_HD Differential time of PID1 D072...

Page 37: ...CP Proportional band of Cooling PID6 D0782 6 _CI Integral time of Cooling PID6 D0783 6 _CD Differential time of Cooling PID6 D0785 1 DB Setting of the DEAD BAND for PID 1 in H C TYPE D0790 6 DB Settin...

Page 38: ...ion D0802 COM2 BPS COM2 Communication speed Baud Rate information D0803 COM2 PARITY COM2 Parity information D0804 COM2 STOP BIT COM2 Stop Bit information D0805 COM2 DATA LENGTH COM2 Data Length inform...

Page 39: ...t the direction 0 UNSET 1 UP 2 DOWN D0907 INRH Setting the High limit range of use D0908 INRL Setting the Low limit range of use D0909 BIAS Setting the previous range revision value D0910 INFL Removes...

Page 40: ...ergency setting D1009 ARW ARW Anti Reset Wind up sets the value of prevention D1011 UPOPR Change the setting up of the control output D1012 DNOPR Change the setting of control output is falling D1015...

Page 41: ...TIME for RUN SIGNAL D1203 D1204 SOPN RLY SOPN KPT RLY No on I O and KEEP TIME for SENSOR OPEN SIGNAL D1205 D1206 WAIT RLY WAIT KPT REALY No on I O and KEEP TIME for WAIT SIGNAL D1207 D1208 FIXTIMER RL...

Page 42: ...STEP D1304 DI4 OP_MODE OPERATION MODE when DI 4 16 ON 0 ERROR 1 PATTERN SELECTION D1305 DIDET TIME DETECT TIME to recognize DI ERROR from actual occurrence D1306 BUZ TIME Sets time for DI Error buzze...

Page 43: ...D Setting the USER KEY type 0 UNUSE 1 USE 2 Buz Off 3 User set D1606 D1609 UKEY NAME1 UKEY NAME4 Set the name of USER KEY D1611 D1622 INFORM1 NAME1 INFORM1 NAME13 Name of INIT INFORMATION 1 when setti...

Page 44: ...PT NAME READ Read PTN NAME in D2001 7 PT NAME WRITE Write PTN NAME in D2001 8 ALL PT Write pattern profile at D2001 into D2200 D2008 ANSWER 0 FULL Excessive number of pattern or segment setting 1 DON...

Page 45: ...ET 1 SEG HOLD 2 LINK RUN D2052 LINK PT LINK PATTERN 1 80 D2056 SEG_RPT S1 SEGMENT REPEAT START 1 D2057 SEG_RPT E1 SEGMENT REPEAT END 1 D2058 SEG_RPT C1 SEGMENT REPEAT COUNT 1 D2059 SEG_RPT S2 SEGMENT...

Page 46: ...n D2001 Write SEGMENT number to read profile in D2002 Write READ TRIGGER 2 in D2007 Stay until reading D2008 response DONE 1 Reads profile TSP of temp humi process time etc in D2026 D2041 Above proces...

Page 47: ...P1500 Write PATTERN number to program in D2001 Write SEGMENT number to program in D2002 Write profile TSP of process time etc in D2026 D2041 Write WRITE TRIGGER 3 in D2007 Stay until reading D2008 res...

Page 48: ...3 Below describes process step to write program in D2145 D2167 Write PATTERN number to program in D2001 Write 0 of SEGMENT number to D2002 Write profile TSP of process time etc in D2045 D2067 Write WR...

Page 49: ...tern Below describes step to delete pattern Write SOURCE PATTERN number to copy in D2001 Write TARGET PATTERN number to paste in D2003 D2004 Write PT COPY TRIGGER 4 in D2007 Stay until reading D2008 r...

Page 50: ...rn D2401 D2499 C SRTIME_L1 C SRTIME_L99 Total operation time Minute Second in reading pattern D2501 D2599 C TS1_1 C TS1_99 TS1 in reading pattern D2601 D2699 C TS2_1 C TS2_99 TS2 in reading pattern D2...

Page 51: ...D3807 LOG1_DYT4 Set the delay time 4 of the LOGIC SIG 1 D3808 LOG1_OPERAND1 Set the operator 1 of LOGIC SIG 1 D3809 LOG1_OPERAND2 Set the operator 2 of LOGIC SIG 1 D3810 LOG1_OPERAND3 Set the operator...

Page 52: ...P IS3 RL ALM2 HYS 17 USEROUT STSL R HOUR T3 HSP IS3 DYT ALM2 DYT 18 USEROUT STSH R MIN T3 HDV 19 DI DATA T3 LDV IS4 TYPE ALM3 TYPE 20 ADERR STS RESTRICT_MAIN IS4 BAND ALM3 POINT 21 RUN ACCTIME_H IS4 R...

Page 53: ...59 SA4 POINT 60 USER KEY TIME_VALID SA4 H_POINT 61 START_YEAR SA4 L_POINT 62 START_MON SA4 HYS 63 UTAG_USING START_DAY SA4 DYT 64 UTAG NAME1 START_HOUR SA5 TYPE 65 START_MIN SA5 POINT 66 END_YEAR SA5...

Page 54: ...6DYTM_L 1 HI ALM2 RLY 19 TS6KPTM_H 1 HD ALM3 RLY 20 TS6KPTM_L 1 HOH ALM4 RLY 21 TS7DYTM_H 1 OL SA1 RLY 22 TS7DYTM_L 1 MR SA2 RLY 23 TS7KPTM_H 1 HHYS SA3 RLY 24 TS7KPTM_L 1 LHYS SA4 RLY 25 TS8DYTM_H 2...

Page 55: ...RLY12 67 TS18KPTM_H 1 CI 2 HOL USER RLY_ON OFF 68 TS18KPTM_L 1 CD 3 HOL LOG OUTRLY1 69 TS19DYTM_H 2 CP 4 HOL LOG SRCRLYa1 70 TS19DYTM_L 2 CI 5 HOL UNITNAME_1 LOG SRCRLYb1 71 TS19KPTM_H 2 CD 6 HOL UNIT...

Page 56: ...DI2 NAME10 DI10 NAME10 INFORM1 NAME12 LAMP_SAL2 23 ERROR RLY DI8 OP DI2 NAME11 DI10 NAME11 INFORM1 NAME13 LAMP_SAL3 24 ERROR KPT DI8 DVT DI2 NAME12 DI10 NAME12 INFORM2 NAME1 LAMP_SAL4 25 FEND RLY DI9...

Page 57: ...DI6 NAME2 DI14 NAME2 63 DI6 NAME3 DI14 NAME3 64 DI6 NAME4 DI14 NAME4 65 DI6 NAME5 DI14 NAME5 66 DI6 NAME6 DI14 NAME6 67 DI6 NAME7 DI14 NAME7 68 DI6 NAME8 DI14 NAME8 69 DI6 NAME9 DI14 NAME9 70 DI6 NAM...

Page 58: ...1 C TSP21 C SRTIME_H21 22 LED8 NAME1 LED41 NAME1 PATTERN_NAME12 NPT22 C TSP22 C SRTIME_H22 23 LED8 NAME2 LED41 NAME2 NPT23 C TSP23 C SRTIME_H23 24 LED8 NAME3 LED41 NAME3 NPT24 C TSP24 C SRTIME_H24 25...

Page 59: ...23 NAME1 LED56 NAME1 SEG_RPT C4 NPT67 C TSP67 C SRTIME_H67 68 LED23 NAME2 LED56 NAME2 NPT68 C TSP68 C SRTIME_H68 69 LED23 NAME3 LED56 NAME3 NPT69 C TSP69 C SRTIME_H69 70 LED24 NAME1 LED57 NAME1 NPT70...

Page 60: ...SRTIME_L23 C TS1_23 C TS2_23 C TS3_23 C TS4_23 C TS5_23 24 C SRTIME_L24 C TS1_24 C TS2_24 C TS3_24 C TS4_24 C TS5_24 25 C SRTIME_L25 C TS1_25 C TS2_25 C TS3_25 C TS4_25 C TS5_25 26 C SRTIME_L26 C TS1...

Page 61: ...2 C TS1_72 C TS2_72 C TS3_72 C TS4_72 C TS5_72 73 C SRTIME_L73 C TS1_73 C TS2_73 C TS3_73 C TS4_73 C TS5_73 74 C SRTIME_L74 C TS1_74 C TS2_74 C TS3_74 C TS4_74 C TS5_74 75 C SRTIME_L75 C TS1_75 C TS2_...

Page 62: ...TS7_23 C TS8_23 C SEGAL1_23 C SEGAL2_23 C SEGAL3_23 24 C TS6_24 C TS7_24 C TS8_24 C SEGAL1_24 C SEGAL2_24 C SEGAL3_24 25 C TS6_25 C TS7_25 C TS8_25 C SEGAL1_25 C SEGAL2_25 C SEGAL3_25 26 C TS6_26 C TS...

Page 63: ...72 C SEGAL1_72 C SEGAL2_72 C SEGAL3_72 73 C TS6_73 C TS7_73 C TS8_73 C SEGAL1_73 C SEGAL2_73 C SEGAL3_73 74 C TS6_74 C TS7_74 C TS8_74 C SEGAL1_74 C SEGAL2_74 C SEGAL3_74 75 C TS6_75 C TS7_75 C TS8_75...

Page 64: ..._SIGNAL2 20 C SEGAL4_20 C SEGPID_20 LOG2_ACT2 LOG8_ACT2 21 C SEGAL4_21 C SEGPID_21 LOG2_DYT2 LOG8_DYT2 22 C SEGAL4_22 C SEGPID_22 LOG2_SIGNAL3 LOG8_SIGNAL3 23 C SEGAL4_23 C SEGPID_23 LOG2_ACT3 LOG8_AC...

Page 65: ...SEGAL4_69 C SEGPID_69 LOG5_DYT3 70 C SEGAL4_70 C SEGPID_70 LOG5_SIGNAL4 71 C SEGAL4_71 C SEGPID_71 LOG5_ACT4 72 C SEGAL4_72 C SEGPID_72 LOG5_DYT4 73 C SEGAL4_73 C SEGPID_73 LOG5_OPERAND1 74 C SEGAL4_7...

Page 66: ...Wonmi gu Buchon si Gyeonggi do Korea 420 773 TEL 82 32 326 9120 FAX 82 32 326 9119 Website http www samwontech com e mail webmater samwontech com The contents of this document are subject to change wi...

Reviews: