Connection example [QnA series]

<< Click to Display Table of Contents >>

Manual > Device Connection Guide > Mitsubishi Electric > Open Protocol (RS-232C) > QnA Series >

Connection example [QnA series]

overview

This is a setting example when connecting to the QnA series via RS-232C.

 

Model used

item

Model etc.

PLC

Q2ACPU

Communication Unit

AJ71QC24

 

Configuration environment

item

environment

OS

Windows7 Professional 64Bit

 

Configuration details

item

setting

Setting items

Configuration Example

PLC side settings

Set with switch

Area code

0

Transmission speed

19200bps

Byte Size

7-bit

Stop bits

1 bit

Odd/Even Parity

Even

Sum Check Code

can be

protocol

MC Protocol (Format 1)

PC settings

Unit Settings

COMPort

Communication port number to connect to

Transmission speed

19200bps

Byte Size

7bits

Stop bits

1bits

parity

Even

Sum Check

can be

protocol

Format 1

Folder and communication test settings

Area code

00

Network Number

00

PC Number

FF

Request unit I/O number

03FF

Request destination unit station number

00

Your number

00

 

* Most of the settings on the computer will be adjusted to match the settings on the unit.

 

 

PLC side settings

Set the settings to "AJ71QC24". Settings are made using the front switch.

 

1.Set the switch as follows:

 

c_plc_0088

 

switch

explanation

Setting contents

STATION No

(x10)

Setting your own area code (10th place)

0

STATION No

(x1)

Setting your own area code (1st digit)

0

CH1.Mode

Mode Setting

※Settings on the right are "Format 1"

1

CH1.SW01

Operational Settings

*The setting on the right is "independent operation"

OFF

CH1.SW02

Data Bits Settings

*The setting on the right is "7 bit"

OFF

CH1.SW03

Parity bit presence/absence

*The setting on the right is "Yes"

ON

CH1.SW04

Even/Odd Parity Settings

※The setting on the right is "Even"

ON

CH1.SW05

Stop bit setting

*The setting on the right is "1 bit"

OFF

CH1.SW06

Sum check presence/absence

*The setting on the right is "Yes"

ON

CH1.SW07

RUN Write enable/disable setting

*The setting on the right is "Yes"

ON

CH1.SW08

Settings can be changed/cannot be changed

*"Changeable" in the settings on the right

ON

CH1.SW09

Transmission speed setting

*The setting on the right is "19200bps"

OFF

CH1.SW10

ON

CH1.SW11

ON

CH1.SW12

OFF

*In this example, only CH1 is configured.

 

attention

RS-232C cable precautions

The default setting for the "AJ71QC21" is "No CD terminal check." If you want to perform a CD terminal check, you will need to add one line to your ladder program. For details, see the "Serial Communication Unit" User's Manual (Details).

 

hint

For details on the switch settings, etc., please refer to the Mitsubishi Electric "AJ71QC24 Serial Communications Unit" User's Manual (Hardware Edition).

 

 

PC settings

Use the Server application to connect to the PLC for which you have set up communications.

 

1.Right-click "Application" - "Driver" in the tree and select Add Driver.
 

2.Select the following units from the displayed driver list and add them:
c_plc_0087

 

3.Open the properties of the added unit (U01) and click Communication Settings.
c_plc_0086

 

4.Set "Communication Settings" as follows:
c_plc_0064
 
 

setting

Setting contents

COMPort

Communication port number to connect to

Transmission speed

19200

Byte Size

7bits

Stop bits

1bits

parity

Even

 

5.Open "Other settings" and set it as follows:
c_plc_0065
 

setting

Setting contents

Sum Check

Check it

protocol

Format 1

 

6.USB-RS-If you are using a 232C conversion cable, the COM port may be locked in the event of a communication error, so check the reopen setting.
c_plc_0068

 

7.Perform a connection test to check the connection
c_plc_0067
 
If a message such as "Connection OK" is displayed, the connection is confirmed to be OK.