beautypg.com

KEYENCE DV-90 User Manual

Page 194

background image

8-16

E DV-90-IM

8

Ser

ia

l Comm

unicati

on

8-3 Command Communication Details

„ Settings relevant to serial communication

* Refer to the ASCII CODE TABLE (Appendix-5)

When changing the format to

0 1

A

, use the commands

shown below.
commanddescription

Function

Sending command

Response

Notes

Type of output data

Change

WRC0n

OK

n = 0: OFF (no output)

1: Input Data

2: Input Limit

3: Verify Limit

Check

RDC0

n

Output data separator Change

WRC1hh

OK

hh = separator character (hexadecimal format*)

Check

RDC1

n

Date information

Change

WRC2n

OK

n = 0: OFF

1: ON

Check

RDC2

n

Time information

Change

WRC3n

OK

n = 0: OFF

1: ON

Check

RDC3

n

Port number

information

Change

WRC4n

OK

n = 0: OFF

1: ON

Check

RDC4

n

Send format

Change

WRC5n

OK

n = 0: STX..ETX

1: none..CR

2: none..CRLF

3: ESC..CR

4: ESC..CRLF

5: Manual

Check

RDC5

n

Header character

string

Change

WRC6hhh...

OK

hhh… = header (5 characters) (maximum,

1characters =“hh”)

Set hhh…= to “FF” for “none”

The send format must be set to“5: Manual”

Check

RDC6

hhh…

Terminator character

string

Change

WRC7hhh...

OK

hhh… = header (5 characters) (maximum,

1characters =“hh”)

Set hhh…= to “FF” for “none”

The send format must be set to“5: Manual”

Check

RDC7

hhh…

Serial output delay

Change

WRC8nnn

OK

nnn = 000 through 255 (unit: 1 ms)

Check

RDC8

nnn

Additional verification

information

Change

WRC9n

OK

n = 0: OFF

1: ON

Check

RDC9

n

WRC6 01 30 31

= 01h/0 = 30h/1 = 31h (changes header)

WRC7 41 0D

A = 41h

= 0Dh (changes terminator)

WRC55

(changes send format

to manual)

Example

SOH

output data

CR

SOH

CR

SOH

0

1

A

CR