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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 57
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 7
8
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
8
Read command request frame
Address Function Word address n° of words CRC
1 byte 1 byte 2 byte 2 byte 2 byte
From 1 to 255 04 01h C0h 00h 02h MSB LSB
Read command answer frame
Address Functi
on
n° byte
Value Value Value Value CRC
1 byte 1 byte 1 byte 1° byte 2° byte 3° byte 4° byte 2 byte
From 1 to 255 04 04 01C0h 01C1h 01C2h 01C3h MSB LSB
2.3 INSTANTANEOUS VARIABLES READING
Example 3: Reading of a single variable: W1
Value request frame (8 byte):
01h
04h
00h
08h
00h
02h
CRC
CRC
Value answer frame (9 byte):
01h
04h
04h
00h
00h
63h
8Dh
CRC
CRC
Info request frame (8 byte):
01h
04h
00h
E8h
00h
02h
CRC
CRC
Info answer frame (frame 9 byte):
01h
04h
04h
07h
07h
06h
00h
CRC
CRC
Stored value: 638Dh (25485 decimal)
Info value (P type): 06h
Since 9999<25485<99999, the inf2 value to be considered is 06+1=07 (11.11K)
Variable value (W1): 25.48 kW
Example 4: Reading of all the instantaneous variables:
All instantaneous values (+ info) request frame (8 byte):
01h
04h
00h
00h
00h
76h
CRC
CRC
All instantaneous values (+ info) answer frame (241 byte):
01h
04h
ECh
00h
00h
01h
37h
07h
07h
0Ah
03h
CRC
CRC
VL1-N stored value: 0137h (0311 decimal)
.....................
.....................
Info (V type) value: 07h
Info (A type) value: 07h
Info (P type) value: 0Ah
Variable value (VL1-N): 3.11 kV
Gross Automation (877) 268-3700 · www.carlogavazzisales.com · [email protected]
Vista de pagina 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 56 57

Comentarios a estos manuales

Sin comentarios