C300 Transmission protocol for C300 firmware 5.x.x
C300B transmission protocol 2017-06-12.doc
12/22
Function
Read S0 inputs settings and results
Command
RDMETS0_<INPUT>,<REGISTER>[CR][LF]
Answer
<VALUE>[CR][LF]
Description
Read S0 inputs settings and results
Answer
parameter(s)
<INPUT> = 0
select first S0 input,
<INPUT> = 1
select second S0 input,
<REGISTER> = 0
MET_S0_MODE (return mode of S0 input):
<VALUE> = 0
S0 OFF,
<VALUE> = 1
measuring time,
<VALUE> = 2
number of measuring impulses,
<REGISTER> = 1
MET_S0_RESERVED
– not used
<REGISTER> = 2
MET_S0_SETTING (return settings of measuring time in seconds or
number of measuring impulses):
<VALUE>
natural number from 1 to 2^32,
<REGISTER> = 3
MET_S0_PROGRESS (return number of measured impulses):
<VALUE>
natural number from 1 to 2^32 (with start impulse),
<VALUE> = 0
no measured impulses,
<REGISTER> = 4
MET_S0_FREQUENCY (return signal frequency in Hz):
<VALUE>
real number from 0.000001 to 200000.000Hz
<VALUE> = 0.000000
measurement in progress,
Example(s)
RDMETS0_1,3 [CR][LF]
(
read measure progress in second S0 input)
Example answer
245[CR][LF]
(245 impulses measured)
Function
Read S0 inputs results
Command
RDMETS0ERR_[CR][LF]
Answer
<VALUE1>,<VALUE2>,<VALUE3>,<VALUE4>[CR][LF]
Description
Read S0 inputs results
Answer
parameter(s)
<VALUE1>
first S0 input number of measured impulses with start impulse (0
– no
measured impulses),
<VALUE2>
first S0 input signal frequency in Hz (0.000000
– measurement in progress),
<VALUE1>
second S0 input number of measured impulses with start impulse (0
– no
measured impulses),
<VALUE2>
second S0 input signal frequency in Hz (0.000000
– measurement in
progress),
Example(s)
RDMETS0ERR_[CR][LF]
Example answer
125,0.000000,181,0.000000[CR][LF]
(measurement in progress in first and send S0 input, 125 pulses measured in first S0 input
and 181 pulses measured in second S0 input)