¡@

ISaGRAF 049

back

  Q: Setting a special ¡§CODE_¡¨ parameter of ¡§MBUS_R¡¨ & ¡¨MBUS_R1¡¨ to get a clear ¡§Degree Celsius¡¨ or ¡§Degree Fahrenheit¡¨ input value of M-7000 temperature module . For ex, ¡§3012¡¨ means 30.12 degree.

  Ans :

  Important : Special ¡§CODE_¡¨ setting is supported since driver version of I-8xx7:3.15 , I-7188EG:2.13 , I-7188XG:2.11 ,
  W-8xx7:3.31

  The "CODE_" parameter of "MBUS_R" & "MBUS_R1" can be ¡§standard setting¡¨ or ¡§special setting¡¨.

  For example setting ¡§CODE_¡¨ of Modbus function code 1 to 4 (Dec. value) means ¡§standard setting¡¨, the value of 1 to 4
  indicates using Modbus function code to read Modbus device.

  In this case.

  Setting "CODE_" is 1 or 2 ,the input value is 1 or 0.

  Setting "CODE_" is 3 or 4 ,the input value is is normally ¡V32768 to + 32767.

  Also using "MBUS_R" & "MBUS_R1" to read the M-7000 devices with temperature input.

  Please set "CODE_" to a specical value defined as below.

  Format : TTRRCC (Hex.)
TT=10 (Convert to "Degree Celsius")
TT=20 (Convert to "Degree Fahrenheit")
TT=00 (standard setting, -32768 to +32767. RR should be set as 00 if TT=00)
RR : "type code" setting of the related temperature input module
CC : Modbus function code 1 to 4 of the related Modbus device
The temperature input value unit is 0.01 degree. For ex, ¡§3012¡¨ means 30.12 degree.

  For example, setting "CODE_" as below to read the temperature value of M-7019

  A. 16#100F04 : (TT=10, RR=0F CC=04, Hex) the input value will be "Degree Celsius", unit is 0.01 degree, range= "0F :
  Thermocouple K Type, -270 ~1372 degree Celsius", code=04(Dec.). That results input value of "2356" = 23.56 Degree Celsius, "-
  489" = -4.89 Degree Celsius, "999990" = sensor broken-line.

  B. 16#200F04 : (TT=20, RR=0F, CC=04, Hex)) the input value will be "Degree Fahrenheit ", unit is 0.01 degree, range= "0F :
  Thermocouple K Type, -270 ~1372 degree Celsius", code=04(Dec.). That results input value of "4512" = 45.12 Degree
  Fahrenheit,"500" = 5.00 Degree Fahrenheit, "999990" = sensor broken line.

  C. 16#04 : (TT=00, RR=00, CC=04) standard setting, the input value will be , -32768 to +32767, code=4

back

Written by Spike Huang 

Date:2006/09/21