ModbusACS140/400(10Hex).................................16...............................................17CRC.................................................19CRC...........................................20...................................................20(Modicon)ModiconModiconModbus(PI-MBUS-300Rev.E)ModbusModbusACS140ACS400ModbusModbusACS140/ACS400ACS140RS485/232RS485/RS232ACS400RS485RS485/232RS232ModbusModiconRS232C()()()()Modbus()Modbus()ModbusASCIIRTUModbusACS140/ACS400RTURTURTUModbusRTU()84ASCIIRTU8-0-9A-F821811()2()(CRC)(ASCIIRTU)Modbus()RTURTU3.5(T1-T2-T3-T4)0-9A-F()3.51.53.5CRC28(RTU)0-247()1-2470ModbusModbusPlus8(RTU)1-255()ModiconACS140/ACS4003616(0x030x060x10)CRCT1-T2-T3-T488n*816T1-T2-T3-T4()()100000011(03)10000011(83)00-FFRTU(03)(10)(0)(0B)ACS140/ACS4000B()ModbusASCIIASCIIASCII(LRC)colonCRLFLRCCRLFRTURTU168()(LSB)-(MSB)RTUStart12345678ParStopStart12345678StopStop()CRCACS140/ACS400100ms1(RTU8)10RTU811000101141(4)(5)1Modbus12()()(CRC)CRCCRC16,CRCCRCCRCCRC161888CRCCRCCRC8CRC(LSB)(MSB)0LSBLSB108888CRCCKSMCRCCRC()ModbusModbus001Modbus0000127()007E(126)4000100004XXXX40108006B(107)Modbus3ModbusRTU4RTURTU0640108401100107(006B)8RTU863(01100011)RTU8(ASCIIRTU)1884RTU()RTU8-0600000110030000001100000000006B0110101100000000000300000011CRC(16)8RESPONSE()RTU8-06000001100300000011060000011002000000102B001010110000000000000000000000000000000000000000CRC(16bits)11(4XXXX)01-160-151140108-401105-QUERY()1103006B0003CRCCRC(16-)(984-685)125326-40108022B()555()40109-4011000000064()0100()RESPONSE()110306(40108)02(40108)2B(40109)00(40109)00(40110)00(40110)64CRCCRC(16-)(4XXXX)010ACS140/ACS4001611400020003()7-8-QUERY()110600010003CRCCRC(16-)RESPONSE()110600010003CRCCRC(16-)(10Hex)(4XXXX)ACS140/ACS400ACS140/ACS400010ACS140/ACS400161140002000A9-10-QUERY()11100001000102000ACRCCRC(16-)RESPONSE()111000010001CRCCRC(16-)(LRCCRC)4()(MSB)0(80)MSB180()MSB()111110(0A)(01)1245(04A1)0001QUERY10A2013044A15006017LRC4FEXCEPTIONRESPONSE10A2813024LRC73()02ILLEGALDATAADDRESS03ILLEGALDATAVALUE04SLAVEDEVICEFAILURE05ACKNOWLEDGEPollProgramComplete()06SLAVEDEVICEBUSY07NEGATIVEACKNOWLEDGE1314()08MEMORYPARITYERROR(LSB)(MSB)0LSBLSB108888CRCCRC116FFFF()1CRC28CRCCRC3CRC(LSB)MSB0LSB4(LSB0)3()(LSB1)CRCA001(1010000000000001)5348862587CRCCRC(8)CRC1241(0001001001000001)12CRCCCRCCRCCRC256CRCCRCunsignedchar*puchMsgCRCunsignedshortusDataLenCRCunsignedshortCRC41CRC12*TableofCRCvaluesforhigh-orderbyte*/staticunsignedcharauchCRCHi[]={0x00,0xC1,0x81,0x40,0x0l,0xC0,0x80,0x41,0x01,0xC0,0x80,0x41,0x00,0xCl,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x0l,0xC0,0x80,0x41,0x0l,0xC0,0x80,0x41,0x00,0xCl,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x41,0x00,0xCl,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x0l,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0