
99
Sending Commands from a PLC
Section 7-2
Writing Programs
Programs incorporating the SEND(090), RECV(098), and CMND(490)
instructions are generally created using the Communications Port Enabled
Flag and the Communications Port Error Flag as input conditions. CS/CJ-
series CPU Units have eight communications ports. Only one instruction can
be executed at any given port at one time, however, so the program must not
overlap the use of any of the ports. A program example is provided below.
Note
CS1-H, CJ1-H CJ1M, or CS1D CPU Units (for independent CPU systems)
with lot numbers 020601 (manufactured on June 1, 2002 or later) can auto-
matically detect an available communications port. For details, refer to the
automatic communications port allocations for network communications
instructions in the
SYSMAC CS/CJ Series Communications Commands Ref-
erence Manual
(W342).
File memory
22
01
FILE NAME READ
Reads file memory data.
22
02
SINGLE FILE READ
Reads a specified length of file data
from a specified position within a single
file.
22
03
SINGLE FILE WRITE
Writes a specified length of file data
from a specified position within a single
file.
22
04
FILE MEMORY FORMAT
Formats (initializes) the file memory.
22
05
FILE DELETE
Deletes specified files stored in the file
memory.
22
07
FILE COPY
Copies files from one file memory to
another file memory in the same sys-
tem.
22
08
FILE NAME CHANGE
Changes a file name.
22
0A
MEMORY AREA–FILE TRANSFER
Transfers or compares data between the
I/O memory area and the file memory.
22
0B
PARAMETER AREA–FILE TRANSFER
Transfers or compares data between the
parameter area and the file memory.
22
0C
PROGRAM AREA–FILE TRANSFER
Transfers or compares data between the
UM (User Memory) area and the file
memory.
22
15
CREATE/DELETE DIRECTORY
Creates or deletes a directory.
Debugging
23
01
FORCED SET/RESET
Force-sets or force-resets bits, or
releases force-set status.
23
02
FORCED SET/RESET CANCEL
Cancels all bits that have been force-set
or force-reset.
Usage
Command
code
Name
Function
MR
SR
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...