75
6 Useful Functions
75
Useful Functions
Chapter
6
- If the ID no. is not "0000", other formats (R--, W--, C--, etc.) are disabled until the following start
command is received.
■ Transmission delay time
- Set the delay time when the master device
cannot process a response from F701+.
6-11-4.Modbus-RTU
■ Function code for Modbus
The actual message frame consists of an address field, function field, data field, and error check field,
and they are tra
nsmitted in this order.
List of function codes
Code Function name Command
01 (0x01) Read Coils Read coils
02 (0x02) Read Discrete Inputs Read discrete inputs
03 (0x03) Read Holding Registers Read holding registers
04 (0x04) Read Input Register Read input register
05 (0x05) Write Single Coil Write to single coil
06 (0x06) Write Single Register Write to single holding register
15 (0x0F) Write Multiple Coils Write to multiple coils
16 (0x10) Write Multiple Registers Write to multiple hold
ing registers
08 (0x08) Diagnostics Diagnostic mode
11 (0x0B) Get Comm Event Counter Read event counter
12 (0x0C) Get Comm Event Log Read communication events
17 (0x11) Report Slave ID Read slave ID information
Host
S
I CR
LF
ID no.
1 2
D 1 2 3 4
CR
3
4
ID no.
F701+
- Start command
Host
E
I CR
LF
ID No.
1 2
D 1 2 3 4
CR
3
4
ID no.
F701+
- End command
* Returns only when the ID-no. matches
the number set with the keys.
* Returns only when the ID-no. matches
the number set with the keys.
[Transmission delay time] (setting mode 4-6)
(Input range: 0 to 99)
3.5 char + transmission delay time (mSec)
Frame
}
Frame
}