High
−
level Instructions
3
−
343
Command 16 (DT multi
−
words write) send
Example) When the 3
−
word 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]:
H0
H0
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,
D
T11=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. of data (No. of bytes)
Write data 1 (H)
Write data 1 (L)
Write data 2 (H)
Write data 2 (L)
Write data 3 (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
Σ
/FP
−
X/FP0R
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Содержание FP-X
Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 110: ...Relays Memory Areas and Constants 1 86 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 111: ...Chapter 2 Basic Instructions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 112: ...Basic Instructions 2 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 184: ...Basic Instructions 2 74 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 264: ...Basic Instructions 2 154 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 265: ...Chapter 3 High level Instructions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 266: ...High level Instructions 3 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 288: ...High level Instructions 3 24 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 406: ...High level Instructions 3 142 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 483: ...High level Instructions 3 219 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 537: ...High level Instructions 3 273 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 838: ...High level Instructions 3 574 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 862: ...High level Instructions 3 598 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1052: ...High level Instructions 3 788 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1053: ...Chapter 4 Precautions Concerning Programs Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1054: ...Precautions Concerning Programs 4 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1088: ...Precautions Concerning Programs 4 36 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1089: ...Chapter 5 Appendix Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1332: ...5 244 5 7 ASCII Codes Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...