ENCODER_REF_SM3 (FB)¶
FUNCTION_BLOCK ENCODER_REF_SM3 EXTENDS AXIS_REF_MAPPING_SM3
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
wAxisStructIDWORD16#FE12
nAxisStatepower_off
State of the axis according to the
PLCopenstate diagram:0:
power_off1:
errorstop2:
stopping3:
standstill4:
discrete_motion5:
continuous_motion6:
synchronized_motion7:
homing
Parameter number: 1000
bRegulatorOnBOOLFALSE
Parameter number: 1010
bDriveStartBOOLFALSE
Parameter number: 1011
bCommunicationBOOLFALSE
TRUE: Communication OKParameter number: 1012wCommunicationStateWORD16#FFFF
Parameter number: 1013
uiDriveInterfaceErrorUINTDrive interface error numberParameter number: 1014bRegulatorRealStateBOOLFALSE
Parameter number: 1015
bDriveStartRealStateBOOLFALSE
Parameter number: 1016
wDriveIdWORD0
Parameter number: 1021
iOwnerINT0
Parameter number: 1022
fCycleTimeSpentLREALParameter number: 1024
fTaskCycleLREAL0.005
Parameter number: 1025
bErrorBOOLFALSE
Parameter number: 1030
dwErrorIDDWORD0
Drive specific error identifier, parameter number: 1031
bErrorAcknBOOLFALSE
Parameter number: 1032
bDisableErrorLoggingBOOLFALSE
Parameter number: 1036
fbeFBErrorARRAY [0..g_SMC_NUMBER_FB_ERRORS] OF SMC_FBERROR
Parameter number: 1035
dwRatioTechUnitsDenomDWORD1
Parameter number 1051
iRatioTechUnitsNumDINT1
Parameter number 1052
nDirectionpositive
Parameter number 1053
fScalefactorLREAL1
Parameter number 1054
fFactorVelLREAL1
Parameter number 1055
fFactorAccLREAL1
Parameter number: 1056
fFactorTorLREAL1
Parameter number: 1057
fFactorJerkLREAL1
Factor jerkParameter number: 1058fFactorCurLREAL1
Parameter number: 1059
fFactorReferenceLREAL1
The factor the home offset (fReference, parameter 1211) is multiplied by after conversion to increments. When converting from increments, the received value in increments is divided by the factor. Drivers can set this to -1 to invert the sign of the home offset.
iMovementTypeINTSMC_AXIS_TYPE.finite
Parameter number: 1060
fPositionPeriodLREAL1000
Parameter number: 1061
eRampTypetrapez
Parameter number: 1062
motorTypeParameter number: 5007
byControllerModeBYTESMC_position
Parameter number: 1091
byRealControllerModeBYTESMC_position
Parameter number: 1092
fSetPositionLREAL0
Parameter number: 1100, 1
fActPositionLREAL0
Parameter number: 1101
fAimPositionLREAL0
Parameter number: 1105
fSavePositionLREAL0
Parameter number: 1107
fSetVelocityLREAL0
Parameter number: 1110, 11
fActVelocityLREAL0
Parameter number: 1111, 10
fMaxVelocityLREAL0
Maximum velocity of the drive (remote parameter) in [u/s]Parameter number: 1112,9fSWMaxVelocityLREAL0
Maximum velocity (software limit) in [u/s]Parameter number: 1113bConstantVelocityBOOLFALSE
Parameter number: 1115
fSaveVelocityLREAL0
Parameter number: 1117
fSetAccelerationLREAL0
Parameter number: 1120
fActAccelerationLREAL0
Parameter number: 1121
fMaxAccelerationLREAL0
Maximum acceleration of the drive (remote parameter) in [u/s²]Parameter number: 1122, 13fSWMaxAccelerationLREAL0
Maximum acceleration (software limit) in [u/s²]Parameter number: 1123bAcceleratingBOOLFALSE
Parameter number: 1125
fSaveAccelerationLREAL0
Parameter number: 1127
fMaxDecelerationLREAL0
Maximum deceleration of the drive (remote parameter) in [u/s²]Parameter number: 1132, 15fSWMaxDecelerationLREAL0
Maximum deceleration (software limit) in [u/s²]Parameter number: 1133bDeceleratingBOOLFALSE
Parameter number: 1135
fSaveDecelerationLREAL0
Parameter number: 1137
fSetJerkLREAL0
Parameter number: 1140
fActJerkLREAL0
Parameter number: 1141
fMaxJerkLREAL0
Maximum jerk of the drive (remote parameter) in [u/s³] Parameter number: 1142, 16
fSWMaxJerkLREAL0
Maximum jerk (software limit) in [u/s³]Parameter number: 1143fRampJerkLREAL100000
Maximum Jerk, special value for sin² ramp type in [u/s³] Parameter number: 1144
fSaveJerkLREAL0
Parameter number: 1147
fSetCurrentLREAL0
Parameter number: 1150
fActCurrentLREAL0
Parameter number: 1151
fMaxCurrentLREAL100
Maximum current in [A]Parameter number: 1152fSWMaxCurrentLREAL0
Maximum user defined current in [A]Parameter number: 1153fSetTorqueLREAL0
The set torque in [Nm] or [N] (linear) at the gearbox output. Parameter number: 1160
fActTorqueLREAL0
Actual torque in [Nm] or [N] (linear) at the gearbox output.Parameter number: 1161fMaxTorqueLREAL0
The maximum torque in [Nm] or [N] (linear) at the gearbox output. Parameter number: 1162
fSWMaxTorqueLREALFPU.GetLRealSpecialVal(FPU.ESpecial_FP_Value.PosInf)
The maximum torque (software limit) in [Nm] or [N] (linear) at the gearbox output. Parameter number: 1163
fSWLimitPositiveLREAL0
Position limit in positive direction in [u]Parameter number: 1200, 2fSWLimitNegativeLREAL0
Position limit in negative direction in [u]Parameter number: 1201, 3usiSWEndSwitchStateUSINT0
Parameter number: 1204
bSWLimitEnableBOOLFALSE
Parameter number: 1205
bHWLimitEnableBOOLTRUE
Parameter number: 1206
bStartReferenceBOOLFALSE
Parameter number: 1210
fReferenceLREAL0
Parameter number: 1211
bStartReferenceRealStateBOOLFALSE
Parameter number: 1212
fOffsetPositionLREAL0
Parameter number: 1215
dwPosOffsetForResidualsDWORD0
Parameter number: 1230
dwOneTurnDWORD0
Parameter number: 1231
dwLastPositionDWORD0
Parameter number: 1232
bySwitchingStateSMC_ST_INITIALIZING
Parameter number: 1233
iRestNumeratorDINT0
Parameter number: 1234
iTurnINT0
Parameter number: 1235
dwActPositionDWORD0
Parameter number: 1238
usiBusBitWidthUSINT32
The bus bit depth. This is the number of bits used to send the actual and set position from and to the drive. Between 1 and 32.
dwBusModuloMaskDWORD16#FFFFFFFF
The value (2^k - 1) where k is the bus bit depth.eBrakeControlSMC_BRAKE_AUTO
Parameter number: 1017
bBrakeClosedRealStateBOOLFALSE
Parameter number: 1018
bOldErrorBOOLParameter number: 1033
bVirtualBOOLTRUE: Virtual drive. Parameter number: 1040bLogicalBOOLParameter number: 1041
fSetActTimeLagCyclesLREAL3
The dead time in cycles between the fActPosition received in this bus task cycle, and the fSetPosition at the beginning OF THIS bus task cycle. Parameter number: 1070
diSetPositionDINT0
Parameter number: 1108
diActPositionDINT0
Parameter number: 1109
diSetVelocityDINT0
Parameter number: 1118
diActVelocityDINT0
Parameter number: 1119
diSetAccelerationDINT0
Parameter number: 1128
diActAccelerationDINT0
Parameter number: 1129
diSetCurrentDINT0
Parameter number: 1158
diActCurrentDINT0
Parameter number: 1159
diSetTorqueDINT0
Parameter number: 1168
diActTorqueDINT0
Parameter number: 1169
fSWLimitDecelerationLREAL0
Deceleration in [u/s²] with which the system will brake in case of a software limit.Parameter number: 1203xWaitForHaltWhenStopInterruptsHomeBOOLfSWErrorMaxDistanceLREAL0
Distance in which the drive has to reach standstill after an error has occurred.Parameter number: 1250eCheckPositionLag0
Parameter number: 1207
fMaxPositionLagLREALParameter number: 1208
bPositionLagActiveBOOLParameter number: 1209
bModuloDoneByDriveBOOLParameter number: 1242
diFollowingErrorDINTParameter number: 1243
fFollowingErrorLREALParameter number: 1244
aCaptDescARRAY [0..7] OF SMC3_CaptureDescription
Parameter number: 1400
xPersistentDataLoadedBOOLFALSE
strDriveInterfaceErrorSTRING(255)adatAcyclicARRAY [1..SMC3_gc_usiNumberAcyclicChannels] OF SMC3_DriveAcyclicTel
nAbortCounterUDINTInternal: counts the number of aborts. This counter simply wraps to 0 when exceeding 2^32-1, so use accordingly. Increased in method SetOwner().
vMinRequiredVersionVERSIONThe minimum version of SM3_Basic that the driver requires.
bAvoidReversalOnHaltStopBOOLParameter number: 1260
bConsiderLimitsOfAbortedMotionOnHaltStopBOOLParameter number: 1270
bUpdateIOsInStopBOOLUpdate the IOs if the application is stopped. Parameter number 1280
bAutoRestartBOOLTRUE
If TRUE, an implict SMC3_ReinitDrive is executed after the communication to the drive is established again after a communication loss (e.g. fieldbus slave no longer operational). If FALSE, an explicit call to SMC3_ReinitDrive is required after communication has been established again. (This is the behavior of SoftMotion versions before 4.18.0.0.) Default is TRUE if not set by the device parameter, i.e. the drive device can override the default. Parameter number 1281
overrideFactorsSMRB.DynFactorsSTRUCT(fVel := 1, fAcc := 1, fJerk := 1, fTorque := 1)
m_superimposedSMC_SuperimposedDataInternal: information of superimposed movements
Output
strDriverSTRING(16)dwDriverVersionDWORDInput
usiEncoderBitWidthBYTE
Properties:
ChildNodeCount, inherited from AXIS_REF_SM3
Connector, inherited from AXIS_REF_SM3
Enable, inherited from AXIS_REF_SM3
FirstChildNode, inherited from AXIS_REF_SM3
Index, inherited from AXIS_REF_SM3
IsDeviceDiagInitialized, inherited from AXIS_REF_SM3
IsRootNode, inherited from AXIS_REF_SM3
NextSiblingNode, inherited from AXIS_REF_SM3
ParentNode, inherited from AXIS_REF_SM3
SiblingNodeCount, inherited from AXIS_REF_SM3
Methods:
BasicInit, inherited from AXIS_REF_SM3
CheckCurrentSupportedCommunicationState, inherited from AXIS_REF_SM3
CheckPositionLag, inherited from AXIS_REF_SM3
CheckSupportedCommunicationState, inherited from AXIS_REF_SM3
GetActValuesForCycle, inherited from AXIS_REF_SM3
GetDeviceErrorAsync, inherited from AXIS_REF_SM3
GetDeviceInfo, inherited from AXIS_REF_SM3
GetDeviceState, inherited from AXIS_REF_SM3
GetSetValuesForCycle, inherited from AXIS_REF_SM3
GetSpecificDeviceErrorAsync, inherited from AXIS_REF_SM3
GetSpecificDeviceState, inherited from AXIS_REF_SM3
IsDeviceEnabled, inherited from AXIS_REF_SM3
SetCommunicationState, inherited from AXIS_REF_SM3
SkipNextInputUpdate, inherited from AXIS_REF_SM3
SkipNextOutputUpdate, inherited from AXIS_REF_SM3