Test Without a Camera or PLC
LumiScan VGR runs a whole cycle without a camera, robot or PLC: a recording takes the place of the camera, and the PLC is simulated or replaced by an OPC UA client or a script. Use this to try out settings in the office, and to check an installation before the cell is connected.
Replay recordings instead of a camera
A recording is a folder of frames: for each capture an image (.png) and a point cloud (.ply) with the same base name, as LumiScan VGR saves them (see Generated Data and Files). A dataset.unit.json in the folder states the unit of the point clouds, for example { "unit": "METER" }; without it, LumiScan VGR judges the unit from the depth and warns (see Point-Cloud Unit).
There are two ways to replay recordings:
-
A simulated camera in the settings file: a camera driver of type
Virtualwith the folder inpath. The camera keeps its ID and is simulated on every PC, so use it for a test or demonstration project, not for a project that goes into production. With"layout": "DATASETS", each subfolder ofpathis a dataset. The example project metal-rings works this way:"cameraDrivers": [ { "driverType": "Virtual", "id": "driver-sim-camera", "path": "data/camera", "layout": "DATASETS" } ], "cameras": [ { "cameraId": "camera", "serial": "LX20220109", "driverId": "driver-sim-camera", "enable": true } ] -
The production settings with
--simulate-camera: every camera of the settings file is pointed at recorded data, and the settings file stays unchanged. Choose the folder with--simulate-camera-pathor in the Start Menu. It is read as<folder>/<cameraId>/<dataset>/: a camera replays the subfolder named after itscameraId, and a camera folder with frames directly in it has one dataset.LumiScan_VGR.exe -s C:\Projects\cell1\settings.json --simulate-camera --simulate-camera-path D:\recordings\cell1
All command-line options: Starting LumiScan VGR.
Simulate the PLC
For a project with communicationProtocol Profinet, start LumiScan VGR with --simulate-sps, or select the PLC simulation in the Start Menu. LumiScan VGR then needs no PROFINET card and no PLC; set the PLC signals by hand in the PROFINET tab (see PROFINET Process Flow and Signals).
A project with communicationProtocol OPC_UA needs no PLC: any OPC UA client can call the methods.
Check an installation with the example project
The example project metal-rings runs without hardware and is the project on which LumiScan VGR’s own integration tests run. A cycle that works with it shows that LumiScan VGR, its dependencies and the HALCON licence work on this PC.
-
Download lumiscan-vgr-example-metal-rings-v2.0.0.zip and unpack it, for example into
C:\LumiScan\examples. -
Run the recipe
pick-ringin one of three ways:-
By hand: follow Try the Example Project.
-
From an OPC UA client: start LumiScan VGR with the project’s
settings.json. Connect the client toopc.tcp://<PC>:4840, callSetupSystem, thenRunRecipewithRecipeIdpick-ring. The server starts in the operation modeAUTOMATIC, in which the methods are accepted. See OPC UA Client Integration Guide. -
From a script, without the user interface: write a text file
check.txtthat containsRUN_RECIPE:pick-ring, GET_BEST_TRAJECTORY
and run
LumiScan_VGR.exe -s C:\LumiScan\examples\lumiscan-vgr-example-metal-rings\settings.json --script check.txt
Script mode always ends with exit code 0; the result of each command is in the log,
LumiScanVGR.login the folder of the day under<HDVAppData>\LumiScan VGR\logs(see Logging Settings).
-
Check: RunRecipe returns ReturnCode SUCCESS with NumObjects3D greater than 0 and a grip pose that is not all zero, or every command in the log returns SUCCESS.
-
If matching fails (no objects in 3D): check the HALCON licence, see No point cloud matching can be performed.
-
If the example works but your project does not: the installation is fine; look for the cause in your project’s settings, files or camera, see Troubleshooting.