
10
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM24-96
V1 R0
Page
2.2.3 Reading of the instrument status
Example 3: reading of the “present modules+digital input status” word
1-word read request frame (8 byte)
01h 04h 00h B2h 00h 01h CRC CRC
1-word read answer frame (7 byte):
01h 04h 02h 89h 77h CRC CRC
Module variable value: 89h = 10001001
IN_CFPGM = 1 Programming: enabled
IN_CFOUT = 0 Digital output module: present
Example 4: Alarm status read command
1-word read command request frame (8 byte):
01h 04h 00h B4h 00h 01h CRC CRC
Read command answer frame (7 byte):
01h 04h 02h 35h 35h CRC CRC
Alarm 1: Alarm ON Digital input 1: closed
Alarm 2: Alarm OFF Digital input 2: closed
2.2.4 Write command for remote digital output
If a digital output is set as “rem” (remote, see EEPROM map), it is possible to remotely set/reset it
writing a word on address 00B4h according to the following table.
Alarm 1 Alarm 2 MSB LSB
OFF OFF 00h 00h
ON OFF 01h 00h
OFF ON 02h 00h
ON ON 03h 00h
Example 5: Frame to set alarm 1 = ON and alarm 2 = OFF
Request frame: A1 = ON and A2 = OFF (8 byte):
01h 06h 00h B4h 01h 00h CRC CRC
Answer frame (8 byte):
01h 06h 00h B4h 01h 00h CRC CRC
Example 6: Frame to set alarm 1 = OFF and alarm 2 = OFF
Request frame: A1 = OFF and A2 = OFF (8 byte):
01h 06h 00h B4h 00h 00h CRC CRC
Answer frame (8 byte):
01h 06h 00h B4h 00h 00h CRC CRC
Comentarios a estos manuales