KEYENCE DL-RS1AIG User Manual

RS-232C Communication Unit
DL-RS1A
User's Manual (IG Edition)
Read this manual before using the system in order to achieve maximum performance. Keep this manual in a safe place for future reference.

Introduction

This manual provides an overview of the RS-232C communication unit DL-RS1A and describes the functions and procedures of the unit. Be sure to read this manual carefully to ensure safe performance and function of the unit. Keep this manual in a safe place for future reference. Ensure that this manual is passed to the end user.

Symbols

The following symbols alert you to important messages. Be sure to read these messages carefully.
It indicates cautions and limitations that must be followed during operation.
It indicates additional information on proper operation.
It indicates tips for better understanding or useful information.
It indicates a hazardous situation which, if not avoided, will result in death or serious injury.
It indicates a hazardous situation which, if not avoi ded, could result in death or serious injury.
It indicates a hazardous situation which, if not avoided, could result in minor or moderate injury.
It indicates a situation which, if not avoided, could result in product damage as well as property damage.
DANGER
WARNING
CAUTION
NOTICE
Important
Point
Reference

Safety Precautions

General Cautions

At startup and during operation, be sure to monitor the functions and performance of the DL-RS1A for proper op erations.
We recommend that you take substantial safety measures to avoid any damage in the event that a problem occurs.
Do not modify the DL-RS1A or use it in any way other than described in the specifications.
When the DL-RS1A is used in combination with other instrum ents, functions and performance may be degraded,
depending on the operating conditions and surrounding environment.
Do not use the DL-RS1A for the purpose of protecting the human body.
Do not change the temperature drastically around the DL-RS1A and other devices including the accessories. Otherwise
condensation may be generated.

Handling Errors

Operating Precautions

Installation environment
To use the DL-RS1A correctly and safely, avoid installing it in the following locations. Failure to do so to may cause fire, electric shock, and malfunction.
Locations that are humid, dusty, or poorly ventilated
Locations with a high temperature, such as a place exposed to direct sunlight
Locations where there are flammable or corrosive gases
Location where the unit may be directly subjected to vibration or impact
Locations where water, oil, or chemicals may splash onto the DL-RS1A
Locations where static electricity is easily generated
Noise countermeasures
Isolate the unit from devices that generate high frequency electrical signals, power supply lines, or power lines. Otherwise, noise could cause a malfunction.
Turn off the power immediately in the following cases. Using the unit in abnormal conditions could cause fire, electric shock, or accident. Contact the nearest KEYENCE office for repair.
If fluids including water, chemicals, or debris enter the unit
If the unit is dropped or the case is damaged
If abnormal smoke or odor is present
NOTICE
Do not use the DL-RS1A with a voltage other than specified voltage, as this may cause fire, electric shock or equipment failure.
Do not disassemble or modify the DL-RS1A. Doing so may cause fire or electric shock.
Be sure to turn off the power to the DL-RS1A and any connected devices before connecting or disconnecting the cables. Failure to do so may damage the unit.
Do not turn off the power while setting a parameter. Otherwise, the settings may be partially or completely lost.
WARNING
NOTICE

Contents

