Program Example - Mitsubishi Electric NZ2GF-CCB User Manual

Cc-link ie field network-cc-link bridge module
Table of Contents

Advertisement

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)
Device
Data link status of the own station on the
SB0049
CC-Link IE Field Network side
(b) Devices used by a user
Device
X1000
X1020
X1038
X1039
X103A
X103B
Y1010
Y1038
Y1039
Y103A
N0
N1
N2
M0
M1
M2
M100
M101
W4.0
W4.1
W4.F
W8.0
W8.1
W14
W1C
W1014
W1015
W1017
W1019
D500
D508
Description
X0 input signal from the CC-Link side (station number 1)
Remote input RX0 (CH1 A/D conversion completed flag) on the CC-Link side (station number 2)
Remote input RX18 (Initial data processing request flag) on the CC-Link side (station number 2)
Remote input RX19 (Initial data setting completion flag) on the CC-Link side (station number 2)
Remote input RX1A (Error flag) on the CC-Link side (station number 2)
Remote input RX1B (Remote READY) on the CC-Link side (station number 2)
Y10 output signal to the CC-Link side (station number 1)
Remote input RX1B (Remote READY) on the CC-Link side (station number 2)
Remote output RY19 (Initial data setting request flag) on the CC-Link side (station number 2)
Remote output RY1A (Error reset request flag) on the CC-Link side (station number 2)
Nesting on the CC-Link IE Field Network side
Nesting on the CC-Link side (station number 1)
Nesting on the CC-Link side (station number 2)
Communication condition satisfied flag on the CC-Link IE Field Network side
Communication condition satisfied flag on the CC-Link side (station number 1)
Communication condition satisfied flag on the CC-Link side (station number 2)
Initial settings change flag on the CC-Link side (station number 2)
Error clear flag on the CC-Link side (station number 2)
CC-Link error
Data link status of the own station on the CC-Link side
CC-Link ready
Data link status of other stations on the CC-Link side (station number 1)
Data link status of other stations on the CC-Link side (station number 2)
Remote register RWr0 (CH1 Digital output value) on the CC-Link side (station number 2)
Remote register RWr8 (Error code) on the CC-Link side (station number 2)
Remote register RWw0 (A/D conversion enable/disable setting) on the CC-Link side (station
number 2)
Remote register RWw1 (CH1 to CH4 Input range setting) on the CC-Link side (station number 2)
Remote register RWw3 (Averaging processing specification) on the CC-Link side (station
number 2)
Remote register RWw5 (CH2 Time average/count average setting) on the CC-Link side (station
number 2)
CH1 Digital output value storage
Error code storage
Device
Data link status of each station on the CC-
SW00B0.0
Link IE Field Network side (station number 1)
Description
CHAPTER 8 PROGRAMMING
Description
73
8

Advertisement

Table of Contents
loading

Table of Contents