Mitsubishi FX0N-232ADP User Manual page 4

Fx0n-232adp communication adapter user's guide
Hide thumbs Also See for FX0N-232ADP:
Table of Contents

Advertisement

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)
Bit
Description
b 0
Data length
b 1
Parity
b 2
b 3
Stop
b 4
b 5
Baud rate
b 6
(bps)
b 7
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.
M8002
Setting input
b15
H138F= 0001
0011
The settings for the above program are as right.
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.
When sending
b 10 1
Pin No.
b 11 0
SD(TXD)
H/W.
Ordinary
ER(DTR)
mode
DR(DSR)
b 10 1
Pin No.
b 11 1
SD(TXD)
H/W.
RD(RXD)
Single line
mode
ER(DTR)
0(OFF)
1(ON)
7bit
8bit
(00) : None
(01) : Odd
(11) : Even
1bit
2bit
(0011) :
300
(0100) :
600
(0101) : 1,200
(0110) : 2,400
(0111) : 4,800
(1000) : 9,600
(1001) : 19,200
[MOV
H138F
b0
1000
1111(binary)
Send
Data
Bit
b 8
b 9
b10
b11
b12
b13
b14
b15
*1
*2
D8120]
When receiving
Pin No.
RD(RXD)
ER(DTR)
DR(DSR)
Send
Data
Receive
Description
0(OFF)
Header
None
Terminator
None
Control line
None
Mode
Ordinary
(Control line)
mode
Not used
- - -
The default value is STX (02H: changeable).
The default value is ETX (03H: changeable).
Data length
Parity
Stop
Baud rate
Header
Terminator
Control line
Mode
Receive
Data
1(ON)
D8124 *1
D8125 *2
H/W
Single line
mode
- - -
8 bit
Even
2 bit
9,600
Used
Used
H/W
Ordinary mode
Data

Advertisement

Table of Contents
loading

Table of Contents