Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 17 of 18

VS-06 Smart Camera, VS-06 User's Manual, pages 161 to 170

Pages 161 to 170 of 172

The original document is the PDF (3.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the di-soric VS-06

Page 161

H

H APPENDIX H

Serial Commands

This section provides descriptions of the serial commands that can be sent to the camera via TCP (Telnet) port, AutoVision Terminal, or HyperTerminal.

VS-06 Smart Camera Guide

H-1

Page 162

Appendix

H

Serial Commands

SET {tagname}{value} Sets value of a global tag. The tagname must correspond to one of the supported tags within the device. The value can contain spaces. The command is terminated by a carriage return and/or line feed character. The value can be a list of comma-separated items to set a sequence of tags: Send SET int1 1, 2, 3 to set int1 = 1, int2 = 2, int3 = 3. The AVP service allows setting of step and datum information from the job tree using forward slash ‘/’ in the symbolic name path. SET avp/insp1/snapshot1/acq1/gain 2.0 paths are not case-sensitive and do not need to be fully qualified if unique. SET avp/acq1/gain 2.0 will set the same gain value if there is only one acquire. Control tags in the AVP service such as START, STOP, and TRIGGER act as momentary switches. SET avp.start 1 is equivalent to the ONLINE command. avp.start will reset immediately and always read as 0. Success Return: On success will return !OK followed by an echo of the command. For example: !OK SET matchstring1 ABCD Fail Return: On failure will return !ERROR followed by the reason for the failure. For example: !ERROR Tag matchstring66 not found

H-2

VS-06 Smart Camera Guide

Page 163

Serial Commands

H GET {tagname} Gets value of a global tag. The tagname must correspond to one of the supported tags within the device. The command is terminated by a carriage return and/or line feed character. Include an index to get a single value from an array such as GET int1. If the index is omitted, the full array of values will be returned in a commaseparated list of values. Send Get {tagname} to get the value of a tag within the global data service. To get the value of a tag within another service, prefix the tagname with the service name. For example, a GET {service.tagname} command such as GET eip.input for the EIP input assembly. The AVP service allows retrieval of step and datum information from the job tree using forward slash ‘/’ in the symbolic name path. GET avp/insp1/snapshot1/status paths are not case-sensitive and do not need to be fully qualified if unique. GET avp/snapshot1/status will return the same result if there is only one inspection. When issued against a step, GET avp/snapshot1 will return the values for all datums. Success Return: On success will return the value stored in the tag. For example: ABCD Fail Return: On failure will return !ERROR followed by the reason for the failure. For example: !ERROR Tag matchstring66 not found

INFO {service.tagname or service} Gets information about a tag or service.

VS-06 Smart Camera Guide

H-3

Page 164

Appendix

H

Serial Commands

INFO with no arguments gets a list of services. INFO {service} gets a list of tags in that service. INFO {service.tagname} gets attributes of the tag as well as a list of subtags.

The AVP service allows retrieval of step and datum information from the job tree using forward slash ‘/’ in the symbolic name path. INFOavp/insp1/snapshot1/status paths are not case-sensitive and do not need to be fully qualified if unique. INFO avp/snapshot1/status will return the same result if there is only one inspection. When issued against a step, INFO avp/snapshot1 returns properties of the step, a list of child datums, and a list of child steps. Child steps are indicated by a trailing forward slash.

GETIMAGE {-transfer=ymodem} {-type=failed}{-format=[jpg|png]} {-quality=n} {-inspection=n} {woi=l,t,r,b} Initiates serial transfer of inspection image. -transfer=ymodem is not currently optional - only Ymodem protocol is supported. -type=failed to retrieve the last failed image. If omitted, the current image is returned. -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. -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.

H-4

VS-06 Smart Camera Guide

Page 165

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.

ONLINE Starts all inspections.

OFFLINE Stops all inspections.

TRIGGER {inspection index} Triggers inspection. If {inspection index} is omitted, inspection 1 is triggered.

VT (Virtual Trigger) Command Triggers an inspection by pulsing a Virtual I/O point. For example: VT 1 will return pulse VIO1. The inspection will run if it is configured to use VIO 1 as a trigger. Syntax: VT [VIO Index] •

If specified, the VIO index must be in the allowed range for Virtual I/O points within Visionscape. The virtual I/O line will be set high then low.

•

If VIO Index is not specified, VIO1 is assumed

Success Return: Nothing is echoed on success of the VT command. Fail Return: Return !ERROR followed by the reason for the failure. For example: !ERROR No such trigger

VS-06 Smart Camera Guide

H-5

Serial Commands

H

Page 166

Appendix

H

Serial Commands

JOBSAVE [-slot=]n Save job to slot n.

JOBLOAD [-slot=n][-r] Load job from slot n. -r = Start inspections.

JOBDELETE [-slot=n] Delete job in slot n.

JOBINFO [[-slot=]n][-v] Get job summary or info about slot n. -v = Verbose. This option shows the amount of space that would be freed if the job were deleted. It also lists the total disk space and free disk space.

JOBBOOT {-slot=n} Set bootup job slot n.

JOBDOWNLOAD [-transfer=]{YMODEM} Download .avz job packaged via transfer method.

JOBDELETE -all Delete all jobs in job slots. Important: Does not delete the current job loaded in camera memory.

H-6

VS-06 Smart Camera Guide

Page 167

GET SYSTEM.JOBSLOT Retrieve the slot of the current job. Note that the current job in the camera can be loaded from a job slot or the PC. If it isn’t loaded from a job slot then this command will return -1.

VS-06 Smart Camera Guide

H-7

Serial Commands

H

Page 168

Appendix

H-8

H

Serial Commands

VS-06 Smart Camera Guide

Page 169

I

APPENDIX I

Boot Modes

I Boot Modes

This section describes the VS-06’s Diagnostic Boot Mode and Boot Error Mode.

VS-06 Smart Camera Guide

I-1

Page 170

Appendix

I

Boot Modes

Diagnostic Boot Mode The VS-06 supports a special boot mode used for diagnostics and recovery. There are two ways in which the camera can be put into this mode: 1.

This method requires an Ethernet connection between the host PC and VS-06. Power-on the unit and hold the AutoVision button down until the green flash illuminates once. For C-Mount versions, hold the button down for approximately 30 seconds. The unit is now configured for IP address 192.168.0.10 with subnet mask 255.255.255.0. Establish a telnet connection between the host PC and VS-06. The [SAFE-KERNEL] prompt is displayed.

2.

This method requires a VSID-IB-ES and a serial connection between the host PC running a terminal emulator and VS-06 camera. Poweron the unit and hold down the Tab key down for several seconds. The unit will boot to a [SAFE-KERNEL] prompt with communication settings of 115200, N, 8, 1 (baud, parity, data bits, stop bits).

Once the unit is booted, there are many possible actions the user can take. However, the most useful actions are listed below. In rare situations, the boot job executed at camera startup can cause unexpected behavior. If this is the suspected case, it is possible to disable loading and running of the boot job at startup using the following command. [SAFE-KERNEL] BP_UpdateStartupOptions(0, 0) Note that the loading and running of the boot job is automatically re-enabled the next time a job is saved to camera flash from AutoVision or FrontRunner. At boot time, the system configures itself using a set of information known as boot parameters. To obtain a list of the current configuration’s boot parameters, issue the following command: [SAFE-KERNEL] BP_Dump()

Should your device need to be configured with different IP information, follow the example below and substitute the appropriate settings for IP address, subnet mask, and gateway address, respectively.

I-2

VS-06 Smart Camera Guide