KEYENCE DL-RS1A User Manual

Page 15

Advertising
background image

13

Parameters of Commands and Responses

When the specified data is "006":
"6" converted to binary number is "0110".

Therefore, the setting of the amplifier to which the data is written is "NPN output" and "Analog
output 1 to 5 V".

*8

If data is written to an expansion unit, a communication error (error number: 22) will occur. This
is enabled when "Analog output scaling" is set to "Free range."

*9

To reflect the setting written for the data number 146 to 149 to the sensor amplifier, write 1 (user
setting) for the data number 145 or set the external input setting to "User setting" with the button
operation on the sensor amplifier.

„ Relation between the data number 001 to 006 (data requesting the sensor

amplifier operation) and the data number 053 to 056 (data presenting the result

of request/execution)

When writing the data number 001 to 006 (data requesting the sensor amplifier operation), read the
data number 053 to 056 (data presenting the result of request/execution) and check that the request
is correctly reflected (1: Normal termination is read or the system parameter status is now the set
value.). If the request is not correctly reflected and abnormal termination occurs, data other than 1:
Normal termination may be read by reading the data number 053 to 056. Thus, the request may not
be reflected to the sensor amplifier.

When 0

→ 1 is written for the data number 001 to 006, the previous state of the data number 053 to

056 is cleared and the condition is updated. The data number 053 to 056 holds the result until 0

→ 1

is written for the next data number 001 to 006.

Data numbers
• The data number 054 (Zero shift/zero shift reset execution result) holds the result of

writing which either the data number 001 (Zero shift reset execution request) or data
number 002 (Zero shift execution request) performed last.

• The data number 053 (EEPROM writing result) holds "0: Writing" for 2 seconds after the

contents written onto the nonvolatile memory (EEPROM) using the writing commands
(SW, AW) are sent last. If writing starts after 2 seconds and finishes normally, 1: Normal
termination results.

If the writing commands (SW, AW) are continuously sent every second, 0:
Writing is held for 2 seconds. After the last writing commands (SW, AW) are
sent, 0: Writing is held for 2 seconds, writing is performed after 2 seconds and
1: Normal termination results.

However, when the initial reset is performed for the data number 005 (Initial reset
request), writing starts immediately. If all the parameters can be saved on the nonvolatile
memory (EEPROM) after approx. 3 seconds, 1: Normal termination results.

• Writing for data No. 001 (Zero shift execution request) and data No. 002 (Zero shift reset

execution request) begins immediately if the "zero shift status save" function is ON.

Reference

Bit 3, 2, 1: 1 to 5 V

Bit 0: NPN output

Example

Example

Parameters of Commands and Responses

„ Error numbers

The following table lists the error numbers that are returned as error responses when errors occur in
the communication with the SK-1000 Series.
Each error number is identified with two digits (ASCII characters).

The commands are only sent and received when a response is returned from DL-RS1A to the
external device within 1 sec.
Take the appropriate action to resolve the problem by referring to "Troubleshooting" (page 19).

Error

number

Error name

Problem

Action

00

Invalid command

error

An invalid command was

received.

Make sure that the external device has

sent a command listed in

"Communication commands" (page 10).

20

Data length error

Data with the correct length was

not received.

Make sure that the external device has sent

either "CR" or "CR + LF" as a data delimiter.

21

Number of

parameters error

The correct number of parameters

for the command was not

received.

Make sure that the number of parameters

and the positions of the commas used as

data delimiters conform to the command

format shown in "Commands and

Responses" (page 7).

22

Parameter error

·

A parameter exceeds its range

of value.

·

The external device is trying to

write a data type that cannot be

written.

·

The external device is trying to

read a data type that cannot be

read.

·

The data format is incorrect.

Make sure that the external device is

sending a command listed in

"Communication commands" (page 10).

29

Communication error

An error was detected with

RS-232C communication.

Make sure that DL-RS1A and the external

device have the same communication

settings configured. For information on

configuring DL-RS1A, refer to "(1)

Communication setup switches" (page 2).

65

ID number error

The ID number specified with the

command is incorrect.

Make sure that the sent data specified as

the ID number is a 2-digit number (ASCII

characters) according to the number of

connected units.

66

Expansion line error

The communication could not be

established due to a problem with

an expansion line.

Check that each of the sensor amplifiers

and DL-RS1A are securely and properly

connected by referring to "Connecting

the Unit to Sensor Amplifiers" (page 3).

Make sure that sensor amplifiers that are

supported by DL-RS1A are connected

(refer to page 4).

67

Write control error

DL-RS1A is not writable.

Change the read/write setting switch to

the R/W position to enable writing to DL-

RS1A. For information on the read/write

setting switch, refer to "Part Names and

Functions" (page 2).

Point

Advertising