您现在所在的是:

绘图设计软件

回帖:6个,阅读:1862 [上一页] [1] [下一页]
2332
277914955
文章数:242
年度积分:231
历史总积分:2332
注册时间:2012/12/4
发站内信
发表于:2021/5/22 21:41:45
#0楼
报错信息如下

1. AXIS_SET.c: In function 'AXIS_SET':
AXIS_SET.c:19:1: error: 'SFD900' undeclared (first use in this function)
SFD900 = 0b10; //Y0脉冲参数设定
^
AXIS_SET.c:19:1: note: each undeclared identifier is reported only once for each function it appears in
AXIS_SET.c:20:1: error: 'SFD906' undeclared (first use in this function)
SFD906 = 6; //Y0脉冲方向端子
^
AXIS_SET.c:21:1: error: 'DSFD930' undeclared (first use in this function)
DSFD930 = HD[4]; //左伺服最大行程
^
AXIS_SET.c:22:1: error: 'DSFD932' undeclared (first use in this function)
DSFD932 = 0; //左伺服最小行程
^
AXIS_SET.c:24:1: error: 'HSD462' undeclared (first use in this function)
HSD462 = HD[2]; //Y0 加速时间
^
AXIS_SET.c:25:1: error: 'HSD463' undeclared (first use in this function)
HSD463 = HD[2]; //Y0 减速时间
^
AXIS_SET.c:26:1: error: 'HSD465' undeclared (first use in this function)
HSD465 = 0b00; //Y0 加减速模式
^
AXIS_SET.c:27:1: error: 'DHSD476' undeclared (first use in this function)
DHSD476 = 5000; //HD0//Y0 ZRN回归速度VH
^
AXIS_SET.c:28:1: error: 'DHSD478' undeclared (first use in this function)
DHSD478 = 1000; //Y0 ZRN回归速度HL
^
AXIS_SET.c:32:1: error: 'SFD1031' undeclared (first use in this function)
SFD1031 = 0b10; //Y1脉冲参数设定
^
AXIS_SET.c:33:1: error: 'SFD1036' undeclared (first use in this function)
SFD1036 = 7; //Y1脉冲方向端子
^
AXIS_SET.c:34:1: error: 'DSFD1060' undeclared (first use in this function)
DSFD1060 = HD[10]; //右伺服最大行程
^
AXIS_SET.c:35:1: error: 'DSFD1062' undeclared (first use in this function)
DSFD1062 = 0; //右伺服最小行程
^
AXIS_SET.c:37:1: error: 'HSD482' undeclared (first use in this function)
HSD482 = HD[8]; //Y1 加速时间
^
AXIS_SET.c:38:1: error: 'HSD483' undeclared (first use in this function)
HSD483 = HD8; //Y1 减速时间
^
AXIS_SET.c:38:10: error: 'HD8' undeclared (first use in this function)
HSD483 = HD8; //Y1 减速时间
         ^
AXIS_SET.c:39:1: error: 'HSD485' undeclared (first use in this function)
HSD485 = 0b00; //Y1 加减速模式
^
AXIS_SET.c:40:1: error: 'DHSD496' undeclared (first use in this function)
DHSD496 = 5000; //HD6//Y1 ZRN回归速度VH
^
AXIS_SET.c:41:1: error: 'DHSD498' undeclared (first use in this function)
DHSD498 = 1000; //Y1 ZRN回归速度HL
^
AXIS_SET.c:45:1: error: 'SFD1160' undeclared (first use in this function)
SFD1160 = 0b10; //Y2脉冲参数设定
^
AXIS_SET.c:46:1: error: 'SFD1166' undeclared (first use in this function)
SFD1166 = 10; //Y2脉冲方向端子
^
AXIS_SET.c:47:1: error: 'DSFD1190' undeclared (first use in this function)
DSFD1190 = HD16; //前后伺服最大行程
^
AXIS_SET.c:47:12: error: 'HD16' undeclared (first use in this function)
DSFD1190 = HD16; //前后伺服最大行程
           ^
AXIS_SET.c:48:1: error: 'DSFD1092' undeclared (first use in this function)
DSFD1092 = 0; //前后伺服最小行程
^
AXIS_SET.c:50:1: error: 'HSD502' undeclared (first use in this function)
HSD502 = HD[14]; //Y2 加速时间
^
AXIS_SET.c:51:1: error: 'HSD503' undeclared (first use in this function)
HSD503 = HD[14]; //Y2 减速时间
^
AXIS_SET.c:52:1: error: 'HSD505' undeclared (first use in this function)
HSD505 = 0b00; //Y2 加减速模式
^
AXIS_SET.c:53:1: error: 'DHSD516' undeclared (first use in this function)
DHSD516 = 5000; //HD12//Y2 ZRN回归速度VH
^
AXIS_SET.c:54:1: error: 'DHSD518' undeclared (first use in this function)
DHSD518 = 1000; //Y2 ZRN回归速度HL
^
AXIS_SET.c:58:1: error: 'SFD1290' undeclared (first use in this function)
SFD1290 = 0b10; //Y3脉冲参数设定
^
AXIS_SET.c:59:1: error: 'SFD1296' undeclared (first use in this function)
SFD1296 = 11; //Y3脉冲方向端子
^
AXIS_SET.c:60:1: error: 'DSFD1320' undeclared (first use in this function)
DSFD1320 = HD[22]; //前后伺服最大行程
^
AXIS_SET.c:61:1: error: 'DSFD1322' undeclared (first use in this function)
DSFD1322 = 0; //前后伺服最小行程
^
AXIS_SET.c:63:1: error: 'HSD522' undeclared (first use in this function)
HSD522 = HD[20]]; //Y3 加速时间
^
AXIS_SET.c:63:16: error: expected ';' before ']' token
HSD522 = HD[20]]; //Y3 加速时间
               ^
