EasyManua.ls Logo

Panasonic FP-E - Page 633

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 369
Example) When the 6 words of data from LD100 to LD105 is readed from the unit No. 17 of the remote unit,
and a command data to the area starting with DT100 in the local unit is sent from the COM1.
[ F146 (RECV), DT10, LD0, K100, DT100 ]
[S1]:
H0H0 H0 H6
DT10
Specifies No. of transmission words
(H001 to H07F)
Word unit
transmission
*Word units (H0) should be specified for the transmission method of [S1] to read in word units by the
command 04.
[S1+1]:
H1 H1 H1
DT11
Unit No. (H01 to H63)
(1 to 99)
Selects COM port
(H1 or H2)
H0 fixed
Command
conversion
* Specify the data No. of the destination for the starting
No. of read. (Remote unit: LD100)
The quantity to read should be the No. of specified
words. (6−word read)
*For specifying LD, it should be from 07D0H (LD0).
[S1]: DT10 (DT10=0006H, DT11=1011H)
[S2]: LD0
[N]: K100
[D]: DT100
MODBUS commands
Slave address
Command (04H)
Starting No. of read (H)
Starting No. of read (L)
Quantity to read (H)
Quantity to read (L)
CRC16 (H)
CRC16 (L)
11
04
08
34
00
06
31
36
1
2
3
4
5
6
7
8
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.
− [S2]+[N] exceeds the area of [S2].
− The MODBUS mode has not been specified for the COM port of the control
data specified by [S1+1].
− The area of [S2] is DT, WL and LD in the bit unit transmission.
− The device No. of [S2] 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: info@clrwtr.com