0 Replies Latest reply: Jun 10, 2012 6:27 PM by vincent wang RSS

AN_modbus instruction

vincent wang Novice

configuration parameter:

  AT+MBMODE=<0,1,2,3,4>        configuration MODBUS mode.

                       0 -- disable.

                   3 -- wireless remote mode, RTU pattern. // enable MODBUS.             

 

 

  AT+MBADDRESS=<1-247>           config MODBUS from device address.

 

 

  serial port parameters config

    data and parity bit: AT+SERMODE=<8N1,7N2,...>

    bautrate:       AT+IPR=<115200,38400,9600,...> 

 

 

  port set:

   ADC:  

        AT+ADCMODEn=<0,1,2>                 // 0--disable,   2 disposable gather.

 

          AT+ADCVALn      //get channel n value

  GPIO:

        AT+DIOWORKMODEn=<0,1>        // set figure IO port work mode  0--disable, 0 input, 1 output.

        AT+DIOVALn                   // get figure port value.

        AT+DIOSETn                   // set high level.

          AT+DIOCLRn                   // set low level.

        AT+DIOSTATE                  // check all figure IO state

 

 

  AT+ALLIOSTATE                      // check all figure IO and ADC value.

 

 

  PIN8  figure pin parallelism as input 16 hex adress:   0x20001

  PIN9  figure pin parallelism as input 16 hex adress:   0x20002

  PIN10 figure pin parallelism as input 16 hex adress:   0x20003

 

  PIN8  figure pin parallelism as input 16 hex adress:   0x10001

  PIN9  figure pin parallelism as input 16 hex adress:   0x10002

  PIN10 figure pin parallelism as input 16 hex adress:   0x10003

 

 

  PIN11  only as ADC input 16 hex adress  0x40001

  PIN12  only as ADC input 16 hex adress  0x40001

 

Xiamen Four-Faith Communication Technology Co.ltd

 

 

Four-Faith HQ

Add.: J1-J3, 3rd Floor, No. 44, Guan Ri

Road, Software Park, Xiamen, China

Post code:361008

 

TEL:     +86-592-5907276  5907277

FAX:     +86-592-5912735
Mail:     Vincent@four-Faith.com