Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 903

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Network Instructions
Input
condition
A202.00
Example 2
0.00
A202.07
3-24-4 NETWORK RECEIVE: RECV(098)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
870
@SEND
100
C D200
0 0 0 A
0
C+1 D201
0 1 0 0
D200
C+2 D202
0 0 1 0
C+3 D203
0 0 0 0
C+4 D204
0 0 0 0
It is necessary create a program at the host computer to receive the data and
send a response.
When CIO 0.00 and A202.07 (the Communications Port Enabled Flag for port
07) are ON in the following example, the ten words from D100 to D109 are
transmitted to node number 3 in the local network where they are written to
the ten words from D200 to D209. The data will be retransmitted up to 3 times
if a response is not received within ten seconds.
D100
0
C: D300
D200
0
C+1: D301
D300
C+2: D302
0
C+3: D303
0
C+4: D304
6
Requests data to be transmitted from a node in the network and receives the
data.
RECV(098)
S
D
C
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
Number of words to send: 10 words
Transmit to network 0 and port 1 of Serial Communications Unit
Node number 0, unit address 10
Response requested, port number 0, no retries
Response monitoring time: 2 seconds (0000: default value)
Number of words to send: 10 words
Transmit to the local network and the device itself
Node number 3, unit address 00 (CPU Unit)
Response requested, port number 7, 3 retries
Response monitoring time: 0064 hexadecimal (10 seconds)
S: First source word (remote node)
D: First destination word (local node)
C: First control word
Step program areas
Subroutines
OK
OK
Section 3-24
RECV(098)
@RECV(098)
Not supported
Interrupt tasks
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents