Twinno T4055 Скачать руководство пользователя страница 20

If it is large-end storage mode, after executing the above statement,

the data stored in outdata of address unit is 0x41 

O 1 stores data as 0x8D 

address unit (o 2) stores data as 0x00 

address unit (o 3) stores data as 0x00

2. If the compiler used by the user does not implement the library function of this function, the

following functions can be used to achieve this function:

void memcpy(void *dest,void *src,int n)

{

char *pd = (char *)dest; char *ps = (char *)src;

for(int i=0;i<n;i++) *pd++ = *ps++;

}

And then make a call to the above  memcpy(outdata,&floatdata,4);

Example: Compile binary floating-point number 0100 0010 0111 1011 0110 0110 0110 10B to 

decimal number

Step 1: Divide the binary floating-point number 0100 0010 0111 1011 0110 0110 0110B into symbol 

bit, exponential bit and mantissa bit.

0 10000100  11110110110011001100110B

1-bit sign + 8-bit index + 23-bit tail sign bit S: 0 denotes positive number
Index position E

10000100B =

1×2

7

+0×2

6

+0×2

5

+0×2

4

 + 0 × 2

3

+1×2

2

+0×2

1

+0×2

0

=128+0+0+0+0+4+0+0=132

Mantissa bits M

11110110110011001100110B =8087142

Step 2:   Calculate the decimal number

D = (

1)

𝑆

×(1.0 + M/2

23

)×2

𝐸

127

= (

1)

0

×(1.0 + 8087142/2

23

)×2

132

127

= 1×1.964062452316284×32

= 62.85

Reference Code:

float floatTOdecimal(long int byte0, long int byte1, long int byte2, long int byte3)

