FINS Commands Reference Manual Revised June 2001

FINS Commands Reference Manual Revised June 2001
FINS Commands
Reference Manual
Revised June 2001
iv
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to head precautions can result in injury to people or damage to the product.
DANGER
Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
! WARNING
Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
! Caution
Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
!
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers
to an OMRON product, regardless of whether or not it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON products, often means
“word” and is abbreviated “Wd” in documentation in this sense.
The abbreviation “PC” means Programmable Controller and is not used as an abbreviation for anything else.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Note Indicates information of particular interest for efficient and convenient operation
of the product.
1, 2, 3...
1. Indicates lists of one sort or another, such as procedures, checklists, etc.
 OMRON, 1993
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any
form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is
constantly striving to improve its high-quality products, the information contained in this manual is subject to change
without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no
responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
v
vi
TABLE OF CONTENTS
SECTION 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1
1-2
1-3
1-4
1-5
FINS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Network Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command/Response Transmission Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SYSMAC NET and SYSMAC LINK Communications . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 2
Commands for CV-series PCs . . . . . . . . . . . . . . . . . . . . . .
2-1
2-2
2-3
2-4
2-5
2-6
2-7
2-8
2-9
2-10
2-11
2-12
2-13
2-14
2-15
2-16
2-17
2-18
2-19
2-20
2-21
2-22
2-23
2-24
2-25
2-26
2-27
2-28
2-29
2-30
2-31
2-32
2-33
2-34
2-35
2-36
2-37
2-38
2-39
2-40
2-41
2-42
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Memory Area Designations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Volume Labels and File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA FILL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MULTIPLE MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA PROTECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA PROTECT CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONNECTION DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CYCLE TIME READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MESSAGE READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MESSAGE CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FAL/FALS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ACCESS RIGHT ACQUIRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ACCESS RIGHT FORCED ACQUIRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ACCESS RIGHT RELEASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE NAME READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SINGLE FILE READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SINGLE FILE WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY CARD FORMAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
VOLUME LABEL CREATE/DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE COPY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE NAME CHANGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE DATA CHECK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
TABLE OF CONTENTS
2-43
2-44
2-45
2-46
2-47
2-48
MEMORY AREA FILE TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA FILE TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA FILE TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET CANCEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Aborting Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 3
Commands for C-series PCs . . . . . . . . . . . . . . . . . . . . . . .
3-1
3-2
3-3
3-4
3-5
3-6
3-7
3-8
3-9
3-10
3-11
3-12
3-13
3-14
3-15
3-16
3-17
3-18
3-19
3-20
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Memory Area Designations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MULTIPLE MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE MEMORY INDEX READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE MEMORY READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE MEMORY WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET CANCEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MULTIPLE FORCED STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 4
Commands for SYSMAC NET Link Units . . . . . . . . . . .
4-1
4-2
4-3
4-4
4-5
4-6
4-7
4-8
4-9
4-10
4-11
4-12
4-13
4-14
4-15
viii
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK TABLE READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK TABLE WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LOOP-BACK TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NAME SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NAME DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NAME READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TABLE OF CONTENTS
SECTION 5
Commands for SYSMAC LINK Units . . . . . . . . . . . . . . .
5-1
5-2
5-3
5-4
5-5
5-6
5-7
5-8
5-9
5-10
5-11
5-12
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NETWORK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
INTERNODE ECHO TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BROADCAST TEST RESULTS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BROADCAST TEST DATA SEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 6
Commands for Personal Computer Units . . . . . . . . . . . .
6-1
6-2
6-3
6-4
6-5
6-6
6-7
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
INTERNODE ECHO TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 7
Commands for BASIC Units . . . . . . . . . . . . . . . . . . . . . . .
7-1
7-2
7-3
7-4
7-5
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 8
Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-1
8-2
8-3
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Network Relay Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Response Codes and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendices
A FINS Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ix
About this Manual:
This manual describes the FINS commands used for communications in OMRON networks and includes
the sections described below. These FINS commands can be addressed to CV-Series PCs, C-series
PCs, SYSMAC NET Link Units, SYSMAC LINK Units, SYSMAC LINK Support Boards, and CPU Bus
Units, such as Personal Computer Units and BASIC Units. They can also be sent to host computers, provided the proper programming is provided at the host computer.
Please read this manual carefully and be sure you understand the information provided before attempting
to program communications in OMRON networks.
WARNING Failure to read and understand the information provided in this manual may result in
personal injury or death, damage to the product, or product failure. Please read each
section in its entirety and be sure you understand the information provided in the section
and related sections before attempting any of the procedures or operations given.
Section 1 describes the structure and use of FINS commands.
Section 2 describes commands that can be addressed to CV-series PCs.
Section 3 describes commands that can be addressed to C-series PCs.
Section 4 describes commands that can be addressed to SYSMAC NET Link Units.
Section 5 describes commands that can be addressed to SYSMAC LINK Units and Support Boards.
Section 6 describes commands that can be addressed to Personal Computer Units.
Section 7 describes commands that can be addressed to BASIC Units.
Section 8 describes response codes, which are returned with responses to FINS commands to indicate
the result of FINS command execution.
Appendix A provides a list of FINS commands and shows the destinations that support each command.
! WARNING Failure to read and understand the information provided in this manual may result in
personal injury or death, damage to the product, or product failure. Please read each
section in its entirety and be sure you understand the information provided in the section
and related sections before attempting any of the procedures or operations given.
xi
SECTION 1
Introduction
This section explains the structure of the FINS command systems used to communicate in SYSMAC NET Link, SYSMAC
LINK, and Host Link Systems.
1-1
1-2
1-3
1-4
1-5
FINS Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-1 Communications Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-2 Destinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-3 Destinations and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-4 Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Network Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command/Response Transmission Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4-1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4-2 Response Block Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4-3 Frame Checksum Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SYSMAC NET and SYSMAC LINK Communications . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5-1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5-2 Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Section 1-1
FINS Commands
1-1
FINS Commands
There are two command systems that can be used for communications with CVseries PCs. The first system is the C-series command system, which can be
used within any one local network. The other system is the CV-series command
system, which uses FINS commands.
The structure of C-series commands, also called C-mode commands, differs
depending on the type of network in which they are used, and thus do not allow
communications to remote networks. FINS commands, also called CV-mode
commands, do allow internetwork communications between network PCs or
computer nodes. This manual describes the FINS command system.
Functional Names
The SYSMAC NET Link System and SYSMAC LINK System use different
names to describe the command/response functionality used for FINS commands. SYSMAC NET Link Systems call this functionality the datagram service;
SYSMAC LINK Systems call it the message service. Although different names
are used, the command structure is identical for both Systems.
Gateway
A gateway is a node that allows communications to be transferred between two
networks. There are basically two types of gateways: 1) a PC or computer node
that is a member of two networks (i.e., that has two network Link Units or Support
Boards) and 2) a Bridge, which is a Unit specifically designed to function as a
gateway.
1-1-1 Communications Range
Using FINS commands, a network node can communicate with nodes on three
network levels: nodes on a local network, nodes on networks connected directly
via a gateway, and nodes on networks separated by one other network (i.e., connected via two gateways).
For example, in the following diagram PCs (a) and (b) can communicate with
each other, but PCs (a) and (c) cannot. A directly link between a PC and a host
computer via a Host Link System, however, is not counted as a network and thus
PC (a) and host computer (d) can also communicate with each other.
S
N
T
S
N
T
PC
(3)
S S
L N
K T
(1)
PC
S
L
K
PC
(a)
2
S S
L N
K T
PC
PC
(b)
(2)
S S
L L
K K
PC
Host
(d)
computer
(d) to (a)
SNT
:SYSMAC NET Link Unit
SLK
:SYSMAC LINK Unit
SLK-NSB :SYSMAC LINK Support
Board
Cannot communicate with nodes
on 4th network level.
(2)
(3)
S
L
K
Host link
(a) to (b) to (c)
(1)
IBM PC/AT
or
compatible
SLK-NSB
PC
S
L
K
PC
S
L
K
PC
S
L
K
PC
(c)
Section 1-1
FINS Commands
1-1-2 Destinations
FINS commands use a command/response system in which a command is sent
along with parameters (including the destination node) and a response is returned by the destination node. It is also possible to specify command parameters so that a response is not returned if one is not needed. Commands can also
be broadcast locally, i.e., sent to every node on a local network.
Internode Communications
Communications are possible with a PC, computer, or CPU Bus Unit at a specific
node on a specific network by specifying the network address, node number,
and unit address of the destination, as shown in the following illustration.
S
N
T
S S
L N
K T
PC
S S
L N
K T
S
L
K
PC
S
L
K
S
L
K
PC
Broadcasting
PC
S
L
K
SLK-NSB
PC
IBM PC/AT
or
compatible
S S
L N
K T
PC
PC
PC
Commands
SNT
:SYSMAC NET Link Unit
SLK
:SYSMAC LINK Unit
SLK-NSB :SYSMAC LINK Support Board
PC
S S
L N
K T
S
L
K
S
L
K
If FF (decimal 255) is specified as the destination node number, a command will
be broadcast to all nodes on the designated network. Responses are not returned for broadcast communications.
S
N
T
PC
PC
PC
S
L
K
S
L
K
Commands
Responses
SNT
:SYSMAC NET Link Unit
SLK
:SYSMAC LINK Unit
SLK-NSB :SYSMAC LINK Support Board
PC
S
L
K
PC
PC
S
L
K
PC
S
L
K
SLK-NSB
PC
IBM PC/AT
or
compatible
S
L
K
PC
3
Section 1-1
FINS Commands
Unit Addresses
Unit addresses are used to designate the actual Units that are to participate in
FINS communications. Unit addresses are required because communications
are possible with more than one Unit at each node.
When a network node is occupied by a PC, communications are possible with
the PC’s CPU or with a CPU Bus Unit mounted to the PC. The unit addresses
used to distinguish between these are given in the following table.
Destination
Note
Unit address
PC’s CPU
00
CPU Bus Units (see note 1)
10 + unit number or FE (see note 2)
1. Communications are possible with the following CPU Bus Units: SYSMAC
NET Link Units, SYSMAC LINK Units, SYSMAC BUS/2 Units, Personal
Computer Units, and BASIC Units.
2. FE is used for SYSMAC NET Link and SYSMAC LINK Units to specify the
Unit actually connecting the destination node to the network and can be
used to communicate with such Units without having to worry about unit
numbers.
When a network node is occupied by an IBM PC/AT or compatible connected via
a SYSMAC LINK Support Board, the unit addresses given in the following table
are used.
Destination
Note
Unit address
User application on the computer
01
SYSMAC LINK Support Board
10 or FE (see note 1)
1. The unit number of the SYSMAC LINK Support Board is fixed at 0, i.e., “10”
is 10 plus the unit number. FE is used to specify the Unit actually connecting
the destination node to the network, i.e., the SYSMAC LINK Support Board,
without regard to the unit number.
2. User applications must be written to return responses if desired or commands must be set without requests for responses.
1-1-3 Destinations and Commands
The actual function of a command can vary with the destination to which the
command is sent. For example, command code 04 02 when sent to a PC will
change the operating mode from RUN to PROGRAM, but when sent to a SYSMAC LINK Unit will stop a data link. The parameters and data provided for a
command and those returned in the response can also differ depending on the
destination of the command. You must therefore always be aware of the specific
destination to which the command is being sent to use commands correctly. A
table of FINS commands and their destinations is provided in Appendix A FINS
Command List.
Note Although commands can be sent to and from user applications in IBM PC/AT or
compatibles, all programming for commands and responses must be written
into user applications.
1-1-4 Data Formats
The type of data that each network can handle varies as shown in the following
table. This manual shows mainly binary codes (expressed in hexadecimal).
SYSMAC NET Link System
Binary or ASCII (see note)
SYSMAC LINK System
Binary only
Host Link System
ASCII only
Note SYSMAC NET Link Systems can be set to handle either binary data or ASCII
data, but not both. If high-speed or high-quantity communications are required,
use binary communications. The setting is made in the PC from the CVSS. Refer
to the CVSS Operation Manuals for details.
4
Network Differences
Section 1-2
Binary–ASCII Conversions
Each byte of binary data is split into two bytes of ASCII, each of which represents
only character as shown below.
Binary code
01 7A
(Two bytes of hexadecimal data)
ASCII
30 31
37
41
(Four bytes of hexadecimal data)
“0” “1” “7” “A”
When ASCII is used for FINS communications, the hexadecimal code, and not
the actual characters, are used. File names are other ASCII data are expressed
in hexadecimal as shown in the following example.
Example: The file name “ASCII.DAT” is represented as shown below.
A S
C I
I
.
D A
Binary:
41 53 43 49 49 20 20 20 2E 44 41
ASCII
In Computer: 41534349492020202E444154
In PC;
34 31 35 33 34 33 34 39 34 39 32
32 30 32 30 32 45 34 34 34 31 35
1-2
T
54
30
34
Network Differences
FINS commands can be used for communications in three different types of network: Host Link, SYSMAC NET, and SYSMAC LINK. These are shown in the
following diagram.
S
N
T
S
N
T
PC
Host
computer
PC
Host Link
network
SYSMAC NET
network
IBM PC/AT
or
compatible
SLK-NSB
S S
L N
K T
PC
S
N
T
PC
SYSMAC
LINK network
S
L
K
PC
S
L
K
PC
S
L
K
PC
S
L
K
PC
SNT
:SYSMAC NET Link Unit
SLK
:SYSMAC LINK Unit
SLK-NSB :SYSMAC LINK Support Board
The are some differences in communications depending on the type of network
the FINS commands are used in. These differences are listed in the following
table.
5
Command/Response Transmission Data
Item
Section 1-3
SYSMAC NET
SYSMAC LINK
Host Link
Code (see note 1)
Binary or ASCII
Binary only
ASCII only
Maximum data length (see
note 2)
Binary: 1,990 bytes
542 bytes
542 bytes
Baud rate
2 Mbps
2 Mbps
1200, 2400, 4800, 9600, or
19200 bps
Maximum number of
nodes
126 (see note 3)
62 nodes
RS-232C: 1 node only
Destination nodes
PCs, IBM PC/AT
compatibles, or CPU Bus
Units
PCs, IBM PC/AT
compatibles, or CPU Bus
Units
ASCII:
RS-422:
Note
1-3
990 bytes
32 nodes
PCs only
1. All nodes within any one network must be set to the same code. Networks
connected via gateways may use different codes, i.e., code is automatically
converted as necessary in internetwork communications.
2. This is the maximum length from command code through text for internetwork communications. Slightly longer communications are possible in local
communications. Refer to the operation manuals for individual systems for
details.
3. Not including a Line Server.
Command/Response Transmission Data
This section describes the structure of the header data used for FINS commands and responses.
Although parameters are used to designate the source, the destination, and other required information when using PC instructions (e.g., CMND(194)) for network communications (and thus automatically generate a header), other Units
require that a header be manually added before the command code. Refer to the
operation manual for individual systems to determine if a header is required. The
header format described below is attached before the command code and the
other parameters described for individual commands in the rest of this manual.
Command Data Structure
00
02
ICF RSV GCT DNA DA1 DA2
SNA SA1 SA2
SID
Command
code
Text
Header
Response Data Structure
00
02
ICF RSV GCT DNA DA1 DA2
SNA SA1 SA2
SID
Command Response
code
code
Text
Header
Details
ICF
Information control field. Individual bits of the ICF are used as follows:
Bit
7
1
6
5
4
3
2
1
0
0
0
0
0
Set to 0.
0
Response setting (0: response required;
1: response not required)
Data type (0: command; 1: response)
Gateway usage (0: don’t use; 1: use); set to 1.
6
Host Link Communications
Section 1-4
RSV
Reserved. Set to 00.
GCT
Gateway count. Set to 02.
DNA
Destination network address. Specify within the following ranges.
00:
Local network
01 to 7F: Remote network (1 to 127 decimal)
DA1
Destination node number. Specify within the following ranges.
01 to 7E: Node number in SYSMAC NET network (1 to 126 decimal)
01 to 3E: Node number in SYSMAC LINK network (1 to 62 decimal)
FF:
Broadcast transmission
DA2
Destination unit address. Specify within the following ranges.
00:
PC (CPU)
FE:
SYSMAC NET Link Unit or SYSMAC LINK Unit connected to network
10 to 1F: CPU Bus Unit (10 + unit number in hexadecimal)
SNA
Source network address. Specify within the following ranges.
00:
Local network
01 to 7F: Remote network (1 to 127 decimal)
SA1
Source node number. Specify within the following ranges.
01 to 7E: Node number in SYSMAC NET network (1 to 126 decimal)
01 to 3E: Node number in SYSMAC LINK network (1 to 62 decimal)
FF:
Broadcast transmission
SA2
Source unit address. Specify within the following ranges.
00:
PC (CPU)
FE:
SYSMAC NET Link Unit or SYSMAC LINK Unit connected to network
10 to 1F: CPU Bus Unit (10 + unit number in hexadecimal)
SID
Service ID. Used to identify the processing generating the transmission. Set the
SID to any number between 00 and FF
Note The unit address for a CPU Bus Unit is 10 (hexadecimal) plus the unit number
set on the front panel of the CPU Bus Unit.
1-4
Host Link Communications
The following header must be attached to all FINS commands and responses
sent from a host computer using a Host Link System.
All commands and responses in Host Link Systems are transmitting in ASCII.
Two ASCII characters represents one byte of data.
7
Host Link Communications
Section 1-4
1-4-1 Command Format
The command block format for CV-mode commands in Host Link Systems is
shown below. The entire length of each block must be 1,114 characters or less.
Commands blocks for longer commands must be split into frames.
@
x
x
F
Node no.
x
x
0
SNA
x
x
FCS
Node Number
x
8
Header
code Response
delay
0
DA2
A
0
0
SA1
*
0
0
ICF
0
0
RSV
0
SA2
0
x
x
GCT
x
SID
2
x
x
DNA
x
x
Command code
x
x
DA1
x
Text (1,080 characters
(540 bytes) or less)
s
Terminator
The node number of the destination is input in BCD. The node number is set in
the PC Setup for CV-series PCs and is between 00 and 31.
Note The node number of the PC’s host interface is called the “unit number” in the PC
Setup and is functionally the same as the node number set on Host Link Units
and other network nodes.
Header Code
Always use FA (ASCII 46, 41) as the header code for FINS commands.
Response Delay
It is possible to specify the response delay of a PC in 10-ms increments. Selecting 0 through F in hexadecimal sets the time required for a PC to respond to the
host computer after the PC receives a command block from the host computer.
Example:
If F (15 in decimal) is set, there will be a delay of 150 ms before the response is
sent.
ICF
Set to 80 (ASCII 38, 30).
RSV
Set to 00 (ASCII 30, 30).
GCT
Set to 02 (ASCII 30, 32).
DNA, DA1, DA2
DNA, DA1, and DA2 specify the destination to which the data is sent.
DNA: Set to 00 through 7F hexadecimal (0 to 127 decimal) to specify the network address.
DA1: Set to 01 through 3E hexadecimal to specify the node number. The node
number is between 01 and 7F (1 to 126 decimal) for SYSMAC NET Link Units,
between 01 and 3E (1 to 62 decimal) for SYSMAC LINK Units, and between 00
and 1F (0 to 31 decimal) for Host Link Units.
DA2: Set the unit address. Set to 00 (ASCII 30, 30) to indicate the CPU. (The
host interface assumes it is communicating with the CPU.) The unit address is
not the same as the unit number (i.e., node number) set in the PC Setup.
SNA, SA1
Always set to 00 (ASCII 30, 30) to specify the local network and node number as
the source of the transmission.
SA2
Set to FC (ASCII 46, 43) to specify the unit address of the host interface. (Even if
00 (ASCII 30, 30) is set to indicate the CPU, it will be internally converted to FC.)
The unit address is not the same as the unit number (i.e., node number) set in the
PC Setup.
8
Host Link Communications
Section 1-4
SID
Used as a counter when data is resent. Usually set to 00 (ASCII 30, 30).
Command Code and Text
Provide the proper command code and text for the desired command.
FCS
The frame check sequence used to detect errors caused by noise. Refer to page
10 for details.
Terminator
A code designating the end of the command or response. Use “*s” (ASCII 2A,
0D).
1-4-2 Response Block Format
The response block format for CV-mode commands in Host Link Systems is
shown below. The entire length of each block must be 1,115 characters or less.
@
x
x
F
Node no.
0
0
DA2
x
A
0
0
C
SNA
x
x
x
SA1
x
x
x
FCS
x
SID
*
0
0
RSV
SA2
x
Text (1,076 characters
(538 bytes) or less)
0
ICF
Header
code
x
0
2
0
GCT
x
x
0
0
DNA
x
Command code
x
0
DA1
x
x
x
x
Response code
sr
Terminator
Node Number
The contents set in the command block format will be returned.
Header Code
The contents set in the command block format will be returned.
ICF
Set to C0 (ASCII 43, 30).
RSV, GCT
The contents set in the command block format will be returned.
DNA, DA2
The contents of SNA and SA2 set in the command block format will be returned.
DA1
The node number that has relayed the data will be returned.
SNA, SA1, SA2
The contents of DNA, DA1, and DA2 set in the command block format will be
returned.
SID
The contents set in the command block format will be returned.
Command Code, Response
Code, and Text
The command code, response code, and text for the command that has been
executed.
FCS
The frame check sequence used to detect errors caused by noise. Refer to page
10 for details.
Terminator
A code designating the end of the command or response. Use “*s” (ASCII 2A,
0D).
Note A response can consist of 1,115 characters maximum and the number of characters used for text must be 1,076 character (538 bytes) maximum.
9
Host Link Communications
Section 1-4
1-4-3 Frame Checksum Calculation
The frame checksum (FCS) is an 8-bit value converted into two ASCII characters. The 8-bit value is the result of an EXCLUSIVE OR sequentially performed
between each character in a transmission, from the first character in the frame to
the last character of the text in that frame. The FCS can be used in program
transmission to confirm that a command or response has been properly received.
Example
@
@ 10 RR 00310001 42 * s
Node Header Text FCS TermiNo. code
nator
0100
0000
EOR
1
0011
0001
EOR
0
0011
0000
EOR
FCS Calculation Program
400
405
410
415
417
420
430
440
450
460
470
480
490
495
500
R
0101
0010
0
1
0011
0011
0000
0001
Result
0100
0010
4
2
The following program is an example of how frame checksum calculations can
be performed on received data.
∗FCSCHECK
L=LEN(RESPONSE$) . . . . . . . . . . . . . . . . . . . . . . . . .
Q=0:FCSCK$=” ”
A$=RIGHT$(RESPONSE$, 1)
PRINT RESPONSE$, A$, L
IF A$=”∗” THEN LENGS=LEN(RESPONSE$)–3
FCSP$=MID$(RESPONSE$, LENGS+1, 2) . . . .
FOR I=1 TO LENGS . . . . . . . . . . . . . . . . . . . . . . . . .
Q=ASC(MID$(RESPONSE$, I, 1)) XOR Q
NEXT I
FCSD$=HEX$(Q) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
IF LEN(FCSD$)=1 THEN FCSD$=”0”+FCSD$
IF FCSD$<>FCSP$ THEN FCSCK$=”ERR”
PRINT ”FCSD$=”;FCSD$, ”FCSP$=”;FCSP$,
RETURN
Note
Converted to hexadecimal
and treated as ASCII
Transmit/receive data
ELSE LENGS=LEN(RESPONSE$)–2
Receive FCS data
Number of characters in FCS calculation range.
FCS calculation result
”FCSCK$=”;FCSCK$
1. Received data contains an FCS, delimiter/terminator, etc. If the data is not
received normally, however, any of these parts may be missing or corrupted.
Be sure to allow for the possibility of missing or corrupted data when receiving data at the host.
2. In this example, the code for CR (CHR$ (13)) is not included in RESPONSE$. Modify lines 415 and 420 to include the code for CR.
10
SYSMAC NET and SYSMAC LINK Communications
Section 1-5
Example: Setting DNA, DA1, and DA2
The settings of DNA, DA1, and DA2 for relaying communications through the
following networks are given below.
S
PC
N
(1)
T
Computer
Host Link System
Host
computer
Network 5
Node 1
S PC
N (2)
T
Bridge
SYSMAC NET Link System
Node 2
SYSMAC NET
Link System
Node 10
SS
PC
N L
T K (3)
Computer
Node 3
S
PC
L
(5)
K
S
PC
L
(4)
K
Node 11
Node 12
SYSMAC LINK System
Network 10
SNT: SYSMAC NET Link Unit
SLK: SYSMAC LINK Unit
Computer
Sending Commands to PC (3) DNA: Set to 05 (30, 35) for the network address.
DA1: Set to 03 (30, 33) for the node number of the SYSMAC
NET Link Unit of PC (3).
DA2: Set to 00 (30, 30) for the unit address of the PC.
Sending Commands to PC (4) DNA: Set to 0A (30, 41) (binary code) to specify network 10.
DA1: Set to 0C (30, 43) (binary code) to specify node 12, i.e., the SYSMAC
LINK Unit of PC (5).
DA2: Set to 00 (30, 30) for the unit address of the PC.
1-5
SYSMAC NET and SYSMAC LINK Communications
Commands can be sent and received through SYSMAC NET and SYSMAC
LINK Systems using PC instructions (e.g., CMND(194)) in the PC program. The
designation network, node, unit address, and other parameters are specified as
operands, making it possible to use FINS commands without direct concern with
header information, which is automatically generated when the transmission is
executed. This is also possible for Host Link Systems connected through Host
Link Units (but not through the PC host interface).
1-5-1 Parameters
All parameters are specified in hexadecimal unless otherwise specified.
1-5-2 Data Formats
Commands
The command code and text for the command are stored in memory as operands and the transmission is executed using the required parameters. The specific method depends on the programming method being used.
a
Command
code
b
Text
11
SYSMAC NET and SYSMAC LINK Communications
Section 1-5
System
Binary
SYSMAC NET
SYSMAC LINK
ASCII
a: 2 bytes
a: 2 bytes
b: 0 to 1,988 bytes
b: 0 to 988 bytes
a: 2 bytes
Not applicable
b: 0 to 540 bytes
Host Link
Not applicable
a: 2 bytes
b: 0 to 540 bytes
Note Each two ASCII characters requires one byte of data.
Responses
The command code, response code, and text for the response are stored in
memory as operands and the transmission is executed using the required parameters. The specific method depends on the programming method being
used.
a
a
b
Command Response
code
code
System
SYSMAC NET
SYSMAC LINK
Text
Binary
ASCII
a: 2 bytes
a: 2 bytes
b: 0 to 1,986 bytes
b: 0 to 986 bytes
a: 2 bytes
Not applicable
b: 0 to 538 bytes
Host Link
Not applicable
a: 2 bytes
b: 0 to 538 bytes
Note Each two ASCII characters requires one byte of data.
Caution
12
The maximum size of a command or response transmission can be no larger
than the smallest limit for all networks through which the transmission is relayed.
For example, a transmission from or to a SYSMAC NET Link Unit must be no
more than 540 bytes for commands and 538 bytes for responses if the transmission is relayed through a Host Link System.
SECTION 2
Commands for CV-series PCs
This section provides details on commands that can be sent to CV-series PCs. The CV-series that support these commands are
listed in the following table.
PC
Model number
PC
Model number
CV500
CV500-CPU01-E
CV2000
CV2000-CPU01-EV1
CV1000
CV1000-CPU01-E
CVM1
CVM1-CPU01-EV2 or
CVM1-CPU11-EV2
2-1
2-2
2-3
2-4
2-5
2-6
2-7
2-8
2-9
2-10
2-11
2-12
2-13
2-14
2-15
2-16
2-17
2-18
2-19
2-20
2-21
2-22
2-23
2-24
2-25
2-26
2-27
2-28
2-29
2-30
2-31
2-32
2-33
2-34
2-35
2-36
2-37
2-38
2-39
2-40
2-41
2-42
2-43
2-44
2-45
2-46
2-47
2-48
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Memory Area Designations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-1 Word/Bit Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-2 Data Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Volume Labels and File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA FILL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MULTIPLE MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA PROTECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA PROTECT CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONNECTION DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CYCLE TIME READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MESSAGE READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MESSAGE CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FAL/FALS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ACCESS RIGHT ACQUIRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ACCESS RIGHT FORCED ACQUIRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ACCESS RIGHT RELEASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE NAME READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SINGLE FILE READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SINGLE FILE WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY CARD FORMAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
VOLUME LABEL CREATE/DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE COPY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE NAME CHANGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE DATA CHECK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA FILE TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PARAMETER AREA FILE TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA FILE TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET CANCEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Aborting Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
Section 2-1
Command List
2-1
Command List
The beginning portions of the command and response block up to the command
codes and the FCS and terminator have been omitted for simplicity, but must be
added for actual transmission if not automatically generated for the transmission
method being used. Refer to 1-3 Command/Response Transmission Data.
In the illustrations of command and response blocks in this section, each box
represents one byte (i.e., two hexadecimal or BCD digits). Be careful when adding the header, where each box represents one digit (i.e., four bits).
The following table lists the FINS commands supported by CV-series PCs and
the PC operating modes during which they are enabled.
Command
Name
code
01
02
03
04
05
06
07
09
0C
21
14
PC mode
RUN
MONITOR
DEBUG
Page
PROGRAM
01
MEMORY AREA READ
Valid
Valid
Valid
Valid
19
02
MEMORY AREA WRITE
Valid
Valid
Valid
Valid
20
03
MEMORY AREA FILL
Valid
Valid
Valid
Valid
21
04
MULTIPLE MEMORY AREA READ
Valid
Valid
Valid
Valid
21
05
MEMORY AREA TRANSFER
Valid
Valid
Valid
Valid
22
01
PARAMETER AREA READ
Valid
Valid
Valid
Valid
23
02
PARAMETER AREA WRITE
Valid
Valid
Valid
Valid
24
03
PARAMETER AREA CLEAR
Valid
Valid
Valid
Valid
26
04
PROGRAM AREA PROTECT
Valid
Valid
Valid
Valid
27
05
PROGRAM AREA PROTECT CLEAR
Valid
Valid
Valid
Valid
28
06
PROGRAM AREA READ
Valid
Valid
Valid
Valid
28
07
PROGRAM AREA WRITE
Not valid
Valid
Valid
Valid
29
08
PROGRAM AREA CLEAR
Not valid
Not valid
Not valid
Valid
30
01
RUN
Valid
Valid
Valid
Valid
30
02
STOP
Valid
Valid
Valid
Valid
31
01
CONTROLLER DATA READ
Valid
Valid
Valid
Valid
31
02
CONNECTION DATA READ
Valid
Valid
Valid
Valid
33
01
CONTROLLER STATUS READ
Valid
Valid
Valid
Valid
33
20
CYCLE TIME READ
Valid
Valid
Not valid
Not valid
35
01
CLOCK READ
Valid
Valid
Valid
Valid
36
02
CLOCK WRITE
Valid
Valid
Valid
Valid
36
20
MESSAGE READ
Valid
Valid
Valid
Valid
37
MESSAGE CLEAR
Valid
Valid
Valid
Valid
38
FAL/FALS READ
Valid
Valid
Valid
Valid
39
01
ACCESS RIGHT ACQUIRE
Valid
Valid
Valid
Valid
40
02
ACCESS RIGHT FORCED ACQUIRE
Valid
Valid
Valid
Valid
40
03
ACCESS RIGHT RELEASE
Valid
Valid
Valid
Valid
41
01
ERROR CLEAR
Valid
Valid
Valid
Valid
42
02
ERROR LOG READ
Valid
Valid
Valid
Valid
43
03
ERROR LOG CLEAR
Valid
Valid
Valid
Valid
44
Section 2-2
Memory Area Designations
Command
code
22
23
Name
PC mode
MONITOR
DEBUG
RUN
Page
PROGRAM
01
FILE NAME READ
Valid
Valid
Valid
Valid
44
02
SINGLE FILE READ
Valid
Valid
Valid
Valid
46
03
SINGLE FILE WRITE
Valid
Valid
Valid
Valid
46
04
MEMORY CARD FORMAT
Valid
Valid
Valid
Valid
47
05
FILE DELETE
Valid
Valid
Valid
Valid
47
06
VOLUME LABEL CREATE/DELETE
Valid
Valid
Valid
Valid
48
07
FILE COPY
Valid
Valid
Valid
Valid
48
08
FILE NAME CHANGE
Valid
Valid
Valid
Valid
49
09
FILE DATA CHECK
Valid
Valid
Valid
Valid
49
0A
MEMORY AREA FILE TRANSFER
Valid
Valid
Valid
Valid
50
0B
PARAMETER AREA FILE TRANSFER
Valid
Valid
Valid
Valid
51
0C
PROGRAM AREA FILE TRANSFER
(see note)
Valid
Valid
Valid
53
01
FORCED SET/RESET
Not valid
Valid
Valid
Valid
54
02
FORCED SET/RESET CANCEL
Not valid
Valid
Valid
Valid
55
Note When the PC is in RUN mode, data transfers from files to the program area are
not possible, but transfers from the program area to files are possible.
2-2
Memory Area Designations
The following table gives the addresses to use when reading or writing PC data.
The Data area address column gives the normal addresses used in the PC program. The Address used in communications column are the addresses used in
CV-mode commands and responses. These addresses are combined with the
memory area codes to specify PC memory locations. These addresses are not
the same as the actual memory addresses of the data.
The No. of bytes column specifies the number of bytes to read or write data for
that area. The number of bytes varies for the same area depending on the
memory area code.
CV500 or CVM1-CPU01-E
Memory area
CIO, TR, CPU
Bus Link, and
Auxiliary Areas
Data
Bit status
Memory
area code
No. of
bytes
000000 to 25515
TR0 to TR7
G00000 to G25515
A00000 to A51115
000000 to 25515
G00000 to G25515
000000 to 09FB0F
09FF00 to 09FF07
0A0000 to 0AFF0F
0B0000 to 0CFF0F
000000 to 09FB0F
0A0000 to 0AFF0F
00
1
40
1
0000 to 2555
2
G000 to G255
A000 to A511
0000 to 2555
G000 to G255
000000 to 09FB00
09FF00
0A0000 to 0AFF00
0B0000 to 0CFF00
000000 to 097B00
0A0000 to 0AFF00
80
Word contents (with
forced status)
CIO
TR
G
A
CIO
G
C0
4
Completion Flag
status
TIM
CNT
T0000 to T1023
C0000 to C1023
000000 to 03DF00
080000 to 0BDF00
01
1
Completion Flag
status (with forced
status)
TIM
CNT
T0000 to T1023
C0000 to C1023
000000 to 03DF00
080000 to 0BDF00
41
1
PV
TIM
CNT
T0000 to T1023
C0000 to C1023
000000 to 01FF00
080000 to 09FF00
81
2
Word contents
DM
D00000 to D24575
000000 to 1FFF00
82
2
Word contents
DM Area
Address used in
communications
CIO
TR
G
A
CIO
G
Bit status (with forced
status)
Timer Area/
Counter Area
Data area address
15
Section 2-2
Memory Area Designations
Memory area
Data
Data area address
Address used in
communications
Memory
area code
No. of
bytes
Transition Area
(CV 00 only)
l )
(CV500
Flag status
Flag status (with
forced status)
TN
TN
TN0000 to TN1023
TN0000 to TN1023
000000 to 03FF00
000000 to 03FF00
03
43
1
1
Step Area
(CV 00 only)
(CV500
l )
Flag status
Status
Step timer PV
ST
ST
ST
ST0000 to ST1023
ST0000 to ST1023
ST0000 to ST1023
000000 to 03FF00
000000 to 03FF00
000000 to 03FF00
04
44
84
1
1
2
Forced Status
Bit status
CIO
G
000000 to 25515
G00000 to G25515
000000 to 09FB0F
0A0000 to 0AFF0F
05
1
Word contents
CIO
G
0000 to 2555
G000 to G255
000000 to 09FB00
0A0000 to 0AFF00
85
2
Action Area
(CV500 only)
Flag status
AC
AC0000 to AC2047
000000 to 07FF00
1B
1
Register Area
Register contents
IR
DR
IR0 to IR2
DR0 to DR2
000000 to 000200
000300 to 000500
9C
2
Interrupt area
Scheduled interrupt interval
Not applicable
000200
DD
4
CV1000, CV2000, or CVM1-CPU11-E
Memory area
CIO, TR, CPU
Bus Link, and
Auxiliary Areas
Data
Bit status
Data area address
Address used in
communications
Memory
area code
No. of
bytes
CIO
TR
G
A
CIO
G
000000 to 255515
TR0 to TR7
G00000 to G25515
A00000 to A51115
000000 to 255515
G00000 to G25515
000000 to 09FB0F
09FF00 to 09FF07
0A0000 to 0AFF0F
0B0000 to 0CFF0F
000000 to 09FB0F
0A0000 to 0AFF0F
00
1
40
1
0000 to 2555
2
G000 to G255
A000 to A511
0000 to 2555
G000 to G255
000000 to 09FB00
09FF00
0A0000 to 0AFF00
0B0000 to 0CFF00
000000 to 09FB00
0A0000 to 0AFF00
80
Word contents (with
forced status)
CIO
TR
G
A
CIO
G
C0
4
Completion Flag
status
TIM
CNT
T0000 to T1023
C0000 to C1023
000000 to 03FF00
080000 to 0BFF00
01
1
Completion Flag
status (with forced
status)
TIM
CNT
T0000 to T1023
C0000 to C1023
000000 to 03FF00
080000 to 0BFF00
41
1
PV
TIM
CNT
T0000 to T1023
C0000 to C1023
000000 to 03FF00
080000 to 0BFF00
81
2
DM Area
Transition Area
(CV1000 or
CV2000 only)
Word contents
DM
D00000 to D24575
000000 to 5FFF00
82
2
Flag status
Flag status (with
forced status)
TN
TN
TN0000 to TN1023
TN0000 to TN0511
000000 to 03FF00
000000 to 03DF00
03
43
1
1
Step Area
(CV1000 or
CV2000 only)
Flag status
Status
Step timer PV
Bit status
ST
ST
ST
CIO
G
ST0000 to ST1023
ST0000 to ST1023
ST0000 to ST1023
000000 to 255515
G00000 to G25515
000000 to 03FF00
000000 to 03FF00
000000 to 03FF00
000000 to 09FB0F
0A0000 to 0AFF0F
04
44
84
05
1
1
2
1
Word contents
CIO
G
0000 to 2555
G000 to G255
000000 to 09FB00
0A0000 to 0AFF00
85
2
Word contents
Banks
0 to 7
E00000 to E32765
to
E00000 to E32765
000000 to 7FFD00
to
000000 to 7FFD00
90 to 97
2
Current
bank
E00000 to E32765
000000 to 7FFD00
98
2
Bit status (with forced
status)
Word contents
Timer Area/
Counter Area
Forced Status
Expansion DM
Area
((CV1000 or
CV2000 only)
l )
16
Section 2-2
Memory Area Designations
Memory area
Data
Data area address
Address used in
communications
Memory
area code
No. of
bytes
Action Area
(CV1000 or
CV2000 only)
Flag status
AC
AC0000 to AC2047
000000 to 1FFF00
1B
1
Register Area
Register contents
IR
DR
IR0 to IR2
DR0 to DR2
000000 to 000200
000300 to 000500
9C
2
Expansion DM current bank no.
(CV1000 or CV2000 only)
Not applicable
000600
Scheduled interrupt interval
Not applicable
000200
Interrupt area
2
DD
4
2-2-1 Word/Bit Addresses
Each word/bit address specifies a specific bit or word. The rightmost two digits of
the address specify bit 00 to 15 (or 00 if not required), and leftmost four digits
specify the word address.
Specify the the bit between 00 and 0F (00 to 15).
Set to 00 to specify channel or flag data.
Specify the address of the word or flag.
To obtain the corresponding address of the desired word or bit, add the data area
word address (hexadecimal) to the first address of the range of addresses used
for that data area in communications. For example, the address for word G134 is
computed as follows:
First address for CPU Bus Link Area;
0A00 + 86 (134 in BCD);
0A00
0A86
The word address for G134 would thus be 0A8600 (the memory area code
would specify this as a word) and the address of bit 12 in C134 would be
0A860C.
2-2-2 Data Configuration
The configuration of the various types of data that can be read or written is
shown below. The number of bytes required for each type of data is also given.
Flag or Bit Status (One Byte) 00: Bit is OFF (0)
01: Bit is ON (1)
Flag or Bit Status with
Forced Status (One Byte)
00: Bit is OFF (0) but not forced.
01: Bit is ON (1) but not forced.
02: Bit has been forced OFF (0).
03: Bit has been forced ON (1).
Word Contents or PV (Two Bytes)
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
17
Section 2-3
Volume Labels and File Names
Word Contents or PV with Forced Status (Four Bytes)
Contents of bits 0 to 7 (fourth byte)
Contents of bits 8 to 15 (third byte)
Forced/not forced designation for bits 0 to 7;
ON = forced (second byte)
Forced/not forced designation for bits 8 to 15;
ON = forced (first byte)
Step Status (One Byte)
00: INACTIVE
01: HALT
02: PAUSE
03: EXECUTE
Current Bank No. of Expansion DM (Two Bytes)
Bits 0 to 7 (second byte)
Bits 15 OFF (0): No expansion DM
Bits 15 ON (1): Expansion DM
Bits 0 to 14: Current bank no. (Bits 0 to 14 are
valid only when expansion DM is
available.)
Bits 8 to 15 (first byte)
Scheduled Interrupt Interval
Bits 0 to 15:
Third and fourth bytes.
(Interval for scheduled interrupt 1)
Bits 16 to 31: First and second bytes.
(Interval for scheduled interrupt 0)
2-3
Volume Labels and File Names
Each volume label or file name consists of 12 bytes as follows:
2E
Volume Label/File Name
Extension
Period
Volume Label/File Name
Each volume label or file name must have eight ASCII characters with or without
spaces (ASCII 20). If less than eight letters are used, add spaces to the end of
the label/name.
Extension
An extension can be added to each volume label/file name so that the files can
be classified. Each extension must have three ASCII characters with or without
spaces. If less than three letters are used, add spaces to the end of the extension.
Period
Add a period (ASCII 2E) between the volume label/file name and extension.
18
Section 2-4
MEMORY AREA READ
2-4
MEMORY AREA READ
Reads the contents of the specified number of consecutive memory area words
starting from the specified word. All words must be in the same memory area
(here, all memory areas with the same memory area code are considered as one
area).
Command Block
01
01
Command
Beginning address No. of items
code
Memory area code
Response Block
01
01
Command
code
Parameters
Response
code
Data
Memory area code (command): The data area to read.
Beginning address (command): The address of the first word/bit/flag to read
from memory.
No. of items (command): The number of items to be read.
Data (response): The data from the specified words is returned in sequence
starting from the beginning address. The required number of bytes in total is calculated as follows:
No. of bytes required by each item x No. of items
Memory Areas
The following data can be read (refer to 2-2 Memory Area Designations for PC
word/bit address designations):
Memory area
Memory area
code
No. of
bytes
Bit status
00
1
Word contents
80
2
Completion Flag status
01
1
PV
81
2
DM
Word contents
82
2
Transition
Flag status
03
1
Step
Flag status
04
1
Forced status
Bit status
05
1
Word contents
85
2
Word contents, specified bank
90 to 97
(banks 0 to 7)
2
Word contents, current bank
98
2
Flag status
1B
1
CIO, TR, CPU Bus
Link, and Auxiliary
Timer/Counter
Expansion DM
Action
Data
19
Section 2-5
MEMORY AREA WRITE
2-5
MEMORY AREA WRITE
Writes data to the specified number of consecutive words starting from the specified word. All words must be in the same memory area (here, all memory areas
with the same memory area code are considered as one area).
Note
1. The MEMORY AREA WRITE command can be executed regardless of the
PC’s operating mode. It is the user’s responsibility to program steps to prohibit this command from being executed when the PC is in RUN mode if such
protection is necessary. Execute the CONTROLLER STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s mode.
2. When data is written to the Timer/Counter PV Area, the Completion Flags
will be turned OFF (0).
Command Block
01
02
Command
Beginning address No. of items
code
Memory area code
Data
Response Block
01
02
Command
code
Parameters
Response
code
Memory area code (command): The data area to write.
Beginning address (command): The first word/value to write.
No. of items (command): The number of items to be written. Set the number of
items to 0001 when writing a step timer PV, register value, or interrupt status.
Data (command): The data to be written. The required number of bytes in total
is calculated as follows:
No. of bytes required by each item x No. of items
The following data can be written (refer to 2-2 Memory Area Designations for the
word/bit address designations):
Memory area
Data
Memory area
code
No. of
bytes
CIO, TR, CPU Bus
Link, and Auxiliary
Word contents
80
2
Timer/Counter
PV
81
2
DM
Word contents
82
2
Step
Step timer PV
84
2
Expansion DM
Word contents, specified bank
90 to 97
(banks 0 to 7)
2
Word contents, current bank
98
2
Register contents
9C
2
DD
4
Register
Current bank no. of expansion DM
Interrupt status
20
Scheduled interrupt interval
Section 2-7
MULTIPLE MEMORY AREA READ
2-6
MEMORY AREA FILL
Writes the same data to the specified number of consecutive memory area
words. All words must be in the same memory area (here, all memory areas with
the same memory area code are considered as one area).
Note
1. The MEMORY AREA FILL command can be executed regardless of the
PC’s mode. It is the user’s responsibility to program steps to prohibit this
command from being executed when the PC is in the RUN mode if such protection is necessary. Execute the CONTROLLER STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s mode.
2. When data is written in the Timer/Counter PV Area, the Completion Flag will
be turned OFF (0).
Command Block
01
03
Command
Beginning address No. of items
code
Memory area code
Data
Response Block
01
03
Command
code
Parameters
Response
code
Memory area code (command): The data area to write.
Beginning address (command): The first word/values to write.
No. of items (command): The number of items to write.
Data (command): The data to be written to the memory area starting from the
Beginning address. The data to be written should consist of two bytes.
The following data can be written (refer to 2-2 Memory Area Designations for
memory area designations):
Memory area
2-7
Data
Memory area
code
No. of
bytes
CIO, TR, CPU Bus
Link, and Auxiliary
Word contents
80
2
Timer/Counter
PV
81
2
DM
Word contents
82
2
Expansion DM
Word contents, specified bank
90 to 97
(banks 0 to 7)
2
Current bank
98
2
MULTIPLE MEMORY AREA READ
Reads the contents of the specified number of non-consecutive memory area
words, starting from the specified word.
Note If there is an error in the command code or a beginning address, no data will be
read.
21
Section 2-8
MEMORY AREA TRANSFER
Command Block
01
04
Command
Beginning address
code
Memory area code
Beginning address
Memory area code
Response Block
01
04
Command
code
Parameters
Response
Data
code
Memory area code
Data
Memory area code
Memory area code (command): The data area to read.
Beginning address (command): The first word/bit/flag to read.
Data (response): The data in the specified memory area(s) will be returned in
sequence starting from the beginning address.
Memory Areas
The following data can be written (refer to 2-2 Memory Area Designations for
memory area designations):
Memory area
CIO, TR, CPU Bus
Link, and Auxiliary
Timer/Counter
Data
Memory area
code
No. of
bytes
Bit status
00
1
Bit status (with forced status)
40
1
Word contents
80
2
Word contents (with forced status)
C0
4
Completion Flag status
01
1
Completion Flag status (with forced
status)
41
1
PV
81
2
DM
Word contents
82
2
Transition
Flag status
03
1
Flag status (with forced status)
43
1
Flag status
04
1
Status
44
1
Step Timer PV
84
2
Bit status
05
1
Word contents
85
2
Word contents, specified bank
90 to 97
(banks 0 to 7)
2
Step
Forced Status
Expansion DM
Word contents, current bank
98
2
Action
Flag status
1B
1
Register
Register contents
9C
2
DD
4
Expansion DM current bank no.
Interrupt status
2-8
Scheduled interrupt interval
MEMORY AREA TRANSFER
Copies and transfers the contents of the specified number of consecutive
memory area words to the specified memory area. All source words must be in
22
Section 2-9
PARAMETER AREA READ
the same area and all designation words must be written to the same area (here,
all memory areas with the same memory area code are considered as one area).
Note
1. The MEMORY AREA TRANSFER command can be executed regardless of
the PC’s mode. It is the user’s responsibility to program steps to prohibit this
command from being executed when the PC is in the RUN mode if such protection is necessary. Execute the CONTROLLER STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s mode.
2. When data is written to the Timer/Counter PV Area, the Completion Flags
will be turned OFF (0).
Command Block
01
05
Command
code
Beginning address
Memory area code
Beginning address No. of items
Memory area code
Source
Destination
Response Block
01
05
Command
code
Parameters
Response
code
Memory area code (command): The data area to transfer from and the data
area to transfer to.
Beginning address (command): The first word/value to transfer from and the
first word to transfer to.
No. of items (command): The number of items to transfer (each item consists
of two bytes).
The following data can be transferred (refer to 2-2 Memory Area Designations
for memory area designations):
Memory area
2-9
Data
Memory area
code
No. of
bytes
CIO, TR, CPU Bus
Link, and Auxiliary
Word contents
80
2
Timer/Counter
PV
81
2
DM
Word contents
82
2
Expansion DM
Word contents, specified bank
90 to 97
(banks 0 to 7)
2
Word contents, current bank
98
2
PARAMETER AREA READ
Reads the contents of the specified number of consecutive parameter area
words starting from the specified word. All words in the specified parameter area
must be read at the same time to ensure complete data. A maximum of 266
words can be read with each command. To read larger parameter areas, use
multiple commands and specify the beginning word and number of words for
each.
23
Section 2-10
PARAMETER AREA WRITE
Command Block
02
01
Command
code
Parameter
area code
Beginning No. of words
word
Response Block
02
01
Command
code
Parameters
Response
code
Parameter
area code
Beginning No. of words
word
Data
Parameter area code (command and response): The parameter area to read.
Beginning word (command and response): The first word to read.
No. of words (command and response): Bits 0 to 14 are used to specify the
number of words to be read (each word consists of two bytes). Bit 15 must be
OFF (0) in the command block. When the contents in the response block contains the last word of data in the specified parameter area, bit 15 will be ON (1).
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of words read
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Data (response): The data in the specified parameter area will be returned in
sequence starting from the beginning word. The leftmost bits (bits 8 to 15) of
each word are read first, followed by the rightmost bits (bits 0 to 7). The required
number of bytes in total for each read is calculated as follows:
No. of words x 2 (each word consists of two bytes)
Parameter Areas
There are five parameter areas, each of which has consecutive word addresses
beginning from 0000. The following data can be read. The word ranges in parentheses show the possible values for the beginning word.
PC Setup
80 10
(0000 to 00FF)
Peripheral Device settings
80 11
(0000 to 00BF)
I/O table
80 12
(0000 to 03FF)
Routing tables*
80 13
(0000 to 01FF)
CPU Bus Unit
settings
Unit No. 0
.
.
.
80 00
(0000 to 0FFF)
80 01
(0000 to 06BF)
80 02
(0000 to 083F)
Unit No. 15
Note *Although the routing tables have a 512-word area (0000 to 01FF), only a
48-word area (0000 to 002F) of it can be read.
2-10 PARAMETER AREA WRITE
Writes data to the specified number of consecutive parameter area words starting from the specified word. All words in the specified parameter area must be
24
Section 2-10
PARAMETER AREA WRITE
written at the same time to ensure complete data. A maximum of 266 words can
be written with each command. To write larger parameter areas, use multiple
commands and specify the beginning word for each.
Data can be written to the I/O table only when the PC is in PROGRAM mode.
Note
1. The PARAMETER AREA WRITE command can be executed regardless of
the PC’s mode. It is the user’s responsibility to program steps to prohibit this
command from being executed when the PC is in the RUN mode if such protection is necessary. Execute the CONTROLLER STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s mode.
2. If any other device has the access right, nothing will be written to the specified parameter area.
3. If memory is write-protected via the key switch on the front panel of the PC,
nothing will be written to the specified parameter area.
Command Block
02
02
Command Parameter
code
area code
Beginning No. of words
word
Data
Response Block
02
02
Command
code
Parameters
Response
code
Parameter area code (command): The parameter area to write.
Beginning word (command): The first word to write.
No. of words (command): Bits 0 to 14 are used to specify the number of words
to be written (each word consists of two bytes). Bit 15 must be ON (1) when data
is written to the last word in the specified parameter area or no data will be written. If the number of write words is set to 0000, no words will be written and a
normal response code will be returned.
Bit 15 OFF (0): Without last word data to be written.
Bit 15 ON (1): With last word data to be written.
Bits 0 to 14: No. of words to be written
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Data (command): The data to be written. The leftmost bits (bits 15 to 8) of each
word must be specified first, followed by the rightmost bits (bits 7 to 0). The required number of bytes in total for each write can be calculated as follows:
No. of words x 2 (each word consists of two bytes)
25
Section 2-11
PARAMETER AREA CLEAR
Parameter Areas
There are five parameter areas, each of which has consecutive word addresses
beginning from 0000. The following data can be read. The word ranges in parentheses show the possible values for the beginning word.
PC Setup
80 10
(0000 to 00FF)
Peripheral Device settings
80 11
(0000 to 00BF)
I/O table
80 12
(0000 to 03FF)
Routing tables*
80 13
(0000 to 01FF)
CPU Bus Unit
settings
80 00
(0000 to 0FFF)
80 01
(0000 to 06BF)
80 02
(0000 to 083F)
Unit No. 0
.
.
.
Unit No. 15
Note *Only a 48-word area (0000 to 002F) of the routing tables is available. The data
must be written to the 48-word area in sequence beginning from 0000 or an error
will result as the PC automatically does a format check in order to prevent routing
errors.
2-11 PARAMETER AREA CLEAR
Writes all zeros to the specified number of consecutive parameter area words to
clear the previous data. The I/O table can be cleared only when the PC is in
PROGRAM mode.
Always clear the entire range of the specified parameter area.
Note
1. The PARAMETER AREA CLEAR command can be executed regardless of
the PC’s mode. It is the user’s responsibility to program steps to prohibit this
command from being executed when the PC is in the RUN mode if such protection is necessary. Execute the CONTROLLER STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s mode.
2. If any other device holds the access right, nothing can be written to the specified parameter area.
3. If memory is write-protected via the key switch on the front panel of the PC,
nothing can be written to the specified parameter area.
Command Block
02
03
Command
code
00
Parameter
area code
00
Beginning
word
00
No. of
words
00
Data
Response Block
02
03
Command
code
Parameters
26
Response
code
Parameter area code (command): The parameter area to clear.
Beginning word (command): Fixed at 0000.
Section 2-12
PROGRAM AREA PROTECT
No. of words (command): The number of words to clear (see diagram below).
Data (command): Set to 0000. The number of word addresses where the data
(0000) should be written is specified by the number of words in the command
block.
Parameters Areas
The available parameter areas and the number of words in each are as shown
below. The number of words in the parentheses is specified as the number of
words to clear.
PC Setup
80 10
(0100)
Peripheral Device settings
80 11
(00C0)
I/O table
80 12
(0400)
Routing tables
80 13
(0200)
CPU Bus Unit
settings
80 00
(1000)
80 01
(06C0)
80 02
(0840)
Unit No. 0
.
.
.
Unit No. 15
2-12 PROGRAM AREA PROTECT
Protects the program by removing all read/write access rights.
Note
1. The program cannot be protected if any other device holds the access right.
2. If memory is write-protected via the key switch on the front panel of the PC,
the PROGRAM AREA PROTECT command will not be effective.
Command Block
03
04
Command
code
00
00
00
00
00
00
Program
Beginning word
no.
Protect code
00
FF
FF
FF
Last word
FF
Password
Response Block
03
04
Command
code
Parameters
Response
code
The command will be executed normally even if the beginning word and last
word are set to values other than those shown below.
Program no. (command): Set to 0000.
Protect code (command): Set to 00.
Beginning word (command): Set to 00000000
Last word (command): Set to FFFFFFFF
Password (command): Set any four ASCII characters. The password is used
with the PROGRAM AREA PROTECT CLEAR command (refer to 2-13 PROGRAM AREA PROTECT CLEAR).
27
Section 2-14
PROGRAM AREA READ
2-13 PROGRAM AREA PROTECT CLEAR
Restores write and read access rights so that data can be written to and read
from the program area.
Note
1. Protection cannot be cleared if any other device holds the access right.
2. If memory is write-protected via the key switch on the front panel of the PC,
the PROGRAM AREA PROTECT CLEAR command is not effective.
3. If you forget the password, you will not be able to clear program protection
without using PROGRAM AREA CLEAR to delete the entire program area.
Executing PROGRAM AREA CLEAR will release program protection.
Command Block
03
05
00
Command
code
00
00
00
00
00
00
Program
Beginning word
no.
Protect code
FF
FF
FF
FF
Last word
Password
Response Block
03
05
Command
code
Parameters
Response
code
The command will be executed normally even if the beginning word and last
word are set to values other than those shown below.
Program no. (command): Set to 0000.
Protect code (command): Set to 00.
Beginning word (command): Set to 00000000
Last word (command): Set to FFFFFFFF
Password (command): The password that was set in the PROGRAM AREA
PROTECT command.
2-14 PROGRAM AREA READ
Reads the contents of the specified number of consecutive program area words
starting from the specified word. A maximum of 530 bytes can be read with each
command. To read larger amounts of data, use multiple commands and specify
the beginning word and number of words for each.
Command Block
03
06
Command
code
00
00
Program
no.
Beginning word
No. of
bytes
Response Block
03
06
Command
code
28
00
Response
code
00
Program
no.
Beginning word
No. of
bytes
Data
Section 2-15
PROGRAM AREA WRITE
Parameters
Program no. (command and response): Set to 0000.
Beginning word (command and response): Set between 00000E00 and
0000FFFE for the CV500 or CVM1 and between 00000E00 and 0001FFFE for
the CV1000 or CV2000. The beginning word must be an even number.
No. of bytes (command and response): The number of bytes in an even number (530 or smaller). Bit 15 must be OFF (0) in the command block. Bit 15 will be
ON (1) in the response block when the last word data of the program area is returned.
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes read
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Data (response): The data in the specified program area will be returned in sequence starting from the beginning word.
2-15 PROGRAM AREA WRITE
Writes data to the specified number of consecutive program area words starting
from the specified word. A maximum of 532 bytes can be written with each command. To write larger amounts of data, use multiple commands and specify the
beginning word and number of words for each.
Note
1. If memory is write-protected via the key switch on the PC’s front panel or by
the PROGRAM AREA PROTECT command (refer to 2-12 PROGRAM
AREA PROTECT), nothing will be written to the program area.
2. The PROGRAM AREA WRITE command can be executed as long as the
PC is not in RUN mode. It is the user’s responsibility to program steps to prohibit this command from being executed when the PC is in MONITOR or DEBUG mode if such protection is necessary. Execute the CONTROLLER
STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to
read the PC’s mode.
Command Block
03
07
Command
code
00
00
Program
no.
Beginning word
No. of
bytes
Data
Response Block
03
07
Command
code
Parameters
00
Response
code
00
Program
no.
Beginning word
No. of
bytes
Program no. (command and response): Set to 0000.
Beginning word (command and response): Set between 00000E00 and
0000FFFE for the CV500 or CVM1 and between 00000E00 and 0001FFFE for
the CV1000 or CV2000. The beginning word must be an even number.
29
Section 2-17
RUN
No. of bytes (command and response): The number of bytes in an even number (530 or smaller). Bit 15 must be ON (1) when data is written to the last word in
the specified parameter area or no data will be written.
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes written
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Data (command): The data to be written.
2-16 PROGRAM AREA CLEAR
Clears the contents of the program area.
Note
1. If memory is write-protected via the key switch on the front panel of the PC,
the PROGRAM AREA CLEAR command is not effective.
2. The PROGRAM AREA CLEAR command will clear the program area even if
memory is write-protected by the PROGRAM AREA PROTECT command
(refer to 2-12 PROGRAM AREA PROTECT). Executing PROGRAM AREA
CLEAR will release program protection.
3. If any other device holds the access right, the PROGRAM AREA CLEAR
command is not effective.
Command Block
03
08
Command
code
00
00
Program
no.
00
Clear code
Response Block
03
08
Command
code
Parameters
Response
code
Program no. (command): Set to 0000.
Clear code (command): Set to 00.
2-17 RUN
Changes the PC to DEBUG, MONITOR, or RUN mode, enabling the PC to execute its program.
Note If any other device holds the access right, the PC mode will not be changed.
Command Block
04
01
Command
code
00
00
Program
no.
Response Block
04
01
Command
code
30
Response
code
Mode
Section 2-19
CONTROLLER DATA READ
Parameters
Program no. (command): Set to 0000.
Mode (command): As follows:
0001: DEBUG mode
0002:
MONITOR mode
0004:
RUN mode
Note If the mode is not specified, the PC will go to MONITOR mode.
2-18 STOP
Changes the PC to PROGRAM mode, stopping program execution.
Note If any other device holds the access right, nothing will be executed.
Command Block
04
02
Command
code
Response Block
04
02
Command
code
Response
code
2-19 CONTROLLER DATA READ
Reads the following data:
• Controller model and version
• Area data
• CPU Bus Unit configuration
• Remote I/O data
• PC status
Command Block
05
01
Command
code
Response Block
Data
The format is as follows if 00 is specified as the data to be read:
05
01
Command
code
Response
code
20 bytes
20 bytes
40 bytes
12 bytes
Controller
model
Controller
version
For system
use
Area data
The format is as follows if 01 is specified as the data to be read:
05
64 bytes
01
Command
code
Response
code
CPU Bus Unit
configuration
PC status
Remote I/O data
31
Section 2-19
CONTROLLER DATA READ
The format is as follows when the data to be read is omitted.
05
01
Command
code
Response
code
20 bytes
20 bytes
40 bytes
12 bytes
64 bytes
Controller
model
Controller
version
For system
use
Area data
CPU Bus Unit
configuration
PC status
Remote I/O data
Parameters
Data (command): Specify as follows to read the desired data:
Value
00
Data to be read
01
Controller model
Controller version
Area data
CPU Bus Unit configuration
Remote I/O data
PC status
Note If no data is specified, all data will be read consecutively
Controller model and Controller version (response): Both are read in ASCII
codes (20 bytes (i.e. 20 ASCII characters) max. each)
For system use (response): Reserved for system use.
Area data (response): As follows:
1st byte
12th byte
Program
area size
No. of DM words
IOM size
Item
No. of steps/
Memory card
transitions
size
Timer/counter Expansion
Kind of memory card
size
DM size
Meaning
Unit
Program area size
The size of PC Setup and program area
K words (1K words = 1,024 words)
IOM size
The size of the area in which bit/word commands
can be used.
K bytes (1K bytes = 1,024 bytes)
No. of DM words
Total words in the DM area
K words
Timer/counter size
Maximum no. of timers/counters available
Timers/Counters
Expansion DM size
Banks in the expansion DM area
Banks (1 bank = 32,766 words)
No. of steps/transitions
Maximum no. of steps/transitions available
Steps/transitions
Kind of memory card
00: No memory card
01: SPRAM
02: EPROM
03: EEPROM
Size of the memory card
---
Memory card size
K byte (1 word = 2 bytes)
CPU Bus Unit configuration (response): Each CPU Bus Unit has a code assigned to it consisting of two ASCII characters (two bytes). These codes are given in the numerical order according to the unit number of the CPU Bus Units (unit
0 to 15).
1st byte
32nd byte
64th byte
20
No. 0
32
No. 1
No. 15
20
20
All set to 20 (32 bytes)
20
Section 2-21
CONTROLLER STATUS READ
Remote I/O data (response): The number of remote I/O systems (SYSMAC
BUS and SYSMAC BUS/2) is returned in two bytes as follows:
No. of SYSMAC BUS Masters mounted (second byte)
No. of SYSMAC BUS/2 Masters mounted (first byte)
PC status (response): The following single byte (8 bits) is returned:
Bit
7
6
5
4
1
0
0
3
2
1
0
No. of Racks connected to the PC (0 to F, 0 to 15 racks)
With built-in host interface (Always 1)
Peripheral Device connected (0: no; 1: yes)
2-20 CONNECTION DATA READ
Reads the model number of the specified Units.
Command Block
05
02
Command
code
Unit address
No. of Units
Response Block
05
20 bytes
02
Command
code
Response
code
Model number
Unit address
No. of Units
Parameters
20 bytes
Model number
Unit address
Data
Unit address (command and response): The unit address of the first Unit
whose model number is to be read. If the specified Unit does not exist, the CONTROLLER DATA READ command is executed from the next Unit. Specify the
following for the unit address.
CPU: 00
CPU Bus Unit: 1016 + unit number in hexadecimal
No. of Data Units (command): The number of data units for which the model
number is to be read. A number between 01 and 19 (hexadecimal) can be specified. If the number of data units is not specified, 19 (25 data units) will be used.
No. of Units (response): The number of Units for which a model number is being returned. If bit 7 is ON (1), the model number of the last Unit is being returned.
Unit address and model number (response): The unit address and model
number. The model number is provided in up to 20 ASCII characters.
2-21 CONTROLLER STATUS READ
Reads the status of the Controller.
Note To read the error log, read the appropriate Auxiliary Area words or execute the
ERROR LOG READ command (refer to 2-32 ERROR LOG READ).
33
Section 2-21
CONTROLLER STATUS READ
Command Block
06
01
Command
code
Response Block
06
16 bytes
01
Command
code
Response
code
Fatal error
data
Non-fatal
error data
Message
Yes/no
FAL/
FALS no.
Error
message
Status Mode
Parameters
Status (response): The operating status of the PC as follows:
00: Stop (program not being executed)
01: Run (program being executed)
80: CPU on standby (the start switch is OFF or the CPU is waiting for a signal
from a device such as a SYSMAC BUS/2 Remote I/O Slave Unit).
Mode (response): One of the following PC modes:
00: PROGRAM
01: DEBUG
02: MONITOR
04: RUN
Fatal error data (response): The contents of PC fatal error information (for details refer to the CV-series PC Operation Manual: Ladder Diagrams):
First byte
Bit
15
14
13
12
11
Second byte
10
9
8
7
6
5
4
3
2
1
0
0
0
0
0
1: FALS error
1: Fatal SFC error
1: Cycle time over
1: Program error
1: I/O setting error
1: I/O point overflow
1: CPU bus error
1: Duplication error
1: I/O bus error
1: Memory error
34
0
1: Watch dog timer error
Section 2-22
CYCLE TIME READ
Non-fatal error data (response): The contents of PC non-fatal error information (for details refer to the CV-series PC Operation Manual: Ladder Diagrams):
First byte
Bit
15
14
13
12
11
0
Second byte
10
9
0
8
7
6
5
4
3
0
2
1
0
0
0
1: Momentary power interruption
1: CPU Bus Unit setting error
1: Battery error
1: SYSMAC BUS error
1: SYSMAC BUS/2 error
1: CPU Bus Unit error
1: I/O verification error
1: Non-fatal SFC error
1: Indirect DM error
1: JMP error
1: FAL error
Message yes/no (response): If MSG(195) has been executed, the bit corresponding to the message number will be ON (1) as shown below. To read the
messages generated by MSG(195), execute the MESSAGE READ command
(refer to 2-25 MESSAGE READ).
First byte
Bit
Second byte
15
8
0
0
7
6
5
4
3
Set to 0
2
1
0
Message no. 0 (0: no/1: Yes)
Message no. 1 (0: no/1: Yes)
Message no. 2 (0: no/1: Yes)
Message no. 3 (0: no/1: yes)
Message no. 4 (0: no/1: yes)
Message no. 5 (0: no/1: yes)
Message no. 6 (0: no/1: yes)
Message no. 7 (0: no/1: yes)
FAL/FALS no. (response): The highest priority FAL or FALS error. The actual
value returned will be 4100 plus the FAL/FALS number; for details refer to the
CV-series PC Operation Manual: Ladder Diagrams). If no FAL or FALS error has
occurred, 0000 will be returned.
Error message (response): The error message of the present FAL/FALS number. If there is no error, 16 spaces (ASCII 20) will be returned.
2-22 CYCLE TIME READ
Initializes the PC’s cycle time history or reads the average, max., and min. cycle
time.
Command Block
06
20
Command
Parameter
code
35
Section 2-24
CLOCK WRITE
Response Block
The response format is as follows when the parameter is 00 (when initializing):
06
20
Command
code
Response
code
The response format is as follows when the parameter is 01 (when reading):
06
20
Command
code
Response
code
Parameters
Average cycle time
Max. cycle time
Min. cycle time
Parameter code (command): As follows:
00: Initializes the cycle time.
01: Reads the average, maximum, and minimum cycle time.
Average cycle time, max. cycle time, min. cycle time (response): Each value is expressed in 8-digit BCD in 0.1-ms increments. For example, if 00 00 06 50
is returned, the cycle time is 65 ms.
The average cycle time is obtained as follows:
Average cycle time = (max. cycle time + min. cycle time)/2
2-23 CLOCK READ
Reads the clock.
Command Block
07
01
Command
code
Response Block
07
01
Command
code
Parameters
Response
code
Year Month Date Hour Minute Second Day
Year, month, date, hour, minute, second, day (response): Each value is expressed in BCD.
Year: The rightmost two digits of the year.
Hour: 00 to 23.
Day: As follows:
Value
Day
00
Sun
01
02
03
04
Mon
Tues
Wed
Thur
05
Fri
06
Sat
2-24 CLOCK WRITE
Sets the clock.
Note
1. The PC automatically checks the range of the specified data. If any portion
of the data is incorrect, the clock will not be set.
2. If any other device holds the access right, the clock will not be set.
36
Section 2-25
MESSAGE READ
Command Block
07
02
Command
Year Month Date Hour Minute Second Day
code
Response Block
07
02
Command
code
Parameters
Response
code
Year, month, date, hour, minute, second, day (command): Each specified
value is expressed in BCD.
Year: The rightmost two digits of the year.
Hour: Specify 00 to 23.
Day: As follows:
Value
Day
Note
00
Sun
01
02
03
04
Mon
Tues
Wed
Thur
05
Fri
06
Sat
1. If the second or day are not specified, 00 will be set as the second and the
previous value will be kept for the day.
2. The PC does not check the day from the date. This means that no error will
occur even if the date and day do not agree.
2-25 MESSAGE READ
Reads messages generated by MSG(195).
Note The MESSAGE READ, MESSAGE CLEAR (refer to 2-26 MESSAGE CLEAR),
and FAL/FALS READ commands (refer to 2-27 FAL/FALS READ) share the
same command code. They are distinguished by bits 14 and 15 of the two-byte
parameter following the command code. To read MSG(195) messages, bits 14
and 15 must be OFF (0).
Command Block
09
20
Command Message no.
code
parameter
Response Block
09
20
Command
code
Parameters
Response Message no.
parameter
code
32 bytes
32 bytes
Message
Message
Message no. parameter (command and response): In the command block,
turn ON (1) the bits of the messages to be read. In the response block, the bits of
the messages being returned will be ON (1). If no bits are turned ON in the com-
37
Section 2-26
MESSAGE CLEAR
mand block, all bits will be OFF (0) in the response block and no further data will
be returned.
First byte
Second byte
15
14
13
8
0
0
0
0
7
6
5
4
3
2
Set to 0
00: Message read
1
0
Message no. 0
Message no. 1
Message no. 2
Message no. 3
Message no. 4
Message no. 5
Message no. 6
Message no. 7
Message (response): Each message is read in the numerical order according
to the message number. Each message consists of 32 ASCII characters (32 bytes). The total number of bytes of the messages is calculated as follows:
The number of messages 32 bytes
If no message has been registered for a message number that has been requested, 32 spaces (ASCII 20) will be returned.
2-26 MESSAGE CLEAR
Clears messages generated with MSG(195).
Note
1. The MESSAGE READ, MESSAGE CLEAR (refer to 2-25 MESSAGE
CLEAR), and FAL/FALS READ commands (refer to 2-27 FAL/FALS READ)
share the same command code. They are distinguished by bits 14 and 15 of
the two-byte parameter following the command code. To clear messages,
bit 14 must be ON (0) and bit 15 must be OFF (0).
2. If any other device holds the access right, messages will not be cleared.
Command Block
09
20
Command Message no.
code
Response Block
09
20
Command
code
38
Response
code
Section 2-27
FAL/FALS READ
Parameters
Message no. (command): Turn ON the bits of the messages to be cleared.
First byte
Bit
Second byte
15
14
13
8
0
1
0
0
7
6
5
4
3
Set to 0
2
1
0
Message no. 0
Message no. 1
Message no. 2
Message no. 3
Message no. 4
Message no. 5
Message no. 6
Message no. 7
01: Message clear
2-27 FAL/FALS READ
Reads FAL/FALS messages.
Note The MESSAGE READ (refer to 2-25 MESSAGE READ), MESSAGE CLEAR
(refer to 2-26 MESSAGE CLEAR), and FAL/FALS READ commands (refer to
2-27 FAL/FALS READ) share the same command code. They are distinguished
by bits 14 and 15 of the two-byte parameter after the command code. To read
FAL/FALS messages, bit 14 must be OFF (0) and bit 15 must be ON (1).
Command Block
09
20
Command FAL/FALS No.
code
Response Block
09
16 bytes
20
Command
code
Parameters
Response FAL/FALS Error message
code
No.
FAL/FALS no. (command and response): In the command block, specify in
hexadecimal in bits 0 to 13 the FAL or FALS number to be read as shown below.
In the response block, the FAL or FALS number is returned.
First byte
Bit
15
14
1
0
13
Second byte
8
7
0
FAL or FALS no.
10: FAL/FALS READ
Error message (response): The error message specified in the FAL(006) or
FALS(007) instruction. If there is no error, 16 spaces (ASCII 20) will be returned.
39
Section 2-29
ACCESS RIGHT FORCED ACQUIRE
2-28 ACCESS RIGHT ACQUIRE
Acquires the access right as long as no other device holds it. Execute the ACCESS RIGHT ACQUIRE command when you need to execute commands continuously without being interrupted by other devices. As soon as the execution of
the commands has been completed, execute the ACCESS RIGHT RELEASE
command to release the access right (refer to 2-30 ACCESS RIGHT RELEASE). If another devices holds the access right, the device will be identified in
the response.
Note
1. If any other device has the access right, the access right cannot be acquired
with this command; use the ACCESS RIGHT FORCED ACQUIRE command (refer to 2-29 ACCESS RIGHT FORCED ACQUIRE).
2. The following commands cannot be executed by other devices if the host
computer holds the access right. Do not restrict the access right unless necessary.
PARAMETER AREA WRITE (02 02)
PARAMETER AREA CLEAR (02 03)
PROGRAM AREA PROTECT (03 04)
PROGRAM AREA CLEAR (03 05)
PROGRAM AREA WRITE (03 07)
PROGRAM AREA PROTECT CLEAR (03 08)
RUN (04 01)
STOP (04 02)
CLOCK WRITE (07 02)
MESSAGE CLEAR (09 20)
ACCESS RIGHT ACQUIRE (0C 01)
ERROR CLEAR (21 01)
ERROR LOG CLEAR (21 03)
PARAMETER AREA FILE TRANSFER (22 0B)
PROGRAM AREA FILE TRANSFER (22 0C)
FORCED SET/RESET (23 01)
FORCED SET/RESET CANCEL (23 02)
Command Block
0C
01
00
00
Command Program
code
no.
Response Block
0C
01
Command
code
00
00
Response
code
Unit address of Unit with access right
Node number of device with access right
Network address of device with access right
If any other device holds the access
right, the device will be identified.
Parameters
Program no. (command): Set to 0000.
2-29 ACCESS RIGHT FORCED ACQUIRE
Acquires the access right even if another device already holds it.
Note
40
1. Even if any other device has the access right, the access right can be acquired with this command and a normal response code will be returned.
Section 2-30
ACCESS RIGHT RELEASE
2. The following commands cannot be executed by other devices if the host
computer holds the access right. Do not restrict the access right unless necessary.
PARAMETER AREA WRITE (02 02)
PARAMETER AREA CLEAR (02 03)
PROGRAM AREA PROTECT (03 04)
PROGRAM AREA CLEAR (03 05)
PROGRAM AREA WRITE (03 07)
PROGRAM AREA PROTECT CLEAR (03 08)
RUN (04 01)
STOP (04 02)
CLOCK WRITE (07 02)
MESSAGE CLEAR (09 20)
ACCESS RIGHT ACQUIRE (0C 01)
ERROR CLEAR (21 01)
ERROR LOG CLEAR (21 03)
PARAMETER AREA FILE TRANSFER (22 0B)
PROGRAM AREA FILE TRANSFER (22 0C)
FORCED SET/RESET (23 01)
FORCED SET/RESET CANCEL (23 02)
3. When the ACCESS RIGHT FORCED ACQUIRE command is executed
while any other device has the access right, the access right of the other device will be canceled. If possible, wait until the other device completes the
present operation, and then execute the ACCESS RIGHT ACQUIRE command (refer to 2-28 ACCESS RIGHT ACQUIRE).
4. The device that has lost the access right is not notified.
Command Block
0C
02
Command
code
00
00
Program
no.
Response Block
0C
02
Command
code
Parameters
Response
code
Program no. (command): Set to 0000.
2-30 ACCESS RIGHT RELEASE
Releases the access right regardless of what device holds it. A normal response
code will returned even when another device held the access right or when no
device held the access right.
Command Block
0C
03
Command
code
00
00
Program
no.
41
Section 2-31
ERROR CLEAR
Response Block
0C
03
Command
code
Parameters
Response
code
Program no. (command): Set to 0000.
2-31 ERROR CLEAR
Clears errors or error messages from the PC. A normal response will be returned
even if the error has not occurred.
Note The cause of the error must be removed before executing the ERROR CLEAR
command or the same error will occur again after the ERROR CLEAR command
is executed.
Command Block
21
01
Command
code
Error reset
FAL no.
Response Block
21
01
Command Response
code
code
Parameters
Error reset FAL no. (command): The code of the error to be reset.
The following codes can be used regardless of the PC’s mode:
Error code
Meaning
FFFE
Present error cleared. Resets the highest priority error.
0002
Power interruption error. This error occurs when the CPU power has been interrupted.
00A0 to 00A7
SYSMAC BUS error
00B0 to 00B3
SYSMAC BUS/2 error
00E7
I/O verification error. This error occurs if the I/O table differs from the actual I/O points in the System.
00F4
Non-fatal SFC error. This error occurs when there is an error while the PC is executing an SFC
program.
00F7
Battery error
00F8
Indirect DM error. This error occurs when a mistake has occurred in indirectly addressing the DM
Area.
00F9
JMP error. This error occurs when a jump has been specified without a destination.
0200 to 0215
CPU Bus Unit error (the rightmost two digits are the unit number in BCD of the Unit that has the error).
This error occurs if there is a parity error at the time of data transfer between the CPU Bus Unit and
CPU or if the CPU Bus Unit has a watchdog timer error.
0400 to 0415
CPU Bus Unit setting error (the rightmost two digits are the unit number in BCD of the Unit that has
the error).
4101 to 42FF
FAL(006) executed in the user program.
The following codes can be used only when the PC is in PROGRAM mode:
Error code
Meaning
FFFF
All errors cleared.
809F
Cycle time too long
42
Section 2-32
ERROR LOG READ
Error code
Meaning
80C0 to 80C7
I/O bus error. This error occurs when there is an error in an I/O bus check or a Unit has been removed
or added when power is turned on to the PC.
80E0
I/O setting error. This error occurs if the I/O table differs from actual I/O points in the System.
80E1
I/O points overflow
80E9
Duplication error. This error occurs if the same unit number is assigned more than one Unit or the
same word is allocated more than once.
80F0
Program error. This error occurs if a program that exceeds memory capacity is executed.
80F1
Memory error. This error occurs if an error is found in the PC’s memory, memory card, or PC Setup
during an memory error check.
80F3
Fatal SFC error. This error occurs if an SFC syntax error has been discovered and the program will
not execute.
80FF
System error. This error occurs if the CPU has a watchdog timer error.
8100 to 8115
CPU bus error. The rightmost two digits are the unit number in BCD of the CPU Bus Unit that has the
error. This error occurs if an error is discovered during a CPU bus check.
C101 to C2FF
FALS(007) executed.
2-32 ERROR LOG READ
Reads the PC’s error log.
Note
1. When the PC does not have the specified number of records, all the records
that have been stored in the PC will be read and an address range overflow
error will result.
2. If the data is too large and exceeds the permissible length of the response
block, the part in excess will not be read and a response length overflow error will result.
Command Block
21
02
Command
code
Beginning
record no.
No. of
records
Response Block
21
02
Command
code
Parameters
Response Max. no. of
No. of
code stored records stored
records
No. of
records
10 bytes
10 bytes
Error log
data
Error log
data
Beginning record no. (command): The first record to be read (the first record
number is 0000).
Max. no. of stored records (response): The maximum number of records that
can be recorded.
No. of stored records (response): The number of records that have been recorded.
No. of records (command and response): The number of records read.
Error log data (response): The specified error log records will be returned in
sequence starting from the beginning record number. The total number of bytes
required is calculated as follows:
No. of records x 10 bytes
43
Section 2-34
FILE NAME READ
The configuration of each error record is as follows:
1st byte
10th byte
Error code 1
Error code 2
Minute
Day Hour Year Month
Second
Error code 1, 2: Refer to page 42 for error code 1 and to the relevant operation
manual or installation guide for error code 2.
Each data includes the second, minute, hour (0 to 23), date, month, and year
(the rightmost two digits) in BCD specifying the time that the error occurred.
2-33 ERROR LOG CLEAR
Clears all error log records.
Note This command cannot be executed if any other device has the access right.
Command Block
21
03
Command
format
Response Block
21
03
Command
format
Response
code
2-34 FILE NAME READ
Reads out data on the specified number of files stored in the file device connected to the PC.
Command Block
22
01
Command
code
Disk no.
Beginning
file position
No. of
files
Response Block
22
Command
code
Parameters
44
26 bytes
01
Response
code
Disk data
No. of
files
20 bytes
20 bytes
File data
File data
Disk no. (command): Set to 0000 for the file device (memory card).
Beginning file position (command): The first file to be read (the first file number is 0000).
No. of files (command): The number of files to be read between 0001 and
0019.
Section 2-34
FILE NAME READ
Disk data (response): The data from the file device, the configuration of which
is as follows:
1st byte
26th byte
12 bytes
Volume
label
Date/time
Total capacity
Unused capacity
Total no. of files
Volume Label
The volume label registered with the file device (refer to 2-3 Volume Labels
and File Names for the configuration of the volume label). If no volume label
has been registered, 20 spaces (ASCII 20) will be returned.
Date/Time
The date and time that the volume label was created (see next page).
Total Capacity and Open Capacity
The total capacity of the file device and the number of bytes still available
(hexadecimal).
Total No. of Files
The number of files recorded in the file device.
No. of files (response): The number of files that have been read. Bit 15 is ON
(1) if the last file is included.
Bit 15 OFF (0): Without last file
Bit 15 ON (1): With last word file
Bits 0 to 14: No. of files read
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
File data (response): Each file data consists of 20 bytes. The specified files will
be transmitted in sequence starting from the first file. The total number of bytes
required is calculated as follows:
No. of read files x 20 bytes
The configuration for each file data is as follows:
1st byte
20th byte
12 bytes
File name
Date/time
File capacity
File Name
The name of the file (refer to 2-3 Volume Labels and File Names for the configuration of the file name).
Date/Time
The date and time that the file was created (see below).
File Capacity
The capacity (bytes) of the file.
Date/Time
The configuration of the clock data (four bytes or 32 bits) is as follows:
1st byte
Bit 31 31
to
2nd byte
25 24
to
21 20
to
3rd byte
16 15
7 bits
4 bits
5 bits
Year
(0 to 119)
Month
(1 to 12)
Day
(1 to 31)
to
5 bits
Hour
(0 to 23)
11 10
4th byte
to
5 4
to
6 bits
5 bits
Minute
(0 to 59)
Second
(0 to 29)
0
45
Section 2-36
SINGLE FILE WRITE
All data values are in BCD.
Year: Add 1980.
Second: Multiply by two.
2-35 SINGLE FILE READ
Reads the contents of a file stored in the file device connected to the PC.
Command Block
22
12 bytes
02
Command
code
Disk no.
File name
File position
Data length
Response Block
22
02
Command
code
Response
code
Parameters
File capacity
File position
Data length
Data
Disk no. (command): Set to 0000 for the file device (memory card).
Beginning file name (command): The name of the file to be read (refer to 2-3
Volume Labels and File Names for the configuration of the file name).
File position (command and response): The number of bytes from the start of
the file from which to start reading (files start at 00000000).
Data length (command and response): The number of bytes of data to read.
File capacity (response): The capacity (bytes) of the file that was read.
Note If the SINGLE FILE READ command is executed for a file with a file
capacity of 0 bytes, the data length will be returned as 0000 and no
data will be read.
Data (response): The specified data in sequence starting from the specified
byte.
2-36 SINGLE FILE WRITE
Writes a new file to the file device connected to the PC or appends/overwrites an
existing file stored in the file device. Designation can be made to protect existing
files if an attempt is made to create a new file of the same name as an existing
file. When a new file is written or an existing file is modified, the file will record the
clock data of the PC as the date of the file.
Note Writing a new file or modifying an existing file must be done within the capacity of
the file device or the SINGLE FILE WRITE command cannot be executed.
Command Block
22
12 bytes
03
Command
code
Disk no
Parameter
code
File name
Response Block
22
03
Command
code
46
Response
code
File position
Data length
File data
Section 2-38
FILE DELETE
Parameters
Disk no. (command): Set to 0000 for the file device (memory card).
Parameter code (command): As follows:
0000: Writes a new file. If a file with the same name already exists, the new
file will not be created.
0001: Writes a new file. If a file with the same name already exists, it will be
overwritten
0002: Add data to an existing file.
0003: Overwrite an existing file.
File name (command): The name of the file to be written (refer to 2-3 Volume
Labels and File Names for the configuration of the file name).
File position (command): The number of bytes from the start of the file from
which to start writing (files start at 00000000). To create a new file or add data to
an existing file, specify 00000000 as the file position.
Data length (command and response): The number of bytes to be written.
Note A new file with a file capacity of 0 (no data) will be created if SINGLE
FILE WRITE is executed with 0000 as the data length.
File data (response): The data to be written to the file.
2-37 MEMORY CARD FORMAT
Formats a memory card. Always execute the MEMORY CARD FORMAT before
using a new memory card as a file device.
Note If the MEMORY CARD FORMAT command is executed, all data will be cleared
from the memory card.
Command Block
22
04
Command
code
Disk no.
Response Block
22
04
Command
code
Parameters
Response
code
Disk no. (command): Set to 0000 for the file device (memory card).
2-38 FILE DELETE
Deletes files stored by the file device connected to the PC.
Note
1. The specified files will be deleted in sequence. If non-existing file names
have been specified, the PC will ignore them and the operation will continue.
2. If the specified number of files and the number of file names do not coincide,
no files will be deleted.
Command Block
22
05
Command
code
Disk no.
No. of
files
12 bytes
12 bytes
File name
File name
47
Section 2-40
FILE COPY
Response Block
22
05
Command
code
Parameters
Response
code
No. of
files
Disk no. (command): Set to 0000 for the file device (memory card).
No. of files (command): The number of files to be deleted.
File name (command): The names of the files to be deleted (refer to 2-3 Volume
Labels and File Names for the configuration of the file name).
No. of files (response): The number of files that have been deleted.
2-39 VOLUME LABEL CREATE/DELETE
Creates a volume label on the file device connected to the PC or deletes an existing volume label from the file device.
Only one volume label can be created for a single memory card.
When a volume label is generated, the clock data of the PC will be recorded as
the date of the volume label.
Command Block
The command format for creating a volume label is as follows:
22
12 bytes
06
Command
code
Disk no.
Parameter
code
Volume label
The command format for deleting a volume label is as follows:
22
06
Command
code
Disk no.
Parameter
code
Response Block
22
06
Command Response
code
code
Parameters
Disk no. (command): Set to 0000 for the file device (memory card).
Parameter code (command and response): As follows:
0000: Creates a new volume label. If a label already exists, nothing will be
executed.
0001: Creates a volume label. If a label already exists, it will be overwritten.
0002: Deletes an existing volume label.
Volume label (command): The volume label to be written (refer to 2-3 Volume
Labels and File Names for the configuration of the volume label).
2-40 FILE COPY
Copies a file from one file device to another file device connected to the same
PC.
48
Section 2-42
FILE DATA CHECK
Command Block
22
12 bytes
07
Command
code
Disk no.
File name
Source
12 bytes
Disk no.
File name
Destination
Response Block
22
07
Command
code
Parameters
Response
code
Disk no. (command): Set to 0000 for the file devices (memory cards).
File name (command): The file to be copied and a new name for the copied file
(refer to 2-3 Volume Labels and File Names for the configuration of the file
name).
Note
1. The file will not be copied if an existing file name is given.
2. The copied file is given the same date as the original file.
2-41 FILE NAME CHANGE
Changes a file name.
Command Block
22
08
Command
code
Disk no.
12 bytes
12 bytes
Old file name
New file name
Response Block
22
08
Command
code
Parameters
Response
code
Disk no. (command): Set to 0000 for the file device (memory cards).
Old and new file names (command): The original file name and a new name
for the file (refer to 2-3 Volume Labels and File Names for the configuration of the
file name).
Note
1. The file name will not be changed if an existing file name is given for the new
file.
2. The new file is given the same date as the original file.
2-42 FILE DATA CHECK
Does a data check on a file stored in the extended memory (file device) connected to the PC by confirming the checksum at the beginning of the file.
Command Block
22
12 bytes
09
Command
code
Disk no.
File name
49
Section 2-43
MEMORY AREA FILE TRANSFER
Response Block
22
09
Command Response
code
code
Parameters
Disk no. (command): Set to 0000 for the file device (memory cards).
File name (command): The file to be checked (refer to 2-3 Volume Labels and
File Names for the configuration of the file name).
File Data Check
The configuration of a file stored in the file device is as follows:
0
1
2
3
Checksum
4
5
6
7
Byte position from beginning of file
Data
Checksum
The first two bytes of a file are called the checksum, which is the rightmost
two bytes resulting from adding all data words (two bytes each). If the number of all bytes is odd, a byte of 00 is added to it so that the number of the
number of bytes is even.
Example
• Data:
13 3A E4 F3 CC 0B 3C 5F A2
• Words:
133A E4F3 CC0B 3C5F A200
• Total:
133A + E4F3 + CC0B + 3C5F + A200 = 2A297
• Checksum:
A2 97
Data
“File data” refers to the data in a file that a file device stores. A file data check
is done with the checksum. To complete a file data check, the data words
starting from the third byte are added and the result is compared with the
checksum. If these values are the same, the file is assumed to contain no
errors; if the values differ, a parity/sum check error will result. A file with a
capacity of two bytes has a checksum of 0000.
2-43 MEMORY AREA FILE TRANSFER
Transfers or compares data between the PC memory areas and the file device
connected to the PC. The clock data of the PC upon completion of the MEMORY
AREA FILE TRANSFER command will be recorded as the date of the file that
has been transferred.
Note
1. The checksum is stored at the front (bytes 0 and 1) of the file. Thus file transfer or comparison is effective from the next byte after the checksum.
2. The MEMORY AREA FILE TRANSFER command can be executed regardless of the PC’s mode. It is the user’s responsibility to program steps to prohibit this command from being executed when the PC is in RUN mode if such
protection is necessary. Execute the CONTROLLER STATUS READ command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s mode.
3. If data is written to the Timer/Counter PV Area, the Completion Flags will be
turned OFF (0).
50
Section 2-44
PARAMETER AREA FILE TRANSFER
Command Block
22
12 bytes
0A
Command
code
Parameter
code
Beginning address
No. of
items
Memory area code
Memory area specification
Disk no.
File name
File specification
Response Block
22
0A
Command
code
Parameters
Response No. of items
code
Parameter code (command): As follows:
0000: Data transfer from the PC memory area to the file device.
0001: Data transfer from the file device to the PC memory area.
0002: Data compared.
Memory area code (command): The memory area to be used for data transfer
or comparison.
Beginning address (command): The first word/value in the memory area to be
transferred or compared.
No. of items (command and response): In the command block, the number of
items to be transferred or compared. In the response block, the number of items
transferred or compared.
Disk no. (command): Set to 0000 for the file device (memory cards).
File name (command): The file to be transferred or compared (refer to 2-3 Volume Labels and File Names for the configuration of the file name).
Memory Areas
The following data can be used for transfer or comparison (refer to 2-2 Memory
Area Designations for memory area designations):
Memory area
Data
Memory area
code
No. of
bytes
CIO, TR, CPU Bus
Link, and Auxiliary
Word contents
80
2
Timer/Counter
PV
81
2
DM
Word contents
82
2
Expansion DM
Word contents, specified bank
90 to 97
(banks 0 to 7)
2
Word contents, current bank
98
2
2-44 PARAMETER AREA FILE TRANSFER
Compares or transfers data between the PC’s parameter area and the file device connected to the PC. The clock data of the PC upon completion of the PARAMETER AREA FILE TRANSFER command will be recorded as the date of
the file that has been transferred.
A file can be transferred to the I/O table only when the PC is in PROGRAM mode.
Note
1. The checksum is stored at the front (bytes 0 and 1) of the file. Thus file transfer or comparison is effective from the next byte after the checksum.
2. The PARAMETER AREA FILE TRANSFER command can be executed regardless of the PC’s mode. It is the user’s responsibility to program steps to
51
Section 2-44
PARAMETER AREA FILE TRANSFER
prohibit this command from being executed when the PC is in RUN mode if
such protection is necessary. Execute the CONTROLLER STATUS READ
command (refer to 2-21 CONTROLLER STATUS READ) to read the PC’s
mode.
3. This command cannot be executed if any other device holds the access
right or when memory is write-protected via the key switch on the front panel
of the PC.
Command Block
22
12 bytes
0B
Command
code
Parameter Parameter
area code
code
Beginning
address
No. of
words
Parameter area specification
Disk no.
File name
File specification
Response Block
22
0B
Command
code
Parameters
Response No. of words
code
Parameter code (command): As follows:
0000: Data transfer from the PC’s parameter area to the file device.
0001: Data transfer from the file device to the PC’s parameter area.
0002: Data compared.
Parameter area code (command): The parameter area to be used for data
transfer or comparison.
Beginning address (command): The first word in the parameter area to be
transferred or compared. Each parameter area has consecutive word addresses beginning at 0000.
No. of words (command and response): In the command block, the number of
data words to be transferred or compared. In the response block, the number of
words transferred or compared
Note If 0000 is specified as the number of items, no data will be transferred
or compared and a normal response code will be returned.
Disk no. (command): Set to 0000 for the file device (memory cards).
File name (command): The file to be transferred or compared (refer to 2-3 Volume Labels and File Names for the configuration of the file name).
Parameter Areas
The following shows the parameter areas and the words that can be specified.
52
Section 2-45
PROGRAM AREA FILE TRANSFER
The word ranges in parentheses show the possible values for the beginning
word.
PC Setup
80 10
(0000 to 00FF)
Peripheral Device settings
80 11
(0000 to 00BF)
I/O table
80 12
(0000 to 03FF)
Routing tables*
80 13
(0000 to 01FF)
80 01
(0000 to 06BF)
80 02
(0000 to 083F)
Unit No. 0
.
.
.
CPU Bus Unit
settings
80 00
(0000 to 0FFF)
Unit No. 15
Note *Although the routing tables have a 512-word area (0000 to 01FF), only a
48-word area (0000 to 003F) of it can be read/written.
2-45 PROGRAM AREA FILE TRANSFER
Compares or transfers data between the PC’s program area and the file device
connected to the PC. The clock data of the PC upon completion of the PROGRAM AREA FILE TRANSFER command will be recorded as the date of the file
that has been transferred.
Note
1. The checksum is stored at the front (bytes 0 and 1) of the file. Thus file transfer or comparison is effective from the next byte after the checksum.
2. This command cannot be executed when the access right is held by any other device or when the PC is write-protected by the key switch on the front
panel.
3. The PROGRAM AREA FILE TRANSFER command cannot be executed
when the PC is in the RUN mode.
Command Block
22
0C
Command
code
00
Parameter
code
00
00
Program
no.
00
0E
Beginning word
12 bytes
00
No. of bytes
Program area specification
Disk no.
File name
File specification
Response Block
22
0C
Command Response
code
code
Parameters
Data length
Parameter code (command): As follows:
0000: Data transferred from the program area to the file device.
0001: Data transferred from the file device to the program area.
0002: Data compared.
Program no. and beginning word (command): As follows:
0000: Program no.
00000E00: Beginning word
53
Section 2-46
FORCED SET/RESET
No. of bytes (command): The number of data bytes to be transferred or compared as follows:
0000F1FE: CV500 or CVM1
0001F1FE: CV1000 or CV2000
Note If 00000000 is specified as the number of transfer data bytes, no file
transfer or comparison will be performed and a normal response
code will be returned.
Disk no. (command): Set to 0000 for the file device (memory card).
File name (command): The file to be transferred or compared (refer to 2-3 Volume Labels and File Names for the configuration of the file name).
Data length (response): The number of bytes that have been transferred or
compared.
2-46 FORCED SET/RESET
Force-sets (ON) or force-resets (OFF) bits/flags or releases force-set status.
Bits/flags that are forced ON or OFF will remain ON or OFF and cannot be written to until the forced status is released.
Note This command cannot be used to release the status of Completion Flags for timers or counters. Use the FORCE SET/RESET CANCEL command (refer to 2-47
FORCE SET/RESET CANCEL).
Command Block
23
01
Command
No. of
bits/flags
code
Set/Reset
specification
Bit/flag
Set/reset
specification
Memory area code
Forced set/reset data
Bit/flag
Memory area code
Forced set/reset data
Response Block
23
01
Command
code
Parameters
Response
code
No. of bits/flags (command): The number of bits/flags to be controlled.
Set/Reset specification (command): The action to be taken for each bit/flag
Value
Name
0000
Force-reset (OFF)
0001
Force-set (ON)
8000
Forced status released and bit turned OFF (0)
8001
Forced status released and bit turned ON (1)
FFFF
Forced status released
Memory area code (command): The memory area of the bit or flag to be controlled.
Bit/Flag (command): The bit or flag to be controlled.
54
Section 2-48
Aborting Commands
Memory Areas
The bits (flags) in the following memory areas can be forced set/reset or released (refer to 2-2 Memory Area Designations for memory area designations):
Memory area
Data
Memory area
code
CIO, TR, and CPU Bus
Link (see note)
Bits status
00
Timer/Counter
Completion Flag status
01
Transition
Flag status
03
Note FORCED SET/RESET cannot be used for the Auxiliary Area.
2-47 FORCED SET/RESET CANCEL
Cancels all bits (flags) that have been forced ON or forced OFF.
Command Block
23
02
Command
code
Response Block
23
02
Command
code
Response
code
Note The bits (flags) in the following memory areas can be forced set or forced reset,
and cancelled.
Memory area
Data
Memory code
CIO, TR, CPU Bus Link,
and Auxiliary
Bits status
00
Timer/Counter
Completion Flag status
01
Transition
Flag status
03
2-48 Aborting Commands
The CV mode does not support an abort command. If an abort command is necessary, use the C-mode ABORT command (XZ).
55
SECTION 3
Commands for C-series PCs
This section provides details on commands that can be sent to C-series PCs. The C-series PCs that support these commands are
listed in the following table.
PC
3-1
3-2
3-3
3-4
3-5
3-6
3-7
3-8
3-9
3-10
3-11
3-12
3-13
3-14
3-15
3-16
3-17
3-18
3-19
3-20
Model number
Remarks
C200H
C200H-CPU11-E
Use C200H-SLK11/SLK21-V1
SYSMAC LINK Unit
C1000H
C2000H Simplex
C1000H-CPU01-EV1
C2000H-CPU01-EV1
Use C1000H-SLK11/SLK21-V1
SYSMAC LINK Unit
U i
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Memory Area Designations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2-1 Word/Bit Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2-2 Data Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMORY AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MULTIPLE MEMORY AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROGRAM AREA WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE MEMORY INDEX READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE MEMORY READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FILE MEMORY WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FORCED SET/RESET CANCEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MULTIPLE FORCED STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
57
Memory Area Designations
3-1
Section 3-2
Command List
The beginning portions of the command and response block up to the command
codes and the FCS and terminator have been omitted for simplicity, but must be
added for actual transmission if not automatically generated for the transmission
method being used. Refer to 1-3 Command/Response Transmission Data.
In the illustrations of command and response blocks in this section, each box
represents one byte (i.e., two hexadecimal or BCD digits). Be careful when adding the header, where each box represents one digit (i.e., four bits).
The following table lists the FINS commands supported by C-series PCs and the
PC operating modes during which they are enabled.
Command
Name
code
01
RUN
MONITOR
Page
PROGRAM
01
MEMORY AREA READ
Valid
Valid
Valid
60
02
MEMORY AREA WRITE
Valid
Valid
Valid
60
04
MULTIPLE MEMORY AREA READ
Valid
Valid
Valid
61
06
PROGRAM AREA READ
Valid
Valid
Valid
62
07
PROGRAM AREA WRITE
Not valid
Not valid
Valid
63
01
RUN
Valid
Valid
Valid
63
02
STOP
Valid
Valid
Valid
64
05
01
CONTROLLER DATA READ
Valid
Valid
Valid
64
06
01
CONTROLLER STATUS READ
Valid
Valid
Valid
65
07
01
CLOCK READ (C200H only)
Valid
Valid
Valid
66
02
CLOCK WRITE (C200H only)
Not valid
Valid
Valid
67
21
01
ERROR CLEAR
Valid
Valid
Valid
67
22
0F
FILE MEMORY INDEX READ (Not with C200H)
Valid
Valid
Valid
68
10
FILE MEMORY READ (Not with C200H)
Valid
Valid
Valid
68
11
FILE MEMORY WRITE (Not with C200H)
Not valid
Valid
Valid
69
01
FORCED SET/RESET
Not valid
Valid
Valid
70
02
0A
FORCED SET/RESET CANCEL
MULTIPOINT FORCED STATUS READ (C200H
only)
Not valid
Valid
Valid
Valid
Valid
Valid
71
71
03
04
23
3-2
PC mode
Memory Area Designations
The following table gives the addresses to use when reading or writing PC data.
The Data area address column gives the normal addresses used in the PC program. The Address used in communications column are the addresses used in
CV-mode commands and responses. These addresses are combined with the
memory area codes to specify PC memory locations. These addresses are not
the same as the actual memory addresses of the data.
The No. of bytes column specifies the number of bytes to read or write data for
that area. The number of bytes varies for the same area depending on the
memory area code. Actual data area sizes vary with the PC being used. Refer to
your PC’s operation manual for specific limits.
58
Memory Area Designations
Memory area
Data
Section 3-2
Address used in
communications
Data area address
1st and 2nd
bytes
CIO area
LR area
HR area
AR area
Timer Area/
Counter Area
DM Area
Bit status
Word contents
Bit status
Word contents
Bit status
Word contents
Bit status
Word contents
Completion
Flag status
00000 to 25515
000 to 255
LR 0000 to LR 6315
LR 00 to LR 63
HR 0000 to HR 9915
HR 00 to HR 99
AR 0000 to AR 2715
AR 000 to AR 27
TIM 000 to TIM 511
CNT 000 to CNT 511
PV
TIM 000 to TIM 511
CNT 000 to CNT 511
Word contents
DM 0000 to DM 9999
0000 to 00FF
03E8 to 0427
0428 to 048B
048C to 04A7
0000 to 01FF
0000 to 270F
Memory
area code
No. of
bytes
y
3rd byte
00 to 0F
00 to 00
00 to 0F
00 to 00
00 to 0F
00 to 00
00 to 0F
00 to 00
00 to 00
00
80
00
80
00
80
00
80
01
1
2
1
2
1
2
1
2
1
00 to 00
81
2
00 to 00
82
2
3-2-1 Word/Bit Addresses
Each word/bit address specifies a specific bit or word. The rightmost two digits of
the address specify bit 00 to 15 (or 00 if not required), and leftmost four digits
specify the word address.
Specify the the bit between 00 and 0F (00 to 15).
Set to 00 to specify channel or flag data.
Specify the address of the word or flag.
To obtain the corresponding address of the desired word or bit, add the data area
word address (hexadecimal) to the first address of the range of addresses used
for that data area in communications. For example, the address for word AR 13
is computed as follows:
First address for AR Area;
048C
048C + 0D (13 in BCD);
0499
The word address for AR 13 would be 049900 (the memory area code would
specify this as a word) and the address of bit 12 in AR 13 would be 04990C.
The unit of access (bit or word) and the data code are specified as shown in the
following illustration.
Bit
7
6
5
Access unit
00: Bit
10: Word
4
3
2
1
0
Data code
00: CIO, LR, HR, or AR area
01: Timer or Counter area
02: Data Memory area
3-2-2 Data Configuration
The configuration of the various types of data that can be read or written is
shown below. The number of bytes required for each type of data is also given.
Flag or Bit Status (One Byte) 00: Bit is OFF (0)
01: Bit is ON (1)
59
MEMORY AREA WRITE
Section 3-4
Word Contents or PV (Two Bytes)
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
3-3
MEMORY AREA READ
Reads the contents of the specified number of consecutive memory area words
starting from the specified word. All words must be in the same memory area
(here, all memory areas with the same memory area code are considered as one
area).
Command Block
01
00
01
Command
Beginning address No. of items
code
Memory area code
Response Block
01
01
Command
code
Parameters
Response
code
Data
Memory area code (command): The data area to read.
Beginning address (command): The address of the first word/bit/flag to read
from memory. Specify 00 for the 3rd byte.
No. of items (command): The number of items to be read. Specify 0000 to 0100
(0 to 256 decimal). The command can complete normally even if zero items are
specified.
Data (response): The data from the specified words is returned in sequence
starting from the beginning address. PVs for timers and counters are returned as
BCD. The required number of bytes in total is calculated as follows:
No. of bytes required by each item x No. of items
Memory Areas
The following area can be read (refer to 3-2 Memory Area Designations for PC
word/bit address designations):
Memory area
Memory area
code
No. of
bytes
CIO, LR, HR, or AR Word contents
area
80
2
Timer/Counter
Completion Flag status
01
1
PV
81
2
Word contents
82
2
DM
3-4
Data
MEMORY AREA WRITE
Writes data to the specified number of consecutive words starting from the specified word. All words must be in the same memory area (here, all memory areas
with the the same memory area code are considered as one area).
60
MULTIPLE MEMORY AREA READ
Section 3-5
Note When data is written to the Timer/Counter PV Area, the Completion Flags will be
turned OFF (0).
Command Block
01
00
02
Command
Beginning address No. of items
code
Memory area code
Data
Response Block
01
02
Command
code
Parameters
Response
code
Memory area code (command): The data area to write.
Beginning address (command): The first word/value to write. Specify 00 for
the 3rd byte.
No. of items (command): The number of items to be written. Specify 0000 to
0100 (0 to 256 decimal). The command can complete normally even if zero
items are specified.
Data (command): The data to be written. PVs for timers and counters are written as BCD. The required number of bytes in total is calculated as follows:
2 bytes x No. of items
The following data can be written (refer to 3-2 Memory Area Designations for the
word/bit address designations):
Memory area
3-5
Data
Memory area
code
No. of
bytes
CIO, LR, HR, or AR Word contents
area
80
2
Timer/Counter
PV
81
2
DM
Word contents
82
2
MULTIPLE MEMORY AREA READ
Reads the contents of the specified number of non-consecutive memory area
words, starting from the specified word.
Note If there is an error in the command code or an address, no data will be read.
Command Block
01
04
Command
Address
code
Memory area code
Address
Memory area code
128 addresses maximum
61
PROGRAM AREA READ
Section 3-6
Response Block
01
04
Command
code
Parameters
Response
Data
code
Memory area code
Data
Memory area code
Memory area code (command): The data area to read.
Address (command): The word/bit/flag to read. The content of up to 128 address can be read.
Data (response): The data in the specified memory area(s) will be returned in
sequence starting from the beginning address.
Memory Areas
The following data can be written (refer to 3-2 Memory Area Designations for
memory area designations):
Memory area
Data
Memory area
code
No. of
bytes
00
1
Word contents
80
2
Completion Flag status
01
1
PV
81
2
Word contents
82
2
CIO, LR, HR, or AR Bit status
area
Timer/Counter
DM
3-6
PROGRAM AREA READ
Reads the contents of the specified number of consecutive program area words
starting from the specified word. The program is read a machine language (object code). A maximum of 512 bytes can be read with each command.
Command Block
03
06
Command
code
00
00
Program
no.
Beginning address
No. of
bytes
Response Block
03
06
Command
code
Parameters
00
Response
code
00
Program
no.
512 bytes maximum
Beginning address
No. of
bytes
Data
Program no. (command and response): Set to 0000.
Beginning address (command and response): Set an relative byte address
with 00000000 as the starting address. The beginning word must be an even
number. The address set in the command will be returned in the response.
No. of bytes (command and response): The number of bytes in an even number 0200 (512 in decimal) or smaller. The number of bytes actually read will be
62
RUN
Section 3-8
returned in the response. Bit 15 will be ON (1) in the response block when the
last word data of the program area is returned.
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes read
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Note If the designated number of bytes is larger than the program area, the program
will be read through the final address and a response code indicating an address
range error or response length error will be returned.
Data (response): The data in the specified program area will be returned in sequence starting from the beginning word.
3-7
PROGRAM AREA WRITE
Writes data to the specified number of consecutive program area words starting
from the specified word. A maximum of 512 bytes can be written with each command. To write larger amounts of data, use multiple commands and specify the
beginning word and number of words for each.
Command Block
03
07
Command
code
00
00
512 bytes maximum
Program
no.
Beginning word
No. of
bytes
Data
Response Block
03
07
Command
code
Parameters
00
Response
code
00
Program
no.
Beginning word
No. of
bytes
Program no. (command and response): Set to 0000.
Beginning word (command and response): Set a relative byte address with
00000000 as the starting address. The beginning word must be an even number. The address set in the command will be returned in the response.
No. of bytes (command and response): The number of bytes in an even number (512 or smaller). The number of bytes actually written will be returned in the
response. Bit 15 must be turned ON (1) when data for the last write to the program area so that the PC can generate an index. To write only an index marker,
specify 8000 for the number of bytes.
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes written
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Data (command): The data to be written.
3-8
RUN
Changes the PC to MONITOR or RUN mode, enabling the PC to execute its program.
63
CONTROLLER DATA READ
Section 3-10
Command Block
04
01
Command
code
00
00
Program
no.
Mode
Response Block
04
01
Command
code
Parameters
Response
code
Program no. (command): Set to 0000.
Mode (command): As follows:
02:
MONITOR mode
04:
RUN mode
Note If the mode is not specified, the PC will go to MONITOR mode.
3-9
STOP
Changes the PC to PROGRAM mode, stopping program execution.
Command Block
04
02
Command
code
Response Block
04
02
Command
code
Response
code
3-10 CONTROLLER DATA READ
Reads the following data:
• Controller model and version
• Area data
• PC status
Command Block
05
01
Command
code
Response Block
05
01
Command
code
64
Response
code
20 bytes
20 bytes
16 bytes
10 bytes
65 bytes
Controller
model
Controller
version
Dummy 1
Area data
Dummy 2
PC status
Section 3-11
CONTROLLER STATUS READ
Parameters
Controller model and Controller version (response): Both are returned in
ASCII (20 bytes (i.e., 20 ASCII characters) max. each). The version of MPU1 is
returned first followed by the version of MPU2. If the model or version information does not require 20 bytes, the remainder of the 20 bytes will be filled with
spaces (ASCII 20).
Dummy 1 and Dummy 2 (response): All zeros will be returned.
Area data (response): As follows:
1st byte
10th byte
00
Program
area size
Item
00
00
No. of DM words
00
File Memory
size
Kind of File Memory
Meaning
Unit
Program area size
The size of PC Setup and program area
K words (1K words = 1,024 words;
1 word = 2 bytes))
No. of DM words
Total words in the DM area
Words (1 word = 2 bytes)
Kind of File Memory
00: No File Memory
01: SRAM
04: First half RAM, second half ROM
---
File Memory size
Total number of blocks in File Memory
0000: 0 (no File Memory)
0001: 1,000 blocks (decimal)
0002: 2,000 blocks (decimal)
PC status (response): The following status (8 bits) is returned:
00: No recognized tool connected
80: Recognized tool connected
3-11 CONTROLLER STATUS READ
Reads the status of the Controller.
Command Block
06
01
Command
code
Response Block
06
16 bytes
01
Command
code
Response
code
Fatal error
data
Non-fatal
error data
FAL/
FALS no.
Error
message
Status Mode
Parameters
Status (response): The operating status of the PC as follows:
00: Stop (program not being executed)
01: Run (program being executed)
80: CPU on standby (the start switch is OFF or the CPU is waiting for a signal
from a device such as a Remote I/O Slave Unit).
Mode (response): One of the following PC modes:
00: PROGRAM
02: MONITOR
04: RUN
65
CLOCK READ
Section 3-12
Fatal error data (response): The contents of fatal error information from the PC
(for details refer to your PC Operation Manual).
First byte
Bit
15
14
13
12
0
0
11
Second byte
10
9
8
7
0
0
0
6
5
4
3
2
1
0
0
0
0
0
0
0
1: System error (FALS)
1: I/O setting error
1: I/O point overflow
1: CPU bus error
1: Memory error
Non-fatal error data (response): The contents of non-fatal error information
from the PC (for details refer to your PC Operation Manual).
First byte
Bit
15
Second byte
14
13
12
11
10
0
0
0
0
0
9
8
7
6
0
0
5
4
3
2
0
0
1
0
1: PC link error
1: Host link error
1: Battery error
1: Remote I/O error
1: Special I/O Unit error
1: I/O collate error
1: System error (FAL)
FAL/FALS no. (response): The number of the highest priority FAL/FALS error
is returned as BCD between 00 and 99 (decimal) to the second byte. The first
byte is always 00. If no error has occurred, 0000 is returned.
Error message (response): The error message of the present FAL/FALS number is returned as 16 ASCII characters (16 bytes). If there is no error, nothing will
be returned.
3-12 CLOCK READ
Reads the clock. This command is valid for the C200H only.
Command Block
07
01
Command
code
Response Block
07
01
Command
code
Parameters
66
Response
code
Year Month Date Hour Minute Second Day
Year, month, date, hour, minute, second, day (response): Each value is expressed in BCD.
ERROR CLEAR
Section 3-14
Year: The rightmost two digits of the year.
Hour: 00 to 23.
Day: As follows:
Value
00
Day
Sun
01
02
03
04
Mon
Tues
Wed
Thur
05
Fri
06
Sat
3-13 CLOCK WRITE
Sets the clock. This command is valid for the C200H only.
Note Specify all data.
Command Block
07
02
Command
Year Month Date Hour Minute Second Day
code
Response Block
07
02
Command
code
Parameters
Response
code
Year, month, date, hour, minute, second, day (command): Each specified
value is expressed in BCD.
Year: The rightmost two digits of the year.
Hour: Specify 00 to 23.
Day: As follows:
Value
00
Day
Sun
01
02
03
04
Mon
Tues
Wed
Thur
05
Fri
06
Sat
3-14 ERROR CLEAR
Clears errors from the PC. A normal response will be returned even if an error
has not occurred.
Note The cause of the error must be removed before executing the ERROR CLEAR
command or the same error will occur again after the ERROR CLEAR command
is executed.
Command Block
21
01
Command
code
FF
FF
Error reset
code
Response Block
21
01
Command Response
code
code
Parameters
Error reset code (command): Set to FFFF.
67
FILE MEMORY READ
Section 3-16
3-15 FILE MEMORY INDEX READ
Reads the File Memory index for the specified number of blocks from the specified beginning block number.
Note This command is valid for the C1000H and C2000H only. Refer to the File
Memory Unit Operation Manual for details on the File Memory.
Command Block
22
0F
Command Beginning
code
block
number
Number of blocks
Response Block
22
0F
Command Response
code
code
Number of Total number Type
Control data
blocks
of blocks
Data type
remaining
Control data
Data type
For 1 block
Parameters
For 1 block
Beginning block number and Number of blocks (command): Set the number of the first block and the total number of blocks whose index is to be read.
The first block can be 0000 to 07CF (0 to 1999 decimal); the number of blocks
can be 01 to 80 (1 to 128 decimal).
Number of blocks remaining and Total number of blocks (response): The
number of blocks not to be read (0000 to 07D0 (0 to 2,000 in decimal)) and the
total number of blocks in File Memory (0000, 03E8, or 07D0 (0, 1,000, or
2,000 in decimal, respectively)).
Type (response): The type of File Memory being used.
00:
01:
RAM
First half RAM; second half ROM
Data type and Control data (response): One byte for each parameter is returned with each block read.
Data type: As follows:
Bit
7
6
5
4
3
0
0
0
2
1: Protected
1: Block containing END(01)
(for user programs only)
1
0
Bit
2 1
0 0
0
0
Empty
0
0
0
1
0
1
I/O data
User program
Comments
0
1
1
Data type
Control data: The number of comments. Used for comment data only.
3-16 FILE MEMORY READ
Reads the contents of the specified File Memory block.
Note This command is valid for the C1000H and C2000H only. Refer to the File
Memory Unit Operation Manual for details on the File Memory.
68
FILE MEMORY WRITE
Section 3-17
Command Block
22
10
Command
code
Block
number
Response Block
22
10
256 bytes
Command Response
Control data
code
code Data type
Parameters
Data
Block number (command): Specify the number of the File Memory block to
read between 0000 and 07CF (0 and 1,999 in decimal).
Data type and Control data (response): One byte for each index parameter is
returned with each block read.
Data type: As follows:
Bit
7
6
5
4
3
0
0
0
2
1
1: Protected
1: Block containing END(01)
(for user programs only)*
0
Bit
2 1
0 0
0
0
Empty
0
0
0
1
0
1
User program
I/O data
Comments
0
1
1
Data type
Control data: The number of comments. Used for comment data only.
Data (response): The contents of the specified File Memory block (256 bytes
(128 words).
3-17 FILE MEMORY WRITE
Writes the specified contents to the specified File Memory block.
Note This command is valid for the C1000H and C2000H only. Refer to the File
Memory Unit Operation Manual for details on the File Memory.
Command Block
22
11
Command
Block number
code
Control data
Data type
256 bytes
Data
Response Block
22
11
Command Response
code
code
Parameters
Data type and Control data (command): Specify one byte for each index parameter.
69
FORCED SET/RESET
Section 3-18
Data type: Specify as follows:
Bit
7
6
5
4
3
0
0
0
2
1
0
1: Protected
1: Block containing END(01)
(for user programs only)*
Note:
Bit
2 1
0 0
0
1
I/O data
0
0
0
1
User program
Comments
1
1
Data type
*Turn ON (1) this bit only for a block
containing END(01) or a final block.
Control data: Specify the number of comments. Used for comment data
only. Control data specified for other data types will be ignored.
Block number (command): Specify the number of the File Memory block to
write between 0000 and 07CF (0 and 1,999 blocks).
Data (command): Specify the contents for the specified File Memory block (256
bytes (128 words).
3-18 FORCED SET/RESET
Force-sets (ON) or force-resets (OFF) bits/flags or releases force-set status.
Bits/flags that are forced ON or OFF will remain ON or OFF and cannot be written to until the forced status is released.
Note This command cannot be used to release the status of Completion Flags for timers or counters. If forced status is released and the Completion Flag is turned
ON, it will be force-set; if forced status is released and the Completion Flag is
turned OFF, it will be force-reset.
Command Block
23
01
Command
No. of
bits/flags
code
Set/Reset
specification
Bit/flag
Set/reset
specification
Memory area code
Forced set/reset data
Bit/flag
Memory area code
Forced set/reset data
Response Block
23
01
Command
code
Parameters
Response
code
No. of bits/flags (command): The number of bits/flags to be processed.
Note Only one bit/flag can be specified for the C1000H or C2000H for each command.
If more than one bit/flag is specified, only the last one will be processed. Multiple
bits/flags can be specified for the C200H.
Set/Reset specification (command): The action to be taken for each bit/flag:
Value
70
Name
0000
Force-reset (OFF)
0001
Force-set (ON)
8000
Forced status released and bit turned OFF (0)
8001
Forced status released and bit turned ON (1)
FFFF
Forced status released
MULTIPLE FORCED STATUS READ
Section 3-20
Note Only 0000 and 0001 can be specified for the C1000H or C2000H.
Memory area code (command): The memory area of the bit or flag to be controlled.
Bit/Flag (command): The bit or flag to be controlled.
Memory Areas
Refer to 3-2 Memory Area Designations for memory area designations.
3-19 FORCED SET/RESET CANCEL
Cancels all bits (flags) that have been forced ON or forced OFF.
Command Block
23
02
Command
code
Response Block
23
02
Command
code
Response
code
Note The bits (flags) in the following memory areas can be forced set or forced reset.
Memory area
Data
CIO, LR, HR, and AR
areas
Bits status
Timer/Counter
Completion Flag status
3-20 MULTIPLE FORCED STATUS READ
Reads the forced status of the specified range of words or timers/counters.
Note This command is valid for the C200H only.
Command Block
23
0A
Command
code
Beginning
address
Number of
units
Memory
area code
Response Block
23
0A
Command Response
Beginning
Memory address
code
code
area code
Parameters
Number of
units
Data
Memory area code, Beginning address, Number of units (command, response): Specify the memory area code, the beginning address in that area,
and the number of words or timers/counters to read. The number of units can be
between 0001 and 0040 (1 to 64 in decimal).
71
MULTIPLE FORCED STATUS READ
Section 3-20
The actual area, beginning address, and number of unit to be read will be returned in the response.
Memory Areas
Forced status can be read in the following areas. Refer to 3-2 Memory Area Designations for memory area designations.
Area
Data type
Memory area
code
Number of
bytes
CIO, LR, HR, and
AR areas
Current value of word
80
2
Timer/counter area
Completion Flag status
01
1
Note Forced status is read by words for the CIO, LR, HR, or AR area and by bits (flags)
for the timer/counter area.
Data (response): Forced status is returned beginning from the specified word
or timer/counter. The number of bytes returned will be (the number of units) x
(the number of bytes/unit).
CIO, LR, HR, and AR Areas:
Bit
15
14
13
Bit 14
Bit 15
12
11
Bit 12
Bit 13
10
9
Bit 10
Bit 11
Bit 9
8
7
Bit 8
6
5
Bit 6
Bit 7
4
3
Bit 4
Bit 5
2
1
Bit 2
Bit 3
0
Bit 0
Bit 1
The status for each bit is as follows:
OFF (0): No forced status in effect
ON (1): Forced ON or forced OFF
Timers/Counters: Status of the Completion Flag will be returned as follows:
00: No forced status in effect
01: Forced ON or forced OFF
72
SECTION 4
Commands for SYSMAC NET Link Units
This section provides details on commands that can be sent to SYSMAC NET Link Units. The SYSMAC NET Link Units that
support these commands are listed in the following table.
PC
CV500, CV1000
4-1
4-2
4-3
4-4
4-5
4-6
4-7
4-8
4-9
4-10
4-11
4-12
4-13
4-14
4-15
Model number
CV500-SNT31
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK TABLE READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK TABLE WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LOOP-BACK TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NAME SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NAME DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NAME READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
73
DATA LINK TABLE READ
4-1
Section 4-2
Command List
The beginning portions of the command and response block up to the command
codes and the FCS and terminator have been omitted for simplicity, but must be
added for actual transmission if not automatically generated for the transmission
method being used. Refer to 1-3 Command/Response Transmission Data.
In the illustrations of command and response blocks in this section, each box
represents one byte (i.e., two hexadecimal or BCD digits). Be careful when adding the header, where each box represents one digit (i.e., four bits).
The following table lists the FINS commands supported by SYSMAC NET Link
Units.
Command
code
02
Page
20
DATA LINK TABLE READ
74
21
DATA LINK TABLE WRITE
75
01
RUN
77
02
STOP
77
03
RESET
78
05
01
CONTROLLER DATA READ
78
06
01
CONTROLLER STATUS READ
78
04
03
DATA LINK STATUS READ
79
08
01
LOOP BACK TEST
80
21
02
ERROR LOG READ
81
03
ERROR LOG CLEAR
82
01
NAME SET
82
02
NAME DELETE
82
03
NAME READ
83
26
4-2
Name
DATA LINK TABLE READ
Reads the contents of the data link table.
Command Block
02
20
Command
code
00
00
Fixed
53
4E
Intelligent
ID no.
00
00
First word
Read length
Response Block
02
8 bytes
20
Command
code
Response
code
1 block record
No. of link nodes
Parameters
8 bytes
1 block record
Records for the no. of link nodes
Intelligent ID no. (command): Designate S (53) and N (4E) in ASCII.
Beginning word (command): Set to 0000.
Read length (command): Regardless of the value that you designate, the data
link tables for the number of link nodes that has been set will be read.
74
DATA LINK TABLE WRITE
Section 4-3
No. of link nodes (response): The number of link nodes set in the data link
table will be returned; the configuration is as follows (bit 7 is always set to 1):
Bit
7
6
5
4
3
2
1
0
1
No. of link nodes (02 to 20)
One-block record (response): One-block records will be returned in sequence
according to the setting order in the data link table (in the case of automatic setting, they will be returned in node number order). The total number of bytes required is as follows:
Number of link nodes x 8 bytes
The configuration of the one-block record is as follows:
1st byte
8th byte
00
CIO Area
first word
Node number
DM Area
first word
No. of total words
Kind of DM
• Node Number
The configuration of a node number is shown below. It expresses the status of
the data link node number of the one-block record and the data link on the
node.
Bit
7
6
5
4
3
2
1
0
No. of link nodes (01 to 7E)
Data link status (0:
normal; 1: warning)
• CIO Area First Word
The first word in a data link in the CIO Area.
• Kind of DM
Set to 00.
• DM Area First Word
The first word of a data link in the DM Area.
• No. of Total Words
The total number of words of the CIO and DM Area varies with the block as
follows:
1st block: The total number of data link words in the CIO Area.
2nd block: The total number of data link words in the DM Area.
Other blocks: Set to 0000.
4-3
DATA LINK TABLE WRITE
Writes the data link table to the master from the CVSS or IBM PC/AT compatible.
Note
1. You cannot write a data link table when the data link is active
2. The data set on each node must begin with the first node of the data link
area.
3. You cannot set a vacant area between two data link areas. For details, refer
to the SYSMAC NET Link System Manual.
75
DATA LINK TABLE WRITE
Section 4-3
Command Block
02
21
Command
code
00
00
Fixed
53
4E
00
8 bytes
00
First word
Intelligent
ID no.
Data
length
1 block record
8 bytes
1 block record
Records for the no. of link nodes
No. of link nodes
Response Block
02
21
Command Response
code
code
Parameters
Intelligent ID no. (command): Designate S (53) and N (4E) in ASCII.
First word (command): Set to 0000.
Data length (command): Regardless of the value you designate, the data link
tables for the number of link nodes will be written.
No. of link nodes (response): Designate the number of link nodes in a range
between 02 and 20 (2 and 32); the configuration is as follows (bit 7 is always set
to 1):
Bit
7
6
5
4
3
2
1
0
1
No. of link nodes (02 to 20)
One-block record (command): One-block records will be sent in sequence according to the setting order in the data link table. The total number of bytes required is as follows:
Number of link nodes x 8 bytes
The configuration of the one-block record is as follows:
1st byte
8th byte
00
CIO Area
first word
Node number
DM Area
first word
No. of total
words
Kind of DM
• Node Number
The node number provides the data link node number for the one-block record
and the status of the data link. The configuration of the node number is as follows (bit 7 is always set to 0):
Bit
7
6
5
4
3
2
1
0
0
Node number (01 to 7E)
• CIO Area First Word
This is the first word in a data link in the CIO Area. The data link will extend from
the first word through the word just before the first word designated for the CIO
Area in the next record. For the last record, the data link will extend from the
76
STOP
Section 4-5
first word through the number of words required to make the total number of
words in the first block.
• Kind of DM
Set to 00.
• DM Area First Word
This is the first word in a data link in the DM Area. The data link will extend from
the first word through the word just before the first word designated for the DM
Area in the next record. For the last record, the data link will extend from the
first word through the number of words required to make the total number of
words in the second block.
• No. of Total Words
The total number of words used for data links in the CIO and DM Area. These
are given only in the first and second blocks, as shown below
First block: The total number of data link words in the CIO Area.
Second block: The total number of data link words in the DM Area.
Other blocks: Set to 0000.
4-4
RUN
Activates the data links.
Note
1. This command will result in an error if data links have not be created either
automatically or manually.
2. This command must be sent to the master node or an error will result.
Command Block
04
01
Command
code
Response Block
04
01
Command
code
4-5
Response
code
STOP
Stops the data links
Note
1. This command can be executed only when the data links are active or an
error will result.
2. This command must be sent to the master node or an error will result.
Command Block
04
02
Command
code
Response Block
04
02
Command
code
Response
code
77
Section 4-8
CONTROLLER STATUS READ
4-6
RESET
Resets the SYSMAC NET Link Unit.
Note
1. No response will be returned for this command.
2. When this command is executed, only the data that has been stored in the
transmission buffer will be sent.
Command Block
04
03
Command
code
4-7
CONTROLLER DATA READ
Reads the model and version of the SYSMAC NET Link Unit.
Command Block
05
01
Command
code
Response Block
05
01
Command
code
Parameters
4-8
Response
code
20 bytes
20 bytes
Model
Version
Model and Version (response): Both are read in ASCII (20 bytes (i.e. 20 ASCII
characters) max. each). If the model or version information does not require 20
bytes, the remainder of the 20 bytes will be filled with spaces (ASCII 20).
CONTROLLER STATUS READ
Reads the status of the PC and the SYSMAC NET Link Unit.
Command Block
06
01
Command
code
Response Block
06
01
Command
code
Response
code
PC status
Error flags
78
No. of I/F
No. of
errors
optical LAN
occurred communications errors
on PC
occurred
No. of
RAM
errors
occurred
Section 4-9
DATA LINK STATUS READ
Parameters
Bit
PC status (response): The operating status of the PC will be returned as shown
in the following diagram. For details on loop conditions, refer to the SYSMAC
NET Link System Manual.
7
6
5
4
3
2
1
0
0
0
Network status
0: Reception not possible
1: Reception possible
Loop condition
Power supply
0: Power not supplied
1: Power supplied
Test between two nodes
0: Not testing
1: Testing
Data links
0: Not active
1: Active
Bit
3 2
0 0
Normal loop
0
1
1
Downstream back loop
Upstream back loop
Loop error
1
0
1
Meaning
Error flags (response): The error flags of the PC will be returned as shown in
the following diagram. Refer to the SYSMAC NET Link System Manual for details on errors.
Bit
7
6
5
4
0
0
0
0
3
2
1
0
1: CPU BUS monitor error
1: CPU error
1: System setting error
1: Routing table error
Non-fatal errors
No. of I/F Errors Occurred on PC (response)
Refer to the SYSMAC NET Link System Manual for details.
No. of Optical LAN Communications Errors Occurred
Refer to the SYSMAC NET Link System Manual for details.
No. of RAM Errors Occurred
Refer to the SYSMAC NET Link System Manual for details.
4-9
DATA LINK STATUS READ
Reads the data link status of the SYSMAC NET Link.
Command Block
06
03
Command
code
Response Block
06
03
Command
code
Response
Status 1
code
Status
flags Master node number
Status 2
Status 3
Status 4
79
Section 4-10
LOOP-BACK TEST
Parameters
Status flags (response): A one-byte data link status will be returned as follows:
Bit
7
6
5
4
3
2
1
0
0
0
0
0
0
0
Slave/Master (0: Slave/1: Master)
Data links
(0: Not active; 1: Active)
Slave/master: Bit 0 specifies the setting of the node on which the data link status has been read.
Master node number (response): The node number of the master node of the
data link will be returned.
Status 1 through 4 (response): The data link status (error, mode, and warning
status) on each node is returned in one-byte of data as follows:
First byte
Third byte
Each status
Bit
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Status 1
8 .................... 1
8 ..................... 1
8 ..................... 1
Status 2
16 . . . . . . . . . . . . . . . . . . . . 9
16 . . . . . . . . . . . . . . . . . . . . . 9
16 . . . . . . . . . . . . . . . . . . . . 9
Status 3
24 . . . . . . . . . . . . . . . . . . . . 17 24 . . . . . . . . . . . . . . . . . . . . 17 24 . . . . . . . . . . . . . . . . . . . . 17
Status 4
32 . . . . . . . . . . . . . . . . . . . . 25 32 . . . . . . . . . . . . . . . . . . . . 25 32 . . . . . . . . . . . . . . . . . . . 25
0: Normal/1: Error
0: Stop/1: Run
0: Normal/1: Warning
The figures as shown in each box specify the order of nodes set on the data link table. In the
case of automatic setting, the figures will correspond to the node number.
4-10 LOOP-BACK TEST
Executes a loop-back test between the local node and a destination node.
Note
1. The destination node is designated in the control data of the CMND(194)
instruction.
2. The unit address must designate a SYSMAC NET Link Unit.
Command Block
08
01
Command
code
1,986 bytes max.
Test data
Response Block
08
Command
code
Parameters
80
1,986 bytes max.
01
Response
code
Test data
Test data (command and response): In the command block, designate the
data to be transmitted to the destination node. The designated data consists of
1,986 bytes maximum (binary data). In the response block, the test data from the
command block will be returned as it is. If the test data in the response block is
different from that in the command block, an error has occurred.
Section 4-11
ERROR LOG READ
4-11 ERROR LOG READ
Reads the error log file.
Note If the number of records that you designate in the command block exceeds the
actual number of stored records, all the stored records will be returned and no
error will occur.
Command Block
21
02
Command
code
Beginning
record no.
No. of
records
Response Block
21
02
Command
code
Parameters
Response Max. no. of
No. of
code stored records stored
records
No. of
records
10 bytes
10 bytes
Error log
data
Error log
data
Beginning record no. (command): Designates the beginning record number
in a range of 0000 to 0018 (0 to 24 in decimal) (the first record is 0000).
No. of records (command and response): Designates the number of records
to be read in a range of 0001 to 0019 (1 to 25 in decimal).
Max. no. of stored records (response): The maximum number of stored records varies with the kind of Unit. The SYSMAC NET Link Unit can store 25 records maximum.
No. of stored records (response): The number of records that have been recorded.
Error log data (response): The specified error log records will be returned in
sequence starting from the beginning record number. The total number of bytes
required is calculated as follows:
No. of records x 10 bytes
The configuration of each error record is as follows:
1st byte
Error code
10th byte
Details
Minute
Date Hour Year Month
Second
• Error Code and Details
The error code and details vary with the kind of Unit.
• Minute, Second, Date, Hour, Year, and Month
Each record includes the second, minute, hour (0 to 23), date, month, and year
(the rightmost two digits) in BCD specifying the time that the error occurred.
81
Section 4-14
NAME DELETE
4-12 ERROR LOG CLEAR
Clears all error log records to all zeros.
Note This command cannot be executed if any other device has the access right.
Command Block
21
03
Command
format
Response Block
21
03
Command
format
Response
code
4-13 NAME SET
Registers a name for the SYSMAC NET Link Unit.
Command Block
26
01
Command
code
Within 8 bytes
Name data
Response Block
26
01
Command
code
Parameters
Response
code
Name data (command): The data set must be within 8 bytes in ASCII. Do not
use the NULL (00) code.
4-14 NAME DELETE
Deletes the name of a SYSMAC NET Link Unit.
Command Block
26
02
Command
code
Response Block
26
02
Command
code
82
Response
code
Section 4-15
NAME READ
4-15 NAME READ
Reads the name of a SYSMAC NET Link Unit.
Command Block
26
03
Command
code
Response Block
26
Command
code
Parameters
Within 8 bytes
03
Response
code
Name data
Name data (response): The data previously set within 8 bytes in ASCII will be
returned (except NULL (00) code).
83
SECTION 5
Commands for SYSMAC LINK Units
This section provides details on commands that can be sent to SYSMAC LINK Units. The SYSMAC LINK Units that support
these commands are listed in the following table.
Unit
C-series SYSMAC LINK Units
Applicable PC/computer
C1000H or C2000H
C200H
CV-series SYSMAC LINK Units
CV500 or CV1000
SYSMAC LINK Support Board
IBM PC/AT or compatible
5-1
5-2
5-3
5-4
5-5
5-6
5-7
5-8
5-9
5-10
5-11
5-12
Cable
Optical fiber
Coaxial
Optical fiber
Coaxial
Optical fiber
Coaxial
Coaxial
Model number
C1000H-SLK11
C1000H-SLK21-V1
C200H-SLK11
C200H-SLK21-V1
CV500-SLK11
CV500-SLK21
3G8F5-SLK21-E
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NETWORK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DATA LINK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
INTERNODE ECHO TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BROADCAST TEST RESULTS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BROADCAST TEST DATA SEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
85
STOP
5-1
Section 5-3
Command List
The beginning portions of the command and response block up to the command
codes and the FCS and terminator have been omitted for simplicity, but must be
added for actual transmission if not automatically generated for the transmission
method being used.
In the illustrations of command and response blocks in this section, each box
represents one byte (i.e., two hexadecimal or BCD digits). Be careful when adding the header, where each box represents one digit (i.e., four bits).
The following table lists the FINS commands supported by SYSMAC LINK Units
and Support Boards.
Command
code
04
Page
01
RUN
86
02
STOP
86
05
06
01
CONTROLLER DATA READ
87
01
02
03
CONTROLLER STATUS READ
NETWORK STATUS READ
DATA LINK STATUS READ
88
90
91
08
01
INTERNODE ECHO TEST
92
02
BROADCAST TEST RESULTS READ
92
03
BROADCAST TEST DATA SEND
93
02
ERROR LOG READ (Not supported by SYSMAC
LINK Units)
93
03
ERROR LOG CLEAR (Not supported by SYSMAC
LINK Units)
94
21
5-2
Name
RUN
Activates data links in the SYSMAC LINK Network.
Note This command will be completed normally when link words are allocated automatically or via data link tables only.
Command Block
04
01
Command
code
Response Block
04
01
Command
code
5-3
Response
code
STOP
Stops data links in the SYSMAC LINK Network.
Note This command will be completed normally when the data link is in operation. If
the data link is not in operation, an error will occur.
86
CONTROLLER DATA READ
Section 5-4
Command Block
04
02
Command
code
Response Block
04
02
Command
code
5-4
Response
code
CONTROLLER DATA READ
Reads the following data:
• PC model and version
• Cable type
• Node number
• Common RAM size
Command Block
05
01
Command
code
Response Block
05
01
Command
code
Parameters
Response
code
20 bytes
20 bytes
PC model
PC version
Node number
Cable type/Common RAM size
PC model and version (response):
Both are read in ASCII codes (20 bytes (i.e. 20 ASCII characters) max. each). If
the model or version requires less than 20 characters, the remaining bytes will
be filled with spaces (ASCII code 20).
Cable type and Common RAM Size:
Bit 7 will be ON if the SYSMAC LINK Network is using optical fiber cable; OFF if it
is using coaxial cable. The common RAM is the buffer for the communications
controller. The size of the common RAM buffer will be returned in bits 00 to 02 as
follows:
Bit
7
6
5
4
3
0
0
0
0
2
1
0
Cable type
Size of RAM buffer
1: Optical fiber cable
0: Coaxial cable
001:
010:
011:
100:
101:
110:
2K bytes
4K bytes
8K bytes
16K bytes
24K bytes
32K bytes
Node number:
The node number of the SYSMAC LINK Unit from 01 to 3E (1 to 62 decimal).
87
CONTROLLER STATUS READ
5-5
Section 5-5
CONTROLLER STATUS READ
Reads the status of the controller.
Command Block
06
01
Command
code
Response Block
06
8 bytes
01
Command
code
Response
code
Data link status
Participation
list
Status 1
Status 6
Count 1
6 bytes total
Parameters
Count 8
8 bytes total
Status (response): The operating status of the data links as follows:
00: Stopped
01: Active
Status 1 (response): Communications test status as follows:
Bit
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
1: Test running; 0: test stopped
Status 2 (response): Line status as follows:
Bit
7
6
5
4
0
0
0
0
3
2
1
0
0
0
0
1: Power supplied; 0: power not supplied
Status 3 (response): Error status as follows:
Bit
7
6
5
4
3
0
0
0
0
0
2
1
0
1: Node number setting range error
1: Node number duplication error
1: Network parameter disagreement
Note The registered network parameters are compared to the actually network parameters upon power application the first time a Unit joins the network. If the parameters do not agree, bit 2, above, will be turned ON, but the system will not
stop (the actual network parameters will automatically be registered).
Status 4 (response): The cause of communications controller errors as follows:
Bit
7
6
0
5
4
3
0
0
2
1
0
1: Watchdog timer error
1: Memory error
1: Chip error
1: Transmitter error
1: Local node echo test error
88
CONTROLLER STATUS READ
Section 5-5
Status 5 (response): Backup status as follows:
Bit
7
6
5
4
0
0
0
3
2
1
0
1: Network parameter error
1: Data link table error
1: Routing table error
1: Memory switch error
1: EEPROM error
Status 6 (response): Error log status as follows (fixed to 00 for C-series SYSMAC LINK Units):
Bit
7
6
5
4
3
2
1
0
0
0
0
0
0
0
1: Error log records present; 0: No error log records
1: Error log overflow
Counts 1 through 8 (response):
Each of the following bytes provides two hexadecimal digits giving the total number of occurrences of the following items since power was turned on. These
counters will count to 255 and then remain there until power is turned off again.
Count 1: Number of CRC errors
Count 2: Number of times token has been resent
Count 3: Number of times token has been passed
Count 4: Number of token time-outs
Count 5: Number of polling time-outs
Count 6: Number of time polling unit has changed
Count 7: Number of time participating Units have changed
Count 8: Number of times communications controller transmit/receive
operation has stopped.
Participation List (response):
Bits in the last eight bytes of the response are turned ON to indicate when a node
is participating in the SYSMAC LINK network. The bit turned ON for each node
number is shown in the following illustration. Bits given as “–” are always zero.
Bit
7
6
5
4
3
2
1
0
Byte 1
8
7
6
5
4
3
2
1
Byte 2
16 15 14 13 12 11 10 9
Byte 3
24 23 22 21 20 19 18 17
Byte 4
32 31 30 29 28 27 26 25
Byte 5
40 39 38 37 36 35 34 33
Byte 6
48 47 46 45 44 43 42 41
Byte 7
56 55 54 53 52 51 50 49
Byte 8
–
– 62 61 60 59 58 57
89
NETWORK STATUS READ
5-6
Section 5-6
NETWORK STATUS READ
Reads the status of the SYSMAC LINK Network.
Command Block
06
02
Command
code
Response Block
06
31 bytes
02
Command
code
Response
code
Network Communications
member data cycle time
Current polling unit
node number
8 bytes
62 bytes
Cyclic
non-fatal errors
Cyclic error
counters
Cyclic
transmission status
Cyclic operation
Parameters
Network member data (response): Four bits are allocated to each node number to provide information on the status of nodes in the network as shown below.
The function of each of the 4 bits is shown in the diagram following the table.
Byte
Bits 4 to 7
Bits 0 to 3
Byte 1
Node number 2
Node number 1
Byte 2
Node number 4
Node number 3
Byte 3
Node number 6
Node number 5
Byte 31
Node number 62
Node number 61
Bit 3/7 2/6 1/5 0/4
0
1: In network (0: Not in network)
1: Exited because of an error.* (0: Normal exit)
1: Unit does not respond to polling.
Note *Bit 1/5 is used to indicate why the node is not in the network when bit 0/4 is OFF.
Communications cycle time (response): The actual communications cycle
time is provided here in 4-digit hexadecimal in increments of 100 µs.
Current polling unit node number (response): The node number of the unit
that currently is the polling unit.
Cyclic operation (response): Indicates the current status of cyclic operation,
as follows:
00: Stopped
01: Active
Cyclic transmission status (response): Indicates the current status of cyclic
transmission, as follows:
00: No transmission
01: Transmission
Cyclic non-fatal errors (response): These eight bytes indicate nodes in which
non-fatal errors occurred in cyclic transmission. When a bit in the following matrix is ON, a non-fatal error occurred in the corresponding node. Bit 0 of the first
byte and bit 7 of the eighth byte are always OFF.
90
DATA LINK STATUS READ
Section 5-7
Bit
7
6
5
4
3
2
1
0
First byte
7
6
5
4
3
2
1
-
15 14 13 12 11 10 9
8
Second byte
Third byte
23 22 21 20 19 18 17 16
Fourth byte
31 30 29 28 27 26 25 24
Fifth byte
39 38 37 36 35 34 33 32
Sixth byte
47 46 45 44 43 42 41 40
Seventh byte
55 54 53 52 51 50 49 48
-
Eighth byte
62 61 60 59 58 57 56
Cyclic error counters (response): One of these 62 bytes is allocated to each
node to indicate how many cyclic errors occurred since start-up. The first byte is
allocated to node number 1, the second to node number 2, etc. Each number is
2-digit hexadecimal, so 00 to FF (0 to 255 decimal) errors can be recorded for
each node. If more than 255 errors occur, the number will remain at 255.
5-7
DATA LINK STATUS READ
Reads the status of the data link.
The various data link status information described here will not be updated while
the data link is halted.
Command Block
06
03
Command
code
Response Block
06
31 bytes
03
Command
code
Parameters
Response
Present
Max.
refresh time refresh time
code
Status flags
Data link
status
Status flags (response): This byte contains flags providing information on
overall data link status, as follows:
Bit
7
6
5
4
3
2
0
0
0
0
1
0
1: Data link table error
1: No data link table
1: Automatic link word allocation
(0: Allocation via data link tables)
1: Data link is active.
(0: Data link is halted.)
Present and Max. refresh time (response): The present and maximum data
link refresh times in 4-digit hexadecimal in increments of 1 ms. The range is 0005
to 00FF (5 to 255 ms, in decimal).
Data link status (response): Four bits are allocated to each node number to
provide information on the status of the data links, as shown below. The function
of each of the 4 bits is shown in the diagram following the table.
91
BROADCAST TEST RESULTS READ
Section 5-9
Byte
Bits 4 to 7
Bits 0 to 3
Byte 1
Node number 2
Node number 1
Byte 2
Node number 4
Node number 3
Byte 3
Node number 6
Node number 5
Byte 31
Node number 62
Node number 61
Bit 3/7 2/6 1/5 0/4
1: PC is in RUN or MONITOR mode
1: PC is stopped because a fatal error has occurred.
1: Not in network or communication error has occurred.
1: Data link is active.
5-8
INTERNODE ECHO TEST
Performs a internode echo test with the indicated node.
Command Block
08
01
Command
code
512 bytes max.
Test data
Response Block
08
Command
code
Parameters
5-9
512 bytes max.
01
Response
code
Test data
Test data (command and response): Up to 512 bytes of test data can be included in the command. This data is transmitted to the indicated node and returned unchanged if communications are normal. If the data returned in the response differs from that transmitted in the command, an error occurred in the
test.
BROADCAST TEST RESULTS READ
Reads the results (number of receptions for each node) of the broadcast tests
carried out using the BROADCAST TEST DATA SEND command. Refer to 5-10
BROADCAST TEST DATA SEND for details on that command.
Command Block
08
02
Command
code
Response Block
08
02
Command
code
92
Response
code
Number of
receptions
Section 5-11
ERROR LOG READ
Parameters
Number of receptions (response): The number of times that the BROADCAST TEST DATA SEND command has been executed since the last BROADCAST TEST RESULTS READ command was executed.
When this command is executed, the number of receptions data stored in the
destination nodes is cleared. If the number of receptions does not equal the
number of times that the BROADCAST TEST DATA SEND command has been
executed since the last BROADCAST TEST RESULTS READ command was
executed, an error has occurred.
5-10 BROADCAST TEST DATA SEND
Sends the test data in the command to all nodes in the specified network. No
response will be returned when this command is executed, but reception of the
test data can be verified by executing the BROADCAST TEST RESULTS READ
command. Refer to 5-9 BROADCAST TEST RESULTS READ for details.
Command Block
08
03
Command
code
512 bytes max.
Test data
Note Make the following control data settings for CMND(194) when executing a
broadcast test:
a) Destination node number:
FF (broadcast transmission)
b) Destination node unit number: FE (to SYSMAC LINK Units or Support
Board)
c) Response Flag (bit 13 of C+1): ON (response not returned)
5-11 ERROR LOG READ
Reads the error log.
Note
1. When the specified number of records have not yet been stored, all the records that have been stored will be read and a normal response will returned.
2. If the data is too large and exceeds the permissible length of the response
block (540 bytes), the part in excess will not be read and a normal response
will be returned.
3. This command is not supported by C-series SYSMAC LINK Units.
Command Block
21
02
Command
code
Beginning
record no.
No. of
records
Response Block
21
02
Command
code
Response Max. no. of
code
records
No. of
stored
records
No. of
records
10 bytes
10 bytes
Error log
data
Error log
data
93
Section 5-12
ERROR LOG CLEAR
Parameters
Beginning record no. (command): The first record to be read (the first record
number is 0000).
Max. no. of records (response): The maximum number of records that can be
recorded. Error logs vary for the PC, computers, and CPU Bus Units. The maximum number of records for SYSMAC LINK Units or Support Boards is fixed at 40
(64 records).
No. of stored records (response): The number of records that have been recorded.
No. of records (command and response): The number of records to be read.
Specify between 0000 and 0035 (0 and 53 in decimal). If the number of records
is not specified, all records to present will be read and a normal response code
will be returned. If the number of records causes the response to exceed 540
bytes, records through 540 bytes will be returned and an error response will be
returned saying that the response was too long.
Error log data (response): The specified error log records will be returned in
sequence starting from the beginning record number. The total number of bytes
required is calculated as follows:
Number of records
10 bytes
The configuration of each error record is as follows:
1st byte
10th byte
Error code
Detail
Minute
Date Hour Year Month
Second
Each data includes the second, minute, hour (0 to 23), date, month, and year
(the rightmost two digits) in BCD specifying the time that the error occurred. Refer to the SYSMAC LINK System Manual or SYSMAC LINK Support Board Operation Manual for details on error codes.
5-12 ERROR LOG CLEAR
Clears all error log records.
Note This command is not supported by C-series SYSMAC LINK Units.
Command Block
21
03
Command
format
Response Block
21
03
Command
format
94
Response
code
SECTION 6
Commands for Personal Computer Units
This section provides details on commands that can be sent to CV500-VP111-E or CV500-VP121-E Personal Computer
Units.
6-1
6-2
6-3
6-4
6-5
6-6
6-7
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CLOCK WRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
INTERNODE ECHO TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
95
CLOCK READ
6-1
Section 6-3
Command List
The beginning portions of the command and response block up to the command
codes and the FCS and terminator have been omitted for simplicity, but must be
added for actual transmission if not automatically generated for the transmission
method being used.
In the illustrations of command and response blocks in this section, each box
represents one byte (i.e., two hexadecimal or BCD digits). Be careful when adding the header, where each box represents one digit (i.e., four bits).
The following table lists the FINS commands supported by Personal Computer
Units.
Command
Name
Page
code
6-2
05
01
CONTROLLER DATA READ
96
07
01
CLOCK READ
96
02
CLOCK WRITE
97
08
01
INTERNODE ECHO TEST
97
21
02
ERROR LOG READ
98
03
ERROR LOG CLEAR
99
CONTROLLER DATA READ
Reads the following data:
• Controller model and version
Command Block
05
01
Command
code
Response Block
05
01
Command
code
Parameters
6-3
Response
code
20 bytes
Controller
model
Controller
version
Controller model and Controller version (response): Both are read in ASCII
codes (20 bytes (i.e., 20 ASCII characters) max. each). If all 20 bytes are not
required, remaining bytes will be filled with spaces (ASCII 20).
CLOCK READ
Reads the clock.
Command Block
07
01
Command
code
96
20 bytes
INTERNODE ECHO TEST
Section 6-5
Response Block
07
01
Command
code
Parameters
Response
code
Year Month Date Hour Minute Second Day
Year, month, date, hour, minute, second, day (response): Each value is expressed in BCD.
Year: The rightmost two digits of the year.
Hour: 00 to 23.
Day: As follows:
Value
Day
6-4
00
Sun
01
02
03
04
Mon
Tues
Wed
Thur
05
Fri
06
Sat
CLOCK WRITE
Sets the clock.
Note If any other device holds the access right, the clock will not be set.
Command Block
07
02
Command
Year Month Date Hour Minute Second Day
code
Response Block
07
02
Command
code
Parameters
Response
code
Year, month, date, hour, minute, second, day (command): Each specified
value is expressed in BCD.
Year: The rightmost two digits of the year.
Hour: Specify 00 to 23.
Day: As follows:
Value
Day
00
Sun
01
02
03
04
Mon
Tues
Wed
Thur
05
Fri
06
Sat
Note If the second or day are not specified, 00 will be set as the second and the previous value will be kept for the day.
6-5
INTERNODE ECHO TEST
Performs a internode echo test with the indicated node.
Command Block
08
01
Command
code
512 bytes max.
Test data
97
ERROR LOG READ
Section 6-6
Response Block
08
01
Command
code
Parameters
6-6
512 bytes max.
Response
code
Test data
Test data (command and response): Up to 512 bytes of test data can be included in the command. This data is transmitted to the indicated node and returned unchanged if communications are normal. If the data returned in the response differs from that transmitted in the command, an error occurred in the
test.
ERROR LOG READ
Reads the error log.
Note
1. When the specified number of records has not yet been written, all the records that have been stored will be read and a normal response will be returned.
2. All records that are read and any records older than the ones read will be
cleared when the command is executed.
Command Block
21
02
Command
code
Beginning
record no.
No. of
records
Response Block
21
02
Command
code
Parameters
00
40
No. of
Response Max. no. of
code stored records stored
records
No. of
records
10 bytes
10 bytes
Error log
data
Error log
data
Beginning record no. (command): The first record to be read (the first record
number is 0000).
Max. no. of stored records (response): The maximum number of records that
can be stored.
No. of stored records (response): The number of records that have been recorded. This value is fixed at 0040 (64 in decimal).
No. of records (command and response): The number of records to be read.
Error log data (response): The specified error log records will be returned in
sequence starting from the beginning record number. The total number of bytes
required is calculated as follows:
No. of records x 10 bytes
The configuration of each error record is as follows:
1st byte
Error type
10th byte
Error code
Minute
Date Hour Year Month
Second
98
ERROR LOG CLEAR
Section 6-7
Error type:
1st byte
Bit
2nd byte
15
14
13
12
11
10
9
8
7
6
5
4
0
0
0
0
0
0
1
1
0
0
0
0
3
2
1
0
0
1: BIOS startup error
1: CPU interface error
1: CIO error
Error code: Refer to the Personal Computer Unit Operation Manual for details.
Each data includes the second, minute, hour (0 to 23), date, month, and year
(the rightmost two digits) in BCD specifying the time that the error occurred.
6-7
ERROR LOG CLEAR
Clears all error log records.
Command Block
21
03
Command
format
Response Block
21
03
Command
format
Response
code
99
SECTION 7
Commands for BASIC Units
This section provides details on commands that can be sent to CV500-BSC11/21/31/41/51/61 BASIC Units.
7-1
7-2
7-3
7-4
7-5
Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
101
CONTROLLER DATA READ
7-1
Section 7-2
Command List
The beginning portions of the command and response block up to the command
codes and the FCS and terminator have been omitted for simplicity, but must be
added for actual transmission if not automatically generated for the transmission
method being used.
In the illustrations of command and response blocks in this section, each box
represents one byte (i.e., two hexadecimal or BCD digits). Be careful when adding the header, where each box represents one digit (i.e., four bits).
The following table lists the FINS commands supported by BASIC Units.
Command
code
7-2
Name
Page
05
01
CONTROLLER DATA READ
102
06
01
CONTROLLER STATUS READ
103
21
02
ERROR LOG READ
103
03
ERROR LOG CLEAR
104
CONTROLLER DATA READ
Reads the following data:
• Controller model and version
• Program information
• Memory information
Command Block
05
01
Command
code
Response Block
05
01
Command
code
Parameters
Response
code
20 bytes
20 bytes
38 bytes
Controller
model
Controller
version
Program
and memory
information
Controller model and Controller version (response): Both are read in ASCII
codes (20 bytes (i.e., 20 ASCII characters) max. each). If the model does not
require 20 bytes, the remainder is filled with spaces (ASCII 20). If the version
does not require 20 bytes, it is preceded by spaces (ASCII 20).
Program and memory information (response): As follows (refer to BASIC
Unit Operation Manual for details):
20 bytes
3 bytes
20 bytes
Name
Byte length
Name
Program 1
102
3 bytes
Byte length
Program 2
20 bytes
3 bytes
3 bytes
3 bytes
Non-volatile
Byte length S-code
variable area
area
available available
Program 3
Name
ERROR LOG READ
7-3
Section 7-4
CONTROLLER STATUS READ
Reads the status of the Controller.
Command Block
06
01
Command
code
Response Block
06
01
Command
code
Response
code
Status Program
number
Parameters
Status (response): The operating status of the BASIC Unit as follows:
00: Stop (program not being executed)
01: Run (program being executed)
Program number (response): The number of the program that is currently
executable or is being executed.
7-4
ERROR LOG READ
Reads the error log.
Command Block
21
02
Command
code
Beginning
record no.
No. of
records
Response Block
21
02
Command
code
Parameters
No. of
Response Max. no. of
code stored records stored
records
No. of
records
10 bytes
10 bytes
Error log
data
Error log
data
Beginning record no. (command): The first record to be read (the first record
number is 0000).
Max. no. of stored records (response): The maximum number of records that
can be stored.
No. of stored records (response): The number of records that have been
stored.
No. of records (command and response): The number of records to read.
Error log data (response): The specified error log records will be returned in
sequence starting from the beginning record number. The total number of bytes
required is calculated as follows:
No. of records x 10 bytes
103
ERROR LOG CLEAR
Section 7-5
The configuration of each error record is as follows:
Error type:
1st byte
10th byte
Error type
Error code
Minute
Date Hour Year Month
Second
Error code: The error code in the error log record. Refer to the BASIC Unit
Operation Manual for details.
Each data also includes the second, minute, hour (0 to 23), date, month, and
year (the rightmost two digits) in BCD specifying the time that the error occurred.
7-5
ERROR LOG CLEAR
Clears all error log records.
Command Block
21
03
Command
format
Response Block
21
03
Command
format
104
Response
code
SECTION 8
Response Codes
This section describes the response codes returned with responses to FINS commands. Response codes can be used to confirm
normal completion of command execution or to troubleshoot problems when commands fail. Refer to the operation manuals
for specific Units or Systems for further troubleshooting information.
8-1
8-2
8-3
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Network Relay Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Response Codes and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
105
Response Codes and Troubleshooting
8-1
Section 8-3
Configuration
Response codes for FINS commands consist of two bytes that indicate the result
of executing a command. The structure of the response codes is shown in the
following diagram.
First byte
Bit
7
6
5
4
3
Second byte
2
1
0
7
6
Main response code (MRES)
5
4
3
2
1
0
Sub-response code (SRES)
1: Relay Error Flag
1: PC Non-fatal Error Flag
1: PC Fatal Error Flag
The main response code (MRES) in the first byte classifies the response and the
sub-response code (SRES) in the second byte indicates details under the
MRES classification.
If bit 7 of the first byte is ON, a network relay error has occurred. Refer to Network
Relay Errors in this section for details on troubleshooting the error.
If bit 6 or 7 of the second byte is ON, an error has occurred in the PC or computer
returning the response. Refer to the operation manual for the device returning
the response for details when troubleshooting the error.
8-2
Network Relay Errors
A network relay error will occur whenever a command cannot reach the destination. These errors can occur for several reasons: 1) Data was not successfully
passed between two Link Units, 2) Data was not passed successfully between a
Link Unit and another Unit, such as the PC’s CPU, or 3) The destination of a
gateway does not exist. In any case, the Unit that was not able to transfer data
will return a response indicating a network relay error.
Bit 7 of the first byte of the response code will be ON if a network relay error has
occurred. When this happens, two more bytes of data will follow the response
code to indicate the location of the error. This information, along with the response code, should enable you to track the error.
First byte
Bit
First word
7
6
5
4
3
Second byte
2
1
0
7
6
5
4
3
2
1
0
0
0
0
Command code
Second word
Third word
Main response code (MRES)
Sub response code (SRES)
1: Relay Error Flag
1: PC Non-fatal Error Flag
1: PC Fatal Error Flag
Error network address
Error node number
Error network address: 00 to 7F (0 to 127 decimal)
Error node number:
SYSMAC NET: 01 to 7E (1 to 126 decimal)
SYSMAC LINK: 01 to 3E (1 to 62 decimal)
8-3
Response Codes and Troubleshooting
The table below lists response codes (main and sub-codes) returned after execution of the FINS commands, the probable cause of errors, and recommended remedies.
106
Response Codes and Troubleshooting
Section 8-3
Upon receipt of some commands, the destination node will issue a request to
another node; the other node is referred to as the third node.
Main code
00: Normal completion
Subcode
00
01
Probable cause
--Service was interrupted
Remedy
--Check the contents of the destination
transmission area of third node.
Check the data link status.
01: Local node error
02: Destination node
error
03: Communications
controller error
04: Not executable
01
Local node not part of Network
Add to Network.
02
Token time-out, node number too
large
Set the local node’s node number below
the maximum node number.
03
Number of transmit retries exceeded
Check communications with internode
echo test. If the test fails, check network.
04
Maximum number of frames exceeded Either check the execution of events in the
network and reduce the number of events
occurring in one cycle, or increase the
maximum number of frames.
05
Node number setting error (range)
Make sure the node number is within
specified range and that there are no
duplicate node numbers.
06
Node number duplication error
Make sure that there are no duplicate node
numbers.
01
02
Destination node not part of Network
No node with the specified node
number
Add to Network.
Check the destination node’s node
number.
03
Third node not part of Network
Broadcasting was specified.
Check the third node’s node number.
Check the control data and specify only
one node as the third node.
04
Busy error, destination node busy
Increase the number of transmit retry
attempts or re-evaluate the system so that
the destination node is not so busy
receiving data.
05
Response time-out, message packet
was corrupted by noise
Increase the number of transmit retry attempts.
Response time-out, response watchdog timer interval too short
Increase the value for the response watchdog timer interval in the control data.
Frame lost in transmission
Check the error log and correct the
process.
01
Error occurred in the communications
controller, ERC indicator is lit
Take corrective action, referring to
communications controller errors and
remedies table at end of this section
02
CPU error occurred in the PC at the
destination node
Clear the error in the CPU (refer to the
PC’s operation manuals)
03
A controller error has prevented a
normal response from being returned.
Check network communications status and
reset the controller board. If the error still
exists, replace the controller board.
04
Node number setting error
Make sure the node number is within
specified range and that there are no
duplicate node numbers.
01
An undefined command has been
used.
Check the command code and be sure
that the Unit supports it.
02
Cannot process command because
the specified unit model or version is
wrong.
Check the unit model and version.
107
Response Codes and Troubleshooting
Main code
05: Routing error
10: Command format
error
11: Parameter error
Subcode
Section 8-3
Probable cause
Remedy
01
Destination node number is not set in
the routing table.
Set the destination node number in the
routing table.
02
Routing table isn’t registered.
Set the source nodes, destination nodes,
and relay nodes in the routing table.
03
Routing table error
Set the routing table correctly.
04
The maximum number of relay nodes
(2) was exceeded in the command.
Redesign the network or reconsider the
routing table to reduce the number of relay
nodes in the command.
01
The command is longer than the max.
permissible length.
Check the command format of the
command and set it correctly.
02
The command is shorter than min.
permissible length.
Check the command format of the
command and set it correctly.
03
The designated number of data items
differs from the actual number.
Check the number of items and the data,
and make sure that they agree.
04
An incorrect command format has
been used.
Check the command format of the
command and set it correctly.
05
An incorrect header has been used.
(The local node’s relay table or relay
node’s local network table is wrong.)
Set the routing table correctly.
01
A correct memory area code has not
Check the command’s memory area code
been used or Expansion Data Memory and set the appropriate code.
is not available.
02
The access size specified in the
command is wrong, or the first
address is an odd number.
Set the correct access size for the
command.
03
The first address is in an inaccessible
area.
Set a first address that is in an accessible
area.
04
The end of specified word range
exceeds the acceptable range.
Check the acceptable limits of the data
area and set the word range within the
limits.
Check the data link tables to be sure the
limit to link words has not been exceeded.
06
A non-existent program no. has been
specified.
Check the program number and be sure
that it is set correctly.
09
The sizes of data items in the
command block are wrong.
g
Check the command data and be sure that
the sixes of the data items are correct.
Check the data link tables to be sure all
nodes in the refresh parameters are in the
common link parameters.
0A
The IOM break function cannot be
executed because it is already being
executed.
Either abort the current IOM break function
processing, or wait until it is completed and
execute the command.
Check the data link tables for duplicate
node numbers.
0B
The response block is longer than the
max. permissible length.
Check the command format and set the
number of items correctly.
0C
An incorrect parameter code has been
specified.
Check the command data and reenter it
correctly.
Check the data link table file for corruption.
108
Response Codes and Troubleshooting
Main code
20: Read not possible
Subcode
02
Section 8-3
Probable cause
Remedy
The data is protected.
Execute the instruction again after issuing
the PROGRAM AREA PROTECT CLEAR
command.
An attempt was made to download a
file that is being uploaded.
Check the file name and either interrupt
servicing or wait for servicing to complete
before re-executing the command.
The registered table does not exist or
is incorrect.
Set or reset the registered table.
Too many files open.
Close open files and re-execute the
command.
04
The corresponding search data does
not exist.
---
05
A non-existing program no. has been
specified.
Check the program number and be sure
that it is set correctly.
06
A non-existing file has been specified.
Check whether the correct file name was
used.
07
A verification error has occurred.
Check whether the memory contents are
correct and replace if incorrect.
03
Check the contents of the file. A read error
may have occurred.
21: Write not possible
01
The specified area is read-only or is
write-protected.
02
The data is protected.
If the specified area is read-only, the write
cannot be performed. If it is
write-protected, turn off the write-protect
switch and execute the instruction again.
Execute the instruction again after issuing
the PROGRAM AREA PROTECT CLEAR
command.
An attempt was made to
simultaneously download and upload
a file.
Check the file name and either interrupt
servicing or wait for servicing to complete
before re-executing the command.
The data link table cannot be written
manual because it is set for automatic
generation.
Change the system settings to manual
data link table generation.
The number of files exceeds the
maximum permissible.
Write the file(s) again after erasing
unneeded files, or use different disk or
Memory Card that has free space.
Too many files open.
Close open files and re-execute the
command.
05
A non-existing program no. has been
specified.
Check the program number and be sure
that it is set correctly.
06
A non-existent file has been specified.
---
07
The specified file already exists.
Change the name of the file and execute
the instruction again.
08
Data cannot be changed.
Check the contents of the memory area
being written to.
03
109
Response Codes and Troubleshooting
Main code
22: Not executable in
d
current mode
23: No Unit
24: Start/stop not
possible
110
Subcode
Section 8-3
Probable cause
Remedy
01
The mode is wrong (executing).
Data links are active.
Check the operating mode.
Check the data link status before
execution.
02
The mode is wrong (stopped).
Data links are active.
Check the operating mode.
Check the data link status before
execution.
03
The PC is in the PROGRAM mode.
Check the PC’s mode.
04
The PC is in the DEBUG mode.
Check the PC’s mode.
05
The PC is in the MONITOR mode.
Check the PC’s mode.
06
The PC is in the RUN mode.
Check the PC’s mode.
07
The specified node is not the control
node.
Check which node is the control node.
08
The mode is wrong and the step
cannot be executed.
Check whether the step has active status
or not.
01
A file device does not exist where
specified.
Mount the Memory Card or disk
02
The specified memory does not exist.
Check the specifications of the installed file
memory.
03
No clock exists.
Check the model number.
01
The data link table either hasn’t been
created or is incorrect.
Set the data link table correctly.
Response Codes and Troubleshooting
Main code
25: Unit error
Subcode
Section 8-3
Probable cause
Remedy
02
Parity/checksum error occurred
because of incorrect data.
Transfer correct data into memory.
03
I/O setting error (The registered I/O
configuration differs from the actual.)
Either change the actual configuration to
match the registered one, or generate the
I/O table again.
04
Too many I/O points
Redesign the system to remain within
permissible limits.
05
CPU bus error (An error occurred
during data transfer between the CPU
and a CPU Bus Unit.)
Check the Unit, Service Boards, and cable
connections and issue the ERROR CLEAR
command.
06
I/O duplication error (A rack number,
unit number, or I/O word allocation
has been duplicated.)
Check the system’s settings and eliminate
any duplication.
07
I/O bus error (An error occurred during Check the Unit, Service Boards, and cable
data transfer between the CPU and an connections and issue the ERROR CLEAR
I/O Unit.)
command.
09
SYSMAC BUS/2 error (An error
occurred during SYSMAC BUS/2 data
transfer.)
Check the Unit, Service Boards, and cable
connections and issue the ERROR CLEAR
command.
0A
Special I/O Unit error (An error
occurred during CPU Bus Unit data
transfer.)
Check the Unit, Service Boards, and cable
connections and issue the ERROR CLEAR
command.
0D
Duplication in SYSMAC BUS word
allocation.
Check and regenerate the I/O table.
0F
A memory error has occurred in
internal memory, in the Memory Card,
or in Expansion DM during the error
check.
If the error occurred in internal memory or
the EM Unit, correct the data in the
command an execute it again.
10
Terminator not connected in SYSMAC
BUS System.
If the error occurred in a Memory Card or
EM used for file memory, the file data has
been corrupted. Execute the MEMORY
CARD FORMAT command.
If the above remedies do not eliminate the
error, replace the faulty memory.
Connect the terminator correctly.
111
Response Codes and Troubleshooting
Main code
26: Command error
Subcode
01
02
04
30: Access right error
Section 8-3
Probable cause
Remedy
The specified area is not protected.
This response code will be returned if
an attempt is made to clear protection
on an area that is not protected.
An incorrect password has been
specified.
The program area is not protected, so it
isn’t necessary to clear protection.
The specified area is protected.
Execute the command again after the
PROGRAM AREA PROTECT CLEAR
command.
To many commands at destination.
The destination has received more than 5
commands. Either interrupt servicing or
wait for servicing to complete before
re-executing the command.
Execute the command again after the
service has been completed or aborted.
Specify a password that is registered.
05
The service is being executed.
06
07
The service is not being executed.
Execute the service if necessary.
Service cannot be executed from local
node because the local node is not
part of the data link.
Execute the service from a node that is
part of the data link.
A buffer error has prevented returning
a normal response.
Reset the board. If the error persists,
replace the board.
08
Service cannot be executed because
necessary settings haven’t been
made.
Make the necessary settings.
09
Service cannot be executed because
Check the command format of and make
necessary settings haven’t been made the necessary settings.
in the command data.
0A
The specified action or transition
number has already been registered.
Execute the command again using an
action or transition number that hasn’t
been registered.
0B
Cannot clear error because the cause
of the error still exists.
Eliminate the cause of the error and
execute the ERROR CLEAR command.
01
The access right is held by another
device.
Execute the command again after the
access right has been released.
(The command can be executed after the
ACCESS RIGHT FORCED ACQUIRE or
ACCESS RIGHT RELEASE command is
completed. Releasing the access right
might affect processes in progress at the
node that held the access right.)
40: Abort
112
01
Command was aborted with ABORT
command.
---
Appendix A
FINS Command List
The following table lists the FINS commands and the PCs, Systems, and/or Units that support them. If a page
number is given, the command is supported and details can be found beginning on that page. If a page number is
not given, the command is not supported.
The following table is meant for comparison and reference only. Refer to the pages indicated for all details. Even if
a command is supported by more than one PC, System, or Unit, the actual function and format of the command/response will depend on the PC, System, or Unit.
Command
code
01
02
03
04
05
06
07
08
09
Name
CV-series C-series
PCs
PCs
SYSMAC
NET
SYSMAC
LINK
01
MEMORY AREA READ
Page 19
Page 60
02
MEMORY AREA WRITE
Page 20
Page 60
03
MEMORY AREA FILL
Page 21
04
MULTIPLE MEMORY AREA
READ
Page 21
05
MEMORY AREA TRANSFER
Page 22
01
02
03
20
21
04
PARAMETER AREA READ
PARAMETER AREA WRITE
PARAMETER AREA CLEAR
DATA LINK TABLE READ
DATA LINK TABLE WRITE
PROGRAM AREA PROTECT
Page 23
Page 24
Page 26
05
PROGRAM AREA PROTECT
CLEAR
Page 28
06
PROGRAM AREA READ
Page 28
Page 62
07
PROGRAM AREA WRITE
Page 29
Page 63
08
PROGRAM AREA CLEAR
Page 30
01
02
03
01
RUN
STOP
RESET
CONTROLLER DATA READ
Page 30
Page 31
Page 63
Page 64
Page 31
02
CONNECTION DATA READ
Page 33
01
CONTROLLER STATUS
READ
Page 33
02
NETWORK STATUS READ
03
DATA LINK STATUS READ
20
CYCLE TIME READ
Page 35
01
CLOCK READ
Page 36
Page 66
02
CLOCK WRITE
Page 36
Page 67
01
LOOP-BACK TEST/
INTERNODE ECHO TEST
02
BROADCAST TEST
RESULTS READ
Page 92
03
BROADCAST TEST DATA
SEND
Page 93
20
MESSAGE READ
Page 37
MESSAGE CLEAR
Page 38
FAL/FALS READ
Page 39
Personal
Computer
Unit
BASIC
Unit
Page 61
Page 74
Page 75
Page 27
Page 86
Page 86
Page 64
Page 77
Page 77
Page 78
Page 78
Page 65
Page 78
Page 88
Page 87
Page 96
Page 102
Page 103
Page 90
Page 79
Page 91
Page 96
Page 97
Page 80
Page 92
Page 97
113
Appendix A
FINS Command List
Command
code
0C
21
22
23
26
114
Name
CV-series C-series
PCs
PCs
SYSMAC
NET
SYSMAC
LINK
Personal
Computer
Unit
BASIC
Unit
01
ACCESS RIGHT ACQUIRE
Page 40
02
ACCESS RIGHT FORCED
ACQUIRE
Page 40
03
ACCESS RIGHT RELEASE
Page 41
01
ERROR CLEAR
Page 42
02
ERROR LOG READ
Page 43
Page 81
Page 93
Page 98
Page 103
03
ERROR LOG CLEAR
Page 44
Page 82
Page 94
Page 99
Page 104
01
FILE NAME READ
Page 44
02
SINGLE FILE READ
Page 46
03
SINGLE FILE WRITE
Page 46
04
MEMORY CARD FORMAT
Page 47
05
FILE DELETE
Page 47
06
VOLUME LABEL
CREATE/DELETE
Page 48
07
FILE COPY
Page 48
08
FILE NAME CHANGE
Page 49
09
FILE DATA CHECK
Page 49
0A
MEMORY AREA FILE
TRANSFER
Page 50
0B
PARAMETER AREA FILE
TRANSFER
Page 51
0C
PROGRAM AREA FILE
TRANSFER
Page 53
0F
FILE MEMORY INDEX READ
Page 68
10
FILE MEMORY READ
Page 68
11
FILE MEMORY WRITE
Page 69
01
02
FORCED SET/RESET
FORCED SET/RESET
CANCEL
0A
MULTIPLE FORCED STATUS
READ
01
02
03
NAME SET
NAME DELETE
NAME READ
Page 54
Page 55
Page 67
Page 70
Page 71
Page 71
Page 82
Page 82
Page 83
Index
A
access right
acquiring,
releasing,
AR area
reading, ,
writing,
ASCII,
conversion to binary,
Auxiliary Area
reading, ,
writing, ,
B
BASIC Units
reading controller data,
reading controller status,
baud rate,
binary data,
conversion to ASCII,
bits, controlling, , , ,
block, response block format for network communications,
Bridge,
broadcasting, ,
C
C-mode commands,
C-series command system,
CIO Area, reading,
clock
reading, , ,
setting, , ,
command format, Host Link Systems,
command list, commands for CV-series PCs,
commands, maximum size,
commands for BASIC Units
CONTROLLER DATA READ,
CONTROLLER STATUS READ,
ERROR LOG CLEAR,
ERROR LOG READ,
commands for C-series PCs
CLOCK READ,
CLOCK WRITE,
CONTROLLER DATA READ,
CONTROLLER STATUS READ,
ERROR CLEAR,
FILE MEMORY INDEX READ,
FILE MEMORY READ,
FILE MEMORY WRITE,
FORCED SET/RESET,
FORCED SET/RESET CANCEL,
MEMORY AREA READ,
MEMORY AREA WRITE,
MULTIPLE FORCED STATUS READ,
MULTIPLE MEMORY AREA READ,
PROGRAM AREA READ,
PROGRAM AREA WRITE,
RUN,
STOP,
commands for CV-series PCs
ACCESS RIGHT ACQUIRE,
ACCESS RIGHT FORCED ACQUIRE,
ACCESS RIGHT RELEASE,
CLOCK READ,
CLOCK WRITE,
CONNECTION DATA READ,
CONTROLLER DATA READ,
CONTROLLER STATUS READ,
CYCLE TIME READ,
ERROR CLEAR,
ERROR LOG CLEAR,
ERROR LOG READ,
FAL/FALS READ,
FILE COPY,
FILE DATA CHECK,
FILE DELETE,
FILE NAME CHANGE,
FILE NAME READ,
FORCED SET/RESET,
FORCED SET/RESET CANCEL,
MEMORY AREA FILE TRANSFER,
MEMORY AREA FILL,
MEMORY AREA READ,
MEMORY AREA TRANSFER,
MEMORY AREA WRITE,
MEMORY CARD FORMAT,
MESSAGE CLEAR,
MESSAGE READ,
MULTIPLE MEMORY AREA READ,
PARAMETER AREA CLEAR,
PARAMETER AREA FILE TRANSFER,
PARAMETER AREA READ,
PARAMETER AREA WRITE,
PROGRAM AREA CLEAR,
PROGRAM AREA FILE TRANSFER,
PROGRAM AREA PROTECT,
PROGRAM AREA PROTECT CLEAR,
PROGRAM AREA READ,
PROGRAM AREA WRITE,
RUN,
SINGLE FILE READ,
SINGLE FILE WRITE,
STOP,
VOLUME LABEL CREATE/DELETE,
commands for Personal Computer Units
CLOCK READ,
115
Index
CLOCK WRITE,
CONTROLLER DATA READ,
ERROR LOG CLEAR,
ERROR LOG READ,
INTERNODE ECHO TEST,
commands for SYSMAC LINK
BROADCAST TEST DATA SEND,
BROADCAST TEST RESULTS READ,
CONTROLELR STATUS READ,
CONTROLLER DATA READ,
DATA LINK STATUS READ,
ERROR LOG CLEAR,
ERROR LOG READ,
INTERNODE ECHO TEST,
NETWORK STATUS READ,
RUN,
STOP,
commands for SYSMAC NET
CONTROLLER DATA READ,
CONTROLLER STATUS READ,
DATA LINK STATUS READ,
DATA LINK TABLE READ,
DATA LINK TABLE WRITE,
ERROR LOG CLEAR,
ERROR LOG READ,
LOOP-BACK TEST,
NAME DELETE,
NAME READ,
NAME SET,
RESET,
RUN,
STOP,
communications
broadcast test,
broadcasting,
internetwork,
internode,
setting high-speed communications,
testing, , ,
counters
changing PV, , ,
reading Completion Flag status, , ,
reading PV, , , ,
CPU Bus Unit, configuration,
CPU Bus Units,
CV-mode commands. See FINS commands
CV-series command system,
cycle time, reading,
D-E
DA1,
DA2,
data areas. See Memory Areas
data formats,
116
data link tables
reading,
writing,
data links
activating,
reading status, ,
starting,
stopping, ,
data structure
commands,
responses,
datagram service,
destination network address,
destination node number,
destination unit address,
destinations, ,
differences in commands,
DM Area
reading, , , ,
writing, , ,
DNA,
error flags,
error logs
clearing, , ,
reading, , ,
error messages, ,
errors
clearing, , , , , ,
reading, , , ,
response codes,
F
FAL/FALS messages,
FAL/FALS no., ,
fatal error data, ,
FCS (frame checksum) calculation,
File Memory
reading,
reading index data,
writing,
files
changing file names,
checking data,
comparing, , ,
copying,
creating/deleting volume labels,
deleting,
file names,
reading, ,
transferring, , ,
writing,
FINS commands
errors,
response codes, errors,
Index
forced status
canceling,
controlling,
reading,
frame checksum,
G-N
gateway,
gateway count,
GCT,
header, Host Link Systems,
header code,
header data, ,
P-R
Parameter Areas
clearing,
comparing/transferring,
reading,
writing,
parameters,
PC
aborting current process,
changing to PROGRAM mode, ,
changing to RUN mode, ,
PC memory address. See Memory Areas
PC memory addresses. See Memory Areas
reading,
reading controller data,
reading controller status, ,
reading cycle time,
reading data,
reading status,
Host Link Systems
command format,
communications,
PC modes, ,
ICF,
PC status, , ,
IR area, reading, ,
Personal Computer Unit, reading controller data,
loop back test,
program
clearing,
clearing protection of the program area,
comparing/transferring,
protecting the program area,
reading, ,
writing,
writing to program area words,
maximum data length,
memory areas
comparing/transferring,
designating addresses, ,
reading, , ,
reading contents,
reading contents of Memory Area words,
transferring data,
writing, , ,
Memory Cards, formatting,
message service,
messages,
clearing,
reading, ,
model numbers
BASIC Units,
Personal Computer Unit,
reading,
reading model numbers of specified Units,
reading PC model number, ,
names, SYSMAC NET Link Units
deleting,
reading,
setting,
remote I/O systems,
response block. See block
response codes,
response delay,
responses,
maximum number of characters,
maximum size,
RSV,
S
SA1,
SA2,
service ID,
SID,
SNA,
network levels,
source network address,
networks,
differences,
reading network status,
source node number,
node number,
SYSMAC LINK Systems, communications,
nodes, maximum number,
non-fatal error data, ,
source unit address,
SYSMAC NET Link Units
deleting names,
reading controller data,
117
Index
reading controller status,
reading names,
resetting,
setting names,
SYSMAC NET Systems, communications,
T-V
terminator,
test, loop back,
118
timers
changing PV, , ,
reading Completion Flag status, , ,
reading PV, , , ,
unit addresses,
unit number,
Units, reading the model numbers of connected Units,
volume labels,
creating/deleting,
Revision History
A manual revision code appears as a suffix to the catalog number on the front cover of the manual.
Cat. No. W227-E1-2
Revision code
The following table outlines the changes made to the manual during each revision. Page numbers refer to the
previous version.
Revision code
1
Date
June 1993
Original production
Revised content
2
June 2001
Page 8: ”Hexadecimal” changed to ”BCD” in node number description.
Page 13: Model numbers updated.
119
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement