beautypg.com

MITSUBISHI ELECTRIC FX0N-232ADP User Manual

Page 4

background image

*1

The default value is STX (02H: changeable).

*2

The default value is ETX (03H: changeable).

The communication format is set by special data register D8120.

Setting the communication format using D8120 is effective only at the time the RS instruction is driven, and therefore

any change after driving is not actually accepted.

An example of setting D8120 is shown below.

Setting input

The control line is set by b10.

b10

= 0 :No hardware handshaking.Send and receive are controlled by software protocol.

b10

= 1 :Hardware handshaking.Signal lines ER(DTR)and DR(DSR)are used to control send and receive of data.

H138F= 0001 0011 1000 1111(binary)

The settings for the above program are as right.

b15

b0

H/W.

Ordinary
mode

When sending

RD(RXD)

ER(DTR)

DR(DSR)

When receiving

Pin No.

Data

Data

SD(TXD)

RD(RXD)

ER(DTR)

b 10 1

b 11 1

H/W.
Single line
mode

Pin No.

Data

Send

Send

Receive

Data

Receive

[MOV

H138F

M8002

b 10 1

b 11 0

Pin No.

SD(TXD)

ER(DTR)

DR(DSR)

For data transmission to be effective it is necessary to match the communication format between the product and the
RS232C device, such as Baud rate and parity.

Communication format D8120 (bit mapping)

Data length

8 bit

Parity

Even

Stop

2 bit

Baud rate

9,600

Header

Used

Terminator

Used

Control line

H/W

Mode

Ordinary mode

Bit

Description

0(OFF)

1(ON)

b 0

Data length

7bit

8bit

Parity

(00) : None
(01) : Odd
(11) : Even

b 3

Stop

1bit

2bit

Baud rate

(bps)

(0011) : 300
(0100) : 600
(0101) : 1,200
(0110) : 2,400
(0111) : 4,800
(1000) : 9,600
(1001) : 19,200

Bit

Description

0(OFF)

1(ON)

b 8

Header

None

D8124 *1

b 9

Terminator

None

D8125 *2

b10

Control line

None

H/W

b11

Mode

(Control line)

Ordinary

mode

Single line

mode

b12
b13
b14
b15

Not used

- - -

- - -

D8120]

b 1

b 2

b 4

b 5

b 6

b 7