Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 946

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Sample program
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.
0.00
A202.08
CJ2 Instructions
Start bit
Enabled Flag
W10.01
Execution completed
A343.13
W10.00
Executing
File Memory
Operation Flag
W10.00
2.00
2.01
Executing
Execution
Error end
completed
2.01
Error end
Timing Chart
CS/CJ/NSJ Series Instructions Reference Manual (W474)
KEEP
S:
W10.00
S+1: D7
S+2: D8
S+3: D9
S+4: D10
CMND2
S+5: D11
D6
S
S+6: D12
D100
D
S+7: D13
D0
C
S+8: D14
2
I
S+9: D15
S+10: D16
S+11: D17
Normal
processing
S+12: D18
Error
processing
C:
C+1: D1
W10.01
C+2: D2
Execution completed
C+3: D3
C+4: D4
C+5: D5
1
Start bit
0.00
0
1
Executing
W10.00
0
Communications in progress
CMND2 started
Execution
1
completed
0
2.00
1
Execution
completed
0
W10.01
15
8
7
0
D6
2 2 1 5
Command code = 2215 hex (CREATE/DELETE SUBDIRECTORY)
8 0 0 0
Disk No. = 8000 hex (Memory Card)
0 0 0 0
Parameter= 0000 hex (create directory)
4 3 5 3
3 1 2 0
2 0 2 0
Subdirectory name = 'CS1@@@@@. @@@'
2 0 2 0
2 E 2 0
2 0 2 0
0 0 0 6
Directory length = 0006 hex (6 characters)
5 C 4 F
4 D 5 2
Absolute directory path = '\OMRON'
4 F 4 E
15
8
7
0
D0
0 0 1 A
Bytes of command data = 001A hex (26 bytes)
0 0 0 4
Bytes of response data = 0004 hex (4 bytes)
0 0 0 0
Destination address = 0000 hex (local network)
0 0 0 0
00 hex (local node), 00 hex (CPU Unit)
0 7 0 0
Response required, Communications port 7, 0 retries
0 0 0 0
Response monitoring time = 0000 hex (2 s)
CMND2 completed
3. Instructions
3
(@: Space code)
909

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents