3 ETHERNET INTERFACE MODULE REPLACEMENT
3 - 33
3.9.3 Communication using fixed buffer
The following shows a program example for performing communication using fixed buffer.
(1) A/AnS series
[Transmission processing]
The A/AnS series performs data transmission processing to external devices from the fixed buffer by
writing the send data to the fixed buffer area by the sequence program, and turning the send request
signal (Y0) ON.
[Reception processing]
On the A/AnS series, the reception completion signal (X0) turns ON when data is received to the
fixed buffer area.
The A/AnS series performs data reception processing by reading received data from the fixed buffer
area by the sequence program, and turning the reception completion confirmation signal (Y0) ON.
(a) Program conditions
The following shows a program example for performing transmission processing by fixed buffer No.1
when the fixed buffer transmission instruction (X43) is turned ON.
(b) Program example
Open
comple-
tion
CON-1
Open
request
-1
WDT
error
detection
Fixed
BUF send
command
Send
command
acceptance-1
Communi-
cation ena-
ble-1
Transmission
normal com-
pletion-1
Send
error
detec-
tion-1
BUF CH0
switch
request-1
BUF CH1
switch-
ing-5
BUF CH1
switch-
ing-6
BUF CH1
switch-
ing-7
BUF CH1
switch-
ing-8
BUF CH
switch
BUF CH
switch
BUF CH
switch
BUF CH0
switch
request-1
BUF CH0
switch
request-1
BUF CH0
switch-
ing-1
Send
command
acceptance-1
Communi-
cation ena-
ble-1
Channel switch for buffer
memory completed.
Writing to the fixed buffer
of connection 1 is possible.
Send
request
-1