FC_SetSEncIn - General Information
|
Type: |
Function |
|
Available as of: |
SystemInterface_1.32.6.0 |
|
Versions: |
Current version |
Connect the logical encoder to the input of the sum encoder.
The logical encoder with the identification i_stLEncId is connected to the input of the sum encoder with the identification i_stSEncInId.
|
Input |
Data type |
Description |
|---|---|---|
|
i_stSEncInId |
ST_LogicalAddress |
logical address of the sum encoder |
|
i_stLEncId |
ST_LogicalAddress |
Logical address of the encoder that has to be connected to the sum encoder |
|
Data type |
Description |
|---|---|
|
DINT |
0: OK -1: No address of a sum encoder input -2: No address of a logical encoder |
FC_SetMasterEncoder(i_stLogGebId:= LEnc_1.stLogicalAddress, i_stMasterId:= Axis_Virt.stLogicalAddress);
FC_SetMasterEncoder(i_stLogGebId:= LEnc_2.stLogicalAddress, i_stMasterId:= Axis_1.stLogicalAddress);
FC_SetSEncIn(i_stSEncInId:= SEncIn_1.stLogicalAddress, i_stLEncId:= LEnc_1.stLogicalAddress);
FC_SetSEncIn(i_stSEncInId:= SEncIn_2.stLogicalAddress, i_stLEncId:= LEnc_2.stLogicalAddress);
The PLC configuration assigns the sum encoder inputs to the sum encoder.
The program connects the logical encoders to the sum encoder inputs.