418
5-36-5 NETWORK RECEIVE: RECV(193)
Variations
j RECV(193)
(193)
RECV S D C
D: 1
st
destination word CIO, G, A, T, C, DM
C: 1
st
control word CIO, G, A, T, C, DM
S: 1
st
source word CIO, G, A, T, C, DM
Operand Data AreasLadder Symbol
When the execution condition is OFF, RECV(193) is not executed. When the ex-
ecution condition is ON, RECV(193) transfers data beginning at word S from the
designated PC, BASIC Unit, Personal Computer Unit, or host computer in the
designated node on the SYSMAC NET Link/SYSMAC LINK System to address-
es beginning at D in the PC executing the instruction.
The possible values for S depend on the source Unit. Check the settings for the
Unit. If S is in the EM Area, data will be transferred from the current EM bank in
the source Unit.
The control words, beginning with C, specify the number of words to be received,
the source node, and other parameters. Some control data parameters depend
on whether a transmission is being received in a SYSMAC NET Link System or a
SYSMAC LINK System.
Normally a response is required with RECV(193), so set C+3 bit 15 to OFF.
RECV(193) only starts the transmission. Verify that the transmission has been
completed with the Network Status Flags in A502.
Note The node number for SYSMAC LINK Units and SYSMAC NET Link Units corre-
sponds to the unit number for the host link interface in the PC Setup.
Control Data
SYSMAC NET Link Systems Set the source node number to $00 to send data within the PC executing the
instruction. Refer to the
SYSMAC NET Link System Manual
for details.
Word Bits 00 to 07 Bits 08 to 15
C Number of words (1 to 0990 in 4-digit hexadecimal, i.e., $0001 to $03DE)
C+1 Source network address
(0 to 127, i.e., $00 to $7F)
1
Bits 08 to 11: ($0 to $F)
2
Bits 12 to 15: Set to 0.
C+2 Source unit address
3
Source node number
4
C+3 Bits 00 to 03:
No. of retries (0 to 15 in
hexadecimal,
i.e., $0 to $F)
Bits 04 to 07:
Set to 0.
Bits 08 to 11:
Transmission port number
($0 to $7)
Bit 12 to 14:
Set to 0.
Bit 15: ON: No response.
OFF: Response returned.
C+4 Response monitoring time ( $0001 to $FFFF = 0.1 to 6553.5 seconds)
5
Note 1. Set the source network address to $00 when transmitting within the same
network. In this case, the network of the Link Unit with the lowest unit num-
ber will be selected if the PC belongs to more than one network.
2. The BASIC Unit interrupt number when a BASIC Unit is designated.
Description
Network Instructions Section 5-36