Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 956

Table of Contents

Advertisement

3. Instructions
Issuing a FINS Command to Own CPU Unit
The following program section shows an example of sending a FINS command to the local CPU Unit.
When CIO 0.00 and A202.07 (the Communications Port Enabled Flag for port 07) are ON and A343.13
(File Memory Operation Flag) is OFF, CMND(490) transmits FINS command 2215 (CREATE/DELETE
DIRECTORY) to the local CPU Unit. The response is stored in D100 to D101. Here, the FINS command
will create a directory called CS/CJ under the OMRON directory. The command code (2 bytes) and the
end code (2 bytes) will be returned and stored as the response.
000000
A20207
0.00
A202.07
Communications
Port Enabled Flag
for port 7
15 8 7
S:
D00006
D6
D7
S+1:
D00007
S+2:
D00008
D8
D9
S+3:
D00009
S+4:
D00010
D10
S+5:
D00011
D11
S+6:
D00012
D12
S+7:
D00013
D13
S+8:
D00014
D14
S+9:
D00015
D15
S+10: D00016
D16
S+11: D00017
D17
S+12: D00018
D18
15 8 7
D0
S:
D00000
S+1:
D00001
D1
D2
S+2:
D00002
S+3:
D00003
D3
S+4:
D00004
D4
S+5:
D00005
D5
918
A34313
A343.13
@CMND
File Memory
S
Operation Flag
D
C
0
Command code: 2215 Hex (CREATE/DELETE DIRECTORY)
2 2 1 5
Disk No.: 8000 Hex (Memory Card)
8 0 0 0
Parameter: 0000 Hex (create directory)
0 0 0 0
4 3 5
3
3 1 2
0
2 0 2
0
Subdirectory name: CS1@@@@@. @@@ (@= space)
2 0 2
0
2 E 2
0
2 0 2
0
Directory name length: 0006 (6 characters)
0 0 0
6
5 C 4
F
Absolute directory path: \OMRON
4 D 5
2
4 F 4
E
0
Bytes of command data: 001A (26 decimal)
0 0 1 A
Bytes of response data: 0004 (4)
0 0 0 4
Destination network address: 00 Hex (local network)
0 0 0 0
Destination unit address: 00 Hex, Destination node number: 00 Hex (CPU Unit at local node)
0 0 0 0
0 7 0 0
Response requested, port number 7, 0 retries
Response monitoring time: 0000 Hex (2 seconds)
0 0 0 0
D00006
D6
D00100
D100
D00000
D0
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents