10 option time, 11 option repeat x – VEGA Modbus-TCP, ASCII protocol User Manual

Page 29

Advertising
background image

29

2 ASCII protocol

Modbus-TCP, ASCII protocol • VEGAMET 391/624/625, VEGASCAN 693, PLICSRADIO C62

30768-EN-130701

Formatting of the value:

Character

Meaning

1

"- ": Minus with negative numbers
" ": Space with positive numbers

2 … 11

11-digit number with comma or error code

T3: "#" (1 character)

Unit: Unit as text (0 … n unit)

End identification: Carriage Return CR (1 sign)

Total length of the telegram: (End-Start+1)*(18 characters+Unit

character)
Enquiry:

$001-003
Answer:

=001# 67.3 #kg

=002# 824.3 #%

=003#-67.3 #m

2.10 Option TIME

By adding the attribute TIME, the current time will be transmitted

before the reply. The transmission of date/time information is carried

out in the format "@YYYY/MM/DD hh:mm:ss". The character string

contains 21 characters incl. CR.

YYYY - year with 4 decimal places

MM - month with 2 decimal places

DD - day with 2 decimal places

hh - hours in 24 h format with 2 decimal places

mm - minutes with 2 decimal places

ss - seconds with 2 decimal places

Note:

The character string is terminated with CR.
Enquiry:

$001 time
Answer:

@2005/04/07 09:00:50

=001# 24.44 #%

2.11 Option REPEAT x

By attaching the attribute REPEAT and a number x, the transmitted

enquiry will be repeated every x seconds. If the value for the repetition

is = 0, a measured value is only retrieved once. A repetition rate less

than 5 seconds is not possible.
Enquiry: (activate autom. repetition every 10 sec.)

$001 time repeat 10
Answer:

@2005/04/07 09:02:19

=001# 27.55 #%

Example:

Example

Example:

Advertising