CARLO GAVAZZI WM4-96 - PROGRAMMING Manual de usuario Pagina 45

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 57
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 44
45
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
5.1 DATA LOGGING SAMPLE FORMAT
Every sample includes the following information:
Number of logged variable (1 <= n <= 8)
Type of variable 1
Value of variable 1
Type of variable n
Value of variable n
Hour and date
The sample is coded in a number of bytes which is depending on the number of logged variables (n) according
to the following formula: byte=6 + nx3. In the next example the coding of a sample is explained in detail.
Example 25: data logging sample coding
In the following example every sample includes 2 variables.
Byte ADDRESS BYTE VARIABLE VALUE MEANING
1
000
1 N° of logged variables 02h 2 variables
2
001
1 Type of variable 1 00h VL1-N
3
002
1 Value (MSB) 01h
4
003
1 Value (LSB) 7Eh 017Eh = 382 V
5
004
1 Type of variable 2 0Fh
WΣ
6
005
1 Value (MSB) 09h
7
006
1 Value (LSB) 65h 15.0 W
8,9
007
2 Year, month, day (see note) 0593h 19 December 2002
10
009
1 Hour 0Dh 13
11
00A
1 Minute 01h 01
12
00B
1 Second 00h 00
13
00C
1 N° of logged variables 02h 2 variables
14
00D
1 Type of variable 1 00h VL1-N
15
00E
1 Value (MSB) 01h
16
00F
1 Value (LSB) 7F 017Fh = 383 V
17
010
1 Type of variable 2 0Fh
WΣ
18
011
1 Value (MSB) 09h
19
012
1 Value (LSB) 75h 15.1 W
20,21
013
2 Year, month, day (see note) 0593h 19 December 2002
22
015
1 Hour 0Dh 13
23
016
1 Minute 02h 02
24
017
1 Second 00h 00
NOTE: the year-month-day format is the following:
Year Month Day
Byte8 + Byte9 XXXXXXX
XXXX XXXXX
Example: 0593h=0000 0101 1001 0011
Year = 0000 010 = 2 è 2002
Month = 1 100 = 12 è December
Day = 1 0011 = 19
Gross Automation (877) 268-3700 · www.carlogavazzisales.com · [email protected]
Vista de pagina 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 56 57

Comentarios a estos manuales

Sin comentarios