3 details of configuration commands, Types of configuration commands, Details of each configuration command – KEYENCE SR-750 Series User Manual

Page 75: Details of configuration commands

Advertising
background image

75

E SR-750 UM

„

Obtaining the script version

Send command SCPVER
Response

OK, SCPVER, mmmm, nnnn
mm...:Script library version
nn…: FmtSet.lua version (Only when FmtSet.lua exists and the version

is defined)

• FmtSet.Lua version is the value stored in variable name "SCPVERSION" within

the FmtSet.Lua file.

• This returns the script library version and the FmtSet.lua version.
• If the script library does not exist, the error code 12 is returned.

* The script library is a library file to use the edit data function and the edit image

file name function.

„

Obtaining MAC address

Send command EMAC
Response

OK, EMAC, nnnn
nnnn = MAC address (12 bytes)

• Read the MAC address of the SR-750 Series.

„

Obtaining error status

Send command ERRSTAT
Response

OK, ERRSTAT, nnnn
nnnn = none

: No error

system : System error
update : Program update error
cfg

: Set value error

ip

: IP address duplication error

over

: Send buffer overflow

plc

: PLC link error

profinet : PROFINET error
lua

: Script error

• Obtains the error status of the SR-750 Series itself. If multiple errors occur, items

are displayed one by one in the above order.

• When the error status is cleared, it resets to the no error status automatically.
• If Specify response character is set to "SR-600 compatible", nnnn is returned.

"3-9 SR-600 Compatible Output Mode (Page 19)"

„

Clearing PLC link error

Send command PCLR
Response

OK, PCLR

• Clear the PLC link error.

„

Erasing error images

Send command

ICLR, bb

bb: parameter bank number (00 - 10)
00 = The most recent image is
deleted
01 - 10 = Erasing error images
of the specified parameter
banks only

Response

Normal process

OK, ICLR

Abnormal process ER, ICLR, ee

ee: Error code

• Read error images that have been saved to the SR-750 Series are erased.
• Images that have been saved onto RAM or ROM are erased.
• With bb = 00, the most recent image is erased in the burst read mode.
• When the specified number of images is set in the image saving mode, all

images are erased with 00 set. If other values are sent, an error is returned.

• If Specify response character is set to "SR-600 compatible", OK is returned for

normal process and ERRee is returned for abnormal process.

"3-9 SR-600 Compatible Output Mode (Page 19)"

„

Confirming type of model and main unit system version

Send command KEYENCE
Response

OK, KEYENCE, SR-750, aaaaa

aaaaa: Main unit system version

8-3

Details of Configuration
Commands

This section describes the configuration commands of the SR-750 Series.

Types of Configuration Commands

The SR-750 Series setting commands include the following 5 types.

„

Parameter bank configuration command (WB/RB)

Command to set scan and code configuration to a parameter bank.
Changed configuration details are applied after a response for a configuration
command is sent.

„

Code configuration command for tuning (WC/RC)

Command to set codes for auto tuning.
Up to 8 types of codes selected during auto tuning can be registered.
Changed configuration details are applied when a response for a configuration
command is sent.

„

Operation configuration command (WP/RP)

Command to set items related to the SR-750 Series operations.
Changed configuration details are applied after a response for a configuration
command is sent.

„

Communication configuration command (WN/RN)

Command to set items related to RS-232C and Ethernet communications.
Changed configuration details are applied after a SAVE command is received.

„

Batch transmission of configuration/confirmation
commands (WA/RA)

The dedicated command has been prepared for batch transmission of multiple
configuration/confirmation commands.
Use this command to reduce the number of times to send configuration/
confirmation commands.

Details of Each Configuration Command

Parameter Bank Configuration Command Format (WB/
RB)

Parameter bank 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

bb

: Parameter bank number 01 - 10 Fixed to 2 bytes

mmm : Command number Fixed to 3 bytes
nnn… : Setting value (varies according to command number)

example) Setting the Exposure of the parameter bank 1 to 300

μs.

Configuration change

Send command

WB, 01100, 0010

Scan condition setting

OK, WB

Configuration confirmation Send command

RB, 01100

Response (Normal process) OK, RB, 0010

NOTICE

• Send the SAVE command to save in the memory the contents

changed by setting commands.
If you do not send the SAVE command, when the power is
turned off or the RESET command is received, the settings will
return to the state before changed.

• The setting contents sent during the SR-750 operation are

reflected when the current operation finishes, not after the
response is sent to the command.

WB

,

bb

mmm ,

nnn…

OK

,

WB

ER

,

WB

,

ee

ee: Error code

RB

,

bb

mmm

OK

,

RB

,

nnn…

ER

,

RB

,

ee

ee: Error code

Advertising