TYPE SMC_ENCODER_REF : STRUCT
InOut:
Name |
Type |
Initial |
Comment |
wEncoderID |
WORD |
0 |
|
dwRatioTechUnitsDenom |
DWORD |
1 |
|
iRatioTechUnitsNum |
DINT |
1 |
|
iMovementType |
INT |
1 |
|
fPositionPeriod |
LREAL |
360 |
|
fTaskCycle |
LREAL |
||
bSWLimitEnable |
BOOL |
FALSE |
|
fSWLimitPositive |
LREAL |
0 |
|
fSWLimitNegative |
LREAL |
0 |
|
dwEncoderModulo |
DWORD |
0 |
|
dwParam1 |
DWORD |
||
dwParam2 |
DWORD |
||
dwParam3 |
DWORD |
||
dwParam4 |
DWORD |
||
dwParam5 |
DWORD |
||
dwParam6 |
DWORD |
||
dwParam7 |
DWORD |
||
dwParam8 |
DWORD |
||
bUseInternalData |
BOOL |
FALSE |
|
dwActPosition |
DWORD |
||
dwCaptPosition |
DWORD |
0 |
|
bCaptureOccured |
BOOL |
FALSE |
|
bStartCapturing |
BOOL |
FALSE |
|
tiTriggerInput |
|||
fFirstCapturePosition |
LREAL |
0 |
|
fLastCapturePosition |
LREAL |
0 |
|
bCaptureWindowActive |
BOOL |
FALSE |
|
bLatchInController |
BOOL |
FALSE |
|
bAbortTrigger |
BOOL |
FALSE |
|
bStartLatchingIndex |
BOOL |
input: TRUE: check index of encoder |
|
bIndexSignal |
BOOL |
input: pulsed for one cycle when index occurs |
|
bIndexOccured |
BOOL |
output: TRUE: index occured at least once since bStartLatchingIndex = TRUE |
|
wIndexCount |
WORD |
output: number of index pulses since bStartLatchingIndex = TRUE |
|
dwIndexPosition |
DWORD |
input: last index position in increments |
|
fIndexPosition |
LREAL |
output: last index position in t.u. |