Communication configuration command format (wn/rn), Tuning settings – KEYENCE SR-750 Series User Manual
Page 81
81
E SR-750 UM
Tuning settings
Communication Configuration Command Format (WN/RN)
Communication configuration command is sent in the following format:
• Configuration change
Send command
Response
Normal process
Abnormal process
• Configuration confirmation
Send command
Response
Normal process
Abnormal process
mmm : Command number Fixed to 3 bytes
nnn… : Setting value (varies according to command number)
example: Changing SR-750 Series IP address to "192.168.100.1"
Configuration change
Send command
WN, 200, 192.168.100.1
Response (Normal process) OK, WN
Configuration confirmation Send command
RN, 200
Response (Normal process) OK, RN, 192.168.100.1
Important
To change and apply the communication configuration, make sure
to send a SAVE command.
Function
Command
Number
Setting
value
Explanation
Default
Brightness adjustment
mode
801
0, 1
0 : High quality mode
1 : High speed mode
1
Exposure on high
speed mode
802
3 to 333
Exposure time = setting value ×
30
μs
0005
Offset setting
803
000 to
255
Use the default value of 255 for
normal use.
255
Dynamic range setting
804
0, 1
0 : Hi-Sensitive/Hi-SNR
1 : Hi-DR
0
Tuning mode
805
0, 1
0 : Normal Mode
1 : Filter
0
Codes to read while
tuning
808
01 to 16
1
Allow reduced detection
count while tuning
809
0, 1
0 : Do not allow
1 : Allow
0
Tuning target code
820
1 to
00773
1 : QR
2 : DataMatrix
10 : GS1 DataBar
20 : CODE39
40 : ITF
100 : NW-7 (Codabar)
200 : JAN/EAN/UPC
400 : CODE128
Specify the setting using sum of
each item.
00773
Black-white reverse
read setting when
tuning
823
0 to 2
0 : Disable
1 : Enable
2 : Automatic
2
Internal lighting when
tuning
821
0, 1
0 : Not used
1 : Used
1
External lighting when
tuning
822
0, 1
0 : Not used
1 : Used
0
WN
, mmm ,
nnn…
OK
,
WN
ER
,
WN
,
ee
ee: Error code
RN
, mmm
OK
,
RN
,
nnn…
ER
,
RN
,
ee
ee: Error code
Communication port settings
RS-232C communication settings
Ethernet communication settings
Function
Command
Number
Setting
value
Explanation
Default
Command port
configuration
000
0 to 2
0 : Not used
1 : RS232C
2 : Ethernet
1
Data port 1
configuration
001
0 to 2
0 : Not used
1 : RS232C
2 : Ethernet
1
Data port 2
configuration
002
0 to 2
0 : Not used
1 : Reserve
2 : Ethernet
2
Append checksum
003
0, 1
0 : Disable
1 : Enable
0
Append data size
004
0, 1
0 : Disable
1 : Enable
0
Header settings
005
hhhh···
Specify up to 5 characters (16 HEX
bytes) from HEX (0x00 to 0x7F).
FF : Not set
FF
Terminator settings
006
hhhh···
Specify up to 5 characters (16 HEX
bytes) from HEX (0x00 to 0x7F).
FF : Not set
0D
Function
Command
Number
Setting
value
Explanation
Default
Baud rate setting
100
0 to 4
0 : 9600bps
1 : 19200bps
2 : 38400bps
3 : 57600bps
4 : 115200bps
4
Data length setting
101
0, 1
0 : 7bit
1 : 8bit
1
Parity check setting
102
0 to 2
0 : Disable
1 : Even
2 : Odd
1
Stop bit length setting
103
0, 1
0 : 1bit
1 : 2bit
0
Communication
protocol setting
104
0 to 2
0 : No Handshaking
1 : PASS/RTRY
2 : ACK/NAK
0
Function
Command
Number
Setting
value
Explanation
Default
IP address setting
200
a. b. c. d
a : 0 to 255
b : 0 to 255
c : 0 to 255
d : 0 to 255
192.168.
100.100
Subnet mask setting
201
8 to 30
Specify with bit length
255.255.255.0 ···24
255.0.0.0
···8
24
Default gateway setting
202
a. b. c. d
a : 0 to 255
b : 0 to 255
c : 0 to 255
d : 0 to 255
0.0.0.0
(Not set)
IP address setting at
connection destination
203
a. b. c. d
a : 0 to 255
b : 0 to 255
c : 0 to 255
d : 0 to 255
0.0.0.0
(Not set)
Port number setting for
connection destination
204
1024 to
65535
9004
Setting of connection
establishment request
transmission
205
0, 1
0 : Disable
1 : Enable
0
Port number setting for
Data port 1
206
1024 to
65535
Unavailable: 9013, 9014, 9015,
9016, 5920, 44818
9004
Port number setting for
command port
207
1024 to
65535
Unavailable: 9013, 9014, 9015,
9016, 5920, 44818
9004
Keep/Alive function
setting for Data port 1
208
0, 1
0 : Not use
1 : Enable
1
Command port Keep/
Alive function setting
209
0, 1
0 : Not use
1 : Enable
1
* Set when used
as a client