发表于: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
^
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/5/22 21:42:05编辑过]