A1SJ71QC24 (-R2) - User's Manual (Hardware) IB (NA) - 66686-B (08.98)
A1SJ71QC24 (-R2) - User's Manual (Hardware) IB (NA) - 66686-B (08.98)
A1SJ71QC24 (-R2) - User's Manual (Hardware) IB (NA) - 66686-B (08.98)
User's Manual
(Hardware)
Thank you for buying the Mitsubishi General Use PC MELSEC-Q2AS Series.
Before use, please read this manual carefully and correctly operate the module
with a sufficient understanding of the Q2AS series PC functions and
performance. Please place this manual in a location where it is available to end
users.
MODEL A1SQC24-U-H/W-E
MODEL 13J853
CODE
HEAD OFFICE: MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100 TELEX: J24532 CABLE MELCO TOKYO
NAGOYA WORKS: 1-14, YADA-MINAMI 5, HIGASHI-KU, NAGOYA, JAPAN
When exported from Japan, this manual does not require application to the
Ministry of International Trade and Industry for service transaction permission.
[DESIGN PRECAUTIONS]
DANGER
• When performing the control of the PC in operation (especially changing
data, program, and operation status (status control)) by connecting a
personal computer, etc. to the special function module, configure an
interlock circuit in a sequence program so the safety of the overall system
is always maintained.
Especially, when this control is performed to a remote PC from an external
device, troubles that have occurred on the PC side may not be able to
immediately be handled if there is a data communication error. Define a
troubleshooting agreement between external devices and the PC CPU for
data communication error occurrences, as well as construct an interlock
circuit in the sequence program.
[DESIGN PRECAUTIONS]
CAUTION
• Do not bunch the control wires or communication cables with the main
circuit or power wires, or install them close to each other.
They should be installed 100mm (3.9 inch) or more from each other.
Not doing so could result in noise that would cause erroneous operation.
[INSTALLATION PRECAUTIONS]
CAUTION
• Use the PC in an environment that meets the general specifications
contained in this manual. Using this PC in an environment outside the
range of the general specifications could result in electric shock, fire,
erroneous operation, and damage to or deterioration of the product.
• Switch all phases of the external power supply off when installing or
placing wiring. Not doing so could result in electric shock or damage to
the product.
• Insert the tabs at the bottom of the module into the mounting holes in the
base unit. Then, tighten the module installation screws with specified
torque. If the module is not properly installed, it may result in malfunction,
breakdowns, or the module may fall off.
• Tighten the screw within the range of specified torque.
If the screws are loose, it may result in fallout, short circuits, or malfunction.
Tightening the screws too far may cause damages to the screws and/or
the module, resulting in a fallout, short circuits, or malfunction.
• Do not directly touch the module's conductive parts or electronic
components. Doing so could cause malfunction or trouble in the module.
• Perform correct pressure-displacement, crimp-contact or soldering for wire
connections using the tools specified by the manufactures. Attach
connectors to the module securely.
[WIRING PRECAUTIONS]
CAUTION
• Be sure to secure communication cables in ducts or fix them with cramps.
Failure to do so may cause a damage to the module or cables due to
dangling, shifting or inadvertent handling of cables, or misoperation due to
bad cable connection.
• Before connecting the cables, check the type of interface to be connected.
Connection, or erroneous wiring, to the wrong interface may damage the
module and external devices.
• Tighten the terminal screw within the range of specified torque.
If the screws are loose, it may result in short circuits or malfunction.
Tightening the screws too far may cause damages to the screws and/or
the module, resulting in a fallout, short circuits, or malfunction.
• Do not grab on the cable when removing the communication cable
connected to the module.
When removing the cable with a connector, hold the connector on the side
that is connected to the module.
When removing the cable without a connector, first loosen the screws on
the part that is connected to the module.
Pulling the cable that is still connected to the module may cause a damage to
the module or cable, or misoperation due to bad cable contacts.
• Be sure there are no foreign substances such as sawdust or wiring debris
inside the module. Such debris could cause fires, damage, or erroneous
operation.
[OPERATING PRECAUTIONS]
DANGER
• Do not write data into the "system area" of the buffer memory of special
function modules. Also, do not output the "prohibited to use" signal as the
output signal to a special function module from the PC CPU.
Writing data into the "system area" or outputting a signal for "prohibited to
use" may cause system malfunctions in the PC.
CAUTION
• Before performing the control of the PC in operation (especially changing
data, program, and operation status (status control)) by connecting a
personal computer, etc. to the special function module, read the manual
carefully and confirm if the overall safety is maintained.
Failure to perform correct operations to change data, program, or the status
may result in system malfunction, machine damage, or an accident.
• When using the module while values, such as buffer memory set values,
are registered in the EEPROM, do not turn off the power supply for the
module loading station nor reset the PC CPU.
If the power supply for the module loading station is truned off or the PC
CPU is reset while any values are registered, the data contents in the
EEPROM become inconsistent and as a result the values must be set
again in the buffer memory, etc. and reregistered to the EEPROM. Also
this may cause failure and malfunction of the module.
[DISPOSAL PRECAUTIONS]
CAUTION
• When disposing of this product, treat it as industrial waste.
Table of Contents
About This Manual
1. Overview........................................................................................ 1
2. Transmission Specifications....................................................... 1
3. Name of Each Part and Setting ................................................... 4
4. Mounting and Installation ............................................................ 8
4.1 Handling Precautions............................................................... 8
4.2 Installation Environment........................................................... 8
5. External Wiring ............................................................................. 9
5.1 Connecting RS-232C Line ....................................................... 9
5.2 Connecting RS-422/485 Line................................................. 12
6. External Dimensions .................................................................. 18
About This Manual
The following product manuals are available. Please use this table as a
reference to request the appropriate manual as necessary.
Related Manual
Manual No.
Manual Names
(Model Code)
Serial Communications Module Guidebook IB-66622
(13JF11)
Serial Communications Module User's Manual IB-66612
(13J825) *1
Computer Link Guidebook SH-3510
(13JE76)
Computer Link/Multidrop Link Module User's Manual SH-3511
(Computer Link Function, Printer Function) (13JE77)
*1 A1SJ71QC24 (-R2)'s updated information is added in the manual printed
after manual IB-66612-B.
2. Transmission Specifications
The transmission specifications of the QC24 is shown below.
Refer to CPU module User's Manual for QC24 general specification.
Item Specifications
A1SJ71QC24 A1SJ71QC24-R2
Interface CH1 RS-232C RS-232C
CH2 RS-422/485 RS-232C
Full-duplex/Half-duplex
Communications system
(Only RS-232C interface is selectable.)
Synchronous system Asynchronous system
Transmission speed 19200, 9600, 4800, 2400, 1200, 600, 300
(Unit : bps) (Each of CH1 and CH2 selects.)
Start bit 1
Data format Data bit 7/ 8
Parity bit 1 (yes) / 0 (no)
Stop bit 1/ 2
Item Specifications
A1SJ71QC24 A1SJ71QC24-R2
1
Error Parity check Yes (odd/even) / No
detection Sum check
Yes / No
code
Transmission DTR/DSR Yes (Only RS-232C interface is selectable.) / No
control DC code Yes (DC1/DC3, DC2/DC4) / No
Writing to EEPROM 100,000 times for the same area (Max.)
Dedicated
protocol RS-232C....... 1:1
Line Indep- Non RS-422/485.. 1:1, 1:n, m:n
conn- endent procedure * Only 1: 1 can be used for the bidirectional
ection mode protocol.
protocol
Bidirectional m:n can only be used for a dedicated protocol.
protocol
Dedicated
1:n, m:n
protocol
Non
Linked (Communication disable
procedure 1:n
mode with internal mode)
protocol
Bidirectional (Communication disable
protocol with internal mode)
RS-232C....... 15m (49.2ft.) or less
Transmission distance RS-422/485.. 1200m (3937.0ft.) or less
Power consumption
0.24A 0.155A
(5 VDC)
Number of I/O points 32 points (*1)
Weight: kg (lb) 0.294 (0.65) 0.249 (0.55)
*1 Set special 32 points when allocating I/O by GPP function. Set
"AJ71QC24" as a model name registration when using dedicated
command.
2
3. Name of Each Part and Setting
· A1SJ71QC24 · A1SJ71QC24-R2
A1SJ71QC24
RUN ERROR
A1SJ71QC24-R2
RUN ERROR
ERR. C R/W SWE. ERR. ERR. C R/W SWE. ERR.
C/N NEU. NEU. C/N C/N NEU. NEU. C/N
P/S ACK. ACK. P/S P/S ACK. ACK. P/S
PRO. NAK NAK PRO. LED display PRO. NAK NAK PRO. LED display
SIO SD W SD W SIO SIO SD W SD W SIO
SD SD SD SD
RD RD RD RD
CH1 CH2 Module CH1 CH2 Module
version version
DISPLAY seal (*1) DISPLAY seal (*1)
STS ERR. LED display STS ERR. LED display
10 1 10 1
select switch select switch
456 456 456 456
STATION NO. Station number STATION NO. Station number
78
78
78
78
23
23
23
23
901 901 901 901
CH1 CH2
switch CH1 CH2
switch
89 89 89 89
67 67 67 67
AB
AB
AB
AB
MODE Mode switch MODE Mode switch
45
45
45
45
CD E
CD E
C DE
C DE
23
23
23
23
F0 1 F01 F01 F0 1
1 1
2 2
3 3
4 4
5
6 Transmission 5
6
Transmission
SW 7 specifications SW 7 specifications
8
9
switch 8
9
switch
10 10
11 11
12 12
ON ON
CH2RS-422/485
CH1
RS-232-C
SDA
SG
SDB
FG RS-232C
RDA RS-422/485 interface
NC interface
RDB
CH1
CH1 RS-232-C A1SJ71QC24 A1SJ71QC24-R2 RS-232-C
RS-232C interface
3
Initial Related Protocol
Meaning of LED ON LED OFF Status Dedi- Non Bidire-
LED Name
LED Display (ON/BLINK) (OFF) of LED cated proced- ctional
ure
Normal
RUN Operation Normal Abnormal ON
Any of ERR. error, C/N
ERROR Error batch error, P/S error, PRO Normal OFF
error, SIO error occur !
CH send Blinks during data
SD transmission Not sent OFF
status
CH receive Blinks during data
RD reception Not received OFF
status
Communicatin Blinks during PC communications
C.R/W g with PC (when not communicating is OFF) OFF !
SW. Switch setting
E. error Switch setting error Normal OFF
Transmission Command
Display CH neutral sequence initial status message
select NEU. status (Waiting to receive receive *1
switch command messages) completed
STS CH [Normal After [Abnormal
side ACK. End] After [Normal End] End] OFF !
transmission transmitted transmitted
CH
NAK [Abnormal End] After [Abnormal End] After [Normal OFF
transmission transmitted end]
transmitted
Send wait When data send wait After start of
SD.W. status state generated transmission OFF !
Switch setting error,
CH error mode switching error,
ERR. occurrence send error, receive Normal OFF !
error, on-demand error
CH and PC
CPU
Display C/N communications *2 Normal OFF !
select result
switch CH
ERR. P/S parity/sum Parity/sum check Normal OFF !
side. check error error
CH protocol Communications
PRO. error protocol error Normal OFF !
Overrun, framing error Normal OFF !
When receive data
SIO CH SIO purged because OS Normal OFF !
error area is full.
4
(2) Station number switch setting
Set the station number so that external devices can specify the PC
as the target of access during data communication via the dedicated
protocol.
Station Switch Description
Details
(1) Station number of the local QC24 is set from 0 to 31.
(Do not set a station number over 32.)
Station No.
(2) X10 sets the station number 10 digit.
X 10 X1 (3) X1 sets the station number 1 digit.
(4) Make sure that the station number setting does not
456 456
overlap with another QC24, etc., on the same
78
78
23
23
90 1 90 1 network.
(5) Not necessary to set the station numbers in connect
order. Station numbers can also be skipped.
(The factory setting is [00].)
(3) Mode switch setting
Set data communication functions for each interface.
Mode Mode
Switch Switch Setting Contents
Details No.
When CH1 and CH2 operation is linked: Set CH1 to 0
0 Set CH2 to 1 to 6
When CH1 and CH2 operate independently: Setting impossible.
1 Format 1
Mode 2 ASCII Format 2
3 Dedicated protocol mode Format 3
4 Format 4
5 Binary mode Format 5
6 Non procedure protocol
7 Bidirectional protocol
CH 8
67
89 to Setting impossible
AB
D
45
CD
23
EF
E ROM/RAM/switch test
01
Point
Always set "1" to "7" for the mode setting switch on the interface side
that is not connected to the external device.
5
(4) Transmission specifications switch setting
Set specifications for the communication with the data
communication destination device, as well as other items.
Switch Switch Setting Item Switch State Notes
Details CH1 CH2 OFF ON
Set CH1 to OFF.
Independent Linked
SW1 Operation setting CH2 can be set to
operation operation
ON/OFF.
SW2 Data bits setting 7 bits 8 bits Parity bit not included.
Parity bit enable When set to Enable, the
SW3 Disable Enable
/disable setting setting of SW4 is effective.
Even parity Effective only when Parity
SW4 Odd Even
/odd parity setting Bit Enable is selected.
SW5 Stop bit setting 1 bit 2 bits
Sum check enable Dedicated protocol,
SW6 Disable Enable
/disable setting bidirectional protocol
Write during RUN
SW7 enable/disable Disable Enable Dedicated protocol
setting
Sets mode switching and
Setting change Disable Enable
SW8 EEPROM write
enable/disable (prohibit) (allow)
allow/prohibit.
SW9
Transmission Each of CH1 and CH2 can
to (*1)
speed setting select.
SW12
(The factory settings are all OFF.)
Point
The transmission specification setting switch shown above is located
on the modules whose hardware versions are as follows:
• A1SJ71QC24: Version F or later
• A1SJ71QC24-R2: Version E or later
Even though the switch layout has been changed, the function set by
each switch and the corresponding ON/OFF position remain the same
as those of the conventional model.
6
4. Mounting and Installation
This section describes the handling precautions and installation
environment common to all the modules when handling the QC24 from
unpacking to installation.
Refer to the User's Manual of the PC CPU module used for a detailed
description of mounting and installation of the module.
7
5. External Wiring
5.1 Connecting RS-232C Line
The standard connection procedure for RS-232C line is explained below.
Signal Direction
Pin Signal
Signal Name (QC24 (*1)
No. Code
1 External Device)
6 1 CD Receive carrier detection
2 7
3 8 2 RD (RXD) Received data
4 9 3 SD (TXD) Send data
5
4 DTR (ER) Data terminal ready
5 SG Signal ground
6 DSR (DR) Data set ready
7 RS (RTS) Send request
8 CS (CTS) Send enabled
8
(2) An example of connecting to an external device which is not capable
of turning ON/OFF the CD signal (pin 1)
(a) An example for DC code control or DTR/DSR control
(Full-duplex communications)
QC24 side Connection and Signal External Device
Signal Name Pin No. Direction (Example) Signal Name
CD 1 CD
RD (RXD) 2 RD (RXD)
SD (TXD) 3 SD (TXD)
DTR (ER) 4 DTR (ER)
SG 5 SG
DSR (DR) 6 DSR (DR)
RS (RTS) 7 RS (RTS)
CS (CTS) 8 CS (CTS)
9
2) When a normal data communication cannot be performed
because of external noise even though the wiring has been
made as above, perform the wiring as follows:
" Connect between the FG terminal of the external device
side and connector cabinet area of the QC24 side with the
shield of the connection cable.
On the external device side, however, follow the instruction
manual of the external device.
" Connect each signal other than SG of the connection cable
by paring up with SG.
(QC24 side)
(Partner device side)
FG
Shield
SD RD
RD SD
DSR DTR
DTR DSR
: : :
SG SG
Connector
cabinet area
10
5.2 Connecting RS-422/485 Line
The standard connection procedure for RS-422/485 line is explained
below.
Signal Direction
Signal
Signal Name (QC24 (*1)
Code
External Device)
SDA SDA Send data (+)
SG
SDB Send data (-)
SDB
FG RDA Received data (+)
RDB Received data (-)
RDA
NC SG Signal ground
FG Frame ground
RDB
NC (Empty)
SDA
Send data +
-
SDB
+ RDA
Received data
- RDB
11
Point
If the QC24 is the first or last station on the RS-422/485 line, connect a
terminal resistor of the following specifications to the RS-422/485
interface.
Data communication will be disturbed if a terminal resistor is not used.
• For RS-422 communication ...................... 330 Ω, 1/4 W
• For RS-485 communication ...................... 110 Ω, 1/2 W
SG SG
FG FG
NC
12
(2) Example of connecting external devices and QC24 by 1:n
1) Connecting external devices and QC24 using RS-232C
External device RS-232C Station 0 QC24 RS-485 Station 1 QC24 RS-485 Station n QC24
SDA SDA SDA
R R
SDB SDB SDB
SD SD RDA RDA RDA
R R
RDB RDB RDB
RD RD SG SG SG
FG FG FG
(CH1) (CH2)
(CH1) (CH2)
13
(3) Example of connecting external devices and QC24 by m:n
* Connecting external devices and QC24 using RS-485
External External
device device
SDA SDA
SDB SDB
RDA RDA
RDB RDB
SG SG
FG FG
Point
In case of connecting external devices and QC24 by m:n, refer to
Section 5.1 for an example of connecting external devices and QC24
using RS-232C.
(4) Countermeasure for data receive errors at the external device with
RS-422 and RS-422/485 connections
During the data communication with external devices via QC24 RS-
422/485 interface , if the external device receives an error data, install
pull-up and pull-down resistors to the external device side (about
4.7kΩ, 1/4 W as a reference of resistor value).
Installation of pull-up and pull-down resistors will prevent a data
receive error.
4.7k 1/4W
RDA
+
Terminal Received data
RDB resistor -
4.7k 1/4W
External device
14
Point
When there is a pull-up or pull-down resistor at the external device,
erroneous data is not received.
Remark
The following describes the case when a pull-up or pull-down resistor
is not installed to the external device.
1) When no station is sending, the send line becomes high
impedance and noise, etc. may cause the send line to change
and the external device to receive erroneous data.
In this case, there is probably a parity error or framing error.
Therefore, skip the erroneous data.
2) Since the first data during data reception is fixed in the following
cases, also skip the receive data until the head data is received.
" When using a dedicated protocol for data communication,
the user selects the first data according to the mode and
format used.
" When performing data communication using user frames
with Non procedure protocol, the user selects the first data
according to the user frames registered in the QC24.
(5) Connection precautions
When connecting the QC24 SG and FG signals to the external
device, connect them according to the specifications of the
external device.
Point
(1) In the description of the setting and connection of the terminal
resistor in this section, if the RS-232C RS-422 converters, etc.
are used on the stations on both ends of the network, the setting
and connection of the terminal resistor is necessary on the
converter side.
(2) The devices connected to the QC24 RS-422/485 interface
must be unified with either RS-422 or RS-485 for 1:n and
m:n connections.
15
6. External Dimensions
(A1SJ71QC24 (-R2))
A1SJ71QC24
RUN ERROR
ERR. C R/W SWE. ERR.
C/N NEU. NEU. C/N
P/S ACK. ACK. P/S
PRO. NAK NAK PRO.
SIO SD W SD W SIO
SD SD
RD RD
CH1 CH2
DISPLAY
STS ERR.
10 1
45 6 45 6
STATION NO.
78
78
23
23
901 901
CH1 CH2
89 89
67 67
AB
A
MODE
BC D E
34 5
45
C DE
23
2
F 01 F0 1
1
2
(5.12)
3
130
4
5
6
SW 7
8
9
10
11
12
ON CH2RS-422/485
SDA
SG
SDB
FG
R1 r1
RDA
NC
RDB
R2
6.5 93.6 26.2 34.5
(0.26) (3.69) (1.03) (1.36)
mm (inch)
16