Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 11 of 15

N-400 User's Manual: Multi-Drop Controller for BL Series, pages 101 to 110

Pages 101 to 110 of 150

The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Keyence N-400

Page 101

Chapter 5

Multi-Head Mode Control Procedure

5.2.2 Trigger input signal type When the trigger input is connected to the N-400 in multi-head mode, the trigger signal is sent to all connected BL series to start the reading operation. The trigger input signal type can be set for the N-400 as well as for the BL series.

“Level” trigger signal While the trigger input is ON, the BL series reads bar code data. (When the BL series successfully read bar code data)

(When the BL series failed to read bar code data)

Trigger input

Reading

Communication output

* Read error

“One-shot” trigger signal After the rising edge of the trigger input is detected, the BL series reads bar code data for the preset trigger time. (When the BL series successfully read bar code data)

(When the BL series failed to read bar code data)

Trigger input Preset trigger time

5

Preset trigger time

Reading

Communication output

* Read error

93

Page 102

Chapter 5

Multi-Head Mode Control Procedure

5.2.3 Data transmission timing Data transmission timing can be selected from the following modes only in singlelabel reading mode: (The data transmission timing cannot be selected in the multil 1/2/3 reading modes.) •

After reading This mode allows the BL series to send data immediately after reading them. This operation is the same as that described in the timing chart in “5.2.2 Trigger input signal type”. Normally, the data transmission timing should be set to this mode.

•

After trigger input is turned OFF This mode allows the BL series to send data when the trigger input is turned OFF. (If the one-shot trigger mode is selected, data is sent after the preset measurement time has passed.) (When the BL series successfully read bar code data)

(When the BL series failed to read bar code data)

Trigger input

Reading

5

Communication output

94

* Read error

Page 103

Chapter 5

5.3

Multi-Head Mode Control Procedure

Data Communication in Multi-Head Mode

5.3.1 Communication format The communication format for multi-head mode is as follows: Header Reading Data Delimiter

The communication format does not include an ID number. However, to assign ID numbers to the connected BL series, make sure that the same ID number is not assigned to different units. The header and delimiter can be selected from the following formats: (The header and delimiter can be changed to any string of up to five characters.) To change the header and delimiter format, change the settings of the N-400. Header: [ESC]/[STX]/None Delimiter: [CR]/[CR][LF]/[ETX]

Tips

You can change the communication format so that an ID number is included. The communication format including an ID number is the same as that for multi-drop link mode.

Header P mm –

Reading Data Terminator

[mm = 01 to 31 (ID number)]

5.3.2 Handshaking protocol The handshaking protocol and the capacity of the transmission buffer for multihead mode is the same as that for multi-drop link mode. For details, see the descriptions for multi-drop link mode.

5.3.3 Read error code If the BL series fails to read bar code data, a read error code is sent. However, since the read error code can be easily changed on the BL series, the code indicating a read error must be specified on the N-400. Therefore, the read error code setting of the N-400 must be the same as that of all connected BL series. The default setting of the read error code is as follows: Header ERROR Delimiter

The read error code can be easily changed. However, you must ensure that the same error code is specified for all connected BL series.

95

5

Page 104

Chapter 5

5.4

Multi-Head Mode Control Procedure

Command Communication in Multi-Head Mode The command communication in multi-head mode is the same as that in multi-drop link mode. For details, see the descriptions for multi-drop link mode. The following sections describe the main points only.

5.4.1 Sending a command to BL series The data communication format does not include an ID number. However, the command sent to the BL series must include an ID number. • Command sent to BL series Header % P mm –

Serial command

Delimiter

Response

Delimiter

• Response Header % P mm –

For details about the communication format, see pp. 4-10 and 4-11.

5

Note: To use the BL series’ reading rate check mode, send the “Specific ID polling ON” command first. (➮ See p. 72.) After using this command, be sure to reset it.

5.4.2 N-400 direct control/setup commands The commands sent to the N-400 are the same as those used in multi-drop link mode. • Command sent to N-400

Header Command Delimiter

• Response

Header Response Delimiter

➮ For details about the communication format, see pp. 69, 70 and 75.