Safety Precautions
General Cautions Handling Errors Operating Precautions
Installation environment Noise countermeasures
Before Using the Unit
Checking the Package Contents ............................................................................ .........2
Part Names and Functions....... ........................................................................................ 2
Connecting the Unit to Sensor Amplifiers
Mounting the Unit ............................................................................................................. 3
Mounting the unit on the DIN rail.................................................................................................3
Connecting the Unit to Sensor Amplifiers ........................................................................ 4
Available sensor amplifiers .........................................................................................................4
Connecting the DL-RS1A to DIN rail mount sensor amplifiers.................................................... 4
Connecting the unit to panel mount sensor amplifiers................................................................5
Connecting to a large display type sensor amplifier...................................................................5
Connecting the Unit to External Devices
Communication Terminal Block ....................................................................................... 5
Terminal connection.................................................................................................................... 5
Connection wiring........................................................................................................................6
Optional cable............................................................................................................................. 6
Input circuit diagram ...................................................................................................................6
Communication Specifications
Communication Specifications.................................. .......................................................7
Sensor Amplifier ID Number Assignments.................................... ...................................7
DIN rail mount sensor amplifiers................................................................................................. 7
Panel mount sensor amplifiers.................................................................................................... 7
Commands and Responses
Overview of Commands and Responses...................................... ...................................7
Command format.........................................................................................................................7
Response ....................................................................................................................................8
Error response.............................................................................................................................8
Reading.................................... ........................................................................................ 9
Read from the specified sensor amplifier (SR command).......................................................... 9
Read all data from all sensor amplifiers (M0 command) ............................................................9
Read output states and data from all sensor amplifiers (MS command).................................... 9
Read with external input to the DRQ terminal (DRQ read)..........................................................9
Writing ............................................................................................................................ 10
Write to the specified sensor amplifier (SW command)............................................................ 10
Write to all sensor amplifiers (AW command)........................................................................... 10
Parameters of Commands and Responses
Communication commands ......................................................................................................10
ID numbers................................................................................................................................10
Data numbers............................................................................................................................11
Control outputs (Judgment outputs) .........................................................................................16
Error numbers............................................................................................................................16
Communication Response Time
Communication Response Time and Time Chart ................................................... .......17
SR command.............................................................................................................................17
M0 command and MS command.............................................................................................. 17
DRQ input.................................................................................................................................. 17
SW command and AW command............................................................................................. 17
Time Frames of Communication Response Time ................................................... .......18
T2 (DL-RS1A data processing time) .........................................................................................18
T3 (Command send time from external device)........................................................................ 18
T4 (DL-RS1A command processing time) ................................................................................18
T5 (Response send time from DL-RS1A) ..................................................................................19
T6 (Sensor amplifier settings change time)...............................................................................19
Specifications
Performance Specifications ........................................................................................... 20
Communication Specifications.................................. .....................................................20
Dimensions................................................................ ..................................................... 20
When the unit is mounted on the DIN rail.................................................................................. 20
When the optional fixture (OP-60412) is used...........................................................................20
Troubleshooting ASCII Code Table
96080E
1

Before Using the Unit

Checking the Package Contents

Before using the DL-RS1A, check that the following items are all included.
All possible care was taken in packaging before shipment. However, in the event of defective broken, or missing items, please contact your nearest KEYENCE office.

Part Names and Functions

End unit x 2
OP-26751
RS-232C communication unit
DL-RS1A
Expansion connector cover
Switch protection sticker
Instruction manual
102#345
6
G
D
3.
Sensor amplifier connecto
r
(for panel mount type/ large display type)*
10
2N345
6
* A sticker is attached as factory default.
4. Communication status indicators (green)
5. Alarm indicator (red)
6. Read/write setting switch
7. Power indicator (green)
8. Communication terminal block
1.
Communication setup switch
2.
Sensor amplifier connector
(for DIN rail mount type)
Before Using the Unit
(1) Communication setup switches
You can use different ON/OFF combinations to configure the communication settings.
• Make sure you cycle the power to the unit after modifying the communication settings. The modifications are not applied to the unit until it is powered down and power has been reapplied.
• Place the switch protection sticker supplied with the unit over the switches after you modify the settings.
(2) Sensor amplifier connector (for DIN-rail mount type)
Use this connector to connect DL-RS1A to a DIN-rail mount type sensor amplifier.
(3) Sensor amplifier connector (for panel mount type)
Use this connector to connect DL-RS1A to a panel mount type sensor amplifier. The optional extension cable (OP-35361) must be used for connection.
You cannot connect DL-RS1A simultaneously to a DIN-rail mount type sensor amplifier and a panel mount type sensor amplifier.
(4) Communication status indicators
These indicators show the communication status of DL-RS1A.
Setting Switch No. Combination
Baud rate
1
* Factory default positions are shown.
Do not use combinations other than those shown above for switches 1, 2, and 3.
2
3
Data bit length
4
* Factory default positions are shown.
Parity
5
* Factory default positions are shown.
6
ON ON
ON
ON
ON
123 123 123 123 123
2400bit/s 4800bit/s
9600bit/s*19200bit/s 38400bit/s
Important
ON4ON
4
8 bit* 7 bit
ON56ON56ON56ON
56
None* Even Odd None
Important
Switch protection sticker
Point
Indicator Behavior
SD Lights up in green while data is being transmitted. RD Lights up in green while data is being received.
2
Before Using the Unit
(5) Alarm indicator
This indicator lights up in red. For information on the actions you should take when an alarm occurs, refer to "Troubleshooting" (page 21). After turning on the power, the alarm indicator lights for the following amount of time, and communication cannot be performed during this time.
(6) Read/write setting switch
Use this switch to allow or prohibit writing to the sensor amplifiers. (You can only manipulate this switch while the unit is active (turned on).)
(7) Power indicator
Lights up in green when the unit has power.
(8) Communication terminal block
Use the terminals on the terminal block to attach communication cables for connecting the unit with external devices.
* Recommended communication cable
KPEV-SP(1P) wire with balanced type twisted shield (strand wire) Nominal cross-section area 0.16mm
2
(AWG25) min.
A terminal cover is attached to the terminal block. The terminal cover must be placed over the terminal block when you finish connecting the cables.
The terminals for SG (Nos. 1, 4, and 5) are used in common with the blue wire of the sensor am plifier main unit.
No. of connected units Incommunicable time
1 to 4 Approx. 2 s
Position of the switch Description
R
(Factory default position)
The unit can read data from the sensor amplifiers. However, it cannot write settings to the sensor amplifiers.
RW
The unit can both read data from and write settings to the sensor amplifiers.
SG
RD
SD
SG
SG
DRQ
Communication cable
To external device
KPEV-SP(1P) wire with balanced type twisted shield (strand wire)
Terminal No.
Terminal Description
1SG
Connects to the shielded wire of the communication cable.
The terminals for SG (Nos. 1, 4, and 5) are internally shor t-circuited. 2 RD (input) Connects to the SD terminal of an external device via a co mmunication cable. 3 SD (output) Connects to the RD terminal of an external device via a communication cable. 4 SG The terminals for SG (Nos. 1, 4, and 5) are internally short-circuited. 5 SG The terminals for SG (Nos. 1, 4, and 5) are internally short-circuited.
6 DRQ (input)
When there is a short-circuit between DRQ and SG, the sensor amplifier data is
transmitted even without a command from the external device.
Point
Reference

