955
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Network Instructions
3
CMND2
Example Programming
If CIO 0.00 (start bit) and A202.08 (CJ2 Instructions Enabled Flag) are ON, W10.00 (executing) will turn
ON. If W10.00 (executing) is ON and A343.13 (Accessing File Data Flag) is OFF, FINS command 2215
hex (CREATE/DELETE SUBDIRECTORY) is set to the local CPU Unit and the response is stored in
D100 and D101.
The FINS command creates a director called “CS1” in the “OMRON” directory in the Memory Card in
the CPU Unit. The command code 2215 hex (2 bytes) and the 2-byte end code are returned as the
response.
If communications end normally, CIO 2.00 (execution completed) turns ON, and normal processing is
executed. If communications end in an error, CIO 2.01 (error end) turns ON, and error processing is
executed.
z Timing Chart
Normal
processing
Error
processing
KEEP
W10.00
CMND2
D6
D100
D0
2
S
D
C
I
0.00 A202.08
Start bit
CJ2 Instructions
Enabled Flag
W10.01
Execution completed
W10.00
Executing File Memory
Operation Flag
W10.00 2.00 2.01
A343.13
2.01
W10.01
Executing Execution
completed
Error end
Error end
Execution completed
S: D6
S+1: D7
S+2: D8
S+3: D9
S+4: D10
S+5: D11
S+6: D12
S+7: D13
S+8: D14
S+9: D15
S+10: D16
S+11: D17
S+12: D18
15 7 08
2 2 1 5
8 0 0 0
0 0 0 0
4 3 5 3
3 1 2 0
2 0 2 0
2 0 2 0
2 E 2 0
2 0 2 0
0 0 0 6
5 C 4 F
4 D 5 2
4 F 4 E
Command code = 2215 hex (CREATE/DELETE SUBDIRECTORY)
Disk No. = 8000 hex (Memory Card)
Parameter= 0000 hex (create directory)
Subdirectory name = 'CS1@@@@@. @@@'
(@: Space code)
Directory length = 0006 hex (6 characters)
Absolute directory path = '\OMRON'
C: D0
C+1: D1
C+2: D2
C+3: D3
C+4: D4
C+5: D5
15 7 08
0 0 1 A
0 0 0 4
0 0 0 0
0 0 0 0
0 7 0 0
0 0 0 0
Bytes of command data = 001A hex (26 bytes)
Bytes of response data = 0004 hex (4 bytes)
Destination address = 0000 hex (local network)
00 hex (local node), 00 hex (CPU Unit)
Response required, Communications port 7, 0 retries
Response monitoring time = 0000 hex (2 s)
Start bit
0.00
Executing
W10.00
Execution
completed
2.00
Execution
completed
W10.01
1
0
1
0
1
0
1
0
Communications in progress
CMND2 started
CMND2 completed