Skip to Content
On this page

KEYENCE SR-2000 barcode reader

KEYENCE SR-2000 code scanning, status, reset and lock control driver

Open the plugin

Enter “Development Configuration → Collection Configuration”, create a device and select “KeyenceSr2000Master” in “Collection Plugin”.

Supported channels and data types

Channel typePre-configuration check
Serial PortConfirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device.
TCP ClientConfirm network reachability of the device IP, port, and gateway to the device.

Optional data types: Select by page options

Address rules

  • Keyence SR-2000 does not support register variable addresses, please use dynamic methods such as reading barcodes, status, version, input or reset, and indicator light control.

Special methods

MethodPurposeParameters
ReadBarcodeAsyncRead barcodeNo parameters
ResetScannerAsyncReset scannerNo parameters
OpenIndicatorAsyncOpen the indicator lightNo parameters
CloseIndicatorAsyncClose the indicator lightNo parameters
ReadVersionAsyncRead versionNo parameters
ReadCommandStateAsyncRead command statusNo parameters
ReadErrorStateAsyncRead error statusNo parameters
CheckInputAsyncRead input terminalTerminal number
SetOutputAsyncSet output terminalTerminal number, on-off status
ReadRecordAsyncRead scan code recordsNo parameters
LockAsyncLock the scannerNo parameters
UnlockAsyncUnlock the scannerNo parameters
ExecuteCommandAsyncExecute custom commandCommand text

Write, start/stop, reset, load, delete or control methods will change the status of field devices. Before execution, confirm that the equipment is in an operable state and prepare for stop or rollback measures.

Device debug

Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.

Dedicated debugging page

Scanner status is used to read the current status, IO is used to view input and output, and device control is used to perform reset, indicator light, and lock operations.

KeyenceSr2000Master: IO

KeyenceSr2000Master: Device control

Debugging notes

Read the barcode, version and error status first; output, indicator light, reset, lock/unlock and any command require secondary confirmation.

Functions

FunctionPurpose
Scanner statusUse Scanner status to inspect mapped values, status, counters, recent messages, or the latest result.
Plugin operationUse the controls on this plugin page and review the returned result.
Device controlUse Device control with an approved test point and confirm site safety before execution.

Verify the configuration

Compare the version text with the reader information page; for scanning, use a known test code and check the full text.

Writes and control operations require an approved test point and the site safety procedure.

Troubleshooting

  • Use dedicated methods rather than register variables. Reset, lighting, lock and output methods require appropriate site conditions.
  • Special method execution fails: Check method parameters and permissions; control, write or reset methods also need to confirm that the device is in a state that allows operation.
  • The serial port device does not respond: Confirm that the serial port is not occupied, and check the baud rate, data bits, stop bits and parity bits.