(2)Program condition (for FROM/TO instruction)

This program writes parameters to the buffer memory when PLC CPU status changes from STOP to RUN and automatically starts the data link with FROM/TO instruction.

(a) I/O signal of CC-Link module

Control & Communication Link System Master/ Local Module Type AJ61BT11/A1SJ61BT11 User's Manual

(b) Devices used by user

Device

Application

M100, M101

Flag for parameter setting

 

 

M102, M103

Flag for data link startup

 

 

D0

Number of connected modules

 

 

D1

Number of retry

 

 

D2

Automatic reconnection station count

 

 

D3

Operation specification in the case of CPU failure

 

 

D4

Reserved station specification (Station No. 1 to

Station No. 16)

 

 

 

D5

Error invalid station specification (Station No. 1 to

Station No. 16)

 

 

 

D6

Station data (first module)

 

 

D400

Error code in the case of data link startup failure

 

 

(c)Buffer memory settings used in the present example

Buffer memory

 

 

address

Item

Set value

Decimal (Hex)

 

 

1

(1H)

Number of connected modules

1 (1 module)

 

 

 

 

2

(2H)

Number of retry

3 (3times)

 

 

 

 

3

(3H)

Automatic reconnection station

1 (1 station)

count

 

 

 

 

 

 

 

6

(6H)

Operation specification in the

0 (stop)

case of CPU failure

 

 

 

 

 

 

 

16

(10H)

Reserved station specification

0 (No

(Station No. 1 to Station No. 16)

specification)

 

 

 

 

 

 

20

(14H)

Error invalid station specification

0 (No

(Station No. 1 to Station No. 16)

specification)

 

 

 

 

 

 

32

(20H)

Station data (first module)*1

2101H

*1 Details for the station data are shown below.

For 1) and 2), set the same station No. and number of station occupied settings as those of the GOT.

For 3), the setting is fixed.

b15 to

b12 b11 to

b8 b7

to

b0

3)

 

2)

 

 

1)

 

 

 

 

 

 

 

 

1)Station No. (Set the same station No. as that of the GOT.) 01H to 40H: Station No. 1 to Station No. 64

2)Number of stations occupied (Set the same setting of the number of station occupied as that of the GOT.)

1H: Exclusive station 1

2H: Exclusive station 2

3H: Exclusive station 3

4H: Exclusive station 4

3)Station type (2H: Set it to intelligent device station.)

0H: Remote I/O station

1H: Remote device station

2H: Intelligent device station (Incl. local station)

13 - 36

13. CC-Link CONNECTION (INTELLIGENT DEVICE STATION)

 

13.4 PLC Side Setting