beautypg.com

Parameters of commands and responses – KEYENCE DL-RS1A User Manual

Page 13

background image

11

Parameters of Commands and Responses

This section describes the parameters used with various commands and responses.

Communication commands

There are two types of communication commands: read commands and write commands.

Data that can be read with communication commands "M0", "MS", and DRQ input

For information on the data and the calculation function, refer to the manual supplied with
the sensor amplifiers.

ID numbers

This parameter is used with communication commands "SR" and "SW". Specify the ID number of the
target sensor amplifier using two digits (ASCII characters).
Example: Sensor amplifier with the ID number 00 = 00, sensor amplifier with the ID number 07 = 07

Communication

command

Attribute

Description

SR

Read

Reads the data for the specified data number from the sensor amplifier with the

specified ID number.

M0

Reads the data that DL-RS1A periodically retrieves from all sensor amplifiers.

MS

Reads the control output state and data that DL-RS1A periodically retrieves

from all sensor amplifiers.

DRQ input

Reads all of the control output state and data that DL-RS1A periodically

retrieves from all sensor amplifiers when a DRQ input is received.

SW

Write

Writes setting data for the specified data number into the sensor amplifier with

the specified ID number.

AW

Writes setting data for the specified data number into all sensor amplifiers.

Type of amplifier

Calculation

function OFF

Calculation function ON

Calculation

dedicated mode

Other displays

Reference

difference display

Main unit

P.V. values

(comparator values)

R.V. values

(raw values)

P.V. values

(comparator values)

P.V. values

(comparator values)

Expansion unit

P.V. values

(comparator values)

R.V. values

(raw values)

P.V. values

(comparator values)

P.V. values

(comparator values)

Point

Parameters of Commands and Responses

Data numbers

Specify the data number using three digits (ASCII characters).

Read-only data

The following table lists the types of data that can only be read from GT2 Series sensor amplifiers.

Writing read-only data results in a communication error (error number: 22).

*1

In the Data format column, "±" indicates that the value can be either "+" or "-" and "*" signifies a
number from "0 to 9".

*2

R: Indicates that the data type can only be read from the sensor amplifiers.

Data

number

Data name

Data format

*1

Number

of bytes

Attribute

*2

Data range

000

Comparator value (P.V. value)

±***.****

9

R

-199.9999 to +199.9999

*5

001

Calculation display value

002

Raw value (R.V. value)

003

Peak value during sampling period

*3

004

Bottom value during sampling period

*3

005

Control output

**

2

R

0: All control outputs are off
1: Only HIGH output is on
2: Only LOW output is on
3: Error
4: Only GO output
8: HH output is on
16: LL output is on

006

Sensor amplifier error state

*****

5

R

0 to 65535

*6

010

*4

R.V. value of main unit (ID: 00) on which
calculation result was based

±***.****

9

R

-199.9999 to +199.9999

011

*4

R.V. value of expansion unit (ID: 01) on which
calculation result was based

012

*4

R.V. value of expansion unit (ID: 02) on which
calculation result was based

013

*4

R.V. value of expansion unit (ID: 03) on which
calculation result was based

014

*4

R.V. value of expansion unit (ID: 04) on which
calculation result was based

015

*4

R.V. value of expansion unit (ID: 05) on which
calculation result was based

016

*4

R.V. value of expansion unit (ID: 06) on which
calculation result was based

017

*4

R.V. value of expansion unit (ID: 07) on which
calculation result was based

018

*4

R.V. value of expansion unit (ID: 08) on which
calculation result was based

019

*4

R.V. value of expansion unit (ID: 09) on which
calculation result was based

020

*4

R.V. value of expansion unit (ID: 10) on which
calculation result was based

021

*4

R.V. value of expansion unit (ID: 11) on which
calculation result was based

022

*4

R.V. value of expansion unit (ID:12) on which
calculation result was based

023

*4

R.V. value of expansion unit (ID: 13) on which
calculation result was based

024

*4

R.V. value of expansion unit (ID: 14) on which
calculation result was based

Point