
57
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
7.7 ANALOGUE MODEM COMMUNICATION.
To enable the communication via analogue modem, WM4 serial port is to be opportunely set
(menu serial output/RS232/MODEM).
7.7.1 Passive working mode
WM4 automatically answers the remote PC after 3 rings. The communication will start using the
Modbus protocol as the WM4 is directly connected to the PC.
Note: the modem connected to WM4 is to be configured with automatic answer after 3 rings (see the
relevant AT commands on the modem manual).
7.7.2 Active working mode
WM4 is able to call a remote PC and communicate the activation or deactivation of up to 4 alarms.
The connection between WM4 and the analogue modem is to be carried out after storing on the
Flash memory the phone number to which the message is to be sent and the text messages to be
associated both to the alarm activation and alarm deactivation (see paragraph 5.2).
It is required to specify the number of telephone number towards which WM4 has to try to send the
message (maximum 5, see EEPROM address 207Ch). The messages will be to the first telephone
number. Only if the connection is not possible, WM4 will try with the second number and so on.
WM4 has to send a fixed frame request to the remote PC to establish if the connection is correctly
settled. The PC has to answer with another fixed frame to confirm the correct connection and to
communicate it is in waiting status.
Every message has to finish with the ASCII code 26 (Ctrl+Z) and has to include less than 100
characters.
Connection request (from WM4-96 to the remote PC, 7-byte frame)
Address Function CRC
1 byte 1 byte 1 byte 1 byte 1 byte 2 byte
from 1 to 255 04 AA 55 AA MSB LSB
Correct connection answer (from the remote PC to WM4-96, 8-byte frame)
Address CRC
1 byte 1 byte 1 byte 1 byte 1 byte 1 byte 2 byte
from 1 to 255 BE AD 9C 8B 7A MSB LSB
Komentarze do niniejszej Instrukcji