Skip to content

Screwdriving Process

Modify Screwdriving Parameters

0x5731 SCREWDRIVER_PARM_SET

Parent Parameters

ParameterTypeRequiredDescription
proNumintYesProgram number
torqueCorrectionintNoTorque correction value, range: -10 ~ 10
tightenobjectYesTighten parameters, see table below
loosenobjectYesLoosen parameters, see table below

tighten Parameters

ParameterTypeRequiredDescription
rotationDirintYesRotation direction: 0=CW, 1=CCW
targetTorquedoubleYesTarget torque, unit mN·m
roundsarray[double]YesRounds for steps 0-9, range: 0-20.0
speedarray[double]YesSpeed for steps 0-9, range: 10-1500
tightenModeintNoTighten mode: 0=Standard, 1=Tapping, 2=High-speed
initDetectionAmountFlagboolNoEnable initial detection amount
initDetectionAmountdoubleNoInitial detection amount (mN·m), range: 0-10
initTapTorqueFlagboolNoEnable initial tap torque
initTapTorquedoubleNoInitial tap torque (mN·m), range: 10-700
torqueHoldTimeFlagboolNoEnable torque hold time
torqueHoldTimedoubleNoTorque hold time (sec)
antiLimitFlagboolNoEnable negative-side allowable rounds
antiLimitdoubleNoNegative-side allowable rounds, range: -10-0
positiveLimitFlagboolNoEnable positive-side allowable rounds
positiveLimitdoubleNoPositive-side allowable rounds, range: 0-10
addTightenAngleFlagboolNoEnable additional tighten angle (°)
addTightenAngledoubleNoAdditional tighten angle, range: -360-360
floatTightenAngleFlagboolNoEnable float height tighten angle (°)
floatTightenAngledoubleNoFloat height tighten angle (°), range: 0-360
velSwitchTorqueRatioFlagboolNoEnable speed switch torque
velSwitchTorqueRatiodoubleNoSpeed switch torque ratio (%)
speedAfterSwitchFlagboolNoEnable speed after switch
speedAfterSwitchdoubleNoSpeed after switch (rpm), range: 10-1000

loosen Parameters

ParameterTypeRequiredDescription
roundsarray[double]YesRounds for steps 0-1, range: -20.0-20.0
speedarray[double]YesSpeed for steps 0-1, range: 10-1000
rotationDirintYesRotation direction: 0=CW, 1=CCW

Example

json
{
  "proNum": 1,
  "torqueCorrection": 0,
  "tighten": {
    "rotationDir": 0,
    "targetTorque": 1.1,
    "rounds": [1, 2, 3, 4, 5, 6, 7, 8, 9],
    "speed": [1, 2, 3, 4, 5, 6, 7, 8, 9],
    "tightenMode": 0,
    "initDetectionAmountFlag": true,
    "initDetectionAmount": 0,
    "initTapTorqueFlag": true,
    "initTapTorque": 0,
    "torqueHoldTimeFlag": true,
    "torqueHoldTime": 0,
    "antiLimitFlag": true,
    "antiLimit": -10,
    "positiveLimitFlag": true,
    "positiveLimit": 10,
    "addTightenAngleFlag": true,
    "addTightenAngle": 360,
    "floatTightenAngleFlag": true,
    "floatTightenAngle": 360,
    "velSwitchTorqueRatioFlag": true,
    "velSwitchTorqueRatio": 1,
    "speedAfterSwitchFlag": true,
    "speedAfterSwitch": 10
  },
  "loosen": {
    "rounds": [1.0, 2.0, 3.0],
    "speed": [1.0, 2.0, 3.0],
    "rotationDir": 0
  }
}

Teach Pendant Query Screwdriving Parameters

0x5732 SCREWDRIVER_PARM_INQUIRE

ParameterTypeRequiredDescription
proNumintYesProgram number

Example

json
{
  "proNum": 1
}

Send Screwdriving Parameters

0x5733 SCREWDRIVER_PARM_RESPOND

data field is the same as 0x5731 protocol.


Screwdriving IO Status Query

0x5735 SCREWDRIVER_IOSTATUS_INQUIRE

No request parameters.

Example

json
{}

Send IO Status

0x5736 SCREWDRIVER_IOSTATUS_RESPOND

ParameterTypeRequiredDescription
inputarray[int]YesInput IO list
outputarray[int]YesOutput IO list

Example

json
{
  "input": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
  "output": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}

Screwdriving Locking Result Query

0x5738 SCREWDRIVER_TWISTRES_INQUIRE

No request parameters.

Example

json
{}

Send Locking Result

0x5739 SCREWDRIVER_TWISTRES_RESPOND

Parent Parameters

ParameterTypeRequiredDescription
screwDriverobjectYesScrewdriving locking result data

screwDriver Parameters

ParameterTypeRequiredDescription
countintYesCount
startintYesStart value
sumintYesTotal number of tighten result programs
proNumarray[int]YesProgram number list
roundsarray[double]YesRounds list
torquearray[double]YesTorque value list
tightenTimearray[double]YesTighten time list
resultarray[int]YesResult list
errorarray[int]YesError details list

Example

json
{
  "screwDriver": {
    "count": 10,
    "start": 1,
    "sum": 10,
    "proNum": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    "rounds": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0],
    "torque": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0],
    "tightenTime": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0],
    "result": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    "error": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  }
}