3 communication methods, Co mm u ni c a ting w ith t he fd -s s er ie s, Writing settings or status – KEYENCE DL-CL1 User Manual

Page 51

Advertising
background image

3-3 Communication Methods

3-23

3

Co
mm

u

ni

c

a

ting
w

ith t
he FD

-S

s

er

ie

s

- CC-Link Compatible Network Unit DL-CL1 User’s Manual (FD-S) -

Writing settings or status

(1) To see that the sensor amplifier is ready to send/receive commands, check that the "sensor ready"

parameter is set to 1.

(2) Write the data category and command number in the remote register.

Data category: In the high byte, write the data category of the parameter to be written, by referring

to

"Command Parameter List" (page 3-24).

Data number: For writing, write 01h in the low byte.

(3) Write the data number in the remote register.

Data number: Write the data number of the parameter to be written, by referring to

"Command

Parameter List" (page 3-24).
ID number: For data category 00/10, write the ID number of the sensor amplifier, to which the param-
eter is written, in the high byte.

(4) In the remote register, write the data to be written. For details of writable ranges, see

"Command

Parameter List" (page 3-24).

(5) Execute the command by activating the "request for command" (0 -> 1).
(6) After the command execution completes, the "command completed" signal flips from 0 to 1.
(7) If an error occurs during command execution, the "command error" signal flips from 0 to 1. For

details of the error, check the values entered in the "command response".

(8) Details of the command execution result are stored. For details of the result, see

"Command

response list" (page 3-8).

(9) When the "request for command" is set to 0, the "command completed" and "command error"

parameters flip to 0.

PLC

Sensor amplifier

(2)

Data category/command number 0001h(Write command)

RWw00

(3)

Data number

0141h

RWw01

(4)

Data to write

1234h

RWw02

(1)

Sensor ready

RX50

(5)

Command request

RY51

(6)

Command finish

RX51

(7)

Command error

RX52

(8)

Command response 0000h (Successfully completed)

RWr01

Parameter

1

1

1

1

0

0

0

0

(9)

1234h

h

Command number(Write command=01h)

Data category

1

0

h

Data number of parameter to write
ID number of target sensor amplifier

n n

h

Data number of parameter to write

For data category
01/03/05

For data category
00/10

Advertising