AXIS_SET.c:63:16: error: expected statement before ']' token
AXIS_SET.c:64:1: error: 'HSD523' undeclared (first use in this function)
HSD523 = HD[20]; //Y3 减速时间
^
AXIS_SET.c:65:1: error: 'HSD525' undeclared (first use in this function)
HSD525 = 0b00; //Y3 加减速模式
^
AXIS_SET.c:66:1: error: 'DHSD536' undeclared (first use in this function)
DHSD536 = 5000; //HD18//Y3 ZRN回归速度VH
^
AXIS_SET.c:67:1: error: 'DHSD538' undeclared (first use in this function)
DHSD538 = 1000; //Y3 ZRN回归速度HL
^
AXIS_SET.c:71:1: error: 'SFD1420' undeclared (first use in this function)
SFD1420 = 0b10; //Y4脉冲参数设定
^
AXIS_SET.c:72:1: error: 'SFD1426' undeclared (first use in this function)
SFD1426 = 12; //Y4脉冲方向端子
^
AXIS_SET.c:73:1: error: 'DSFD1452' undeclared (first use in this function)
DSFD1452 = 0; //取纸伺服最小行程
^
AXIS_SET.c:75:1: error: 'HSD542' undeclared (first use in this function)
HSD542 = HD[26]; //Y4 加速时间
^
AXIS_SET.c:76:1: error: 'HSD543' undeclared (first use in this function)
HSD543 = HD[26]; //Y4 减速时间
^
AXIS_SET.c:77:1: error: 'HSD545' undeclared (first use in this function)
HSD545 = 0b00; //Y4 加减速模式
^
AXIS_SET.c:78:1: error: 'DHSD556' undeclared (first use in this function)
DHSD556 = 5000; //HD24//Y4 ZRN回归速度VH
^
AXIS_SET.c:79:1: error: 'DHSD558' undeclared (first use in this function)
DHSD558 = 1000; //Y4 ZRN回归速度HL
^
附件 2021-05-22_213921.jpg
[此贴子已经被作者于2021/5/22 21:42:05编辑过]
2332
277914955
文章数:242
年度积分:231
历史总积分:2332
注册时间:2012/12/4
发站内信
发表于:2021/5/22 21:43:54
#1楼
这两图第一个是信捷手册上的说明,第二个是别人写的程序,不会报错
2332
277914955
文章数:242
年度积分:231
历史总积分:2332
注册时间:2012/12/4
发站内信
发表于:2021/5/22 21:44:15
#2楼
附件 360桌面截图20210522214142.jpg

附件 360桌面截图20210522214208.jpg
19257
pqsh 版主
文章数:7424
年度积分:1087
历史总积分:19257
注册时间:2006/8/22
发站内信
2018论坛解答高手
发表于:2021/5/22 22:44:23
#3楼
信息是SFD900未定义.
不知道你的详细情况.
如果我忘了我
请帮忙记得我
pqsh@163,326199298@v&q同号
42323
YXBK 版主
文章数:19443
年度积分:2737
历史总积分:42323
注册时间:2007/4/14
发站内信
2015论坛优秀版主
2015春节活动
2013论坛优秀版主
2012论坛优秀版主
发表于:2021/5/23 11:01:00
#4楼
附件 微信截图_20210523110045.jpg
大家一起学习
2332
277914955
文章数:242
年度积分:231
历史总积分:2332
注册时间:2012/12/4
发站内信
发表于:2021/5/23 16:03:40
#5楼
回复 #3楼 pqsh
找到原因了,缺了好几个标点符号,谢谢大家
2332
277914955
文章数:242
年度积分:231
历史总积分:2332
注册时间:2012/12/4
发站内信
发表于:2021/5/23 16:04:10
#6楼
回复 #4楼 YXBK
找到原因了,缺了好几个标点符号,谢谢大家

关于我们 | 联系我们 | 广告服务 | 本站动态 | 友情链接 | 法律声明 | 非法和不良信息举报

工控网客服热线:0755-86369299
版权所有 工控网 Copyright©2024 Gkong.com, All Rights Reserved

46.8003