96

Page 105

Chapter 5

5.5

Multi-Head Mode Control Procedure

Interference Suppression Function In multi-head mode, the BL series’ light sources (laser beams) are usually turned ON simultaneously. If the BL series are mounted close to each other, the laser beam emitted from one unit enters the receiver of another unit, causing mutual interference. This may result in a reading error or unstable reading. (Laser beams in close proximity often cause interference.) The interference suppression function allows each BL series’ laser beam to be turned ON sequentially starting at the unit with the smallest ID number. Therefore, the connected BL series do not simultaneously emit a laser beam. This function prevents the laser beams from interfering with each other, ensuring stable readings. The differences in operation depending on the reading mode and the trigger input signal type are the same as those in normal multihead mode.

Trigger input

A

Light source of BL series with ID No. 1

Light source of BL series with ID No. 2

Light source of BL series with ID No. 3

-

•••

5

A

••• A

•••

You can change the laser ON time (A) of each BL series by changing the BL series’ setting. When (A) is prolonged, the reading operation is stabilized, but it is not applicable for a high-speed line. Conversely, when (A) is reduced, the reading operation is applicable for a high-speed line, but the reading stability may decrease.

Note: The interference suppression function prolongs the time duration that each BL series' light source is OFF. Therefore, reading may be impossible, when the scan time is extremely short (for example, when the BL series cans bar codes on a high -speed line).

97

Page 106

Chapter 5

5.6

Multi-Head Mode Control Procedure

Communication Time The following is the operation timing chart for “Single label” reading in multi-head mode. This operation timing chart shows the case in which only one BL series succeeded in reading bar code data. When several BL series simultaneously read bar code data, the communication time may be longer than the following data.

Reading starts. The BL series read bar code data.

Trigger input to the N-400

I

F

F

Reading operation

G H

N-400 <-> Host computer (RS-232C)

Reading start delay time (F) When the trigger input connected to the N-400 is turned ON in multi-head mode, the N-400 sends the “Reading start (LON)” command to all connected units. Therefore, the start of the BL series’ reading operations is delayed by the time duration until the command transmission to all the BL series is completed.

5

The communication time required to send the reading start command to one BL series is as follows: Baud rate (RS-485)

Reading start delay time (D)

9600 bps

31 ms

38400 bps

13.5 ms

When the number of connected BL series is “n”, the communication time is calculated as follows: F=Dxn

* n = Number of connected BL series

Serial output maximum delay time (G) The serial output maximum delay time is the maximum delay time until the N-400 sends bar code data to the host computer after the BL series reads the data. When the RS-485 communication baud rate is 38400 bps:

98

Number of connected BL series

Serial output maximum delay time (G) Number of data digits: 10

Number of data digits: 20

Number of data digits: 32

2

96 ms

106 ms

116 ms

5

258 ms

268 ms

278 ms

10

528 ms

538 ms

548 ms

20

1,068 ms

1,078 ms

1,088 ms

31

1,662 ms

1,672 ms

1,682 ms

Page 107

Chapter 5

Multi-Head Mode Control Procedure

• Serial communication time (H) The serial communication time can be obtained from the following formula: (This formula applies to the case in which an ID number is not added to the data.)

H=

Number of data + (1: Set Parity) + Start/Stop bit x Baud rate (Number of data digits + Header/Delimiter)

Baud rate (for RS-232C)

Serial communication time (H) Number of data digits: 10

Number of data digits: 20

Number of data digits: 32

9600 bps

15 ms

27.5 ms

42.5 ms

38400 bps

3.8 ms

6.9 ms

10.7 ms

• Next trigger input receiving OFF time (I) During this time, the BL series does not start operation even when the next trigger input is turned ON. When the RS-485 communication baud rate is 38400 bps: Number of connected BL series

Next trigger input receiving OFF time (I)

2

50 ms

5

140 ms

10

290 ms

20

590 ms

31

920 ms

5

■ When the interference suppression function is used The timing chart in interference suppression mode is as follows:

N

Trigger input to N-400 BL series with ID No. 1

L

BL series with ID No. 2 BL series with ID No. 3

L L M

M

M

M

• Scan time per unit (L) The setting of the trigger ON time in interference suppression mode can be changed to a value in the range of 10 ms to 2550 ms. However, the trigger ON time in interference suppression mode depends on the setting of the RS-485 communication baud rate, because the laser ON/OFF command transmission time is required. Even if the trigger ON time is set to 10 ms, for example, the actual ON time is approximately 50 ms when the baud rate is set to 38400 bps. (The trigger ON time for each unit cannot be set to less than 50 ms. )

99

Page 108

Chapter 5

Multi-Head Mode Control Procedure The following table shows the actual minimum scan time for each baud rate setting. Baud rate (RS-485)

Actual minimum scan time (L)

9600 bps

141 ms

38400 bps

58 ms

• Scan OFF time (M) When the interference suppression function is used, a time lag occurs between the scan of one BL series and the next. During this period, the BL series cannot read bar code data. Baud rate (for RS-485)

Scan OFF time (M)

9600 bps

36.5 ms

38400 bps

14.8 ms

• Scan cycle time (N) The cycle time between the scan of one BL series and the next BL series is increased when the number of connected BL series is increased or when the trigger ON time is prolonged. To reduce the scan cycle time (to scan bar codes on a high-speed line), reduce the number of connected BL series or shorten the trigger ON time.

5

The scan cycle time can be calculated from the following formula: N = (L + M) n * n = Number of connected BL series Note: When the interference suppression function is used, the reading operation is not applicable for a high-speed line because the scan OFF time of each BL series is prolonged.

100

Page 109

Chapter 6 PLC Link 6.1

PLC Link ............................................................................ 102

6.1.1 List of PLCs used for PLC link ............................................. 102 6.1.2 Devices used for PLC link .................................................... 103 6.2

Setup Procedure ............................................................... 104

6.2.1 Setting the BL Series ........................................................... 104 6.2.2 Setting the N-400 ................................................................. 105 6.2.3 Setting the PLC .................................................................... 106 6.3

Device Assignment ........................................................... 108

6.3.1 Device assignment in multi-drop link mode ......................... 108 6.3.2 Device assignment in multi-head scan mode ...................... 113 6.4

PLC Link Error .................................................................. 116

Page 110

Chapter 6

6.1

PLC Link

PLC Link The PLC link enables read data to be directly stored in the internal memory of a PLC (programmable logic controller). Since the N-400 directly controls the PLC’s memory, no program is required for data communication, resulting in a reduced number of programming steps. As compared with the serial communication using a computer, the PLC link involves the following limitations: •

The settings of the N-400 and BL series cannot be changed on the PLC.

•

The PLC link cannot send a command to the BL series. However, the PLC link provides a reading control address to start/end reading.

•

The PLC link cannot send a command to the N-400. The start of auto polling or registration of ID numbers cannot be set on the PLC. To register ID numbers, use the N-400 setup software.

6.1.1 List of PLCs used for PLC link

6

102

KEYENCE KV series

(Built-in CPU port) KV-10/16/24/40/80 KV-300 (Serial link unit) KV-L2

Mitsubishi MELSEC-A series

(Built-in CPU port) A2CCPU24 A2CCPU24-PRF (Calculator link unit) AJ71C24 AJ71C24-Sx AJ71UC24 A0J2-C214S1 A1SJ71C24-R2/PRF A1SJ71UC24-R2/PRF

OMRON SYSMAC-C series

(Built-in CPU port) C20H/28H/40H/60H/80H C200HS(CPU21/23/31/33) C200HE(CPU42) C200HG(CPU43/63) C200HX(CPU44/64) (High-order link unit) C200H-LK201(-V1) C500-LK203 C500-LK201-V1 C120-LK201-V1 (Communication board) C200HW-COM02 C200HW-COM04 C200HW-COM05 C200HW-COM06

OMRON SYSMAC-CQM1 series

(Built-in CPU port) CQM1(CPU21/41/42/43/44)

OMRON SYSMAC-CV series

(Built-in CPU port) CV500 CV1000 CV-M1 (High-order link unit) CV500-LK201