Download Print this page

Mitsubishi Electric MELSEC FX2N-232-BD User Manual

Communication board
Hide thumbs Also See for MELSEC FX2N-232-BD:

Advertisement

Quick Links

FX
-232-BD COMMUNICATION BOARD
2N
This manual contains text, diagrams and explanations which will guide the reader in the correct installation and
operation of the FX
-232-BD and should be read and understood before attempting to install or use the unit.
2N
Further information can be found in the FX SERIES PROGRAMMING MANUAL, FX
and FX-485PC-IF USER'S MANUAL.
1
INTRODUCTION
The communication board FX
-232-BD for RS232C (hereinafter referred to as "232BD") can be connected to the main
2N
unit of the FX
Series programmable controller, and used as the port for the following applications.
2N
(1) To perform data transfer between RS232C devices such as personal computers, bar code readers and printers.
(2) To perform data transfer using the dedicated protocol between RS232C devices. For details of the dedicated
protocol, refer to the users manual of the FX-485PC-IF.
(3) To connect a programming tool.
And when the 232BD is used for the application (1) or (2) above, the communication format including the baud rate, the
parity and the data length is specified by the parameters or the contents of the special data register D8120 of the FX
programmable controller.
Only one 232BD can be connected to one base unit. Accordingly, the 232BD cannot be used together with the
FX
-485-BD or the FX
-422-BD. When two or more RS232C units are required to be connected for the application,
2N
2N
use the special block for RS232C communication.
1.1 EXTERNAL DIMENSIONS
Dimensions : mm (inches) Accessory : M3 self-tapping screws × 2, mounting bracket × 2
Mounting holes <2-φ 4.0 (0.16")>
1
Connector for programmable controller
2
3 4
RXD LED : Flashes at high speed during sending.
5
TXD LED : Flashes at high speed during sending.
Connector (9-pin D-SUB type) for peripheral unit
The top face of this connector is higher than the top face of the panel
cover of the programmable controller by approximately 3 mm (0.12")
or by approximately 50 mm when the cable is connected.
Mounting holes of connector <2 - M2.7 (0.11") × 0.635 (0.025")>
6
35
1
2
TERMINAL LAYOUTS
The connector is a 9-pin D-SUB type, and the pin configuration is as shown below.
Pin No.
Signal
Meaning
1
CD(DCD)
Carrier detection
ON when carrier is detected for data reception
2
RD(RXD)
Receive data
Receive data (RS232C device to 232BD)
1
3
SD(TXD)
Send data
Send data (232BD to RS232C device)
6
2
Signal requesting preparation for data sending to RS232C
4
ER(DTR)
Send request
7
device
3
8
5
SG(GND)
Signal ground
Signal ground
4
6
DR(DSR)
Send enable
Shows RS232C device is ready to receive
9
5
7,8,9
NC
No connection
3
3.1 General specification
General specifications is same as those for the FX
3.2 Power supply specification
5 V DC, 60 mA is required from the programmable controller.
3.3 Specification
Transmission standard
Transmission distance
USER'S GUIDE
Connector
Pin layout of connector
LED indicators
JY992D66001A
Communication method
Protocol
Isolation
SERIES HARDWARE MANUAL
2N
3.4 Related flag and data registers
Diagnostic
devices
M8121
Data transmission delayed (RS instruction)
M8122
Data transmission flag (RS instruction)
M8123
Finished receiving data (RS instruction)
M8124
Carrier detection flag (RS instruction)
M8126
Global flag (dedicated protocol)
M8127
On demand handshake flag (dedicated protocol)
M8128
On demand error flag (dedicated protocol)
2N
M8129
On demand Byte/Word flag (dedicated protocol)
Selection of 8 bit operations for applied instructions
M8161
ASC, RS, ASCI, HEX, CCD (RS instruction)
3.5 Communication format D8120
To send and receive the data between the RS232C unit using the 232BD, the communication format including the
transmission speed (baud rate) and the parity must be consistent between the 232BD and the RS232C unit.
The communication format can be set using parameters or the contents of special data register D8120 of the FX
programmable controller. Make sure to set appropriately the communication format in accordance with the RS232C unit
used. For the setting method using the parameters of the FX
peripheral unit used.
Make sure to turn off the power of the programmable controller and turn it on again after modifying the setting.
Bit
Meaning
No.
b0
Data length
b1
Parity
b2
b3
Stop bit
b4
b5
Baud rate (bps)
b6
b7
*1
Set to "0" when using the dedicated protocol.
*2
Effective only when no protocol (RS instruction) is selected, and has an initial value of STX (02H: Can be modified by
the user).
*3
Effective only when no protocol (RS instruction) is selected, and has an initial value of ETX (03H: Can be modified by
the user).
*4
Set to (b11, b12) = (1, 0) when using the dedicated protocol.
*5
Set to "0" when using no protocol.
Function
3.5.1 Example program of setting
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 if changed after driving, it is not actually
accepted.
An example of setting D8120 is shown below.
M8002
H138F = 0001 0011 1000 1111(binary)
The settings for the above program are as right.
SPECIFICATION
series programmable controller.
2N
Conforming to RS232C
Max. 15m
9-pin D-SUB type
1:CD(DCD) 2:RD(RXD) 3:SD(TXD) 4:ER(DTR) 5:SG(GND) 6:DR(DSR)
7,8,9:NC(No connection)
RXD, TXD
Half-duplex communication system
Programming protocol, dedicated protocol (format 1 or 4), non protocol
No isolation
Diagnostic
Operation
Operation
devices
D8120
Communications format (RS instruction, dedicated protocol)
D8121
Local station number (dedicated protocol)
D8122
Amount of data to be transmitted (RS instruction)
D8123
Amount of remaining data already received (RS instruction)
D8124
Data header <default STX (02H)> (RS instruction)
D8125
Data terminator <default ETX (03H)> (RS instruction)
D8127
On demand head device register (dedicated protocol)
D8128
On demand data length register (dedicated protocol)
D8129
Data network 'time-out' timer value (dedicated protocol)
programmable controller, refer to the manual of the
2N
Contents
Bit
Meaning
No.
0 (OFF)
1 (ON)
0 (OFF)
7 bit
8 bit
Header character
b8
None
*1
b2,b1
b2,b1
(0, 0) : None
(1, 1) : Even
Terminator
b9
None
(0, 1) : Odd
character *1
1 bit
2 bit
b10
Reserved
b7,b6,b5,b4
b7,b6,b5,b4
DTR check
b11
Send and receive
(0, 0, 1, 1) : 300
(0, 1, 1, 1) : 4,800
(Control line) *4
(0, 1, 0, 0) : 600
(1, 0, 0, 0) : 9,600
b12
Control line *4
None
(0, 1, 0, 1) : 1,200 (1, 0, 0, 1) : 19,200
(0, 1, 1, 0) : 2,400
Sum check code
b13
Sum check *5
is not added
b14
Protocol
No protocol
Transmission
b15
Protocol format 1
control protocol *5
Data length
Parity
Stop bit
Baud rate
MOV
H138F
D8120
Protocol
Header
Terminator
Control line
DTR check
The control line is set by b12.
b12 = 0 : No hardware hand shaking. Send and receive are controlled by software protocol.
b12 = 1 : Hardware hand shaking. Signal lines ER(DTR)and DR(DSR)are used to control send and receive of data.
When sending
b 12
1
Pin No.
Send
b 11
0
3
SD (TXD)
Data
4
ER (DTR)
6
DR (DSR)
b 12
1
Pin No.
Send
b 11
1
3
SD (TXD)
2
RD (RXD)
4
ER (DTR)
6
DR (DSR)
4
To connect the 232BD to RS232C device use an RS232C cable. Make sure that the shield of cables is connected to
ground (100 Ω or less).
The connector of the 232BD is 9-pin D-SUB (see Section 1.2 and Chapter 2). The connections of RS232C devices
varies with each device being used. Check the specification of the device, and connect.
4.1 Connection examples
4.1.1 Terminal specification device
RS232C device
Uses ER, DR *
Uses RS, CS
25-pin
9-pin
25-pin
Meaning
Meaning
D-SUB
D-SUB
D-SUB
RD (RXD)
3
2
RD (RXD)
SD (TXD)
2
3
SD (TXD)
ER (DTR)
20
4
RS (RTS)
2N
SG (GND)
7
5
SG (GND)
DR (DSR)
6
6
CS (CTS)
*
When using ER and DR signals, please also check if RS and CS signals are needed according to the
RS232C device's specifications.
4.1.2 Modem specification device
Contents
1 (ON)
RS232C device
Uses ER, DR *
Uses RS, CS
D8124 *2
25-pin
9-pin
25-pin
Meaning
Meaning
D-SUB
D-SUB
D-SUB
D8125 *3
CD (DCD)
8
1
CD (DCD)
RD (RXD)
3
2
RD (RXD)
SD (TXD)
2
3
SD (TXD)
Receive
20
4
ER (DTR)
RS (RTS)
H / W
SG (GND)
7
5
SG (GND)
Sum check code
is added
6
6
DR (DSR)
CS (CTS)
automatically
*
When using ER and DR signals, please also check if RS and CS signals are needed according to the
Dedicated protocol
RS232C device's specifications.
Protocol format 4
4.1.3 When programming or monitoring
Use F
-232CAB-1 and 25-pin D-SUB to 9-pin D-SUB adapter or make a suitable cable.
2
5
MOUNTING PROCEDURE
Turn off the power of the programmable controller, and mount the 232BD using the following procedure.
Remove the panel cover from the top face of the main unit.
Connect the 232BD to the board mounting connector provided on the base unit.
Fix the 232BD to the main unit using the M3 self-tapping screws provided,
fitting the mounting bracket and the round crimp-style terminal with the
ground cable as shown in the figure on the right.
Make sure that the crimp-style terminal is attached in the direction shown
in the figure on the right, and that the ground cable extends from the unit
shown in the figure below.
8 bit
Tightening torque: 0.3 to 0.6 Nm (3 to 6 kgf⋅cm)
Even
2 bit
Grounding
Cable
9,600
No protocol
Used
Used
Cut out the hole provided on the left portion of the panel cover using a tool
H / W
such as nippers and cutter so that the terminal block can be seen. The top
face of this connector is higher than the top face of the panel cover of the
Send and receive
programmable controller by approximately 7 mm (0.27").
When receiving
Pin No.
Receive
Data
2
RD (RXD)
Data
Data
4
ER (DTR)
6
DR (DSR)
Data
Receive
Data
WIRING
232BD
9-pin
9-pin D-SUB
D-SUB
3
2
2
RD (RXD)
2
3
3
SD (TXD)
4
7
4
ER (DTR)
7
5
5
SG (GND)
5
8
6
DR (DSR)
232BD
9-pin
9-pin D-SUB
D-SUB
8
1
1
CD (DCD)
3
2
2
RD (RXD)
2
3
3
SD (TXD)
4
7
4
ER (DTR)
7
5
5
SG (GND)
5
8
6
DR (DSR)

Advertisement

loading

Summary of Contents for Mitsubishi Electric MELSEC FX2N-232-BD

  • Page 1 The control line is set by b12. SPECIFICATION b12 = 0 : No hardware hand shaking. Send and receive are controlled by software protocol. 3.1 General specification b12 = 1 : Hardware hand shaking. Signal lines ER(DTR)and DR(DSR)are used to control send and receive of data. General specifications is same as those for the FX series programmable controller.
  • Page 2 X001, ON Writing of send data 4 • Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential Herein, "test line" is sent. Every time X001 is turned on, the contents of D200 to [MOV H006E D207] damage that may arise as a result of the installation or use of this equipment.