Download CFW11 - RS232 and RS485 Manual
Transcript
TP Protocol 4.2 Telegram Format Next, the format of the telegrams for reading and writing in the parameters will be presented. It is important to realize that each telegram in the TP protocol allows the reading or writing of up to 6 parameters each time. Telegrams with format error or incorrect BCC will be ignored by the inverter, which will not send an answer to the master. 4.2.1 Reading Telegram Master: STX ADR COD NUM DMR ... DMR ETX BCC ; COD: code for reading Æ 3Ch (hexadecimal); 60 (decimal); ‘<’ (ASCII) ; NUM: number of read parameters. Range from 1 ... 6. ; DMR: number of the requested parameter. The number of DMR’s must be equal to the value configured in the NUM byte. Slave (CFW-11): ADR DSV DSV ... BCC or ADR NAK ; DSV: value of the requested parameter. The number of DSV’s must be equal to the value configured in the NUM byte. Remembering that: DMR PHi PLo DSV VHi VLo 4.2.2 Writing Telegram Master: STX ADR COD NUM DMW ... DMW ETX BCC ; COD: code for writing - 3Eh (hexadecimal); 62 (decimal); ‘>’ (ASCII) Æ saving in the EEPROM - 3Dh (hexadecimal); 61 (decimal); ‘=’ (ASCII) Æ without saving in the EEPROM ; NUM: number of writing parameters. Range from 1 ... 6. ; DMW: number and content for the parameter. The number of DMW’s must be equal to the value configured in the NUM byte. Slave (CFW-11): ADR ACK or ADR NAK Remembering that: DMW PHi PLo VHi VLo 4.3 Example of Telegrams Using the TP Protocol All the next examples consider that the inverter is programmed with the address 1 (P0308=1), consequently the field ADR is sent with the value 41h (refer to table I.1). Example 1: the reading of two inverter parameters: ; Motor speed – P0002 (assuming P0002 at 1200rpm = 04B0h). ; Motor current – P0003 (assuming P0003 at 5,0A = 0032h). 20