/*LC Code Bookmark*/
int limit_1;
int zys;
int limit_3;
void main() /*
主程序
*/
{
start( ); /*
引用子程序
*/
limit_1=limit(8); /*
姿势检测
(
限位
) */
zys = 0;
limit_1 = 1;
while(1)
{
if(zys==0)
{
qianjin1( ); /*
引用子程序
*/
limit_3=limit(13); /*
姿势检测
(
限位
) */
}
if(zys==1)
{
houtui( ); /*
引用子程序
*/
limit_1=limit(8); /*
姿势检测
(
限位
) */
}
if(limit_1==0)
{
stop(1);stop(2);stop(3);stop(4);stop(5);stop(6);stop(7);stop(8);/*
停止电机
*/
limit_1 = 1;
zys = 0;
fangqiu( ); /*
引用子程序
*/
}
if(limit_3==0)
{
stop(1);stop(2);stop(3);stop(4);stop(5);stop(6);stop(7);stop(8);/*
停止电机
*/
zys = 1;
limit_3 = 1;
wq1( ); /*
引用子程序
*/
wq2( ); /*
引用子程序
*/
wq3( ); /*
引用子程序
*/
wq4( ); /*
引用子程序
*/
wq1( ); /*
引用子程序
*/
wq2( ); /*
引用子程序
*/
wq3( ); /*
引用子程序
*/
}
}
}