TMS-Meter is driver to communicate between TMS-Client and measuring instrument as protocol constituted at KECO.
<Figure 1> is read setting example of TMS-Meter communication driver.
<Figure 1> Read setting example of TMS-Meter driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to device.
Also, you can set whether to check BCC error of read data(1 : Check error, 0 : Not check error, Default = 1) at Option part.
TMS-Meter driver's read schedule
Read schedule setting parameters are as follows:
1) STATION – Don't care. Set as 0.
2) Read command – Enter among DATA(Data read, Basic commands), CCHK(Read calibration values) and SAMP(Read automatic water bottle status value).
3) Read start address – Don't care.
4) Save start address for Communication Server - Saving start address of Communication Server.
5) Read Size – Always set as 1. Data size is defined according to read command. (Refer to <Table 1>)
Read schedule example)
READ, 0, DATA, 0, 0, 1,
<Table 1> is data save address and contents of TMS-Meter communication driver.
Most TMS-Meter communication driver's read value is saved at same address of WORD/DWORD/FLOAT memory(Only type of saved value is different).
But, additional information and item string are saved at String memory only.
Command | Command contents | Save address and contents |
DATA | Read current data | Save addr + 0 ~ 5 : Year, Month, Day, Hour, Minute and Second of measurement Save addr + 6 : Number of items of measurement, Save addr + 7 : Item, (Save in String memory) Save addr + 8 : Measured value, ¡¦ dd(Repeat two Item, Measurement and Status information up to number of items for measurement) ¡¦ Save addr + ? : Status information, Save addr + ? +1 : Additional information(Save in String memory) |
CCHK | Read calibration value | Save addr + 0 ~ 5 : Year, Month, Day, Hour, Minute and Second of measurement Save addr + 6 : Number of items of measurement, Save addr + 7 : Slope, Save addr + 8 : Intercept, Save addr + 9 : Zero calibration solution concentration, Save addr + 10 : Span calibration solution concentration, Save addr + 11 : Factor, Save addr + 12 : Offset, Save addr + 13 : Range of measurement, ¡¦ (Repeat 7 things of slope, ~ measurement range up to number of items for measurement) ¡¦ |
SAMP | Read automatic water bottle status | Save addr + 0 ~ 5 : Year, Month, Day, Hour, Minute, Second of measurement, Save addr + 6 : Number of items of measurement, Save addr + 7 : Temperature, Save addr + 8 : Status code, Save addr + 9 : Container position information,(0 ~ 99) Save addr + 10 : Additional information(Save in String memory) |
<Table 1> Read data save address and contents of TMS-Meter communication driver |
If you click the icon in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. You can also set read schedule by using this part.
<Figure 2> Example of TMS-Meter communication driver's dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
Also, you can set whether to check BCC error of read data at 'Check Bcc Data Error' area of <Figure 2>.
<Figure 3> Example of TMS-Meter communication driver's read schedule Add/Edit dialog box |
When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.
You can send calibration execution and water sampling by using writing settings.
Digital Write
Digital write setting parameters are as follows:
1) Port Connected port number. (Not COM number)
2) Station Don't care. (Set as 0)
3) Address Don't care. (Set as 0)
4) Extra1 Enter output command.
RCHK : Execution of calibration,
SAMP : Execution of water sampling.
5) Extra2 Don't care.
Write example 1)
PORT : 0 STATION : 0 ADDRESS : 0000 EXTRA1 : RCHK EXTRA2 : 0
The setting parameter shown above is digital value setting example of sending calibration execution command to measuring instrument connected with no.0 port.
Write example 2)
PORT : 0 STATION : 0 ADDRESS : 0000 EXTRA1 : SAMP EXTRA2 : 0
The setting parameter shown above is digital value setting example of sending water sampling execution command to measuring instrument connected with no.0 port.
Analog Write
Digital write and analog write have the same setting parameters except output value.