Connecting the Unit to Sensor Amplifiers

This section describes how to mount a DL-RS1A and connect it to sensor amplifiers.

Mounting the Unit

Mounting the unit on the DIN rail
1 Fit the tab of the lower part of the unit to the
DIN rail. While inserting the unit in the direction of arrow (1), push the body down in the direction of arrow (2).
2 To detach the unit, lift the unit in the direction
of arrow (3) while pushing it in the direction of arrow (1).
When using the mounting bracket (OP-60412), install it as shown in the illustration below.
(1)
(3)
(2)
Mounting bracketOP-60412
3

Connecting the Unit to Sensor Amplifiers

Connecting the Unit to Sensor Amplifiers
You use DL-RS1A by connecting it to sensor amplifiers. The connection method varies according to the mounting type of the sensor amplifiers. Before connecting DL-RS1A, you must install the main unit and expansion units of the sensor amplifiers. For information on installing the sensor amplifiers, refer to the user's manual supplied with the sensor amplifiers.
Available sensor amplifiers
*1 The IG Series can be used only with the GT-70A Series and the GT2 Series.
When using together with those models, the maximum connectable number is 6. When using with the IG Series, the maximum number is 4. To use with 7 or more units, contact your nearest KEYENCE sales office.
Makesurethatthesensoramplifiersareturnedoffbeforeco nnectingtheRS­232CcommunicationunitDL-RS1Atothem.Connectingtheunitwhilethesensor amplifiersareturnedonmaydamagetheunit.
Name Type of amplifier Main unit
Expansion unit
Max. connectable number
Multi-Purpose CCD
Laser Micrometer
IG Series
*1
DIN-rail mount I G-1000 IG-1050
4 units (Main: 1, Expansion: 3)
Panel mount IG-1500 IG-1550
4 units (Main: 1, Expansion: 3)
NOTICE
Connecting the Unit to Sensor Amplifiers
Connecting the DL-RS1A to DIN rail mount sensor amplifiers
1
Remove the expansion protective cover from the sensor amplifier that you want to connect to the DL-RS1A.
2
Mount the DL-RS1A on the DIN rail and connect it to the sensor amplifier.
Make sure there is no space between the unit and the sensor amplifier.
3
Mount the end units (OP-26751, two units included) on either side of the sensor amplifier and DL-RS1A u nit and
tighten the two screws on the top of each end unit.
(You can mount the end units in the same way you mount DL-RS1A.)
Sensor amplifier
Expansion protective cover
Sensor amplifier
DL-RS1A
Connector
Checkthatthesensoramplifierconnector(forDIN railmounting)locatedonthesideofDL-RS1Aisnot installedatanangleasshownintheillustrationto theright.Connectingtheunitwithitsconnector installedatanangletoasensoramplifiermay damagetheunit.
NOTICE
Sensor amplifier connector
RS-232C communication unit DL-RS1A
End unit
End unit
MakesureyoufirmlyinsertDL-RS1Aallthewayintothesenso ramplifier.Turning thepoweronwhentheunitisnotinsertedstraightorfirmlyconnectedmay damagetheunit.
NOTICE
4
Connecting the Unit to Sensor Amplifiers
Connecting the unit to panel mount sensor amplifiers
1 Connect DL-RS1A to the sensor amplifiers using the optional expansion cable (OP-35361).
2 Remove the sensor amplifier connector with pliers (
for DIN rail mounting when using with panel
mounted sensor amplifiers
) from DL-RS1A unit and install the expansion connector cover
supplied with the unit.
Connecting to a large display type sensor amplifier
1 Connect the sensor amplifier to the RS-232C Communication Unit DL-RS1A using the optional
expansion cable (OP-35361).
2 Detach the sensor amplifier connector (DIN rail mount type) of the RS-232C Communication
Unit DL-RS1A with pliers and mount the attached expansion connector.
• Make sure you securely connect the expansion cable while the unit is turned off. Turning the power on when the cable is not inserted straight or firmly connected may damage the unit.
• Removing or inserting the cable while the power is on may damage the unit.
• Turn OFF the power before connecting the expansion cable and connect securely. Diagonal or otherwise improper insertion may damage the equipment.
• Inserting or pulling the cable when the power is turned ON may damage the equipment.
Remove the protection sticke
r
Expansion cable (cable length: 300 mm) (OP-35361)
NOTICE
Sensor amplifier connector (for DIN rail mounting type)
Expansion connector cove
r
Detach the protection sticker
Expansion cable (cable length: 300mm)
Detach the protection sticker
NOTICE
Sensor amplifier connector (for DIN rail mount type)
Expansion connector cover

