User manual

Highlevel Instructions
3 343
Command 16 (DT multiwords write) send
Example) When the 3word data from WR3 to WR5 is transmitted to DT500 to DT502 of the unit No. 7 of the
remote unit.
[ F145 (SEND), DT10, WR3, DT0, K500 ]
[S1]:
H0H0 H0 H3
DT10
Specifies No. of transmission words
(H1 to H7F)
Word unit
transmission
*Word units (H0) should be specified for the transmission method of [S1] to send the command 16.
[S1+1]:
H1 H0 H7
DT11
Unit No. (H00 to H63)
(0 to 99)
Selects COM port
(H1 or H2)
H0 fixed
[S1]:DT10(DT10=0003H, DT11=1007H)
[S2]:WR3(WR3=0011H
WR4=2233H
WR5=4455H)
[D] :DT0
[N] :K500
*Max. quantity of write registers is 127 (7FH)
(due to the restrictions on the MODBUS protocol).
No. of data (No. of bytes) is calculated regarded No. of write
registers as 2 bytes. (Max. 254 (FEH) bytes)
Command
conversion
MODBUS commands
Slave address
Command (10H)
Starting No. of write (H)
Starting No. of write (L)
No. of write registers (H)
No. of write registers (L)
No.ofdata(No.ofbytes)
Writedata1(H)
Write data 1 (L)
Writedata2(H)
Write data 2 (L)
Writedata3(H)
Write data 3 (L)
CRC16 (H)
CRC16 (L)
07
10
01
F4
00
03
06
00
11
22
33
44
55
5A
E7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Flag conditions
Σ Error flag (R9007) : Turns on and stays on when:
Σ Error flag (R9008) : Turns on for an instant when:
The control data of [S1] and [S1+1] is a value outside of the specified
range.
The number of words specified by S1 causes the area of S2 or D to be
exceeded when word unit transmission is being used.
[D]+[N] exceeds the area of [D].
The MODBUS mode has not been specified for the COM port of the control
data specified by [S1+1].
The area of [D] is DT in bit unit transmission.
The device No. of [D] is not 0.
Precautions during programming
It is not possible to execute multiple F145 (SEND) instructions and F146 (RECV) instructions for the
same communication port simultaneously.
The program should be set up so that these instructions are executed when the SEND/RECV
execution enabled flag (R9044: COM1/R904A: COM2) is on.
R9044
(COM1)
0: Execution inhibited (SEND/RECV instruction being executed)
1: Execution enabled
R904A
(COM2)
0: Execution inhibited (SEND/RECV instruction being executed)
1: Execution enabled
FPΣ/FPX/FP0R