33 lines
842 B
Go
33 lines
842 B
Go
/*
|
|
* Copyright (c) 2025 Beijing Hardman Automation Equipment Co., LTD. All rights reserved.
|
|
*
|
|
* Project: adapter
|
|
* File: dock.go
|
|
* Last: 2025-01-13 20:04:51
|
|
* Author: wangcheng@bj-hardman.com
|
|
*/
|
|
|
|
package robot
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
func (c *Controller) PlaceWorkpieceToSamplingStation(ctx context.Context, workpieceType int) error {
|
|
return c.executeAction(ctx, "PlaceWorkpieceToSamplingStation",
|
|
newArg(int8(workpieceType), "workpieceType"), //工件类型
|
|
newArg(int8(0)),
|
|
newArg(int16(0)),
|
|
newArg(int32(0)),
|
|
)
|
|
}
|
|
|
|
func (c *Controller) FetchWorkpieceFromSamplingStation(ctx context.Context, workpieceType int) error {
|
|
return c.executeAction(ctx, "FetchWorkpieceFromSamplingStation",
|
|
newArg(int8(workpieceType), "workpieceType"), //工件类型
|
|
newArg(int8(0)),
|
|
newArg(int16(0)),
|
|
newArg(int32(0)),
|
|
)
|
|
}
|