Connecting the Unit to External Devices

Communication Terminal Block

You can connect external devices such as a PC or PLC to the communication terminal block of DL-RS1A via the communication cables.
Terminal connection
* Recommended communication cable
KPEV-SP(1P) wire with balanced type twisted shield (strand wire) Nominal cross-section area 0.16mm
2
(AWG25) min.
A terminal cover is attached to the terminal block. The terminal cover must be placed over the terminal block when you finish connecting the cables.
The terminals for SG (Nos. 1, 4, and 5) are used in common with the blue wire of the sensor am plifier
main unit.
Crimp-type terminal
Use the Y or round terminal for wiring to the I/O terminal. Use the Y or round terminal with the following dimensions.
Y terminal
Round terminal
SG
RD
SD
SG
SG
DRQ
Communication cable
To external device
KPEV-SP(1P) wire with balanced type twisted shield (strand wire)
Terminal No.
Terminal Description
1SG
Connects to the shielded wire of the communication cable.
The terminals for SG (Nos. 1, 4, and 5) are internally shor t-circuited. 2 RD (input) Connects to the SD terminal of an external device via a co mmunication cable. 3 SD (output) Connects to the RD terminal of an external device via a communication cable. 4 SG The terminals for SG (Nos. 1, 4, and 5) are internally short-circuited. 5 SG The terminals for SG (Nos. 1, 4, and 5) are internally short-circuited.
6 DRQ (input)
When there is a short-circuit between DRQ and SG, the sensor amplifier data is
transmitted even without a command from the external device.
Point
Reference
Excerpted from dimensions of the Y terminal areas B: Outer size of Y area d: Width of inner Y area
(joint area with screw)
Applicable dimension B: 6mm max. d: 3.2mm min.
Excerpted from dimensions of the round terminal areas B: Outer diameter d: Inner diameter
(joint area with screw)
Applicable dimension B: 6mm max. d: 3.2mm min.
B
B
φd
d
5
Connecting the Unit to External Devices
Connection wiring
Refer to the connection wiring diagram shown below when connecting DL-RS1A to an external device such as a PC.
• The length of the communication cable must not exceed 15 m.
Connect the shield wire of the communication cable to the SG terminal of the external device.
• Make sure that the shield wire does not touch other signal wires or the other terminals on the terminal block.
Optional cable
An optional cable shown below is used to connect to an external device such as a PC that has a D-sub 9-pin I/O connector.
Part number: OP-81283
Pin layout for D-sub 9-pin connector
*1 Pin numbers 4 and 6 are connected inside the connector. *2 Pin numbers 7 and 8 are connected inside the connector. *3 Two cables (black and black/white) are connected to the pin number 5.
SD
RD
DR
ER
RS
CS
SG
2
1
3
4
5
6
RD
SG
SD
SG
SG
DRQ
DL-RS1A
External device
(D-sub 9-pin)
Shield
Point
Pin No. Cable color
1-
2 Red/white
3Red
4
*1
-
5 Black, black/white
*3
6*1-
7
*2
-
8
*2
-
9-
33.2 25
16
5000
39.5 1
50
φ7.1
Front
5
96
1
Connecting the Unit to External Devices
Sample wiring
*1 Insulate either the black or black/white cable that is not used. *2 Connect the shield wire to the SG terminal of DL-RS1A. (Shield wire is connected to the
connector casing.)
The green and green/white-striped wires are not connected to any of the connector pins.
Input circuit diagram
* The terminals for SG (Nos. 1, 4, and 5) are connected internally with the blue wire of the sensor
amplifier main unit.
2
3
4
5
6
7
RD
Red/White
Red
SD
DR
SG
ER
RS
8CS
2
1
3
4
5
6
RD
SG
SD
SG
SG
DRQ
Black, Black/White
*
1
DL-RS1A
(Communication terminal block)
External device
(D-sub 9-pin)
Shield
*2
Reference
Main circuit
(Short-circuit current: 1 mA max.)
6 (DRQ)
+5V
1,4,5 (SG)
*
6

