The text of a manual · part 6 of 7
Vision MINI Xi Smart Camera Guide, pages 51 to 60
Pages 51 to 60 of 65
The original document is the PDF (2.0 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 Microscan Vision Mini Xi
Page 51
Appendix
D
Serial Commands
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 Fail Return: On failure will return !ERROR followed by the reason for the failure. For example: !ERROR Tag matchstring66 not found
GET {tagname|service|service.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|service.tagname|service} 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.
D-6
Vision MINI Xi Smart Camera Guide
Page 52
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 [tagname|service] Gets information about a tag or service. 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. INFO avp/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.
Vision MINI Xi Smart Camera Guide
D-7
Serial Commands
D
Page 53
Appendix
D
Serial Commands
QUERYAUTOCAL Returns photometry settings: Gain, Exposure, and Focus.
AUTOCAL Performs automatic calibration of photometry settings: Gain, Exposure, and Focus.
TARGET {0|1|off|on} Turns targeting LEDs On or Off. target 1 = Turn Target On target 0 = Turn Target Off
CHECKSUM {BOOT | KERNEL | BOOTPARAM} Gets a checksum on an individual part of the system.
HELP Returns a list of all serial commands showing correct syntax and functionality descriptions.
D-8
Vision MINI Xi Smart Camera Guide
Page 54
E
APPENDIX E
Vision MINI Xi Diagnostic Boot Mode
E Vision MINI Xi Diagnostic Boot Mode
This section describes the Vision MINI Xi’s Diagnostic Boot Mode and other boot parameters.
Vision MINI Xi Smart Camera Guide
E-1
Page 55
Appendix
E
Vision MINI Xi Diagnostic Boot Mode
Diagnostic Boot Mode The Vision MINI Xi 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 Vision MINI Xi. Power-on the unit and hold down the AutoVISION button until the green flash illuminates once. 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 Vision MINI Xi. The [SAFE-KERNEL] prompt is displayed.
2.
This method requires a serial connection between the host PC running a terminal emulator and Vision MINI Xi camera. Power-on the unit and hold down the Tab key 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 reenabled 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. [SAFE-KERNEL] BP_UpdateIP(“192.168.0.10”, “255.255.255.0”, “192.168.188.1”)
E-2
Vision MINI Xi Smart Camera Guide
Page 56
It is possible to configure the system to acquire its IP address via DHCP or to use a static IP address. Issue the following command with a ‘0’ for static IP or a ‘1’ for DHCP. [SAFE-KERNEL] BP_UpdateDHCP(0)
Additional Boot Parameters BP_UpdateCameraName(cameraName) where cameraName is a double-quoted string representing the new camera name. Function: Allows you to change the name of the smart camera. BP_UpdateLaserOn(state) where state = 0 or 1 Function: Allows you to disable or enable the state of the targeting laser during image acquisition. The actual display of the targeting laser is a logical AND of job settings with this parameter. Note that when the laser is disabled it is still possible to turn the laser on when a job is not running by issuing the serial command target 1 (Turn Target On). BP_UpdateGreenFlash(state) where state = 0 or 1 Function: Allows you to disable the flash-on-pass feature to eliminate green flash interference during color image processing.
Vision MINI Xi Smart Camera Guide
E-3
Vision MINI Xi Diagnostic Boot Mode
E
Page 57
Appendix
E-4
E
Vision MINI Xi Diagnostic Boot Mode
Vision MINI Xi Smart Camera Guide
Page 58
F
APPENDIX F
CloudLink Web HMI
F CloudLink Web HMI
CloudLink allows you to visualize Microscan Link values and images from compatible Microscan smart cameras and vision systems. It runs in your web browser, and is compatible with a wide variety of modern browsers including those found on tablets and smart phones. This appendix contains information about CloudLink support for the Vision MINI Xi. Refer to Getting Started with CloudLink – installed in the documentation folder C:\Microscan\Vscape\Documentation during AutoVISION/Visionscape installation – for detailed information about configuring and using the CloudLink web HMI. CloudLink requires an HTML5-compatible browser. • Internet Explorer 10 or later • Google Chrome • Firefox • Mobile Safari (iPhone / iPad) • Mobile Chrome on Android devices The following browswers were explicitly tested for compatibility: • Internet Explorer 10.0.9 • Internet Explorer 11.0.2 • Google Chrome 33.0 • Firefox 28.0 Additional Notes: • Windows Safari is not supported. • Internet Explorer 11 or later and Google Chrome 33 or later are recommended for extended CloudLink sessions.
Vision MINI Xi Smart Camera Guide
F-1
Page 59
Appendix
F
CloudLink Web HMI
Connecting To launch CloudLink, use your favorite web browser and enter the address of your device in the browser’s address bar. For example, if you have a Microscan smart camera on your network at address 10.20.1.123, you would enter:
CloudLink also works with Visionscape Software and with AutoVISION’s Emulator. To connect to a software-based job running in FrontRunner or AutoVISION: First, be sure the job is running, and then type the following into your browser’s address bar:
Note: You must specify port 8080 for a PC-based connection. If you are connecting to a PC-based system from a different machine on the network, use the IP address of the PC instead of the local host. For example, use http://10.20.1.234:8080 if the PC’s IP address is 10.20.1.234. Once you press the Enter key, you should see the following home page:
Click the CloudLink Dashboard icon to launch the application.
F-2
Vision MINI Xi Smart Camera Guide
Page 60
Application Overview The CloudLink Dashboard user interface is a single page web app-style application. Most web pages show information that can typically extend beyond the bottom of the browser window, requiring the user to scroll to see it. They typically contain links to other pages, which is how the user navigates around a web site. In contrast, CloudLink behaves more like an application, expanding to fill the browser window, and automatically adapting to any changes in the dimensions of the window. Although CloudLink allows you to define and use multiple display pages, they are all contained within a single web page. The browser stores a maximum of 50 images. The camera stores images, image thumbnails, and data records that can be requested via the web page or API. When memory is full, the camera will first delete full-size images, then thumbnails, and ultimately the data records on a first in-first out basis. This is a typical view of a CloudLink page.
Note: CloudLink does not currently support display of color images from color cameras.
Vision MINI Xi Smart Camera Guide
F-3
F CloudLink Web HMI
Application Overview