{ long int realbyte0,realbyte1,realbyte2,realbyte3; char S;

long int  E,M;

float D; 

realbyte0 = byte3; realbyte1 = byte2; realbyte2 = byte1; realbyte3 = byte0;

if((realbyte0&0x80)==0)

{ S = 0;//positive number }

else { S = 1;//negative number }

E = ((realbyte0<<1)|(realbyte1&0x80)>>7)-127;

M = ((realbyte1&0x7f) << 16) | (realbyte2<< 8)| realbyte3;  

D = pow(-1,S)*(1.0 + M/pow(2,23))* pow(2,E);

return D; }

Function description: parameters byte0, byte1, byte2, byte3 represent 4 bytes of binary floating point 

number

The decimal number converted from the return value

For example, the user sends the command to get the temperature value and dissolved oxygen value 

to the probe. The4 bytes representing the temperature value in the received response frame are 0x00, 

0x00, 0x8d and 0x41. Then the user can get the decimal number of the corresponding temperature 

value through the following call statement.

That is temperature = 17.625.

float temperature = floatTOdecimal( 0x00, 0x00, 0x8d, 0x41) 

17

Содержание T4055

Страница 1: ...T4055 Membrane Residual Chlorine Meter Operating Manual 上海淳业仪表科技有限公司 Shanghai Chunye Instrument Technology Co Ltd Operating Manual 8 025mg L T4055 Free Chlorine 7 01pH ...

Страница 2: ......

Страница 3: ...stallation size Embedded installation Wall mounted installation Electrical connection Keypad descriptions Display descriptions Menu Calibration MODBUS RTU Daily Maintenance Package Set pH Buffer Solution FAQ Warranty Notes 1 1 2 3 3 4 4 5 6 7 8 10 12 19 19 21 22 23 20 ...

Страница 4: ...en the package carefully check whether the instrument and accessories are damaged by transportation and whether the accessories are complete If any abnormalities are found please contact our after sales service department or regional customer service center and keep the package for return processing This instrument is an analytical measurement and control instrument with highly precision Only skil...

Страница 5: ...ve display Relay control contact 3 Groups 5A 240VAC 5A 28VDC or 120VAC Optional power supply 85 265VAC 9 36VDC Power 3W The work environment In addition to the earth s magnetic field around no strong magnetic field interference The environmental temperature 10 60 Relative humidity No more than 90 Protection grade IP65 The instrument weight 0 6kg Instrument dimensions 98 98 130mm Mounting hole dime...

Страница 6: ...ns Side view Embedded the instrument into the square hole and fix it with the provided clasp Embedded mounting Cut out size Embedded installation 93 mm 93 mm 0 5 mm 0 5 mm 3 92 5 mm 10 mm 120 mm Installation of back cover with waterproofing seal 98 mm 98 mm MENU ESC ...

Страница 7: ... M4 screw b Along the slot clamp the instrument on the mounting bracket Dimension of Mounting Bracket Wall mounted installation Fixed bracket M4 screw is installed on the wall first Wall mounted installation diagram Insert the instrument into the fixture along the chute ...

Страница 8: ...The cable length of sensors is usually 5 10 meters There are labeled inserts at the end of the cable which can be inserted into the terminal with the same digital symbols on the instrument roof and tightened N C N C Temp Temp N C N C CE RE WE Cur 1 Com Cur 2 RS485 B RS485 A NO 1 COM 1 NC 1 NO 2 COM 2 NC 2 Pow DC 9 36V Pow DC Pow PE FCL Pow ACL 85 265V Pow AC N Pow PE ...

Страница 9: ...s the button and accelerate after a certain time until the data is adjusted to the user s required value before releasing the button Confirmation options Enter menu setting mode Return to previous menu Long press to return the measurements screen Menu setting mode press this key to loop down the menu options Value input mode current bit value change loop In measurement mode long press this button ...

Страница 10: ...ched on the meter will display as follows Setting mode Measurement mode Calibration mode Main measurment Unit Relay 2 blue is off and red is on Current 1 Current 2 Switch display Automatic temp comp Temp Unit 7 Free Chlorine 8 025mg L 25 0 C 14 51 mA C1 SP1 SP2 Voltage Point 1 Free Chlorine 0 Done mg L 5 mV Free Chlorine 8 025mg L 25 0 C 14 51 mA C1 SP1 SP2 7 01pH 7 01pH ...

Страница 11: ...Point 1 Calibration Point 2 Calibration Point 3 Calibration Point 4 Calibration Point 5 Correction Field Calibration Offset Adjustment Slope Adjustment Status High Low Setpoint Limit Value Hysteresis Status High Low Setpoint Limit Value Hysteresis Sensor Temperature Standard Solution Calibration Field Calibration Relay 1 Relay 2 Configure Calibration Alarm FCL mg L ppm NTC2 252 kΩ NTC10 kΩ Pt100 P...

Страница 12: ...ion Factory Default Terminal Current Tuning Relay Test Output System Main Temperature 4 20mA 0 20mA 20 4mA Main Temperature 4 20mA 0 20mA 20 4mA 4800BPS 9600BPS 19200BPS None Odd Even 1 Bit 2 Bit 001 Low Standard Medium High Saving Bright T4000C V1 0 0000 9 The positive and negative ends of the ammeter are connected to the current 1 or current 2 output terminals of the instrument respectively pres...

Страница 13: ...ibration security password Calibration point 1 Calibration point 1 After entering the calibration mode the instrument displays as shown above The instrument main measurement value displays the point 1 known standard solution value Place the electrode into the standard solution of the corresponding value and the corresponding voltage mV value and calibration state will be displayed on the left side...

Страница 14: ...y to shift the green icon to ESC and pressսENTվkey to confirm Offset adjustment Compare the data of laboratory or portable instrument with the data of instrument measurement if there are errors the error data can be modified by this function Linear adjustment Linear values after field calibration are stored in this item with factory data of 1 00 11 pH ORP 梡㖞吥ⲥ mg L 07 00 Vol 002 Temp 25 0 C Slope ...

Страница 15: ...roduces additional fields of protocol data units The client that initiates the MODBUS exchange creates the MODBUS PDU and then adds the domain to establish the correct communication PDU Figure 2 MODBUS architecture for serial communication On the MODBUS serial line the address domain contains only the slave instrument address Tips The device address range is 1 247 Set the device address of the sla...

Страница 16: ...mode message frames are distinguished by idle intervals of at least 3 5 character times which are called t3 5 in subsequent sections Figure 5 RTU message frame The entire message frame must be sent in a continuous character stream When the pause time interval between two characters exceeds 1 5 characters the information frame is considered incomplete and the receiver does not receive the informati...

Страница 17: ...and hold register request frame Response N Register number Figure 9 Read and hold register response frame The following illustrates the request frame and response frame with the read and hold register 108 110 as an example The contents of register 108 are read only with two byte values of 0X022B and the contents of register 109 110 are 0X0000 and 0X0064 14 Value Byte Start No signal bytes during 3...

Страница 18: ...ction code Start Address Number of input registers number of bytes Register values 1 byte 2 byte 2 byte 1 byte N 2 byte 0x10 2 byte 2 byte 1 byte N 2 byte Request Frame Number Systems Function code Start address high byte Start address low byte Input register number high bytes Input register number low bytes number of bytes Register value high byte Register value low byte Register value high byte ...

Страница 19: ...the decimal point behind can be recorded For the important explanation of 23 bit mantissa the first i e hidden bit is not compiled Hidden bits are bits on the left side of the separator which are usually set to 1 and suppressed Step 4 Symbol bit definition The sign bit of positive number is 0 and the sign bit of negative number is 1 so the sign bit of 17 625 is 0 Step 5 Convert to floating point n...

Страница 20: ... 4 0 0 132 Mantissa bits M 11110110110011001100110B 8087142 Step 2 Calculate the decimal number D 1 𝑆 1 0 M 223 2𝐸 127 1 0 1 0 8087142 223 2132 127 1 1 964062452316284 32 62 85 Reference Code float floatTOdecimal long int byte0 long int byte1 long int byte2 long int byte3 long int realbyte0 realbyte1 realbyte2 realbyte3 char S long int E M float D realbyte0 byte3 realbyte1 byte2 realbyte2 byte1 re...

Страница 21: ...ster addresses Communication address is as follows 0000 0001 Temperature value 0002 0003 Main Measured Value 0004 0005 Temperature and Voltage Value 0006 0007 Main Voltage Value Communication examples Examples of function code 04 instructions Communication address 1 temperature 20 0 ion value 10 0 temperature voltage 100 0 ion voltage 200 0 Host Send 01 04 00 00 08 F1 CC Slave Response 01 04 10 00...

Страница 22: ...ine Meter 2 Instrument Installation Accessories 3 Operating Manual Quantity 1 1 1 Note Please check the complete set of instruments before use The company s other series of analytical instruments please login to our website for enquiries 4 Qualification Certificate 1 ...

Страница 23: ... 6 86 6 85 6 84 6 84 6 83 6 83 6 83 6 84 6 85 6 86 6 88 pH9 18 9 47 9 38 9 32 9 27 9 22 9 18 9 14 9 10 9 07 9 04 9 01 8 99 8 96 8 92 8 89 8 85 pH4 00 4 01 4 00 4 00 4 00 4 00 4 00 4 01 4 02 4 03 4 04 4 06 4 07 4 09 4 12 4 16 4 20 pH7 00 7 12 7 09 7 06 7 04 7 02 7 00 6 99 6 98 6 97 6 97 6 97 6 97 6 98 6 99 7 00 7 02 pH10 01 10 32 10 25 10 18 10 12 10 06 10 01 9 97 9 93 9 89 9 86 9 83 9 81 9 79 9 76...

Страница 24: ...s not match the display current Possible causes Current output may not be correctly calibrated Solutions Please re calibrate the 20mA output 4 The instrument shows Possible causes The transmitter and sensor are not communicating properly Solutions Check that the sensor signal cable is correct Please refer to the wiring diagram in the manual 5 Measurement shows the result as full scale SLOP Possibl...

Страница 25: ...ason When applying for authorization please nclude date requiring the reason of return Instruments must be carefully packed to prevent damage in shipment and insured against possible damage or loss We Instruments will not be responsible for any damage resulting from careless or insufficient packing Warning Damage as a result of inadequate packaging is the User distributor s responsibility Please f...

Страница 26: ...it should be stored in a cool dry and ventilated place ӹ If you don t use the instrument for a long time you should unplug the power supply to avoid accidents ӹ This instrument is not suitable for use in harsh environment high temperature low temperature or strong magnetic field interference which may lead to instrument damage ӹ If there is any problem with the instrument please contact the dealer...

Страница 27: ......

Страница 28: ...Shanghai Chunye Instrument Technology Co Ltd Tel 021 61621082 Fax 021 61621099 Web www twinno net Add Building 6 No 166 Mindong Road Pudong New District Shanghai China Post code 201209 ...

Отзывы: