📄 rxr_cs.lst
字号:
365 8 break;
366 8 }
367 7 case 3:
368 7 {
369 8 command_03();
370 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
371 8 AI=ad1;
372 8 sendbuf[3]=(uchar)(AI>>8); //高
373 8 sendbuf[4]=(uchar)(ad1); //低
374 8 AI=ad2;
375 8 sendbuf[5]=(uchar)(AI>>8); //高
376 8 sendbuf[6]=(uchar)(ad2); //低
377 8 AI=ad3;
378 8 sendbuf[7]=(uchar)(AI>>8); //高
379 8 sendbuf[8]=(uchar)(ad3); //低
380 8 send_Len=(sendbuf[2]+3); //发送数据长度
381 8 group_out_ad();
382 8 break;
383 8 }
384 7 case 4:
385 7 {
386 8 command_03();
387 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
388 8 AI=ad1;
389 8 sendbuf[3]=(uchar)(AI>>8); //高
390 8 sendbuf[4]=(uchar)(ad1); //低
391 8 AI=ad2;
392 8 sendbuf[5]=(uchar)(AI>>8); //高
393 8 sendbuf[6]=(uchar)(ad2); //低
394 8 AI=ad3;
395 8 sendbuf[7]=(uchar)(AI>>8); //高
396 8 sendbuf[8]=(uchar)(ad3); //低
397 8 AI=ad4;
398 8 sendbuf[9]=(uchar)(AI>>8); //高
399 8 sendbuf[10]=(uchar)(ad4); //低
400 8 send_Len=(sendbuf[2]+3); //发送数据长度
401 8 group_out_ad();
402 8 break;
403 8 }
404 7 default :
405 7 {
406 8 sendbuf[0]=addr; //取地址
407 8 sendbuf[1]=0xff; //命令号
408 8 send_Len=2; //发送数据长度
409 8 group_out_ad();
410 8 break;
411 8 }
412 7 }
413 6 break;
414 6 }
415 5 case 1:
416 5 {
417 6 switch (sl_n)
418 6 {
419 7 case 1:
420 7 {
421 8 command_03();
422 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
423 8 AI=ad2;
424 8 sendbuf[3]=(uchar)(AI>>8); //高
425 8 sendbuf[4]=(uchar)(ad1); //低
426 8 send_Len=(sendbuf[2]+3); //发送数据长度
C51 COMPILER V7.06 RXR_CS 06/26/2006 22:51:01 PAGE 8
427 8 group_out_ad();
428 8 break;
429 8 }
430 7 case 2:
431 7 {
432 8 command_03();
433 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
434 8 AI=ad2;
435 8 sendbuf[3]=(uchar)(AI>>8); //高
436 8 sendbuf[4]=(uchar)(ad1); //低
437 8 AI=ad3;
438 8 sendbuf[5]=(uchar)(AI>>8); //高
439 8 sendbuf[6]=(uchar)(ad2); //低
440 8 send_Len=(sendbuf[2]+3); //发送数据长度
441 8 group_out_ad();
442 8 break;
443 8 }
444 7 case 3:
445 7 {
446 8 command_03();
447 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
448 8 AI=ad2;
449 8 sendbuf[3]=(uchar)(AI>>8); //高
450 8 sendbuf[4]=(uchar)(ad1); //低
451 8 AI=ad3;
452 8 sendbuf[5]=(uchar)(AI>>8); //高
453 8 sendbuf[6]=(uchar)(ad2); //低
454 8 AI=ad4;
455 8 sendbuf[7]=(uchar)(AI>>8); //高
456 8 sendbuf[8]=(uchar)(ad3); //低
457 8 send_Len=(sendbuf[2]+3); //发送数据长度
458 8 group_out_ad();
459 8 break;
460 8 }
461 7 default :
462 7 {
463 8 sendbuf[0]=addr; //取地址
464 8 sendbuf[1]=0xff; //命令号
465 8 send_Len=2; //发送数据长度
466 8 group_out_ad();
467 8 break;
468 8 }
469 7 }
470 6 break;
471 6 }
472 5 case 2:
473 5 {
474 6 switch (sl_n)
475 6 {
476 7 case 1:
477 7 {
478 8 command_03();
479 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
480 8 AI=ad3;
481 8 sendbuf[3]=(uchar)(AI>>8); //高
482 8 sendbuf[4]=(uchar)(ad1); //低
483 8 send_Len=(sendbuf[2]+3); //发送数据长度
484 8 group_out_ad();
485 8 break;
486 8 }
487 7 case 2:
488 7 {
C51 COMPILER V7.06 RXR_CS 06/26/2006 22:51:01 PAGE 9
489 8 command_03();
490 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
491 8 AI=ad3;
492 8 sendbuf[3]=(uchar)(AI>>8); //高
493 8 sendbuf[4]=(uchar)(ad1); //低
494 8 AI=ad4;
495 8 sendbuf[5]=(uchar)(AI>>8); //高
496 8 sendbuf[6]=(uchar)(ad2); //低
497 8 send_Len=(sendbuf[2]+3); //发送数据长度
498 8 group_out_ad();
499 8 break;
500 8 }
501 7 default :
502 7 {
503 8 sendbuf[0]=addr; //取地址
504 8 sendbuf[1]=0xff; //命令号
505 8 send_Len=2; //发送数据长度
506 8 group_out_ad();
507 8 break;
508 8 }
509 7 }
510 6 break;
511 6 }
512 5 case 3:
513 5 {
514 6 switch (sl_n)
515 6 {
516 7 case 1:
517 7 {
518 8 command_03();
519 8 sendbuf[2]=(uchar)(sl_n*2); //返回字节数
520 8 AI=ad4;
521 8 sendbuf[3]=(uchar)(AI>>8); //高
522 8 sendbuf[4]=(uchar)(ad1); //低
523 8 send_Len=(sendbuf[2]+3); //发送数据长度
524 8 group_out_ad();
525 8 break;
526 8 }
527 7 default :
528 7 {
529 8 sendbuf[0]=addr; //取地址
530 8 sendbuf[1]=0xff; //命令号
531 8 send_Len=2; //发送数据长度
532 8 group_out_ad();
533 8 break;
534 8 }
535 7 }
536 6 break;
537 6 }
538 5 default :
539 5 {
540 6 sendbuf[0]=addr; //取地址
541 6 sendbuf[1]=0xff; //命令号
542 6 send_Len=2; //发送数据长度
543 6 group_out_ad();
544 6 break;
545 6 }
546 5 }
547 4 break;
548 4 }
549 3 case 0x05: //强制单线圈
550 3 {
C51 COMPILER V7.06 RXR_CS 06/26/2006 22:51:01 PAGE 10
551 4 star_fun=recebuf_com[2];star_fun=(star_fun<<8)|(recebuf_com[3]);//取线圈号
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -