Panasonic FP-E Programming Manual page 607

Fp series
Table of Contents

Advertisement

FPΣ/FP−X/FP0R
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 ]
H0
H0
[S1]:
Word unit
Specifies No. of transmission words
transmission
(H1 to H7F)
*Word units (H0) should be specified for the transmission method of [S1] to send the command 16.
[S1+1]:
H1
H0 fixed
Selects COM port
(H1 or H2)
[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)
Flag conditions
Σ Error flag (R9007) :
Σ Error flag (R9008) :
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
0: Execution inhibited (SEND/RECV instruction being executed)
1: Execution enabled
(COM1)
R904A
0: Execution inhibited (SEND/RECV instruction being executed)
1: Execution enabled
(COM2)
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
H0
H3
DT10
DT11
H0
H7
Unit No. (H00 to H63)
(0 to 99)
Command
conversion
Turns on and stays on when:
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.
High−level Instructions
MODBUS commands
1
Slave address
2
Command (10H)
3
Starting No. of write (H)
4
Starting No. of write (L)
5
No. of write registers (H)
6
No. of write registers (L)
7
No. of data (No. of bytes)
8
Write data 1 (H)
Write data 1 (L)
9
10
Write data 2 (H)
11
Write data 2 (L)
12
Write data 3 (H)
13
Write data 3 (L)
CRC16 (H)
14
15
CRC16 (L)
07
10
01
F4
00
03
06
00
11
22
33
44
55
5A
E7
3 − 343

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents