### L-Check

Note: The Command only supports PartIDs with two features.

LC

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. Pass/fail results are judged based on the threshold specified on the HMI by comparing against the training feature distance (TA, TT commands)

#### TCP/IP

Command format

LC,<PartID>,< LCResultMode >

Field | Arguments
--- | ---
LC | The command
<PartID> | Selects the part to get the L-Check result
<LCResultMode> | Specifies how the L-Check result shall be returned: “Abs”: The absolute runtime distance between the part features. “Diff”: The deviation (difference) between runtime and traintime distance. “Rel”: The relative deviation (in % of traintime distance)

Result string:

LC,<Status>,<LCResult>,<LCJudge>

Field | Description
--- | ---
LC | The command
<Status> | The result status 1: Success <=0: Fail
<LCResult> | The L-Check result
<LCJudge> | The L-Check judgement result 1: Pass (OK) 0: Fail (NG)

#### SLMP:

Send command (Input Block)

Offset | Value | Description
--- | --- | ---
VIB_Offset + 2 | 5015 | Command: LC command ID
VIB_Offset + 3 | <PartID> | Argument0: Selects the part to get the L-Check result
VIB_Offset + 5 | <LCResultMode> | Specifies how the L-Check result shall be returned: 1: (Abs) The absolute runtime distance between the part features. 2: (Diff) The deviation (difference) between runtime and traintime distance. 3: (Rel) The relative deviation (in % of traintime distance)

Receive Result (Output Block)

Offset | Value | Description
--- | --- | ---
VOB_Offset + 5 | 5015 | Command: LC command ID
VOB_Offset + 6 | <Status> | Argument0: The result Status: 1: Success <=0: Fail
VOB_Offset + 7 | <result> | The L_Check result
VOB_Offset + 9 | <LCJudge> | The L-Check judgement result 1: Pass (OK) 0: Fail (NG)