Rs232 Serial Communication; Communication Parameters; Serial Port Parameters (Config.txt) - inout RePlay 01 User Manual

Table of Contents

Advertisement

10

RS232 serial communication

10.1 Communication parameters

The parameters of the RS232 serial port (length of the packs, parity, speed, etc.) are set
via the configuration file config.txt.
These parameters must coincide with those of the outside device with which Replay is to
communicate. To make the modification of these parameters effective, Replay must be
restarted. Therefore, after having introduced the Compact Flash with the file config.txt, start the
device up again.
IMPORTANT:
Conditions in which a transmission sequence is initialised.
The Replay transmission sequence is initialised under the following conditions:
• When Replay is turned on.
• When the data communication has been normally completed.
• When the timeout time for receiving a pack has expired.

10.2 Serial port parameters (config.txt)

The following table lists the values of the parameters needed to connect Replay to a
Master system coordinating it (protocol, speed, timings, etc.).
Mnemonic
Description
Enabling introduction of the Checksum:
CMCK
0=Checksum deactivated
1=Checksum activated
Enabling introduction of end-of-pack characters CR and LF (hexadecimal values OD
CMCL
and 0A)
0=No CR and LF
1=Insertion of CR and LF activated
Baud rate (communication speed in bits per second)
CMBR
0=1200 bps
1=2400 bps
2=4800 bps
3=9600 bps
Parity Bits.
CMPR
0=no parity
1=odd parity
2=even parity
Number of Stop Bits
CMSB
1=1 StopBit
2=2 stopBits
Number of data bits
CMDB
7=7 bits per datum
8=8 bits per datum
Minimum delay between end of reception of the pack and delivery of the reply.
CMDR
(Value expressed in tenths of msec between 0 and 15 in decimal)
0=Minimum delay of about 4msec
1=Minimum delay of 10msec
2=Minimum delay of 20msec
Replay User Manual v.
notes for the Master system
1.2
Page 33

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents