Chapter 8. Communication Function
8-63
3) Address area
(1) Setting range is available from 1 to 247, but GM7U supports from 0 to 31.
(2) Address 0 is used for broadcast address. Broadcast address is all slave devices recognize and respond to
like the self-address, which can't be supported by GM7U.
4) Function code area
(1) GM7U supports only 01, 02, 03, 04, 05, 06, 15, and 16 among Modicon products' function codes.
(2) If the response format is confirm+(ACK), it uses the same function code.
(3) If the response format is confirm- (NCK), it returns as it sets the 8th bit of function code as 1.
Ex) If function code is 03, (write only function code part here because only function codes are different.)
[Request] 0000 0011 (16#03)
[Confirm+] 0000 0011 (16#03)
[Confirm-] 1000 0011 (16#83)
5) Data area
(1) It sends data, using ASCII data (ASCII mode) or hex (RTU mode).
(2) Data is changed according to each function code.
(3) Response frame uses data area as response data or error code.
6) LRC check/CRC check area
(1) LRC (Longitudinal Redundancy Check): It works in ASCII mode. It takes 2 complement from sum of frame
except header or tail to change into ASCII code,
(2) CRC (Cyclical Redundancy Check): It works in RTU mode. It uses 2-byte CRC check rules.
It returns as it sets the 8th bit of
function code of re
uest frame.
1) All numerical data can use hexadecimal, decimal, and binary type. If we convert decimal 7 and 10 into each type:
Hexadecimal: 16#07, 16#0A
Decimal: 7, 10
Binary: 2#0111, 2#1010
REMARK