Download VW3-A66301 - Schneider Electric
Transcript
MODBUS / JBUS protocol Write an output bit : function 5 Question Slave n° 1byte 05 1 byte Bit n° MS LS 2 bytes Bit value CRC16 2 bytes 2 bytes The "bit value" field has two possible values only, and can take no other value : – bit at 0 = 0000 – bit at 1 = FF00 Response Slave n° 1 byte 05 1 byte Bit n° MS LS 2 bytes Bit value CRC16 2 bytes 2 bytes Example : write value 1 in bit B3 of slave 2 Question and response 02 05 0003 FF00 7C09 Write an output word : function 6 E N G L I S H Question Slave n° 1 byte 06 1 byte Word number MS LS 2 bytes Word value MS LS 2 bytes CRC16 Word number MS LS 2 bytes Word value MS LS 2 bytes CRC16 2 bytes Response Slave n° 1 byte 06 1 byte 2 bytes Example : write value H'0315' = 789 in word W3022 of slave 2 ( ACC = 78,9s ) Question and response 02 06 0BCE 0315 2B1D 97