omron — APPENDIX D Serial Commands

Appendix D Serial Commands Serial Command Syntax = Required argument. Replace appropriately. For example: -u becomes -u av where av replaces DB_User_name . | = Mutually exclusive arguments. Choose one from the list. { } = Used with | to specify a list of choices for an argument. [ ] = Optional parameter. Important: Unless otherwise stated, commands will respond with !OK on success and !ERROR on failure. GETIMAGE [-format={jpg|png}] [-quality={0-100}] [-woi=left,top,right,bottom] [-inspection=n] Initiates serial transfer of inspection image (RS-232 only). Note: This command always returns the last (most recent) image.

-transfer=ymodem is currentlynot optional - only Ymodem protocol is supported. -format={jpg|png} specifies the format of the image. If omitted, the image format is JPG. -quality= n specifies a JPG compression quality of n less than or equal to 100. The default quality is 80 if not specified. Note: The PNG format provides lossless image compression. If format is set to PNG , the quality setting does not apply. woi=left,top,right,bottom specifies a rectangular area of the image to be included in the output image. If omitted, the full image buffer is returned. -inspection= n specifies the inspection from which to retrieve an image.

The image will be from the first snapshot within that inspection. If not specified, the image will be from the first inspection that does contain a snapshot. The following example will retrieve an image from the camera with these settings: Protocol: ymodem; Format: png; Quality: N/A; Inspection: second inspection. GETIMAGE –transfer=ymodem –format=png –inspection=2 The following example will retrieve an image from the camera with these settings: Protocol: ymodem; Format: jpg (default); Quality: 50; Inspection: first inspection (default). GETIMAGE –transfer=ymodem –quality=50 ONLINE Starts all inspections. OFFLINE Stops all inspections. D-2 Vision MINI Smart Camera Guide