A - 17
A Appendices
E3NW-CCL CC-Link Digital Sensor Communications Unit User’s Manual (E431)
A
-2 Seq
u
en
ce Program
min
g
Exam
ples
A
A-2 Sequence Programming Examples
This section provides example programs for when a Mitsubishi Electronics MELSEC-Q-series or
MELSEC-L-series general-purpose sequencer is used as the master station.
These programming examples assume the following system configuration. Perform thorough testing in
your own environment before use.
The sequencer devices used in the programming example are as follows:
Input Switches
X0020: Requests sending a command to a Sensor Amplifier Unit.
X0021: Sets the read status for the threshold value or detection level.
X0022: Error reset switch
X0023: Warning reset switch
Output Indicators
Y0030: Send command normal completion indicator
Y0031: Send command error completion indicator
Data Setting Devices
D0000: CPU internal device that specifies the unit number
D0001: CPU internal device that sets IN1/IN2.
D0002: CPU internal device that sets the command.
D0004: CPU internal device that sets command data 1.
D0005: CPU internal device that sets command data 2.
D0006: CPU internal device that sets the threshold value or detection level read data.
D0007: CPU internal device that sets the threshold value or detection level IN1/IN2.
D0008: CPU internal device that sets the detection level, peak value, or bottom value.
Data Storage Devices
D0100: Sensor Warning Flag
D0102: Received Data 1
D0103: Received Data 2
D0104: Number of Mounted Sensors
D0105: Error Type
CPU
Unit
Power
Supply
Unit
Input
Unit
Output
Unit
Remote I/O
station
Allocated station number
-
RX
RY
RWr
RWw
One-station allocation
Expanded
cyclic setting
00 to 1F Hex
00 to 1F Hex
00 to 03 Hex
00 to 03 Hex
-
Three-station allocation
20 to 7F Hex
20 to 7F Hex
04 to 0F Hex
04 to 0F Hex
Quadruple setting
Three-station allocation
80 to 1BF Hex
80 to 1BF Hex
10 to 3F Hex
10 to 3F Hex
CC-Link Remote Network Version 2 Mode
CC-Link auto refresh settings
CPU device
CC-Link
device
X1000 on
Y1000 on
W0000 on
W1000 on
RX00 on
RY00 on
RWr00 on
RWw00 on
Basic Base
Slot 0
Slot 1
Slot 2
00 to 1F 20 to 2F 30 to 3F
CPU Unit I/O
assignments
CC-Link
Master/L
ocal Unit
CC-Link Communica-
tions Unit (E3NW-CCL)
Sensor
Amplifier
Unit No. 1
Sensor
Amplifier
Unit No. 2
Sensor
Amplifier
Unit No. 3
Sensor
Amplifier
Unit No. 4
Link register
assignments
Remote device
station
Summary of Contents for E3NW-CCL
Page 1: ...E3NW CCL CC Link Digital Sensor Communications Unit User s Manual Cat No E431 E1 08 ...
Page 114: ...A Appendices A 34 E3NW CCL CC Link Digital Sensor Communications Unit User s Manual E431 ...
Page 116: ...B B 2 E3NW CCL CC Link Digital Sensor Communications Unit User s Manual E431 ...
Page 117: ......