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

Page 50

Advertising
background image

3-3 Communication Methods

3-22

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

Co
mm

u

ni

c

a

ting
w

ith t
he FD

-M

H

s

er

ie

s

3

Reading 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 read, by referring

to

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

Command number: For reading, write 00h in the low byte.

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

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

"Command

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

(4) Execute the command by activating the "request for command."
(5) After the command execution completes, the "command completed" signal flips from 0 to 1.
(6) 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".

(7) The read data is stored. Read the data if the command has completed successfully.

(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" parameter flips to 0. Also,

the "command error" parameter flips to 0 if an error has occurred.

PLC

Sensor amplifier

(2)

Data category/command number 0000h(Read command)

RWw00

(3)

Data number 0141h

RWw01

(1)

Sensor ready

RX50

(4)

Command request

RY51

(5)

Command finish

RX51

(6)

Command error

RX52

(7)

Data to read 1234h (Data that has been read)

RWr02

(8)

Command response 0000h (Successfully completed)

RWr01

Parameter 1234h

1

1

1

1

0

0

0

0

(9)

h

Command number (Read command=00h)

Data category

0 0

h

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

n n

h

Data number of parameter to read

For data category
01/03/05

For data category
00/10

Advertising