Communication Specifications

This section provides the communication specifications of DL-RS1A and describes how to configure the unit.

Communication Specifications

The following table lists the communication specifications for DL-RS1A.
For communication settings, refer to pa ge 2.

Sensor Amplifier ID Number Assignments

When the main sensor amplifier that is connected to DL-RS1A supports expansion units, the main sensor amplifier ID number "00" is automatically assigned to the main unit and ID numbers "01 to 14" to the expansion units.
You cannot change the assignment of sensor amplifier ID numbers.
DIN rail mount sensor amplifiers
Panel mount sensor amplifiers
Item Specifications
Communication method Full duplex Synchronization method Asynchronous Transmission code ASCII Communication speed 2400, 4800, 9600, 19200, 38400 bit/s (Factory default: 9600 bit/s) Data bit length 7 or 8 bits (Factory default: 8 bits) Parity check None, even, odd (Factory default: none) Stop bit length 1 bit
Data delimiter
Receive: automatically detect CR or CR + LF Send: fixed to CR + LF
Point
ID No. 00
Main Exp. Exp. Exp. Exp.
01 02 04 05
Sensor amplifier DL-RS1A
ID No. Sensor amplifier
00
01
02
04
05
Main
Exp.
Exp.
Sensor amplifier
Exp.
Exp.
DL-RS1A

Commands and Responses

Overview of Commands and Responses

Command format
You can send specific commands based on ASCII codes from an external device to DL-RS1A. For information on the parameters used in the command, refer to "Parameters of Commands and Responses" (page 10).
Sample command format structure
(1) With the first two bytes, specify the communication command. (2) Specify the ID number assigned to the target sensor amplifier using two digits (ASCII characters). (3) Specify the data number for the data you want to read from or write to the sensor amplifier using
three digits (ASCII characters).
(4) Insert CR or CR + LF as the command delimiter.
You must use commas (,) to separate (1), (2), and (3).
To read the "Hold function setting (data number: 134)" from an expansion unit of an active IG Series (ID number: 01):
From an external device, 11-byte data will be sent to the DL-RS1A.
The last byte of the command you send must be CR (0DH) or LF (0AH). Specifying a value other than CR or LF results in an error response (error number: 00). For information on the error responses, refer to "Error numbers" (page 16).
ID No. 00
Main Exp. Exp. Exp. Exp.
01 02 04 05
Sensor amplifier DL-RS1A
External device like PLC or PC
Response
or
error response
Command or DRQ input
S
(1) (2) (3) (4)
R CR LFID No. Data No.
,,
Important
Example
S
(53H) (52H) (2CH)(31H) (33H) (34H)(0DH)(0AH)(2CH)(30H) (31H)
RCRLF0 1 1 3 4
,,
Command :
S
(53H)
,
(2CH)
R
(52H)
0
(30H)
1
(31H)
1
(31H)
,
(2CH)
3
(33H)
4
(34H)
LF
(0AH)
CR
(0DH)
ASCII character conversion :
Data memory 0
Data memory 1
Data memory 2
Data memory 3
Data memory 4
Data memory 5
5352
H
Value to store in data memory (hexadecimal)
2C30H
362CH
3130H
310DH
0A00H
bit 15
bit
0
Important
7
Loading...
+ 19 hidden pages