3 command communication, Setting communication parameters – KEYENCE BL-180 User Manual

Page 66

Advertising
background image

4.3 Command Communication

58

Setting Communication Parameters

Function

command being sent

Respons

e

Description

Error

Code

Setting baud rate

Change

WP35n

OK

N= 0: 9600 bps

1: 4800 bps
2: 2400 bps
3: 1200 bps
4: 600 bps
5: 38400 bps
6: 31250 bps
7: 19200 bps

00, 02
05, 08
14

Confirm

RP35

035n

Setting data bit length

Change

WP30n

OK

n= 0: 7 bits

1: 8 bits

00, 02
05, 07
14

Confirm

RP30

30n

Setting parity check
* To set the parity type, use the
command below.

Change

WP31n

OK

n= 0: Disable

1: Enable

Confirm

RP31

31n

Setting parity type

Change

WP32n

OK

n= 0: Even

1: Odd

Confirm

RP32

32n

Setting Stop bit

Change

WP33n

OK

n= 0:1 bit

1: 2 bits

Confirm

RP33

33n

Setting handshaking protocol 1
* To specify the protocol, use
the command below.

Change

WP07n

OK

n= 0: No protocol

1: Set protocol

Confirm

RP07

07n

Setting handshaking protocol 2 Change

WP08n

OK

n= 0: PASS/RTRY handshaking

1: ACK/NAK handshaking

Confirm

RP08

08n

Setting RTS/CTS handshaking

Change

WP22n

OK

n= 0: Disable

1: Enable

Confirm

RP22

22n

Advertising