
101
Sending Commands from a PLC
Section 7-2
Communications Port
Completion Codes
The status of a SEND(090), RECV(098), and CMND(490) instruction after
execution is reflected as a communications port completion code, in one word
(two bytes) of data as shown in the following table. (The value is 0000 during
instruction execution.) The recorded status is saved until execution of the next
instruction.
The meanings of the communications port completion codes are the same as
those for FINS commands and responses (response codes). When
CMND(490) is used, however, even if a FINS command has an abnormal
completion, it will not be reflected in the communications port completion
code. For details, refer to
Communications Port Error Flag and Response
Bits 08 to 15 in the communications port completion code correspond to the
first byte of the response code, and bits 00 to 07 correspond to the second
byte.
Communications Port Error Flag and Response Codes CMND(490)
Errors that occur when CMND(490) is used generate a Communications Port
Error Flag and are recorded in a communications port response code only in
the following cases:
• When a response timeout error has occurred.
• When the number of communications data bytes exceeds the maximum
value for the Unit (i.e., more than 1,014 bytes) after the FINS command
code for the FL-net Unit.
• When the actual number of response bytes is greater than the number of
reception bytes that has been set. (The response is not stored in this
case.)
Errors other than these are recorded in the response codes of the responses
stored from the beginning response storage word onwards. Be careful of
these, because there are no Communications Port Error Flags and they are
not recorded in a communications port response code.
Word
Contents
A203
Communications Port 0 Completion Code
A204
Communications Port 1 Completion Code
A205
Communications Port 2 Completion Code
A206
Communications Port 3 Completion Code
A207
Communications Port 4 Completion Code
A208
Communications Port 5 Completion Code
A209
Communications Port 6 Completion Code
A210
Communications Port 7 Completion Code
Summary of Contents for CJ1W-FLN22
Page 2: ......
Page 3: ...CS1W FLN22 100Base TX CJ1W FLN22 100Base TX FL net Units Operation Manual Revised October 2010...
Page 4: ...iv...
Page 6: ...vi...
Page 10: ......
Page 14: ...xiv...
Page 18: ...xviii...
Page 26: ...xxvi Unit Versions of CS CJ series FL net Units 7...
Page 40: ...Precautions Section 1 6 14...
Page 50: ......
Page 88: ...Allocated Words in the DM Area Section 4 4 62...
Page 158: ...Command Response Reference Section 7 5 132...
Page 170: ......
Page 192: ...Inspections Section 10 6 166...
Page 218: ...192 System Configuration Appendix A...
Page 224: ...198 System Configuration Example Appendix B...
Page 270: ...244 FL net Unit Support Software Ver 1 6 Appendix F...
Page 276: ...250 International System of Units Appendix G...