
5.6 Message Example
5.6.1 ASCII Mode
Numerals written below the command represent the number of characters.
(1) Read [Slave address 1, PV)]
• A request message from the master
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Data item
[0100H]
(30H 31H 30H 30H)
Amount of data
[0001H]
(30H 30H 30H 31H)
Error check
LRC
(46H 41H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
4
4
2
2
• Response message from the slave in normal status [When PV is 600
(0258H)]
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Number of
response bytes
[02H]
(30H 32H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(41H 30H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
2
4
2
2
(2) Write (Slave address 1
,
SV1)
• A request message from the master [When SV1 is set to 600
(0258H)]
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 36H)
Data item
[0001H]
(30H 30H 30H 31H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(39H 45H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
4
4
2
2
• Response message from the slave in normal status
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 36H)
Data item
[0001H]
(30H 30H 30H 31H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(39H 45H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
4
4
2
2
• Response message from the slave in exception (error) status (When a value out of the setting range
is set.)
The function code MSB is set to 1 for the response message in exception (error) status, and
[86H (38H, 36H)] is returned. Exception code 03H [(30H, 33H, Value out of the setting range)
is returned (error).
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(38H 36H)
Exception code
[03H]
(30H 33H)
Error check
LRC
(37H 36H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
2
2
2
(3) Read (Slave address 1, SV1)
• A request message from the master
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Data item
[0001H]
(30H 30H 30H 31H)
Amount of data
[0001H]
(30H 30H 30H 31H)
Error check
LRC
(46H 41H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
4
4
2
2
• Response message from the slave in normal status [When SV1 is 600
(0258H)]
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(30H 33H)
Number of
response bytes
[02H]
(30H 32H)
Data
[0258H]
(30H 32H 35H 38H)
Error check
LRC
(41H 30H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
2
4
2
2
• Response message from the slave in exception (error) status (When a data item is misread)
The function code MSB is set to 1 for the response message in exception (error) status, and
[83H (38H 33H)] is returned. Exception code 02H (30H 32H, Non-existent data address) is
returned (error).
Header
(3AH)
Slave
address
(30H 31H)
Function
code
(38H 33H)
Exception code
[02H]
(30H 32H)
Error check
LRC
(37H 41H)
Delimiter
CR+LF
(0DH 0AH)
1
2
2
2
2
2
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]