Skip to main content

NRC_RunqueueInsertPALSHIFT(int id, int moveType, int vel, int acc, int dec, int pl)

Insert PALSHIFT instruction in the run queue

Before calling this function, please call NRC_CreateNoFlieRunqueue() to create a fileless run queue

Type

int=>Insert PALSHIFT instruction in the run queue

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
idintThe process number of the palletizing process, parameter range: 1 <= id <= 9
moveTypeintInterpolation method used by this instruction; 1: Joint interpolation; 2: Linear interpolation; 3: Circular interpolation
velintThe running speed of the robot; when the interpolation method is joint interpolation, it is the percentage of the maximum speed of the robot, parameter range: 0 < vel <= 100; when the interpolation method is linear interpolation or circular interpolation, it is the absolute running speed of the robot TCP, the unit is mm/s, parameter range: vel > 1
accintRobot running acceleration, parameter range: 0 < acc <= 100; when the interpolation method is joint interpolation, it is the percentage of the maximum acceleration of each joint of the robot; when the interpolation method is linear interpolation or circular interpolation, it is the percentage of the robot's maximum Cartesian acceleration
decintRobot running deceleration, parameter range: 0 < dec <= 100; when the interpolation method is joint interpolation, it is the percentage of the maximum deceleration of each joint of the robot; when the interpolation method is linear interpolation or circular interpolation, it is the percentage of the robot's maximum Cartesian deceleration
plintSmoothness, which refers to the smooth transition between the current and the next movement instructions. The higher the value of pl, the smoother the transition, but the greater the trajectory deviation. The range of the parameter is 0 <= pl <= 5

Sample code

Refer to the NRC_RunqueueInsertPALON example