MX Component Ver. 4 軟體操作手冊


Add to my manuals
378 Pages

advertisement

MX Component Ver. 4 軟體操作手冊 | Manualzz

8.9

CC-Link G4 Communication

This section provides the CC-Link G4 communication procedure and its setting example using the utility setting type.

8.9.1

Switch settings of CC-Link G4 module

This section explains the switch settings of CC-Link G4 modules for the use of MX Component.

The following sketches are used to explain each module.

The settings of MX Component need to be the same as the module.

CC-Link module

Personal computer

CC-Link G4 module

Switch (switch number)

Station number setting switch

Data link transmission speed setting switch

Operation mode setting (SW1, SW6)

Operation setting

DIP switch

Inter-peripheral transmission speed setting

(SW2, SW3)

Parity bit setting (SW4, SW5)

- (SW7)

Test mode setting (SW8)

Setting

Q mode

1(local station)

4(10Mbps)

(match to the transmission speed of the CC-Link module)

SW

SW1

SW6

Setting

OFF

ON

Setting is not required (automatic setting)

Set, Odd number

SW

SW4

SW5

Setting

OFF

OFF

OFF

OFF (online mode)

178

CHAPTER 8 COMMUNICATION SETTING EXAMPLES OF UTILITY SETTING TYPE

8.9.2

Access procedure

The following is the procedure for accessing the programmable controller CPU using CC-Link G4 communication.

Start

Page 178, Section 8.9.1

Set the operation setting DIP switches of the CC-Link G4 module.

Connect the CC-Link G4 module to the CC-Link module.

Connect the personal computer to the CC-Link G4 module.

Set the network parameters.

Start Communication Setup Utility and set the items on

Communication Setting Wizard.

On the communication test screen, check whether communication can be performed properly.

Page 180, (2) in this section

Page 29, CHAPTER 2

Page 181, (3) in this section

Page 183, (4) in this section

Page 185, (5) in this section

Complete

(1) System example

The following system example is used in this section.

Transmission speed: 19200bps

Transmission speed: 10Mbps

CC-Link

Personal computer

(MX Component) COM1 is used.

CC-Link G4 module

(Q mode)

Station number: 1

Q00J

CPU

Master station

(Sta. No.0)

Logical station number of "8" is used.

8

179

180

(2) Wiring the CC-Link G4 module

The diagram of wiring the CC-Link G4 module to the CC-Link module is shown below.

Termination resistor

CC-Link module

DA

DB

DG

SLD

FG

AJ65BT-G4-S3

DA

DB

DG

SLD

+24V

24G

FG

Termination resistor

24VDC

CHAPTER 8 COMMUNICATION SETTING EXAMPLES OF UTILITY SETTING TYPE

(3) Setting the network parameters

Parameter setting may either be set on the Network Parameter - CC-Link Module Configuration screen of GX

Works2 or from a sequence program.

(a) Setting parameter setting on CC-Link setting screen

Set the start I/O number, type, total number of modules connected, and station information.

Set other setting items as required.

<CC-Link parameter setting screen>

<Station information setting screen>

After setting the CC-Link parameters, write them to the programmable controller CPU.

8

181

182

(b) Setting parameter setting in sequence program

The parameter setting items for data link and the sequence program example are described below.

<Parameter setting items>

1

H

Address

20

H

Item

Number of connected modules

Station information

Description

Set the number of modules on the remote/local stations connected.

AJ65BT-G4-S3

Setting value

1

H

2101

H

<Sequence program>

This sample sequence program is installed into the following folders after installation of MX Component.

[User-specified folder] - [Act] - [Samples] - [GppW] - [CCG4A]

CHAPTER 8 COMMUNICATION SETTING EXAMPLES OF UTILITY SETTING TYPE

(4) Setting the logical station number (setting on Communication Setting Wizard)

The following explains how to set the logical station number using the system example for (1) in this section.

Operating procedure

1.

Start Communication Setup Utility and click the

button.

2.

Enter "8" in Logical station number and click the

button.

3.

Set the following items and click the button.

PC side I/F

Connect port

Time out

: Serial

: COM1

: 10000

8

4.

Set the following items and click the button.

PLC side I/F

Mode

: G4 module

: Q

Transmission speed : 19200

Control : DTR or RTS Control

Continued on next page

183

184

Continued from previous page

5.

Set the following items and click the button.

Station type

CPU type

: Host station

: Q00J

CC-Link module No : 0

6.

Enter a comment and click the button.

Registration complete

CHAPTER 8 COMMUNICATION SETTING EXAMPLES OF UTILITY SETTING TYPE

(5) Checking the logical station number settings (conducting a communication test)

Check the CC-Link G4 communication settings, using the logical station number set in (4) in this section.

Operating procedure

1.

Click the <<Target setting>> tab and select the logical station number "8".

Check the logical station number settings.

2.

Click the <<Connection test>> tab and select the logical station number "8".

8

Click!

Communication test complete

3.

Click the button to check that communication is being performed normally.

If an error occurs, check the error code and remove the error.

The error code is displayed in Result. (At normal termination, "0x00000000" is displayed in Result.)

For details of error code, refer to the following manual.

MX Component Version 4 Programming Manual

Through the above steps, it is confirmed that the logical station number settings are correct.

This logical station number can be used for user program creation and PLC Monitor Utility.

Collect device data, using this logical station number.

185

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents