Send Instruction (Modbus Function Code Specified Type) - Panasonic AFP7CPS4E User Manual

Fp7 series, programmable controller
Table of Contents

Advertisement

MODBUS RTU
Master/Slave Communication

8.4.2 SEND Instruction (MODBUS Function Code Specified Type)

 Instruction format
 Operand
Items
Settings
i
Specify the operation unit.
S
Specify the header of the source node data area. (Note 1)
n
Specify the No. of sent data. (Note 1) (Note 2)
Specify the MODBUS command and partner station no. to be used. (Note 3) (Note 4)
D1
Specify the header of the MODBUS address in the receiver data area in
D2
the partner node.
Specify the device area in the source node to save the execution result
D3
code (one word).
(Note 1) Based on the types of device specified in operand [S] and the No. of sent data specified in [n], the
transmission methods and MODBUS function codes that can be used vary.
Types of device
to be specified in [S]
16 bit device
WX, WY, WR, WL, DT,
LD
1 bit device
X, Y, R, L, DT, n, LD,n
(Note 2) The No. of sent data [n] is on a word basis for register transmission, and on a bit basis for bit transmission.
(Note 3) Operand [D1] is specified by combining two hexadecimal digits of MODBUS function code with two
hexadecimal digits of partner station no.
E.g. Specify "H100A" when MODBUS function code is 16 (Preset Multiple Registers) and station no. is 10.
(Note 4) When "0" is specified for partner station no., global transmission is applied. In this case, no response
message is received from the partner side.
(Note 5): Device that can be specified for [D3] are: WX, WY, WR, WL, DT, LD. Saved as one word in the specified area.
0: Normal completion
1: Communication port is being used for master communication
2: Communication port is being used for slave communication
3: No. of master communication instructions that can be used simultaneously has been exceeded
4: Sending timeout
5: Response reception timeout
6: Received data error
8-12
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Higher
Two hexadecimal digits that indicate the
byte
MODBUS function code
Lower
Two hexadecimal digits that indicate the station
byte
no.
Transmission
method
Register
transmission
Bit
transmission
No. of sent
Values that can be specified in
data
higher bytes of [D1]
[n]
H6:
Preset Single Register (06)
1
HF:
Force Multiple Coils (15)
H10:
Preset Multiple Registers (16)
HF:
Force Multiple Coils (15)
2 - 127
H10:
Preset Multiple Registers (16)
H5:
Force Single Coil (05)
1
HF:
Force Multiple Coils (15)
2 - 2040
HF:
Force Multiple Coils (15)
Setting range
US / SS
-
1 - 127 words
1 - 2040 bits
H5, H6, HF, H10
H0 - HF7 (0 - 247)
H0~HFFFF (0 - 65535)
(Note 5)

Advertisement

Table of Contents
loading

Table of Contents