Download Single Loop Controller SDC15 User`s Manual "Installation
Transcript
Chapter 8. MODBUS COMMUNICATIONS FUNCTIONS ■ Write command (10H) ● Send Message This is a command capable of writing the contents of continuous data addresses from a specified write start data address with a single message. The following is an example of send message while writing data: (Example) Writing 01A0H and 0E53H in the continuous data addresses consisting of 2 words following 1501W (05DDH). 3AH 30H 31H 31H 30H 30H 35H 44H 44H 30H 30H 30H 32H 30H 34H : 0 1 1 0 0 5 D D 0 0 0 2 0 4 (1) (2) (3) (4) (5) (6) 30H 31H 41H 30H 30H 45H 35H 33H 30H 35H 0DH 0AH 0 1 A 0 0 E 5 3 0 5 CR LF (7) (8) (9) (10) (11) MODBUS ASCII (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) Start of message Station address Write command 10H Write start word address 1 Write data count Write data count X 2 Write data 1 Write data 2 Checksum CR LF 01H 10H 05H DDH 00H 02H 04H 01H A0H 0EH 53H 45H B9H (1) (2) (3) (4) (5) (6) (7) (8) MODBUS RTU (1) Station address (2) Write command 10H (3) Write start word address 1 (4) Write data count (5) Write data count x 2 (6) Write data 1 (7) Write data 2 (8) Checksum 8-9