Flexsim 编程常用代码.docx

上传人:牧羊曲112 文档编号:3157218 上传时间:2023-03-11 格式:DOCX 页数:5 大小:37.40KB
返回 下载 相关 举报
Flexsim 编程常用代码.docx_第1页
第1页 / 共5页
Flexsim 编程常用代码.docx_第2页
第2页 / 共5页
Flexsim 编程常用代码.docx_第3页
第3页 / 共5页
Flexsim 编程常用代码.docx_第4页
第4页 / 共5页
Flexsim 编程常用代码.docx_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《Flexsim 编程常用代码.docx》由会员分享,可在线阅读,更多相关《Flexsim 编程常用代码.docx(5页珍藏版)》请在三一办公上搜索。

1、Flexsim 编程常用代码Flexsim 编程常用代码 1.所有方向都是顺时针 2.入口跟出口连接,并入口跟升降机连接,升降机跟出口不需要连接,而且要把入口那传送带参数的FLOW设置为User Transport 沟上 3.无论那个入口和出口一定记得用A连接上 4.码盘机必须连接两次路口 5.用User Transport除了升降机,堆垛机,机器人,插车.需要沟上 6.入库到仓库用A连接,跟堆垛机用s连接.出库时堆垛机不要跟出的那个传送带相连接 7.货架必须参数的FLOW设置为User Transport 沟上 8.在码盘机(Combiner)上可以设置托盘垛可以码多少 /一、在输送机上产生

2、一垛空托盘 fsnode* current = ownerobject(c); fsnode* tempitem; fsnode* destination = current; int total = 5; fsnode* copy = createcopy(first(rank(node(/Tools/FlowItemBin,model),6),model,0,0,1,0); moveobject(copy,destination,0); setitemtype(copy,1); for (int index = 0; index 2) settablenum(GlobalTable,1,1

3、, 1); return outPort ; else return 1; /平均分配入库,distribute为全局变量 if(distribute % 3) = 1) setitemtype(item, getitemtype(item) + 1); if(distribute % 3) = 2) setitemtype(item, getitemtype(item) + 2); if(distribute % 3) = 0) setitemtype(item, getitemtype(item) + 3); if (distribute % 3 = 0) distribute = 1;

4、else distribute+; unsigned int type=getitemtype(item); switch(type%100) case 1: return 1; default: return 2; /用来画圆盘的代码 fsnode* current = ownerobject(c); fsnode* view = parnode(1); fsnode* location=getvarnode(current,locationDisk); double x,y,z,red,green,blue,inner,outer,start,sweep; double x= xloc(c

5、urrent); double y= yloc(current); double z= zloc(current); double xrot=xrot(current); double yrot=yrot(current); double zrot=zrot(current); red=47; green=140; blue=164; inner=1; outer=2; start=0; sweep=360; drawtomodelscale(current); drawdisk(x,y,z,inner,outer,start,sweep,xrot,yrot,zrot,red,green,blue) return 1;

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号