71 lines
2.2 KiB
JSON
71 lines
2.2 KiB
JSON
{
|
||||
|
|
"taskName": "task1",
|
|||
|
|
"save_image": "C:\\930SaveStation3\\",
|
|||
|
|
"savePath": "C:\\930TotalResult\\",
|
|||
|
|
"tablelist": [
|
|||
|
|
{
|
|||
|
|
"table_key": "",
|
|||
|
|
"cName": "机台名:",
|
|||
|
|
"eName": "NG number:",
|
|||
|
|
"value": "外观检测"
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"table_key": "",
|
|||
|
|
"cName": "班次:",
|
|||
|
|
"eName": "Number :",
|
|||
|
|
"value": "白班"
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"table_key": "",
|
|||
|
|
"cName": "工位名:",
|
|||
|
|
"eName": "yield :",
|
|||
|
|
"value": "工位三"
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"showlist": [
|
|||
|
|
{
|
|||
|
|
"show_key": "2D-J93413657-J93413638-K39998967-00K19936732",
|
|||
|
|
"cName": "2D",
|
|||
|
|
"eName": "view1"
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"show_key": "3D-133872-132192-123490-124229",
|
|||
|
|
"cName": "3D",
|
|||
|
|
"eName": "view2"
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"Communicationlist": [
|
|||
|
|
{
|
|||
|
|
"stations": [
|
|||
|
|
"station3"
|
|||
|
|
],
|
|||
|
|
"Communication_key": "Communication",
|
|||
|
|
"Communication_type": "PLC",
|
|||
|
|
"writetype": "ushort",
|
|||
|
|
"Communication_sleeptime": "30",
|
|||
|
|
"Communication_init": "init_192.168.250.6_9600", //init初始化指令,"192.168.250.6"PLC的IP,"9600"端口,
|
|||
|
|
"Communication_readAllCmd": "read_byte_D1400_100", //read读指令,"byte"字节寄存器,"D1400"寄存器位置,"100",连续读100个,如果是"1",则只读1个
|
|||
|
|
"heartCmd": "write_short_D1003_1", //write写指令,"short"16位寄存器,"D1003"寄存器位置,"1"数值,如果是"1,2,3,4,5"则变为连续写5个16位寄存器
|
|||
|
|
"heartTime": "250",
|
|||
|
|
"moduleName": "Hd_SocketInovance_module", //数据类型可选[byte,bool,short,ushort,int,uint,long,ulong,float,double,string]
|
|||
|
|
"批量写数值": "write_short_D1100_1,2,3,4,5,6,7,8,9", //批量写数值_寄存器首地址_寄存器个数_值,值
|
|||
|
|
"写字符串": "write_string_D1150_ABC123" //写字符串指令
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"stationlist": [
|
|||
|
|
{
|
|||
|
|
"station_key": "offlineStation1",
|
|||
|
|
"task_thread_num": "0",
|
|||
|
|
"plcread_area": {
|
|||
|
|
"Communication_readAllCmd": "read_byte_D1300_100"
|
|||
|
|
},
|
|||
|
|
"plcwrite_area": {
|
|||
|
|
"snOkCmd": "write_short_D1300_9",
|
|||
|
|
"snErrorCmd": "write_short_D1300_1",
|
|||
|
|
"overOkCmd": "write_short_D1310_9",
|
|||
|
|
"overErrorCmd": "write_short_D1310_1",
|
|||
|
|
"dateCmd": "write_string_D1340_12"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
}
|