Programming; Sending Messages; Receiving Messages; Programming Example - ABB AC 31 Technical Manual

Advant controller 31 40 & 50 series
Hide thumbs Also See for AC 31:
Table of Contents

Advertisement

2.3. Programming

Page 7-14
Communication
Two other functions for ASCII communication exist, apart from the obligatory SINIT function,
for parameter configuration.

2.3.1. Sending messages

Sending an ASCII message from one 40 or 50 series central unit to another device is done
with the SEND function in the user program.

2.3.2. Receiving messages

Receiving an ASCII message on a 40 or 50 series central unit is done with the REC function
in the user program.
A detailed description, of the SINIT, SEND and REC functions, is available in the help file of
the AC31GRAF software or in the AC31GRAF software documentation.

2.3.3. Programming example

The communication interface is configured by the SINIT block with the following parameter
values:
- Interface COM1
- 9 600 Bauds
- 1 stop bit
- 8 data bits
- No parity
An echo is defined for visualizing the message on the terminal. The end of the message is set
to a carriage return (CR).
The example consists of receiving the message with the REC block whose text is "Action x"
where x varies from 0 to 9, and then to validate by replying "Action x OK" or to return "error
message" in the case of a message error using the SEND block.
ABB Control - AC 31
1SBC 260400 R1001-b
06.99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents