Home
TP4-WT4 Serial Communications Output Addendum
Contents
1. is address 1 lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII t Prt mode The display values for the active input channels can be sent in ASCII format from the serial port at programmable regular time periods for output to a serial printer PLC or computer The PF Fit SEES function allows the time period for the print output to be set The available range is from 1 to 7200 seconds For example if set to 10 seconds the TP4 will send the channel information via the serial port every 10 seconds To access and use this output method the G Pu amp function must be set to B Pre A typical format for four active channels in scanning mode is CH1 855 CH2 845 CH3 859 CH4 845 A typical format for four active channels in arithmetic mode is TOTAL 3404 CH1 855 CH2 845 CH3 859 CH4 845 Each output string is preceded by a start of text character lt STX gt and ends in a carriage return lt CR gt TPWTADD 1 4 0 9 of 19 C ALL mode This mode operates in the same manner as the Zant mode except that all active channels are transmitted In scanning mode channel 1 is the first channel to be transmitted In arithmetic mode operation the result is transmitted first followed by channel 1 etc A typical format for the data would be lt STX gt 90 30 0 40 20 lt CR gt Where 90 is the result 30 is channel 1 value 0 is channel 2 value etc 10 of 19 TPWTADD 1 4 0 3 Modbus RTU functions When using Modbus RTU communications the in
2. request is sent as 0 then the records will start at the earliest time in log memory S is the sign lt SPACE gt for positive values and for negative 1111 2222 etc are the values for each channel Values will only be transmitted for active channels Invalid readings from any channel will be received as the overrange value gt gt for that channel If the start time requested is not present in the log then lt ACK gt DA lt CR gt will be returned TPWTADD 1 4 0 17 of 19 Transmit All Logged Data lt STX gt DA lt CR gt A lt CR gt Instructs the unit to transmit the entire data log All log records since the last log memory reset will be sent to the host The unit will respond with lt ACK gt DAA lt CR gt followed by all log record sent in the same format as above Transmit Record Block Transmit System Time lt STX gt DA lt CR gt T lt CR gt Instructs the instrument to transmit the current time in Julian time format as follows lt ACK gt DAT TTTTTTTTTT lt CR gt Transmit the Log Start Time lt STX gt DA lt CR gt S lt CR gt Instructs the instrument to transmit the log start time i e the time stamp on the first record in the log Note that if the memory has wrapped around i e has started to overwrite existing logged records that the log start time will not be the original time the log started since this time stamp and associated log record has been overwritten The returned data format is lt ACK gt DA
3. lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 7 Set low alarm setpoint lt STX gt IA lt CRS gt N lt CRSXYYYYY lt CR gt e g AIN AMIAM1000A to set alarm 1 low setpoint to 1000 using a terminal program address 1 Instructs unit to set the low alarm setpoint value Format of returned data is lt ACK gt IANXYYYYY lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII l echo command received I 108 Dec 6C Hex A is the responding units address N is the relay number in ASCII X SPACE for positive and for negative YYYYY is the setpoint value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 8 Set high alarm setpoint lt STX gt hA lt CR gt N lt CR gt XYYYYY lt CR gt e g ALN AM1AM5000A to set alarm 1 low setpoint to 5000 using a terminal program address 1 Instructs unit to set the high alarm setpoint value Format of returned data is lt ACK gt hANXYYYYY lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII echo command received h 104 Dec 68 Hex is the responding units address is the relay number in ASCII SPACE for positive and for negative E TPWTADD 1 4 0 7 of 19 YYYYY is the setpoint value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 9 Set Offset Value lt STX gt OA lt CR gt lt N gt lt CR gt XYYYYYY lt CR gt e g ABO AM3AM50 M to force the current mV input on ch
4. 00 Data logger polling functions Usually data is downloaded using the Windows program supplied with the data logger but the data logger can be also polled via a PC etc using the commands below Functions which are used when 16 of 19 TPWTADD 1 4 0 the data logger option is fitted are accessible only via EARL mode Lag UPde select log update time Displays and sets the time period between each log sample Available selections are amp 8 10 seconds amp 28 20 seconds G 38 30 seconds 406 1 minute 2 50 2 minutes 3 28 3 minutes 4 GG 4 minutes 5 4 5 minutes 6 88 6 minutes 43 28 10 minutes 15 00 15 minutes 26 88 20 minutes 38 8G 30 minutes or 62 8 60 minutes Note The data log memory see Lr Lo below must be cleared whenever the log update time is changed or the date and time is changed Cir Lof clear data log memory This function clears the data log memory to clear the memory press then release amp and bd simultaneously the display will show r asking if you really want to clear the memory If you wish to clear memory then press then release ZY and hd simultaneously again The log memory will then be cleared and the log period reset the display will indicate Pr oS LoS to confirm this Once the memory is cleared all previously logged records will be lost from the instruments memory if the E r message is reached and it is not wished to clear the log memory then pressin
5. ETB AW 23 17 B 66 42 m 109 6D CAN AX 24 18 C 67 43 n 10 6E EM AY 25 19 D 68 44 o 11 6F SUB AZ 26 1A E 69 45 p 112 70 ESC A 27 1B F 70 46 q 113 71 FS A 28 ic G 71 47 r 14 72 GS M 29 1D H 72 48 s 115 73 RS A 30 1E I 73 49 t 116 74 US A 31 1F J 74 4A u 17 75 SP 32 20 K 75 4B v 18 76 33 21 L 76 4C w 19 77 R 34 22 M TT 4D x 20 78 35 23 N 78 4E y 21 79 36 24 O 79 4F z 22 7A 37 25 P 80 50 123 7B amp 38 26 Q 81 51 24 7C 7 39 27 R 82 52 125 7D 40 28 S 83 53 126 7E 41 29 T 84 54 DEL 27 7F 42 2A U 85 55 TPWTADD 1 4 0 19 of 19
6. the selected instrument and channel Format of returned data is lt ACK gt ZA lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII Z is echo command received Z 90 Dec 5A Hex A is the responding unit s address lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 6 of 19 TPWTADD 1 4 0 5 Read low alarm setpoint lt STX gt LA lt CR gt N lt CR gt e g ABN AM2 AM to read alarm 2 low setpoint using a terminal program address 1 In structs unit to return the low alarm setpoint value Format of returned data is lt ACK gt LANXYYYYY lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII L echo command received L 76 Dec 4C Hex A is the responding units address N is the relay number in ASCII X SPACE for positive and for negative YYYYY is the setpoint value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 6 Read high alarm setpoint lt STX gt HA lt CR gt N lt CR gt e g AHN AM2AM to read alarm 2 high setpoint using a terminal program address 1 Instructs unit to return the high alarm setpoint value Format of returned data is lt ACK gt HANXYYYYY lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII H echo command received H 72 Dec 48 Hex A is the responding units address N is the relay number in ASCII X SPACE for positive and for negative YYYYY is the setpoint value in ASCII
7. 00186A0 which is 100 000 The value of channel 2 is FFFFD8F0 which is 10 000 Note Two registers should be read at a time to get both halves of the 32 bit value 12 of 19 TPWTADD 1 4 0 Register table for TP4 WT4 displays using Modbus RTU function 3 Address Register Description 0X00 1 Channel 1 high word 0X01 2 Channel 1 low word 0X02 3 Channel 2 high word 0X03 4 Channel 2 low word 0X04 5 Channel 3 high word 0X05 6 Channel 3 low word 0X06 T Channel 4 high word 0X07 8 Channel 4 low word 0X08 9 Relay 1 high setpoint high word 0X09 10 Relay 1 high setpoint low word 0X0A 11 Relay 2 high setpoint high word 0X0B 12 Relay 2 high setpoint low word 0X0C 13 Relay 3 high setpoint high word OXOD 14 Relay 3 high setpoint low word OXOE 15 Relay 4 high setpoint high word OXOF 16 Relay 4 high setpoint low word 0X10 17 Relay 1 low setpoint high word 0X11 18 Relay 1 low setpoint low word 0X12 19 Relay 2 low setpoint high word 0X13 20 Relay 2 low setpoint low word 0X14 21 Relay 3 low setpoint high word 0X15 22 Relay 3 low setpoint low word 0X17 23 Relay 4 low setpoint high word 0X17 24 Relay 4 low setpoint low word 0X18 25 Channel 0 arithmetic sum decimal point arithmetic mode only 0X19 26 Channel 1 decimal point OX1A 27 Channel 2 decimal point OX1B 28 Channel 3 decimal point OX1C 29 Channel 4 decimal poin
8. ECA value in ASCII always to 3 decimal places X is SPACE for positive and for negative ZZZZZZ is the ESEL value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 11 Set the ECRL and ESEL values lt STX gt EA lt CR gt lt N gt lt CR gt XYYYYYY lt CR gt XZZZZZZ lt CR gt e g ABE AM3AM2 000AM5000AM sets the channel 3 EEAL value to 2 500 and the ESEL value to SODO address 1 Note the ECRAL and ESEL values simply set the slope of the calibration curve a definite reference point through which this slope passes such as a zero or offset also needs to be set when using this method of calibration The zero or offset can be accomplished via the relevant serial commands listed in this chapter or may be done at the TP4 itself The ETAL value set must be within the value set at the FRSE function for that channel e g you cannot set the ECAL to 2 888 if the FRSE function is set to 4805 The maximum positive and negative values to which the EERL value can be successfully set are 32 000 to 32 863 this applies even when the FARSE setting is 100 If an input with a 8 of 19 TPWTADD 1 4 0 higher mV V output is being used then the EER and ESEL values can be set in correct ratios to accomplish the requires setting e g an ECAL value of 56 608 and ESEL of 10050 cannot be set but an EKAL of 25 88 and ESEL of SDD will set the same calibration slope and will give the correct reading at 50 000mV V input Instructs unit to set the E
9. N lt CR gt XYYYYYY Set Value Command Where lt STX gt is Start of Text Character 2 Dec 02 Hex AB ASCII C is the command character see following poll commands available A is the unit address Range 32 to 63 Dec 20 to 3F Hex SPACE to ASCII the address is offset by 32 Dec 20 Hex lt CR gt is Carriage Return 13 Dec 0D Hex AM ASCII N is the setpoint number in ASCII e g 1 for alarm 1 etc X SPACE for positive and for negative YYYYYY is the setpoint value in ASCII The POLL commands available and instrument responses are as follows 1 Transmit individual channel values or all channel values lt STX gt PA lt CR gt or lt STX gt 1A lt CR gt or lt STX gt 2A lt CR gt or lt STX gt 3A lt CR gt or lt STX gt 4A lt CR gt or lt STX gt QA lt CR gt e g AB2 AM for channel 2 address 1 Instructs the unit to return the display value for selected channel If P is selected then in arithmetic mode the sum channel Ch0 will be returned in SEAR mode Use 1 for channel 1 2 for channel 2 etc The returned data will be lt ACK gt NAXYYYYYY lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII N is the channel number in ASCII A is the responding unit s address in ASCII X SPACE for positive and for negative YYYYYY is the display value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII For all active channels use Q instead of the chan
10. Reset Special Function Value lt STX gt RA lt CR gt eg ABR AM address 3 Instructs the unit to reset the special function value set via the F FP function if applicable Will reset the stored value for Peak Hold Valley High and Valley Low or will operate the selected special function tare zero or batch functions only Format of returned data is lt ACK gt RA lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII R echo command received R 82 Dec 52 Hex lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII If special functions are not active then the invalid command message will be returned refer Invalid Command later The tare command will only operate in arithmetic mode and will tare all channels including channel 0 The zero command will zero all channels in arithmetic mode in scanning mode the channel shown on the display at the time of the command being received will be zeroed 4 Zero Selected Channel lt STX gt ZA lt CR gt lt N gt lt CR gt e g ABZ AM3AM will cause channel 3 to zero in the instrument with address 1 Note that the channel being zeroed needs to be connected to a live input at the time this command is sent The zero command will not be successful if the display value at the time is outside the zero range for the channel selected see Eh 2 n function in the main instruction manual for further description Instructs the unit to zero the display value for
11. S TTTTTTTTTT lt CR gt Transmit the Log Update Time lt STX gt DA lt CRS gt U lt CR gt Returns the current log update time as set in the log memory The returned time may be different to the dL RY time if there has been no log reset since the dL AY function was changed The returned data format is lt ACK gt DAU NNNN lt CR gt where NNNN is the update time in seconds Transmit the Log Memory Size lt STX gt DA lt CR gt M lt CR gt Returns the size of the log mem ory in records The returned data format is lt ACK gt DAM NNNN lt CR gt where NNNN is the number of records for that memory size e g an 8K memory will return 508 Set the System Time lt STX gt DA lt CR gt t lt CRSTTTTTTTTTT lt CR gt Set the instrument system clock to Julian time TTTTTTTTTT If the command is successful then lt ACK gt DAt lt CR gt will be returned If the Julian time is invalid then lt ACK gt DA lt CR gt will be returned Set the Log Update Time lt STX gt DA lt CR gt Su lt CR gt NNNN lt CR gt Set the log update time to NNNN seconds Note that the new time will not apply until a log reset is performed If the command is successful then lt ACK gt DAu lt CR gt will be returned If the update time is invalid then lt ACK gt DA lt CR gt will be returned Valid times are as shown in the dL AY function explanation Reset the Log Memory lt STX gt DA lt CR gt R lt CR gt RESET lt CR gt This command will reset the log memory This will erase all current re
12. TAL and ESEL values Format of returned data is lt ACK gt EANXYYYYYY XZZZZZZ lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII E echo command received E 69 Dec 45 Hex A is the responding units address N is the channel number in ASCII X is SPACE for positive and for negative YYY YYY is the ECAL value in ASCII always to 3 decimal places X is SPACE for positive and for negative ZZZZZZ isthe ESEL value in ASCII lt CR gt isa Carriage Return 13 Dec 0D Hex AM ASCII 12 Transmit instrument model and software version lt STX gt IA lt CR gt eg ABI AM using a terminal program address 1 Instructs unit to return the instrument model and software version Format of returned data is lt ACK gt IACCX X lt CR gt Where lt ACK gt _ is Acknowledge 6 Dec 06 Hex AF ASCII I echo command received I 73 Dec 49 Hex A is the responding units address offset by 32 Dec e g is address 1 CC a 2 character identifier e g LC means loadcell input X X is the software version number e g 4 6 lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 13 Invalid command If the command received from the host is invalid the unit will return the following lt ACK gt A lt CR gt where Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII echo command received 63 Dec 3F Hex A is the responding units address offset by 32 Dec e g
13. TP4 WT4 Serial Communications Output Addendum AMALGAMATED INSTRUMENT CO PTY LTD ACN 001 589 439 Unit 5 28 Leighton Place Hornsby Telephone 61 2 9476 2244 e mail sales aicpl com au NSW 2077 Australia Facsimile 61 2 9476 2902 Internet www aicpl com au Table of Contents 1 Introduction 2 RS232 RS485 commands 3 Modbus RTU functions 4 Data logger 2 of 19 11 16 TPWTADD 1 4 0 1 Introduction This addendum to the main TP4 WT4 manual contains information for the operation of the serial communications including Modbus and Data logger commands Refer to the main TP4 WT4 manual for all other information regarding this instrument An ASCII conversion table is provided in section 4 1 page 19 1 1 Serial communications connections When using the standard RS232 output link LK8 must be in Tx at the TP4 end connects to Rx at the other end of the serial link likewise Rx at the TP4 end connects to Tx at the other end of the link When using the optional RS485 connections are A the TP4 end to A at the other end of the link and B at the TP4 end to B at the other end The ground line should be connected in each case If the TP4 is the first or last unit in a RS485 chain then the link LK7 may need to be in this places a terminating resistor across the input to help prevent signal reflections in long cable runs RS485 Terminator link in for RS485 operation when the instrument is the first or last unit in an RS485 chain RS232 Lin
14. aded in Julian time format which is again compatible with many databases spreadsheets The internal clock is battery backed Downloaded log records are in the form of the time followed by the logged record for each channel at that time Downloaded information is transmitted via the serial output option board in RS232 or RS485 format thus a serial output option must be fitted on all instruments with data logging software Data logger Windows software Data logger software compatible with Windows 95 98 2000 NT and XP is provided for use with the data logger not tested and may not be compatible with Vista A separate user booklet for the software is also provided Consult this user manual for details of software setup The data logger can also communicate using standard serial polling commands these are listed under the heading Serial Command Format in this chapter TP4 WT4 datalogger table maximum logging times approximate Time between logs 32k memory 128k memory days hours min days hours min 10 seconds 0 04 39 0 18 37 20 seconds 0 09 18 1 13 13 30 seconds 0 13 57 2 07 50 1 minute 1 03 54 4 15 40 2 minutes 2 07 48 9 08 20 3 minutes 3 11 42 14 00 00 4 minutes 4 15 36 18 16 40 5 minutes 5 19 30 23 08 20 6 minutes 6 23 24 27 01 00 10 minutes 11 15 00 46 16 40 15 minutes 17 14 30 70 01 00 20 minutes 23 06 00 93 09 20 30 minutes 34 21 00 140 02 00 60 minutes 69 18 00 280 04
15. annel 3 to be displayed as 50 address 1 Note that the channel being whose reading is being changed needs to be connected to a live input at the time this command is sent The new value will cause an offset in the display readings across the scale For example if the value sent by this command is 50 and the value on the display prior to the value of 50 being sent was 40 then a value of 10 will be added across the whole display range for that channel Instructs unit to change the display value for the channel selected Format of returned data is lt ACK gt OANXYYYYYY lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII O echo command received O 79 Dec 4F Hex A is the responding units address N is the channel number in ASCII X is SPACE for positive and for negative YYYYYY is the new display value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 10 Read the ETAL and ESEL values lt STX gt eA lt CR gt lt N gt lt CR gt e g ABe AM3AM to ask the TP4 to return the ECAL and ESEL values for channel 3 address 1 Instructs unit to read back the ECRL and ESEL values Format of returned data is lt ACK gt eANXYYY YYY XZZZZZZ lt CR gt Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII e echo command received e 101 Dec 65 Hex A is the responding units address N is the channel number in ASCII X is SPACE for positive and for negative YYY YYY isthe
16. cords and reset the log update time if it has changed As this will result in a loss of data the command must be sent exactly as it appears or the memory will not be reset If the command is successful then lt ACK gt DAR lt CR gt will be returned to indicate that the memory has been reset If the command is invalid then lt ACK gt DA lt CR gt will be returned 18 of 19 TPWTADD 1 4 0 4 1 ASCII Code Conversion Listing ASCII for control characters is shown in brackets e g STX may in some cases be entered as AB ASCII char Decimal Hex ASCII char Decimal Hex ASCII char Decimal Hex NUL A 00 00 43 2B V 86 56 SOH A 01 01 i 44 2C W 87 57 STX AB 02 02 45 2D X 88 58 ETX AC 03 03 i 46 2E Y 89 59 EOT AD 04 04 47 2F Z 90 5A ENQ AE 05 05 0 48 30 91 5B ACK AF 06 06 1 49 31 92 5C BEL AG 07 07 2 50 32 93 5D BS AH 08 08 3 51 33 A 94 5E HT AD 09 09 4 52 34 95 5F LF AJ 10 OA 5 53 35 i 96 60 VT AK 11 0B 6 54 36 a 97 61 FF AL 12 0C 7 55 37 b 98 62 CR AM 13 OD 8 56 38 c 99 63 SO AN 14 0E 9 57 39 d 00 64 SI AO 15 OF 58 3A e 01 65 DLE AP 16 10 A 59 3B f 02 66 DC1 AQ 17 11 lt 60 3C g 103 67 DC2 AR 18 12 61 3D h 04 68 DC3 AS 19 13 gt 62 3E i 105 69 DC4 AT 20 14 63 3F j 106 6A NAK AU 21 15 64 40 k 07 6B SYN AV 22 16 A 65 41 l 08 6C
17. g and releasing either GJ or will abort the function SEt rte set time Displays and sets the current time in hours and minutes 24 hour format HH MM e g set as 72 for 5 20 pm SEt GREE set date Displays and sets the current date in days and months DD MM format The months will roll over automatically up at the end of the month down at the beginning of the month as the day is scrolled up or down S amp t YER set year Displays and sets the current year YYYY format Valid years settings go up to 2037 valid Julian time format years Serial Command Format Instruments using the data logger option are provided with extra software functions to the standard instrument This section describes these extra functions Initial Setup Select the baud rate parity and address as required The serial output mode function G Pu amp must be set to PGLL when using the data logger Transmit Record Block lt STX gt DA lt CRS gt D lt CRSTTTTTTTTTT lt CRSNNNN lt CR gt Where TTTTTTTTTT is the start time of the block in Julian time format NNNN is the number of records to be sent Instructs the unit to send a block of logged data via the serial interface The returned data format is lt ACK gt DAD lt CR gt followed by NNNN records in the format TTTTTTTTTT S1111 82222 3333 S4444 55555 56666 S7777 S8888 lt CR gt where TTTTTTTTTT is the start time for each record in Julian time format If TTTTTTTTTT time in Transmit Record Block
18. k in for RS232 operation IN FOR RS232 IN FOR RS232 IN FOR RS232 LK8 LK8 gt LK8 Je ef LK7 LK7 LK7 e el S RS485 RS485 RS485 TERMINATOR TERMINATOR TERMINATOR Plug in after wiring Plug in connector RTS CTS RS232 Tx or RS485 B RS232 Rx or RS485 A Standard PC 9 pin male D type RS232 serial port connector Rear terminals solder side shown a ND G 2 25 way D connectors 7 GND Display 2 Rx Tx gt i RS485 connection terminals may vary check documentation when connecting Terminal A is sometimes labeled and terminal B is sometimes labeled TPWTADD 1 4 0 3 of 19 2 RS232 RS485 commands RS232 485 Operation and Commands When sending commands to make changes to function settings such as alarm setpoints the TP4 should be in normal measure mode when the command is sent i e display has been powered up without any pushbuttons being pressed and FUE mode not entered The d SP Cont POLL amp Pre and E ALL operation modes are described in this chapter Refer to the separate Modbus chapter for details of the A bu5 mode Refer to the main instruction manual and the separate user guide for A buS dSP 4 and dSP 6 mode description d SP Image Display Mode In image display mode the display value is sent via RS232 RS485 as raw data in the format lt ESC gt IXYYYYYY Where lt ESC gt is the ESCAPE character 27 Dec 1B Hex A ASCII I is the character I 73 Dec 49 He
19. nel no e g ABQ AM The returned values will be channel 0 total if in arithmetic mode channel 1 channel 2 channel 3 channel 4 only active channels will be returned see SERAMEHLS function i e lt ACK gt QAXYYYYY YAY YY YY YAY YY YYY AY YY YY YAY YY YY lt CRS If set for scanning rather than arithmetic operation the channel 0 value will not be transmit ted TPWTADD 1 4 0 5 of 19 2 Transmit Secondary Display Value lt STX gt SA lt CR gt e g ABS IAM using address 1 Instructs the unit to send the secondary display value The value will equal the primary display value lt STX gt SA lt CR gt command if the F RP function is set to RORE If the F 3 RP function is set to H La H La P HLd or d HLd the value for the selected operation will be returned note For H La the H value followed by the La value will be sent separated by a comma In arithmetic mode the peak high and peak low values output will be for channel 0 i e the result In scanning mode the peak high and peak low values sent are for channel 1 only Format of returned data is lt ACK gt SAYYYYYY lt CR gt or lt ACK gt SAYYYYYY YYYYYY lt CR gt in the case of H La Where lt ACK gt is Acknowledge 6 Dec 06 Hex AF ASCII S echo command received S 83 Dec 53 Hex A is the responding unit s address YYYYYY is the secondary display value in ASCII lt CR gt is a Carriage Return 13 Dec 0D Hex AM ASCII 3
20. pliment number in two 16 bit registers per channel Note a value of 1 000 000 represents a positive overrange and 200 000 a negative overrange Registers 1 to 8 are addressed as 0X00 to 0X07 Registers 9 to 16 hold the alarm high values for relays 1 to 4 Note a value of 0X80000000 means that the relay is set to OFF and has no high value Registers 9 to 16 are addressed as 0X08 to OXOF Registers 17 to 20 hold the alarm low values for relays 1 to 4 Note a value of 0X80000000 means that the relay is set to OFF and has no low value Registers 17 to 24 are addressed as 0X10 to 0X17 Registers 25 to 28 represent the decimal point settings for channels 1 to 4 Registers 25 to 28 are addressed as 0X18 to OX1B TPWTADD 1 4 0 11 of 19 An example of a query to read input channels 1 and 2 from an instrument at address 5 is given below Field name Example Hex Unit address 05 Function 03 Starting address Hi 00 Starting address Lo 00 Number of points Hi 00 Number of points Lo 04 Error check LRC or CRC An example of a response is given below Field name Example Hex Unit address 05 Function 03 Byte count 08 Data Hi register 1 00 Data Lo register 1 01 Data Hi register 2 86 Data Lo register 2 AO Data Hi register 3 FF Data Lo register 3 FF Data Hi register 4 DB Data Lo register 4 FO Error check LRC or CRC The value of channel 1 is 0
21. r Channel 2 offset function 16 0X203 516 Channel 2 offset low word function 6 only 0X204 517 Channel 3 offset high word function 6 or Channel 3 offset function 16 0X205 518 Channel 3 offset low word function 6 only 0X206 519 Channel 4 offset high word function 6 or Channel 4 offset function 16 0X207 520 Channel 4 offset low word function 6 only An example of using function 6 to set Channel 1 offset to 2C 44 dec at an instrument with address 2 is Field name Example Hex Unit address node number 02 Function 06 Register address Hi 02 Register address Lo 00 Data Hi 00 Data Lo 2C Error check LRC or CRC An example of a function 6 response is given below Field name Example Hex Unit address node number 02 Function 06 Register address Hi 02 Register address Lo 00 Data Hi 00 Data Lo 2C Error check LRC or CRC An example of using function 16 to set Channel 1 offset to 2C 44 dec and Channel 2 offset to 50 80 dec at an instrument with address 2 is 14 of 19 TPWTADD 1 4 0 Field name Example Hex Unit address node number 02 Function 10 Register address Hi 02 Register address Lo 00 Number of registers Hi 00 Number of registers Lo 02 Byte count 04 Data Hi 00 Data Lo 2C Data Hi 00 Data Lo 50 Error check LRC or CRC An example of a function 16 respon
22. se is as follows Field name Example Hex Unit address node number 02 Function 10 Register address Hi 02 Register address Lo 00 Number of registers Hi 00 Number of registers Lo 02 Error check LRC or CRC TPWTADD 1 4 0 15 of 19 4 Data logger The data logger is an optional addition to the instrument This section applies only to instruments fitted with the data logger option If the data logger is being used with the Windows compatible software provided then refer to the separate Download Software User Guide booklet Operation of the data logger The data logger memory will store the hours mins secs day month and year together with the display reading at the time of log update The log update time may be set at the LaSUPd function If an input is overranged when logged then the overrange value will be logged for that channel for as long as the overrange value is present Readings taken during power failure will not be logged The log memory is set up in a circular format Once the top of memory is reached the log data will overwrite the start of memory overwriting the oldest record The recording time available will vary depending on the memory size fitted and the update time selected The table below shows maximum recording times Data is transmitted in comma separated format making it compatible with many commercially available databases spreadsheets Time information is downlo
23. showing 123456 then the instrument will send 02 31 32 33 34 35 36 0D HEX to the host In arithmetic Ar th mode the sum channel ERG will be transmitted GLL Host Controlled Transmit Mode This mode requires a host computer PLC or other device to poll the instrument to obtain display or other information or reset various setpoint parameters Special communications software is required when using PGLL mode Data is in ASCII format with 8 data bits 1 stop bit When polling the TP4 it is essential that the command characters are sent with less than a 10mS delay between them This normally means that each command line must be sent as a whole string e g lt STX gt PA lt CR gt is sent as one string rather than lt STX gt on one line followed by P etc 4 of 19 TPWTADD 1 4 0 Whenever the function key is operated the whole string is sent The format used is ASCII 8 data bits 1 stop bit so for instance if address 1 is used then the string lt STX gt PA lt CR gt may be put into a terminal program as BP AM Where AB is the ASCII character for STX P is the command line to transmit the primary display value Ch0 value in arithmetic Arkh mode or Ch 1 value in scanning SCAN mode is the ASCII character for address 1 33 Dec of 21 Hex AM is the ASCII character for CR 13 Dec 0D Hex A typical format for the host command is as follows lt STX gt CA lt CR gt Standard read etc or lt STX gt CA lt CR gt
24. strument must be set up electrically for RS232 or RS485 communications and the function must be set to A bu5 The maximum recommended baud rate for Modbus operation is 9600 The following commands are available Modbus Function 1 Read coil status Reads the ON OFF status of the relay coils Broadcast is not supported Relay addresses are offset by 1 e g relay 1 is addressed as 0 relay 2 is addressed as 1 etc Logic 1 ON Logic 0 OFF To read the coil status a query is sent to the instrument the instrument then responds to the query An example of a query to read coils 1 to 4 from the instrument at address 2 is given below Field name Example Hex Unit address 02 Function 01 Starting address Hi 00 Starting address Lo 00 Number of points Hi 00 Number of points Lo 04 Error check LRC or CRC An example of a response is given below Field name Example Hex Unit address 02 Function 01 Byte count 01 Data coils 4 to 1 04 Error check LRC or CRC E The status of the relay coils is shown in the Data 04 hex or binary 0100 Relay 1 is indicated by the least significant binary bit The status of the relays is therefore Relay 4 OFF Relay 3 ON Relay 2 OFF Relay 1 OFF Function 3 Read holding registers This function reads the binary contents of the holding registers in the instrument being addressed The value for this function is stored as a 32 but two s com
25. t 0X20 33 Channel 0 arithmetic sum high word arithmetic mode only 0X21 34 Channel 0 arithmetic sum LOW word arithmetic mode only 0X200 513 Channel 1 offset high word 0X201 514 Channel 1 offset low word 0X202 515 Channel 2 offset high word 0X203 516 Channel 2 offset low word 0X204 517 Channel 3 offset high word 0X205 518 Channel 3 offset low word 0X206 519 Channel 4 offset high word 0X207 520 Channel 4 offset low word TPWTADD 1 4 0 13 of 19 Function 6 Preset single register and Function 16 Preset multiple registers The registers for these modes are shown below The offset commands allow any valid display value to be set for each input channel To zero the channel selected the offset high word and low word should be set to zero The registers are 16 bit if the offset value is betwen 0 and 65535 then the offset can if required be entered using the low word only To change the offset value send the new value you wish that channel to be e g If channel 1 reads 2 and you wish it to read 5 send the value 5 Note that offsets are also affected by the zero range function If an offset is not accepted due to the zero range setting the instrument will show the error message ZEF D FRE EFF Address Register Description 0X200 513 Channel 1 offset high word function 6 or Channel 1 offset function 16 0X201 514 Channel 1 offset low word function 6 only 0X202 515 Channel 2 offset high word function 6 o
26. x X is the number of image bytes in ASCII 31 to 38 Hex YYYYYY is the raw 8 bit display data This information is output every display update approx 4 times per second depending upon baud rate The number of image bytes sent depends on the number of display digits present This mode is suitable only when the receiving unit is produced by the same manufacturer as the TP4 The most common usage would be to provide a large digit display for wide area viewing which mimics the smaller display on the measuring instrument The large digit displays automatically detects the image mode data and displays the correct value accordingly The data sent is seven segment display image i e Bit 0 is segment A Bit 1 is segment B etc Cant Continuous Transmit Mode In this mode the display value is continually transmitted out via the RS232 485 interface in ASCII format with 8 data bits 1 stop bit Data will be updated at approximately the same rate as the sample rate selected see FREE function In scanning SCAR mode channel 1 will be retransmitted See also C R L mode for continuous output of all channels The format for this mode is lt STX gt XYYYYYY lt CR gt Where lt STX gt is start of text character 2 Dec 02 Hex AB ASCII X SPACE 32 Dec 20 Hex for a positive value X 45 Dec 2D Hex for a negative value YYYYYY is the display value in ASCII lt CR gt isa Carriage Return 13 Dec 0D Hex AM ASCII e g If the display is
Download Pdf Manuals
Related Search
Related Contents
MANUAL DEL OPERADOR SUSIAccess 3.0 User Manual "取扱説明書" Descargar PDF UDS-1000 User`s Manual Copyright © All rights reserved.
Failed to retrieve file