73
CHAPTER 8 PROGRAMMING
8
8.
2 Ex
ample of
Comm
unicat
ion
s
wit
h
CC
-Link Remot
e
S
tat
ions
8.2.4
Program example
This section describes a program example. Write a program to the CPU module of the master station.
(1) Devices used in the program
(a) Link special relay (SB) and link special register (SW)
(b) Devices used by a user
Device
Description
Device
Description
SB0049
Data link status of the own station on the
CC-Link IE Field Network side
SW00B0.0
Data link status of each station on the CC-
Link IE Field Network side (station number 1)
Device
Description
X1000
X0 input signal from the CC-Link side (station number 1)
X1020
Remote input RX0 (CH1 A/D conversion completed flag) on the CC-Link side (station number 2)
X1038
Remote input RX18 (Initial data processing request flag) on the CC-Link side (station number 2)
X1039
Remote input RX19 (Initial data setting completion flag) on the CC-Link side (station number 2)
X103A
Remote input RX1A (Error flag) on the CC-Link side (station number 2)
X103B
Remote input RX1B (Remote READY) on the CC-Link side (station number 2)
Y1010
Y10 output signal to the CC-Link side (station number 1)
Y1038
Remote input RX1B (Remote READY) on the CC-Link side (station number 2)
Y1039
Remote output RY19 (Initial data setting request flag) on the CC-Link side (station number 2)
Y103A
Remote output RY1A (Error reset request flag) on the CC-Link side (station number 2)
N0
Nesting on the CC-Link IE Field Network side
N1
Nesting on the CC-Link side (station number 1)
N2
Nesting on the CC-Link side (station number 2)
M0
Communication condition satisfied flag on the CC-Link IE Field Network side
M1
Communication condition satisfied flag on the CC-Link side (station number 1)
M2
Communication condition satisfied flag on the CC-Link side (station number 2)
M100
Initial settings change flag on the CC-Link side (station number 2)
M101
Error clear flag on the CC-Link side (station number 2)
W4.0
CC-Link error
W4.1
Data link status of the own station on the CC-Link side
W4.F
CC-Link ready
W8.0
Data link status of other stations on the CC-Link side (station number 1)
W8.1
Data link status of other stations on the CC-Link side (station number 2)
W14
Remote register RWr0 (CH1 Digital output value) on the CC-Link side (station number 2)
W1C
Remote register RWr8 (Error code) on the CC-Link side (station number 2)
W1014
Remote register RWw0 (A/D conversion enable/disable setting) on the CC-Link side (station
number 2)
W1015
Remote register RWw1 (CH1 to CH4 Input range setting) on the CC-Link side (station number 2)
W1017
Remote register RWw3 (Averaging processing specification) on the CC-Link side (station
number 2)
W1019
Remote register RWw5 (CH2 Time average/count average setting) on the CC-Link side (station
number 2)
D500
CH1 Digital output value storage
D508
Error code storage
Summary of Contents for NZ2GF-CCB
Page 1: ...CC Link IE Field Network CC Link Bridge Module User s Manual NZ2GF CCB ...
Page 2: ......
Page 9: ...7 Memo ...
Page 35: ...33 CHAPTER 4 THE PROCEDURE BEFORE OPERATION 4 Memo ...
Page 145: ...I 4 4 7 8 143 Memo ...
Page 149: ......