# Create an Advanced Recipe with L-Check

L-Check compares the runtime-distance between the two features of the part with the traintime distance. A big deviation may suggest that incorrect features have been located.

The L-Check threshold settings can be found under Recipe in Advanced Recipe Settings.

LCheck only works with PartIDs that contain two Features. Only the applicable PartID will be displayed in the list. If the selected recipe does not have a PartID containing two Features (Ex. recipe with only one Feature), the LCheck tab page cannot be selected.

The HMI and run-time command LCheckMode do not have to match. Runtime commands can be found in the AlignSight Communications Manual document. If the mode is different, it is judged after converting to the mode of the command argument.

Example: if Absolute is selected on HMI and Relative on the Runtime command, the limit values on the HMI are automatically converted to relative limit values and the LCJudge is calcurated with those parameters.

Example of the "LC" command.

Note: New commands will show at the top of the Message Window, pushing older messages down.

1. Detect the Feature with the LF command

In the sample, PartID=5. Features 1 and 3 are detected at the same time.

2. Use LC command to measure the distance between Features 1 and 3.

In the example, 16.297 is the distance between the two features. The last 1 means Pass.

Example of the "XALC" command.

XALC executes two commands, the XA commands followed by LC commands. The XALC command performs Feature detection, alignment calculation, distance measurement between two points and judgment with a single command.

0.002 in the sample is the rate of relative change in distance. The last 1 means Pass.