Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5-232
5.4 Network Dedicated Instruction
5.4.28 BUFRCVS instruction
Z_BUFRCVS
Function
This instruction reads receive data from external device in fixed buffer communication.
This instruction is used in an interrupt program.
Program Example
The following program reads receive data from the fixed buffer of the connection 2.
(The I/O signals of the Ethernet module are X/Y00 to X/Y1F)
[Structured ladder/FBD]
[ST]
Z_BUFRCVS(SM400,"00",2,D700);(* Reads data in fixed buffer communication *)
Device Item Setting data Setting range Setting side
+0
Receive data length
Data length of the data read from the fixed buffer data area is stored.
(Data length becomes the number of words or the number of bytes
depending on the procedure used in fixed buffer communication.)
System
With procedure (communication in binary code): The number of
words
1 to 1017
With procedure (communication in ASCII code): The number of
words
1 to 508
Nonprocedural communication (communication in binary code):
The number of bytes
1 to 2046
+1
to
+n
Receive data
Data read from the fixed buffer data area are stored in ascending
address order.
System
d
d
d
Performs readout
in fixed buffer
communication