153
Using FINS Message Communications Section 6-3
in the following table.
Communications Instructions Completion Codes
The status at the completion of the execution of network communications
instructions is shown at the words indicated in the following table, as FINS
completion codes. During execution of the instructions the status will be 00 or
$0000 and this will be reflected at the end of the execution of the network
communications instruction.
Note For the CS/CJ-series, the completion codes are stored as 2 bytes of
data (1 word) upon completion of the execution of SEND(090),
RECV(098), and CMND(490). These codes are the same as the re-
sponse codes for FINS commands. The first byte of the completion
code is placed in bits 08 to 15 and the second byte is placed in bits
00 to 07.
Timing of Reading Responses
Responses should be read on the rising edge (upward differentiation) of the
Network Enabled Flag, as shown in the following diagram.
Send/Receive Data Areas
The size of the data areas that can be used with SEND and RECV depends
on the PC that is being used. The following table shows the areas that can be
used for CS/CJ-series PCs.
Message
Communications
Permitted Flag
Network status NS
indicator
ON Communications connection made (network nor-
mal)
Lit green
Communications connection not made (network
normal, but communications not established)
Flashing
green
Non-fatal communications error (error in one or
more Slaves)
Flashing
red
OFF Offline or power supply is OFF (no power supply,
resetting, minor failure, or send error)
Not lit
Fatal communications error Lit red
Words Functions
Port #0 to #7
Completion Codes
(A203 to A210)
A203 to A210 contain the completion codes for the results
of communications instruction execution for ports #0 to
#7, respectively.
Data Area Range
CIO Area CIO 0000 to CIO 6143
Work Area WR W000 to W511
Network En-
abled Flag
Execution
Error Flag
Completion
code
Communications
instruction
Previous
code
Instruction
1 executed
Instruction
2 executed
Instruction
3 executed
00 Normal
end
00
04 Busy
00
00 Normal
end
00
1
0
1
0
Network Enabled
Flag
Processing to read response