分拣线

说明:获取分拣线数据

接口地址:

实际地址(可配置)+/eqinterface.html

如:http://open.thinkerx.com/api/third/eqinterface.html?method=getpick&device_code=daf310b6edd011eba55900163e18d113&order_code=PS-20210616-3

适用厂家:

雷德、天辰、金立星、森曼

传入参数

参数传入方式使用GET方式

固定参数表示为必须填入指定的数据的参数

参数名

中文名

数据类型

是否必填

固定参数

说明

对应字段

method

方法名

String

getpick

调用的方法名称,如GetTech,可以使用get方式提交参数


device_code

设备号

String


3

如:3

和之前的接口一样,这个值传token

order_code

工单号

string


如PC2007200188

cc_product_schedule.plan_code

返回结果

返回的结果数据统一使用JSON格式的数据结构

总结果结构

参数名

中文名

数据类型

说明

success

请求结果

Bool

True表示成功,false表示失败

code

返回号

String

200表示成功非200表示失败

message

消息

String

返回消息体

Bar

数据结果

Object

详细查看下面数据结果结构体

Bar数据结果结构

参数名

数据类型

中文名

示例

说明

对应字段

BarCode

string

二维码

1391


cc_outitem_bom.id

is_chalk

Int

刻线

0


0

car_num

Int

料车货位

1

代表该型材在料车上的号码

0

length

Int

长度

695


cc_outitem_bom.length

materiel_code

string

型材代号

AHL-110-01


cc_outitem_bom.code

location_code

string

位置信息


cc_outitem_bom.anchor

Color

string

颜色

外砂灰色/内氟碳闪银灰



CavityCode

string

窗号

001



sxB

long

左角度-右角度

45-45



mental_open

Int

加工中心

1是 0否

1是 0否

先判断加工型材支长  是否满足设置的分拣支长范围(为空则不需要这一步判断),即

cc_bar.minsorting_length<=cc_outitem_bom.length<=cc_bar.maxsorting_length,若满足输出为1若不满足直接输出0,满足了,再判断      

cc_outitem_hole中有holing_type=1或者2的数据则为1否则为0

press

int

冲床

0

1是0否

cc_hole_setting.process=1时为1,否则为0

     

corner_cut

int

切角

0

1是0否

cc_hole.species=7时为1,否则为0

inject_gule

int

注胶

0

1是0否

cc_hole.species=1时为1,否则为0

pin

int

销钉

0

1是0否

cc_hole.species=2时为1,否则为0

above_punch

int

下冲

0

1是0否

cc_hole_setting.angle_position=180,输出为1,否则输出为0

       

under_punch

int

上冲

0

1是0否

cc_hole_setting.angle_position=0,输出为1,否则输出为0

metal_open

int

加工中心

0

1是0否

先判断加工型材支长  是否满足设置的分拣支长范围(为空则不需要这一步判断),即

cc_bar.minsorting_length<=cc_outitem_bom.length<=cc_bar.maxsorting_length,若满足输出为1若不满足直接输出0,满足了,再判断      

cc_outitem_hole中有holing_type=1或者2的数据则为1否则为0,最后判断型材上是否所有孔的cc_hole_setting.process都为3(锯铣一体),若是,则给0,若不是则给1

wash_loss

Int

端面铣

0

1是 0否

cc_outitem_bom中profile_type为1、2、3、9、24、25、26、28、29、30为1,其中当cc_outitem_bom.profile_type=1和9的时候需要判断cc_profile.is_metal_open(是否需要端面铣)是否为1,为1的时候,wash_loss为1,否则为0,最后判断型材长度是否在分拣支长范围内,在的给1,不在的给0

mat_type

Int

类型

1

框-1,扇-2,梃-3

框:cc_outitem_bom中profile_type为0、11、15、16、22的为1

扇:cc_outitem_bom中profile_type为1、9的为2

梃:cc_outitem_bom中profile_type为2、3的为3

剩下的全为0

flush_type

int

中冲类型

3

0为锁孔,1为排水孔,2两者都有的情况

cc_outitem_hole.holing_type=1,则为1;cc_outitem_hole.holing_type=2,则为0;cc_outitem_hole.holing_type=1和2,则为2

run_position_during

long

中冲位置

3

冲孔坐标x轴位置

cc_outitem_hole.whole_holing_width

module_code

string

模块号


暂时不用,可为空


rec_id

int

子订单id


暂时不用,可为空


belong_bale

string

所属框


暂时不用,可为空


module_sort

string

模块排序号


暂时不用,可为空


module

string

模块简码


暂时不用,可为空


{

"success": true,

"code": "200",

"message": "操作成功",

"Bar": [{

"BarCode": 1391,

"is_chalk": 0,

"car_num": 0,

"length": 695,

"materiel_code": "AHL-110-01",

"location_code": "上",

"Color": "外砂灰色\/内氟碳闪银灰",

"CavityCode": "001",

"sxB": "45-45",

"mental_open": 0,

"press": 0,

"corner_cut": 0,

"inject_gule": 0,

"pin": 0,

"above_punch": 0,

"under_punch": 0,

"metal_open": 0,

"wash_loss": 0,

"mat_type": 1,

"flush_type": 3,

"run_position_during": 3

}



新格尔累计为
7368555
位用户提供服务

客服热线

联系电话:400-1567-080

微信咨询

扫码在线咨询
企微官网客服在线随时答复

公众号

扫一扫
关注官方公众号

抖音号

扫一扫
关注官方抖音号