3G8F7-SLK11-E3G8F7-SLK21-E SYSMAC LINK PCI Support Boards Operation Manual
3G8F7-SLK11-E3G8F7-SLK21-E SYSMAC LINK PCI Support Boards Operation Manual
3G8F7-SLK11-E3G8F7-SLK21-E SYSMAC LINK PCI Support Boards Operation Manual
! 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.
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, 2001
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 permis-
sion 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 informa-
tion contained in this publication.
v
TABLE OF CONTENTS
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 1
Outline of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Specifications and Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3 Basic Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 Applications Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 2
Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1 Connecting Coaxial Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Connecting Optical Systems (H-PCF Cable) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 Backup Power Supply Wiring (Optical Systems Only) . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 3
Creating Applications Using the C Library . . . . . . . . . . .
3-1 Basic Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Using the C Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 4
C Language Function Reference . . . . . . . . . . . . . . . . . . . .
4-1 Library Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2 Structure Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-3 Detailed Error Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 5
Data Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1 What Are Data Links? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2 Setting Data Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3 Starting and Stopping Data Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4 Checking Data Link Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5 Data Link Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6 Data Link I/O Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 6
Message Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2 FINS Command/Response Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3 Commands and Responses for the Support Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4 Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 7
Network Interconnections . . . . . . . . . . . . . . . . . . . . . . . . .
7-1 What is Network Interconnection? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-2 Routing Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-3 Setting Routing Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
TABLE OF CONTENTS
SECTION 8
Communications Timing . . . . . . . . . . . . . . . . . . . . . . . . . .
8-1 Network Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-2 Message Service Delay Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 9
Troubleshooting and Maintenance . . . . . . . . . . . . . . . . . .
9-1 Troubleshooting Using Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-2 Status Information and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-3 Error Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-4 Cleaning and Inspection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-5 Handling Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix
Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
About this Manual:
This manual describes the operation of the 3G8F7-SLK11-E and 3G8F7-SLK21-E SYSMAC LINK PCI
Support Boards and includes the sections described below. SYSMAC LINK Support Boards are used to
connect IBM PC/AT or compatible computers to a SYSMAC LINK Network. The following three manuals
are directly related to application of the SYSMAC LINK Network.
Name Contents Cat. No.
(suffixes omitted)
3G8F7-SLK11-E/SLK21-E Operating procedures for SYSMAC LINK PCI Support W390
SYSMAC LINK PCI Support Board connections. SYSMAC LINK Support Boards are
Boards Operation Manual (this used to connect IBM PC/ATs or compatibles to a
manual) SYSMAC LINK Network.
3G8F7-SLK11-E/SLK21-E Installation and setup procedures for SYSMAC LINK W389
SYSMAC LINK PCI Support PCI Support Board connections. SYSMAC LINK
Board Installation Guide Support Boards are used to connect IBM PC/ATs or
compatibles to a SYSMAC LINK Network.
3G8F5-SLK21-E SYSMAC Installation, setup, and operating procedures for W220
LINK ISA Support Board SYSMAC LINK Support Boards for ISA bus
Operation Manual connections. SYSMAC LINK Support Boards are used
to connect IBM PC/ATs or compatibles to a SYSMAC
LINK Network.
CV500, SLK11/21 SYSMAC Installation, setup, and operating procedures for the W202
LINK Units Operation Manual SYSMAC LINK Units are used to connect CV-series
PCs to a SYSMAC LINK Network.
CS1W-SLK11/21 SYSMAC Installation, setup, and operating procedures for the W367
LINK Units Operation Manual Optical Ring SYSMAC LINK Units. SYSMAC LINK
Units are used to connect CS1-series PCs to a
SYSMAC LINK Network.
Depending on the system, you may also need the SYSMAC or CV Support Software or a Programming
Console. Please read this manual and related manuals carefully and be sure you understand the informa-
tion provided before attempting to install and operate a SYSMAC LINK Support Board.
Section 1 outlines the functions of the SYSMAC LINK Support Board, including applications, and the dif-
ferences between the SYSMAC LINK Support Board and the SYSMAC LINK Unit.
Section 2 describes how to wire the power supply cables and communications cables to the SYSMAC
LINK Support Board.
Section 3 describes creating applications (user programs) that control the SYSMAC LINK Support
Board.
Section 4 details the C-language library functions supported by the SYSMAC LINK Support Board.
Section 5 describes how to use data links in a SYSMAC LINK Network.
Section 6 explains how to use the message service provided by a SYSMAC LINK Support Board.
Section 7 describes the method used to connect multiple networks.
Section 8 explains details on SYSMAC LINK Network communications. Refer to this section for network
communications that require accurate communications timing.
Section 9 provides information on troubleshooting errors that occur during SYSMAC LINK Support
Board operation, as well as daily inspection, cleaning, and other maintenance procedures.
The Appendix provides a list of standard models.
! 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.
ix
PRECAUTIONS
This section provides general precautions for using the SYSMAC LINK PCI Support Board and related devices.
The information contained in this section is important for the safe and reliable application of the SYSMAC LINK PCI
Support Board. You must read this section and understand the information contained before attempting to set up or
operate a SYSMAC LINK PCI Support Board.
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
Safety Precautions 3
1 Intended Audience
This manual is intended for the following personnel, who must also have knowl-
edge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
2 General Precautions
The user must operate the product according to the performance specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual
or applying the product to nuclear control systems, railroad systems, aviation
systems, vehicles, combustion systems, medical equipment, amusement ma-
chines, safety equipment, and other systems, machines, and equipment that
may have a serious influence on lives and property if used improperly, consult
your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide the
systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the SYSMAC
LINK PCI Support Board and related devices. Be sure to read this manual before
attempting to use the software and keep this manual close at hand for reference
during operation.
! WARNING It is extremely important that a SYSMAC LINK PCI Support Board and all related
devices be used for the specified purpose and under the specified conditions,
especially in applications that can directly or indirectly affect human life. You
must consult with your OMRON representative before applying a SYSMAC
LINK PCI Support Board to the above mentioned applications.
3 Safety Precautions
! WARNING Never attempt to disassemble any SYSMAC LINK PCI Support Board while
power is being supplied. Doing so may result in serious electrical shock or
electrocution.
! WARNING Never touch any of the terminals while power is being supplied. Doing so may
result in serious electrical shock or electrocution.
! WARNING Provide safety measures in external circuits, i.e., not in the Programmable
Controller (CPU Unit including associated Units; referred to as “PC”), in order to
ensure safety in the system if an abnormality occurs due to malfunction of the PC
or another external factor affecting the PC operation. Not doing so may result in
serious accidents.
• Emergency stop circuits, interlock circuits, limit circuits, and similar safety
measures must be provided in external control circuits.
• The PC will turn OFF all outputs when its self-diagnosis function detects any
error or when a severe failure alarm (FALS) instruction is executed. As a coun-
termeasure for such errors, external safety measures must be provided to en-
sure safety in the system.
xii
Operating Environment Precautions 4
! Caution Execute online edit only after confirming that no adverse effects will be caused
by extending the cycle time. Otherwise, the input signals may not be readable.
! Caution Confirm safety at the destination node before transferring a program to another
node or changing contents of the I/O memory area. Doing either of these without
confirming safety may result in injury.
! Caution Tighten the connector screws for the backup power supply to the torque speci-
fied in this manual. The loose screws may result in burning or malfunction.
! Caution Take appropriate and sufficient countermeasures when installing systems in the
following locations:
! Caution The operating environment of the SYSMAC LINK PCI Support Board or the
computer can have a large effect on the longevity and reliability of the system.
Improper operating environments can lead to malfunction, failure, and other un-
foreseeable problems with the SYSMAC LINK PCI Support Board or the com-
puter. Be sure that the operating environment is within the specified conditions at
installation and remains within the specified conditions during the life of the sys-
tem.
xiii
Application Precautions 5
5 Application Precautions
Observe the following precautions when using the SYSMAC LINK PCI Support
Board or the computer into which it is installed.
Note Refer also to 1-4 Application Precautions for further information and additional
precautions.
! WARNING Failure to abide by the following precautions could lead to serious or possibly
fatal injury. Always heed these precautions.
• Always ground the system to 100 Ω or less when installing the system to pro-
tect against electrical shock.
• Always turn OFF the power of the computer before attempting any of the fol-
lowing. Performing any of the following with the power supply turned on may
lead to electrical shock:
• Installing or removing the Support Board.
• Assembling the Units.
• Setting DIP switches or short-circuiting pins.
• Connecting or disconnecting any cables or connectors.
! Caution Failure to abide by the following precautions could lead to faulty operation of the
computer or the system or could damage the SYSMAC LINK PCI Support Board
or related devices. Always heed these precautions.
xiv
Application Precautions 5
• Check the user program for proper execution before actually running it on the
Unit. Not checking the program may result in an unexpected operation.
• Observe the following precautions when wiring the communications cable or
backup power supply cables.
• Separate the cables from power lines or high-tension lines.
• Do not bend the cables.
• Do not pull on the cables.
• Do not place heavy objects on top of the cables.
• Route cables inside conduits.
• Before touching the Unit, be sure to first touch a grounded metallic object in
order to discharge any static built-up. Not doing so may result in malfunction or
damage.
• Do not touch the Board surfaces or parts.
• Install the Board according to instructions in the operation manuals. Improper
installation may cause faulty operation.
• When using the Optical Ring SYSMAC LINK Support Board for public utilities
systems, such as electricity, gas, or water supply, use the Optical Ring mode
and provide appropriate fail-safe measures.
xv
SECTION 1
Outline of Functions
This section outlines the functions of the SYSMAC LINK Support Board, including the applications of the SYSMAC LINK
Support Board and the differences between the SYSMAC LINK Support Board and the SYSMAC LINK Unit.
1-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-1 What Is the SYSMAC LINK? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-3 What Is a SYSMAC LINK Support Board? . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-4 Features of SYSMAC LINK PCI Support Boards . . . . . . . . . . . . . . . . . . . . . . . .
1-1-5 Outline of PCI Bus SYSMAC LINK Support Board Functions . . . . . . . . . . . . . .
1-2 Specifications and Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-1 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-2 PCI Bus SYSMAC LINK Support Board Models . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-3 Communications Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-4 General Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-5 Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-6 Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-7 Product Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-8 Software Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-9 Compatible Computers, Operating Systems, and Libraries . . . . . . . . . . . . . . . . . .
1-3 Basic Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 Applications Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Overview Section 1-1
1-1 Overview
1-1-1 What Is the SYSMAC LINK?
The SYSMAC LINK is an FA network that can send and receive large data pack-
ets flexibly and easily among advanced OMRON Programmable Controllers
(CS-series, C200HX/HG/HE-series, C-series, CVM1, and CV-series PCs) and
IBM PC/AT or compatible computers.
The SYSMAC LINK supports data links that continuously share certain ranges
of data and a message service that can be used to send and receive specific
data when required. Data link areas can be freely set to create a flexible data link
system and effectively use data areas.
The network is connected using either coaxial cable or optical fiber cable, and
high-volume data transmissions at high speed allow construction of a wide
range of networks, from low-level systems to highly complex systems.
Coaxial System
C1000H-SLK21-V1 CS1W-SLK21 C200HW-SLK21 CVM1-SLK21 IBM PC/AT or IBM PC/AT or
SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit compatible compatible
Optical System
C200HW-SLK13/14 CV500-SLK11 C1000H-SLK11 CS1W-SLK11 IBM PC/AT or
SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit compatible
2
Overview Section 1-1
Automatic settings
Message service
1-1-2 Features
The SYSMAC LINK FA Network has the following features to meet the various
requirements of FA sites.
Data Links
Flexible and efficient data links can be created to automatically transfer large
amounts of data as listed below.
Item Specifications
Number of send words 508 words max. (254 words max. in the CIO/LR Area
per node and 254 words max. in the DM Area)
Number of send and Coaxial or Optical SYSMAC LINK PCI Support Board:
receive words per node 2,966 words max.
Data links can be configured automatically, or they can be configured by the user
to freely change the sizes of the data areas used. A data link can also receive
only part of the data sent from another node. This function enables nodes to re-
ceive only the required data, thereby increasing data link efficiency.
Message Service
The message service can send and receive up to 552 bytes of data (including
the FINS header), allowing large volumes of data to be sent and received without
having to be split up.
3
Overview Section 1-1
4
Overview Section 1-1
The Support Board is mounted in an expansion slot in the computer. The follow-
ing Support Boards are available depending on the type of connection cable.
Coaxial System
3G8F7-SLK21-E (for PCI slot) or
IBM PC/AT or 3G8F5-SLK21-E (for ISA slot)
compatible SYSMAC LINK Support Board
PC
PC
5
Overview Section 1-1
The Board is equipped with the FinsGateway SYSMAC LINK (PCI) Embedded
Edition and C library (Win32 DLL) as standard features. With just the Board it-
self, user applications can be created using the C language (Microsoft Visual
C++ Ver. 6.0). An overview of how to use the C library is described later in this
manual.
SYSMAC Compolet Version 2 provides ActiveX controls for PC communica-
tions. User applications can be created more easily using Microsoft Visual Ba-
sic. PLC Reporter 32, DataFlowNavi for Access, and AIMAX-FA are software
packages of communications middleware. These software packages must be
purchased separately. For details, refer to the manual for the appropriate soft-
ware.
Event memory can be written or read by executing the C library data link data
read/write functions SlkWriteDatalink( ) and SlkReadDatalink( ) from the user
program.
Computer
User application
SlkReadDatalink( )
SlkWriteDatalink( )
CIO DM
Event
memory
FinsGateway Data link
6
Overview Section 1-1
Message Service FINS commands and FINS responses can be sent and received for specified
nodes on the network by executing FINS message send/receive functions
SlkSendFins( ) and SlkRecvFins( ) from the user program.
Computer
User application
SlkSendFins( ) SlkRecvFins( )
FinsGateway
SYSMAC LINK (PCI) Embedded Edition
A maximum of 4 PCI Bus SYSMAC LINK Support Boards can be mounted to one
computer. Consequently, multiple user applications can be executed simulta-
neously.
Computer
User application
User application
FinsGateway
SYSMAC LINK (PCI) Embedded Edition
7
Specifications and Configurations Section 1-2
Optical System
C200HW-SLK13/14 CV500-SLK11 C1000H-SLK11 CS1W-SLK11 IBM PC/AT or
SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit SYSMAC LINK Unit compatible
Note 1. A maximum of 4 PCI Bus SYSMAC LINK Support Boards can be mounted.
(Different types of connection systems can be mounted simultaneously.)
2. PCI Bus SYSMAC LINK Support Boards can also be used with ISA Bus
SYSMAC LINK Support Boards. If PCI Bus and ISA Bus SYSMAC LINK
Support Boards are used together, however, a separate ISA Bus FinsGate-
way SYSMAC LINK Driver is required.
8
Specifications and Configurations Section 1-2
Items Specifications
Transmission speed 2 Mbps
Maximum transmission 20 km
distance
Maximum distance Crimp cut: 800 m
between nodes Adhesive: 1 km (See note 1.)
Transmission media H-PCF cable (optical two-core cable)
Node connection method Connected via a special (full-lock connector) connector. (A half-lock connector can also be
used.)
Maximum number of 62 nodes
nodes
Applicable Programming FinsGateway’s SLK data link setting utility (See note 2.)
Devices
Communications functions Data links and message service
Number of data link words Transmission area per node:
508 words max. (254 words in the CIO/LR Area and 254 words in the DM Area)
Number of data link words that can be used with one PCI Board (total transmission):
2,966 words max.
Data link areas FinsGateway Event Memory
Message length 552 bytes max. (including the header)
RAS functions Polling node backup function
Self-diagnosis function (hardware checking at startup)
Echoback test and broadcast test (using FINS commands)
Watchdog timer
Error log function
Node bypass function
Error control Manchester code check
CRC check (CCITT X16 + X12 + X5 + 1)
Note 1. The maximum distance between nodes depends on the connector and
cable processing methods.
2. The Board’s data link tables can be set using CX-Net in CX-Programmer.
Use the FinsGateway’s SLK data link setting utility, or the SYSMAC LINK
Support Software.
9
Specifications and Configurations Section 1-2
Coaxial System
Items Specifications
Type Coaxial
Model 3G8F7-SLK21
Communications method N:N token bus
Code Manchester code
Modulation Baseband code
Synchronization Flag synchronization (conforms to HDLC frames)
Transmission path form Multi-drop bus
Transmission speed 2 Mbps
Maximum transmission 1 km
distance
Transmission media Coaxial cable (5C-2V)
Node connection method BNC connectors
Applicable Programming FinsGateway’s SLK data link setting utility (See note 1.)
Devices
Maximum number of 62 nodes
nodes
Communications functions Data links and message service
Number of data link words Transmission area per node:
508 words max. (254 words in the CIO/LR Area and 254 words in the DM Area)
Number of data link words that can be used with one PCI Board (total transmission):
2,966 words max.
Data link areas FinsGateway’s event memory
Message length 552 bytes max. (including the header)
RAS functions Polling node backup function
Self-diagnosis function (hardware checking at startup)
Echoback test and broadcast test (using FINS commands)
Watchdog timer
Error log function
Error control Manchester code check
CRC check (CCITT X16 + X12 + X5 + 1)
Note The Board’s data link tables can be set using CX-Net in CX-Programmer. Use
the FinsGateway’s SLK data link setting utility, or the SYSMAC LINK Support
Software.
10
Specifications and Configurations Section 1-2
1-2-5 Dimensions
Coaxial Model (3G8F7-SLK21-E)
(Unit: mm)
11
Specifications and Configurations Section 1-2
(Unit: mm)
12
Specifications and Configurations Section 1-2
1-2-6 Indicators
Optical System Coaxial System
(H-PCF Cable)
Note Only Optical Units are equipped with the P/S indicator.
13
Basic Procedures Section 1-3
User application
FinsGateway
utilities
Software C library
FinsGateWay
Note An SLK data link setting utility is included in the FinsGateway utilities. Make the
data link table settings for the Board using this utility. For details, refer to Fins-
Gateway online help.
Note 1. Operation of the SYSMAC LINK Board can be guaranteed only under the
computer and operating system specifications outlined above. Use a com-
puter and operating system that meet these minimum specifications.
2. The SYSMAC LINK Support Board cannot be used in a computer running
Windows 95, Windows NT3.51, or other older operating systems.
14
Applications Precautions Section 1-4
2. Read and write to the data link area using the utility applications that use the
C library.
Note The data links can also be started by sending the data link activation
command with the FINS message service, or by using a PC software
switch operation.
Cables Turn OFF the power of all the nodes on the network before connecting or discon-
necting a cable.
Note Refer to Section 2 Wiring.
Use the specified cable only.
Note Refer to 1-2 Specifications and Configurations.
Routing Tables Set routing tables at all the nodes in all the networks when multiple networks are
connected to one PC.
Note Refer to Section 7 Network Interconnections.
When a routing table is transferred (written) to a PC, all CPU Bus and Commu-
nications Units are reset. The routing tables must not be transferred to a PC
while the system is running.
Data Links When using a manually set data link, delete the data link tables from all nodes
not participating in the data link.
The polling node must not be restarted or reset during data link operation.
If the SYSMAC LINK Support Board is the polling node and data links are operat-
ing on the network, wait at least three seconds after closing the Board before
opening the Board again.
If the SYSMAC LINK Support Board is the polling node and data links are operat-
ing on the network, wait at least three seconds after removing the Board from the
network before adding Board to the network again.
Other Precautions Observe the following precautions.
• The SYSMAC LINK Support Board can be used only with the specified com-
puter operating systems.
Note Refer to 1-2 Specifications and Configurations.
• Set the IRQ (interrupt request) of the SYSMAC LINK Support Board so that it
does not conflict with other resources.
15
Applications Precautions Section 1-4
Note Refer to the SYSMAC LINK PCI Support Board Installation Guide
(W389).
• If using the SEND, RECV, and CMND instructions with a PC on which the rout-
ing tables have been set, be sure to specify the network address set in the rout-
ing tables.
• Coaxial SYSMAC LINK Units/Boards cannot be combined with Optical SYS-
MAC LINK Units/Boards in the same network.
• SYSMAC LINK Units/Boards cannot be combined with Controller Link Units/
Boards in the same network.
16
SECTION 2
Wiring
This section describes how to wire the power supply cables and communications cables to the SYSMAC LINK Support
Board.
17
Connecting Coaxial Systems Section 2-1
F-type Adapter
Connector
2. If the Board isn’t at the end of the network, connect it to the adjacent nodes
with two cables. The cables can be connected to either socket in the Board’s
F-type Adapter.
If the Board is at one end of the network, connect it to the adjacent node and
18
Connecting Coaxial Systems Section 2-1
Boards in the middle of the network Boards at the ends of the network
Terminator
3. Push the F-type Adapter into the Board’s BNC connector and turn the fitting
clockwise until it locks.
Turn clockwise.
4. Align the Mounting Bracket and clamp to secure the cable(s) and attach the
clamp with the provided screw. The clamp has a small pin that fits into the
Mounting Bracket when it is aligned correctly, as shown in the following dia-
gram.
Insulating cover
6. Do not bend the cable too sharply when handling it. The minimum bending
radius is about 45 mm (about 6× the coaxial cable radius).
19
Connecting Coaxial Systems Section 2-1
Provide wider turns for the permanent installation. The minimum bending
radius for the permanent installation is about 110 mm (about 15× the coaxial
cable radius).
Ferrule Contact
Approx. 24.3 mm
A hand crimp tool (CR-H-1130 by Dai-ichi Denshi Kogyo) must be used to crimp
the connector onto the cable.
1, 2, 3... 1. Cut the coaxial cable to the desired length.
LA mm = L mm – 12 mm
Cable
LA
20
Connecting Coaxial Systems Section 2-1
2. Strip 15 mm of the cable sheathing. Strip the cable carefully so that the wire
mesh shield is not cut or otherwise damaged.
15 mm
3. Place the ferrule on the cable in the proper direction, as shown in the follow-
ing diagram.
Ferrule
Cable
4. Spread out the wire mesh shield at the end of the cable and insert the sleeve.
Use the stripping tool to firmly push the sleeve until the flange fits snugly
against the wire mesh shield.
Shield
Ferrule Sleeve
Ferrule
Sleeve
5. At this stage, the polyethylene core and center conductor will be slightly
long. Cut off the portion (A in the diagram) that protrudes past the stripping
tool so that the polyethylene core is flush with the outer surface of the strip-
ping tool.
Shield
Sleeve
6. Press the stripping tool’s blade (B in the diagram) so that the blade cuts into
the polyethylene core and rotate the tool several times. Hold the blade down
and pull the tool off of the cable (direction D), as shown in the diagram.
Conductor
21
Connecting Coaxial Systems Section 2-1
7. Use a pair of scissors to trim off the excess wire mesh shield, as shown in the
diagram.
8. Insert the contact into the contact crimp adapter and set it in the Crimp Tool’s
die. Slide the contact onto the central conductor until the contact touches the
polyethylene core. Squeeze the Crimp Tool’s handle strongly to crimp the
contact.
9. Insert the completed contact subassembly into the body of the connector.
Push the contact into the connector until the flared part of the contact enters
the connector’s insulator so that the tip of the contact is about even with the
tip of the insulator.
After the flared part of the contact has been inserted into the insulator, do not
rotate the connector body on the cable before crimping the connector body.
Connector body
Contact subassembly Insulator
10. Open the Crimp Tool’s handle and place the connector into the Tool so that
the tip of the connector touches the body stopper. Close the handle until the
rachet catches. Align the connector body’s hole with the hexagonal sides of
the die. If the connector has been crimped correctly, it will look like the con-
nector on the right in the following diagram.
Body stopper Crimp height
Cable
Connector body
Checking the Connector Check that the connector body has been crimped onto the cable correctly. If the
Installation connector body wasn’t pushed up against the body stopper, the middle of the
connector body will be crimped, as shown in the example on the right.
Correctly crimped Incorrectly crimped
22
Connecting Coaxial Systems Section 2-1
Check that the tip of the contact is even with the front edge of the connector body.
Connector body
23
Connecting Optical Systems (H-PCF Cable) Section 2-2
S3200-Hjjjjjjj
Tensioner option
None: Standard (with tension member)
N: Without tension member
Cable length
jjj
A B
(A/10) x 10B m
Cable color
B: Black
O: Orange
Cable specification
L: With power supply line
C: Without power supply line
Type
B: Cord
C: Cable
Connectors
Name Model Specifications
Connector S3200-COCF2011 Use to connect a cable to a node.
(Full-lock connector for crimp-cut cable.)
S3200-COCF2511 Use to connect a cable to a node.
(Half-lock connector for crimp-cut cable.)
Inline Adapter S3200-COIAT2000 Use to connect or extend cables.
(Use one adapter for each connection.)
Note 1. Either full-lock or half-lock connectors can be used in a SYSMAC LINK Net-
work, but we recommend full-lock connectors to prevent accidental discon-
nections during operation.
2. The maximum distance between nodes is slightly shorter for connectors
with crimp-cut cables compared to connectors assembled with adhesive.
24
Connecting Optical Systems (H-PCF Cable) Section 2-2
Also, the maximum distance is reduced due to extension loss when Inline
Adapters are used to extend cables.
Optical Fiber Cables with The following Optical Fiber Cables are available with Connectors already at-
Connectors (Indoor Use tached.
Only)
Specifications Length Model
Optical Fiber Cable Connectors: 2 m S3200-CN201-20-20
S3200-COCF2011
S3200 COCF2011 5m S3200-CN501-20-20
⇓ 10 m S3200-CN102-20-20
S3200 COCF2011
S3200-COCF2011
15 m S3200-CN152-20-20
20 m S3200-CN202-20-20
Over 20 m S3200-CN-20-20
(Specify length (m) when ordering.)
Optical Fiber Cable Connectors: 2 m S3200-CN201-20-25
S3200-COCF2011
S3200 COCF2011 5m S3200-CN501-20-25
⇓ 10 m S3200-CN102-20-25
S3200 COCF2511
S3200-COCF2511
15 m S3200-CN152-20-25
20 m S3200-CN202-20-25
Over 20 m S3200-CN-20-25
(Specify length (m) when ordering.)
Optical Fiber Cable Connectors: 2 m S3200-CN201-25-25
S3200-COCF2511
S3200 COCF2511 5m S3200-CN501-25-25
⇓ 10 m S3200-CN102-25-25
S3200 COCF2511
S3200-COCF2511
15 m S3200-CN152-25-25
20 m S3200-CN202-25-25
Over 20 m S3200-CN-25-25
(Specify length (m) when ordering.)
Note 1. Consult an electrician if cables with outdoor specifications are required. The
cable must be protected from lightning by special installation such as instal-
lation within a conduit or underground.
2. The cables listed above are black and have power supply lines and tension
members, although the power supply lines aren’t used in the SYSMAC LINK
Network.
3. All of the cables listed above are attached to the connectors with adhesive.
4. Special training is required to assemble Optical Fiber Cables and connec-
tors with adhesive.
Optical Fiber Cable Accessories
Use the following accessories to assemble and test Optical Fiber Cables.
This manual does not provide details on Optical Fiber Cable preparation. For
details, refer to the instructions provided with the S3200-CAK1062 Assembly
Tool.
25
Connecting Optical Systems (H-PCF Cable) Section 2-2
Refer to 2-2-1 Devices Required for Connection for details on available Optical
Fiber Cables.
Connection Procedure
1, 2, 3... 1. The Optical Fiber Cable’s power supply line is not used, so it can be cut.
2. As shown in the following diagram, secure the Optical Fiber Cable, and se-
cure the clamp to the mounting bracket. Secure the two cables simulta-
neously for nodes (except the end nodes). Pay attention to the orientation of
the mounting bracket and the connector position when connecting the cable
26
Connecting Optical Systems (H-PCF Cable) Section 2-2
from the highest node in the network to the rightmost connector (SL1), and
the cable from the next lower node to the leftmost connector (SL2).
Cable connects to
connector SL1
Cable connects to
connector SL2
3. Install the mounting bracket on the Board with the screws provided. Insert
the tip of the mounting bracket with the grooves into the hole on the Board
surface until it locks firmly (a), and then secure the other end of the mounting
bracket using the screw (b). Take care not to bend or pull the Optical Fiber
Cable forcefully.
4. Remove the Optical Connector Cover from the Board again. If there are cov-
ers on the end connectors of the Optical Fiber Cable, remove them.
5. Double-check the direction of the cables. The cable from the node higher in
the network connects to the Board’s right connector and the cable to the
node lower in the network connects to the Board’s left connector. Insert the
cable’s connectors fully into the Board’s connectors.
Connection Precautions
• Insert the connectors completely and check that the connectors are locked be-
fore starting operation.
27
Connecting Optical Systems (H-PCF Cable) Section 2-2
Cord Cable
• Do not bend the cable past its natural bending radius. The minimum radius for
bends is 10 cm.
• To prevent the Optical Fiber Cable from being pulled too forcefully, always use
the cable mounting bracket and provide space behind the Board as shown in
the following diagram. Do not exceed the maximum tension for the cord and
cable:
Cord: 0 kg (Do not apply any tension.)
Cable: 5 kg (about 11 lbs)
Cord Cable
Back of the
computer
140 mm
• Do not place objects on top of the Optical Fiber Cable. The maximum pressure
that can be placed on the cord and cable is as follows:
Cord: 30 kg/10 cm
Cable: 50 kg/10 cm
• Inspect the connector before installing it.
• When connecting or disconnecting the Optical Fiber Cable, be sure to hold the
connector firmly. (Do not pull on the cable itself.)
28
Backup Power Supply Wiring (Optical Systems Only) Section 2-3
Power supply
down
Each node requires a backup power supply for the node bypass function. Sever-
al nodes can be connected to a single power supply or each node can be con-
nected to an independent power supply. If several nodes are connected to a
single power supply, be sure to wire each node separately as shown in the dia-
gram.
Note Use a separate power supply as the backup power supply. Do not use the same
power supply being used as the I/O power supply, equipment (such as motors)
power supply, or control power supply.
29
Backup Power Supply Wiring (Optical Systems Only) Section 2-3
+ –
+ Backup
24 VDC power
– supply
Note It is difficult to connect or disconnect the backup power supply connector after
the Optical Fiber Cable’s mounting bracket has been installed. Insert the con-
nector before installing the mounting bracket.
30
SECTION 3
Creating Applications Using the C Library
This section describes how to create applications (user programs) that control the SYSMAC LINK Support Board.
31
Basic Flow Section 3-1
START
Data link tables not yet written Data link tables
(no DATALINK.DAT file) already written
Writing data
link tables Transfer the data link tables to the
other nodes using the Support
Software. (Data link tables
transferred to the Board will be
recorded in the Board’s EEPROM.)
Note 1. Repeat the process to read/write data link data as often as required by the
application.
2. Data links can be started and stopped from other nodes, by sending FINS
commands from Support Software, by using PC software switches, or by
sending a FINS command from the application using the SlkSendFins func-
tion.
3. Information on errors that occur in using the C library can be read using the
SlkGetLastError function.
For details on various methods for making programs, refer to the following re-
sources.
• Information on using the C library: 3-2 Using the C Library
• Details on C library functions: Section 4 C Language Function Reference
• Support Software: SYSMAC LINK Support Software Operation Manual
(W369)
32
Basic Flow Section 3-1
Writing routing
tables Transfer the routing tables to the
other nodes using the Support
Software. (Routing tables transferred
to the Board will be recorded in the
Board’s EEPROM memory.)
Response
Note 1. Routing tables are not needed if all communications take place with other
nodes in the local network, but routing tables must be prepared if there are
communications between nodes on different networks.
2. Repeat the process to send and receive FINS messages as often as re-
quired by the application.
3. To use Windows-based messages to determine if a FINS message has
been received, use the SlkSetMessageOnArrival and SlkSetThreadMessa-
geOnArrival functions to register the Windows-based messages to be used
for notification. When not using Windows-based messages, check periodi-
cally for FINS messages using SlkRecvFins.
For details on various methods for making programs, refer to the following re-
sources.
• Information on using the C library: 3-2 Using the C Library
• Details on C library functions: Section 4 C Language Function Reference
33
Using the C Library Section 3-2
Functions
Function name Name Function Page
SlkOpen Board Open Opens the application interface and gets 38
an SLK handle.
SlkClose Board Close Closes the application interface and 39
releases the SLK handle.
SlkSendFins FINS Message Send Sends a FINS message. 39
SlkRecvFins FINS Message Receive Receives a FINS message. 40
SlkWriteDatalink Data Link Data Write Writes data to a data link area. 40
SlkReadDatalink Data Link Data Read Reads data from a data link area. 41
SlkGetNetworkStatus Network Status Read Reads the network status. 41
SlkSetMessageOnArrival FINS Message Reception Makes settings to notify the specified 42
Notification Registration to window with a Windows message when
Window a FINS message is received.
SlkSetThreadMessageOnArrival FINS Message Reception Makes settings to notify the specified 43
Notification Registration to thread with a Windows message when a
Thread FINS message is received.
SlkClearMessageOnArrival FINS Message Reception Clears windows message notification 43
Notification Clear when a FINS message is received.
SlkGetLastError Detailed Error Information Gets an error code generated when a 44
Acquire SLK library function is used.
34
Using the C Library Section 3-2
35
SECTION 4
C Language Function Reference
This section gives details on the C++ library functions supported by the SYSMAC LINK Support Board.
37
Library Functions Section 4-1
38
Library Functions Section 4-1
39
Library Functions Section 4-1
Return Value The size of the FINS message that was receive is returned as the number of by-
tes if the function ends normally.
SLK_ERROR is returned if the function ends in an error. Detailed error informa-
tion can be obtained using SlkGetLastError().
Description The number of receive bytes in the return value is for all bytes starting from the
command code (MRC) in the FINS message.
Refer to 4-2 Structure Descriptions for information on the header information
structure.
The FINS message from the command code (MRC) on will be stored in the FINS
message receive buffer.
The function will end in an error in the following cases:
Error cause Detailed error information
A FINS message receive buffer size of less ERR_RECV_BUFFER_SIZE
than 2 bytes was specified in the argument. (Receive message size error)
A message reception area cannot be reserved ERR_NO_MEMORY
because of insufficient memory. (Memory acquisition error)
The reception wait time is set to 0 and a FINS 38
message has not yet been received. (Receive timeout)
A FINS message was not received within the 38
specified reception wait time. (Receive timeout)
The received FINS message is larger than the ERR_MSG_SIZE_OVER
reception buffer size. (Receive buffer size error)
40
Library Functions Section 4-1
41
Library Functions Section 4-1
4-1-8 SlkSetMessageOnArrival()
FINS Message Reception Notification Registration to Window
Function Makes settings to notify the specified window with a Windows message when a
FINS message is received.
Call Format INT SlkSetMessageOnArrival( PSLKHANDLE hSLK, HWND hWnd, UINT
uMsg);
Arguments Type Variable name Description
PSLKHANDLE hSLK The SLK handle obtained with
SlkOpen()
HWND hWnd Window handle to receive event
notification
UINT uMsg Message to use for notification
(WM_USER to 0x7FFF)
42
Library Functions Section 4-1
4-1-9 SlkSetThreadMessageOnArrival()
FINS Message Reception Notification Registration to Thread
Function Makes settings to notify the specified thread with a Windows message when a
FINS message is received.
Call Format INT SlkSetThreadMessageOnArrival( PSLKHANDLE hSLK, DWORD
dwThreadId, UINT uMsg);
Arguments Type Variable name Description
PSLKHANDLE hSLK The SLK handle obtained with
SlkOpen()
DWORD dwThreadId Thread ID to receive event notification
UINT uMsg Message to use for notification
(WM_USER to 0x7FFF)
4-1-10 SlkClearMessageOnArrival()
FINS Message Reception Notification Clear
Function Clears windows message notification when a FINS message is received.
Call Format INT SlkClearMessageOnArrival( PSLKHANDLE hSLK);
Arguments Type Variable name Description
PSLKHANDLE hSLK The SLK handle obtained with
SlkOpen()
43
Library Functions Section 4-1
Return Value Detailed error information is returned if the function ends normally.
SLK_ERROR is returned if the function ends in an error.
Description Refer to 4-3 Detailed Error Information for details on the return value.
44
Structure Descriptions Section 4-2
Note When –1 is specified for the Service ID (SID), the SID is automatically increm-
ented and attached. The SID value incremented within the function is retained
within that one process only. The incremented value is not managed on the net-
work handle or thread level.
The areas and ranges that can be accessed can be changed using FinsGateway
event memory settings. The default areas and ranges are listed in the following
table.
Area Designation Range
CIO Area CIO 0 to 32767
DM Area DM 0 to 32767
45
Structure Descriptions Section 4-2
Cable type
0: Coaxial
1: Optical
BYTE byMyNodeAddr Local unit address
Stores the local unit address set for the SYSMAC LINK Board.
BYTE byMyUnitAddr Always set to 0.
BYTE byMyNetAddr Always set to 0.
BYTE abyNodeList[32] Network participation status
Stores a list of the nodes participating in the network.
Bit Node Participation Information
[0] Node 1 Reserved
[1] Node 3 Node 2
Node 5 Node 4
[2]
0: Not participating in network
1: Participating in network
[30] Node 61 Node 60
[31] Reserved Node 62 0: Normal disconnection
1: Error disconnection
(when not participating)
0: Normal
1: No response to polling.
WORD wComunicationCycleTime Communications cycle time
Stores the current value of the communications cycle time. (unit: 0.1 ms)
BYTE byPollingNodeAddr Polling node address
Stores the node address of the current polling node.
BYTE byStatus1 Reserved area
Contains undetermined data.
BYTE byStatus2 Indicates the backup power supply’s status when using an optical system.
Bit
Optical System
0: Backup power not being supplied
1: Backup power being supplied
BYTE byStatus3 Error information 1
Stores information such as node address setting errors.
46
Structure Descriptions Section 4-2
PC Operating Status
0: Stopped
1: Running (PC program being executed.)
CPU Unit Error Status
0: No error
1: Error
Data Link Communications Error Status
0: Normal
1: Error (Data link data not received normally.)
Data Link Participation Status
0: Not participating or data links stopped
1: Participating
47
Detailed Error Information Section 4-3
48
SECTION 5
Data Links
This section describes how to use data links in a SYSMAC LINK Network.
49
What Are Data Links? Section 5-1
Data
link
areas
Data
link
tables
• Manually set data links when you want to create data links tailored to meet the
requirements of your application. Data links can be set in each node’s SYS-
50
What Are Data Links? Section 5-1
MAC LINK Unit or Board using the SYSMAC LINK Support Software or the
FinsGateway’s SLK Data Link Setting Utility.
• Each node’s send area size and location can be allocated freely.
• It is possible to change the order in which data is received from the other
nodes.
• Nodes can be set as send-only or receive-only.
Node
Node #1 Node #2 #3
Area 1
(Bit areas) #1 #1 #1
#2 #2 #2
#3 #3 #3
Area 2
(Data memory) #1 #1 #1
#2 #2 #2
#3 #3 #3
Automatically set data links when you want to create data links easily.
• Use a Programming Device (such as a Programming Console) to set the auto-
matic data link mode in the startup PC’s PC Setup or DM parameter area.
• The CIO or LR Area can be selected for area 1 and the DM Area can be se-
lected for area 2.
• A computer cannot be used as the startup node if the data links are being auto-
matically set.
• A computer can only participate in the data links if the data links are being auto-
matically set.
51
Setting Data Links Section 5-2
Note 1. The data link mode can be selected only with a SYSMAC LINK Unit. Refer to
the SYSMAC LINK Units Operation Manual (W202/W376) for more details.
2. Data links must be set manually when the SYSMAC LINK Support Board
has been set as the startup node.
3. The data link mode can be set in the data link startup node only. The data link
mode setting is determined by the data link mode of the startup node even if
the data link mode settings of the nodes participating in the data links are
different from the settings in the startup node.
4. In manual setting, a data link table must be set in the data link startup node
and in automatic setting, automatic data link setting parameters must be set
in the data link startup node. Data links will not be started unless the settings
are correct.
Note 1. Data link tables cannot be set in the SYSMAC LINK Support Board using the
CX-Net in the CX-Programmer. Use the SLK Data Link Setting Utility in Fins-
Gateway or the SYSMAC LINK Support Software (version 2.00 or higher).
2. When transferring the data link tables to a SYSMAC LINK Unit in a CV-se-
ries PC, set the System Protect Keyswitch on the CPU Unit to “NORMAL.”
With a CS-series PC, set pin 1 of the CPU Unit’s DIP switch to “OFF.”
3. The SYSMAC Support Software cannot be connected directly to a CS-se-
ries PC.
52
Setting Data Links Section 5-2
SYSMAC LINK
Support Board
Note 1. To create data link tables for nodes in the network using the SLK Data Link
Setting Utility in the FinsGateway, the network must have been constructed
correctly. Set routing tables at each node as required. When using manually
set data links, be sure to delete data link tables for all nodes not participating
in data link. See 1-4 Applications Precautions for details. Refer to FinsGate-
way online help for actual setting procedures for the SLK Data Link Setting
Utility.
2. Refer to the FinsGateway online help for details on setting data link tables
with the FinsGateway’s SLK Data Link Setting Utility.
53
Setting Data Links Section 5-2
2. Refer to the CX-Net Operation Manual for details on setting parameters with
CX-Net.
3. Data link areas in the SYSMAC LINK Support Board are allocated in the
FinsGateway event memory. Refer to the FinsGateway online help for in-
formation on the area types and sizes in event memory.
4. If you are using a C-series SYSMAC LINK Unit with this Support Board, a
CS-series SYSMAC LINK Unit, or a CV-series SYSMAC LINK Unit, the ad-
dresses 1000 to 1063 correspond to the 64 words in the LR area (LR 00 to
LR 63). Set the data link words in the LR area of the C-series PC.
5. The data link words in the CIO or IR Area, and the words in the DM Area, are
continuous.
Or
SYSMAC LINK
IBM PC/AT or
compatible
SYSMAC DM parameter area
Support
Software
Note 1. Parameters for automatically setting data links can only be set in PCs. Refer
to the SYSMAC LINK Units Operation Manual (W202/W367) for details.
2. A computer (SYSMAC LINK Support Board) cannot be the startup node for
an automatically setting data links.
3. A computer can participate in automatically set data links. Data link tables
are not required in the computer (the data link tables in the startup node will
be used).
54
Starting and Stopping Data Links Section 5-3
! Caution Check the following items before starting data links. If incorrect data link tables
or parameters are set, injury may result due to unexpected operation of the sys-
tem. Even if the correct data link tables and parameters have been set, do not
start or stop data links before verifying that there will be no adverse influence on
the system.
55
Starting and Stopping Data Links Section 5-3
User program
Startup node
Programming Device
SYSMAC LINK
+
CS-series PCs
Turn ON the Start Bit in DM 30000 + 100 × N.
(N: unit number)
CV-series PCs
Turn ON the Start Bit in DM 1500 + 25 × N.
(N: unit number)
The data links will start when the Start Bit changes from OFF to ON or is already
ON when power is turned ON. The data links will stop when the Start Bit changes
from ON to OFF.
Note 1. Refer to the SYSMAC LINK Units Operation Manual (W202/W367) for de-
tails on starting and stopping data links using a Programming Device or lad-
der program.
2. The data in the DM Area is retained even when the power is turned OFF.
Therefore, settings can be made in the DM Area in advance so that the data
links will start as soon as the power is turned ON.
When a CV-series PC is being used, specify the Start Bit in the Holding Area.
We recommend turning ON the Start Bits in multiple nodes that are partici-
pating in the data link so that the data links will start even if the startup node
is down. The same data link mode must be set in these nodes. Also, the
same data link settings must be set in these nodes when automatic settings
are being used for the data links.
CS-series Startup Node
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word N
56
Starting and Stopping Data Links Section 5-3
Start/stop specified
directly to SYSMAC
LINK Support Board.
5-3-3 Using the SYSMAC LINK Unit’s DIP Switch (C-Series Units Only)
Data links can be started turning with the Start Bit on the DIP switch on the front
of a C-series SYSMAC LINK Unit. The data links will start when the Start Bit is
turned from OFF to ON or is already ON when power is turned ON. The data links
will stop when the Start Bit is turned from ON to OFF.
Note 1. Refer to the SYSMAC LINK Units Operation Manual (W202/W367) for de-
tails on starting and stopping data links using the Unit’s DIP switch.
2. If the DIP switch’s Start Bit can be turned ON in advance so that the data
links will start as soon as the power is turned ON.
We recommend turning ON the Start Bits in multiple nodes that are partici-
pating in the data link so that the data links will start even if the startup node
is down. The same data link mode must be set in these nodes. Also, the
same data link settings must be set in these nodes when automatic settings
are being used for the data links.
Data links can be stopped in the same way by sending the DATA LINK STOP
FINS command. The node receiving the FINS command must be participating in
the data links in this case, too.
57
Checking Data Link Status Section 5-4
The second byte of the detailed information provided with error 021D provides
the minimum communications cycle time that can be set.
Example:
A communications cycle time of 5 ms was set in the data link table, the LNK indi-
cator is flashing quickly, and the error log contains the entry “021D 0512.” This
error log entry indicates that the minimum communications cycle time is 18 ms
(12 hexadecimal).
02 1D 05 12
58
Checking Data Link Status Section 5-4
The LNK indicator will be lit at all node participating in the data links as long as
operation is normal.
59
Data Link Performance Section 5-5
CPU Unit error 0: No error Indicates if an error has occurred in the PC.
1: Error Always 0 for SYSMAC LINK Support Board nodes.
PC status 0: Program execution stopped Indicates if the PC program is being executed or not.
1: Program being executed Always 1 for SYSMAC LINK Support Board nodes.
Note 1. Communications errors will be indicated for node that are not participating in
the network.
2. When a communications error occurs in the local node or it is separated
from the network, the local node retains the most recent status information it
received for the other nodes in the network.
Automatic Settings The standard values shown in the following tables are generated automatically
and set.
Coaxial System
Number of nodes Data link area
i the
in h data
d li k
link CIO/LR only DM only CIO/LR and DM
2 nodes 17 ms 18 ms 19 ms
4 nodes 17 ms 18 ms 19 ms
8 nodes 18 ms 18 ms 19 ms
16 nodes 18 ms 19 ms 19 ms
60
Data Link Performance Section 5-5
Optical System
Number of nodes Data link area
i the
in h data
d li k
link CIO/LR only DM only CIO/LR and DM
2 nodes 20 ms 21 ms 21 ms
4 nodes 20 ms 21 ms 22 ms
8 nodes 21 ms 21 ms 22 ms
16 nodes 21 ms 22 ms 22 ms
Manual Settings When the communications cycle time varies due to noise or other factors, use
the Support Software to set a fixed communications cycle time between 5 and
255 ms. If a fixed time is not set, the communications cycle time (T) will be calcu-
lated automatically with the following formula. The communications cycle time is
expressed in ms units and fractions are rounded off.
Coaxial System
T (ms) = Maximum node address × 0.085
+ Number of event frames allowed × 0.654
+ Number of polled nodes × 0.75
+ Number of linked nodes × 0.056
+ Total number of data link area words × 0.01
+ 1.322 ms
Optical System
T (ms) = Maximum node address × 0.1115
+ Number of event frames allowed × 0.77
+ Number of polled nodes × 0.75
+ Number of linked nodes × 0.056
+ Total number of data link area words × 0.01
+ 1.322 ms
Example Calculations
The example calculations are based on the following network specifications:
Maximum node address: 62
Number of polled nodes: 4
Number of event frames allowed: 10
Number of linked nodes: 32
Total number of data link words: 2,000
• Coaxial System:
T (ms) = 62 × 0.085 + 10 × 0.654 + 4 × 0.75 + 32 × 0.056 + 2,000 × 0.01
+ 1.322 ms
= 37.924 ms
→ 38 ms
• Optical System:
T (ms) = 62 × 0.1115 + 10 × 0.77 + 4 × 0.75 + 32 × 0.056 + 2,000 × 0.01
+ 1.322 ms
= 40.727 ms
→ 41 ms
The communications cycle time (present value and maximum value) can be
read or set with the Support Software or a command.
Note 1. Refer to Section 8 Communications Timing for details on the network pa-
rameters.
2. The data link may no operate correctly if the communications cycle time is
changed to a value shorter than the value that was automatically set by the
system.
3. If the LNK indicator on the front of a CS1W-SLK11/21 SYSMAC LINK Unit is
flashing quickly (about 10 times/second), either change the data link table’s
61
Data Link I/O Response Time Section 5-6
62
Data Link I/O Response Time Section 5-6
change is reflected in the data link area at another node. This time delay is called
the data link I/O response time.
5-6-1 Computer to PC
In the following diagram illustrating the maximum data link I/O response time, a
CS-series PC is used for the PC (node #2) and the PC’s cycle time is greater
than or equal to the communications cycle time.
Computer at node #1
User application
(SlkWriteDatalink)
Late
Communications
cycle time
I/O refresh
Data exchange
PC at node #2 Program
execution
Output ON delay
1 cycle
Output device
Data link I/O response time
There are two points shown in the diagram above where processing is delayed.
1, 2, 3... 1. Data exchange occurs just after the computer at node #1 receives the token
that gives it the right to send data, so processing is delayed about one com-
munications cycle time until the data is transferred in the next data ex-
change.
2. The data link transmission just misses the PC’s data exchange at node #2,
so processing is delayed about one PC cycle until the data is read into the
PC during the PC’s next data exchange. (If the cycle time of the PC at node
#2 is longer than the communications cycle time, the delay would be approx-
imately two PC cycles.)
Note 1. The I/O response time may be increased by noise or other factors.
2. The data send processing time for the area marked by the asterisk (*) in the
diagram will be affected by the processing capacity of the computer that is
used.
3. The communications cycle time may fluctuate.
4. For details regarding the time required for data exchanges between the
SYSMAC LINK Unit and the PC, refer to the SYSMAC LINK Units Operation
Manual (W202/W367).
63
Data Link I/O Response Time Section 5-6
5-6-2 PC to Computer
In the following diagram illustrating the maximum data link I/O response time, a
CS-series PC is used for the PC (node #2) and the PC’s cycle time is greater
than or equal to the communications cycle time.
Input
Input device
I/O refresh
Input ON response time
Data exchange
1
1 cycle
Late
Program PC at node #2
Late
Communications
cycle time
Data link
transmissions
(SlkReadDatalink)
There are three points shown in the diagram above where processing is
delayed, increasing the data link I/O response time.
1, 2, 3... 1. The input arrives in the PC just after I/O refreshing, causing a delay of up to
one cycle before the input is read into the PC.
2. Data exchange occurs just after the PC at node #2 passes the token that
makes it the polling node, causing a delay of up to one communications
cycle time before the data is transferred in data link processing.
3. The data arrives at the Data Link Area of the Support Board mounted at the
computer at node #1, but processing is delayed until the user application
executes the SlkReadDatalink library function. This delay will vary depend-
ing on the contents of the user application.
Note 1. The I/O response time may be increased by noise or other factors.
2. The data send processing time for the area marked by the asterisk (*) in the
diagram will be affected by the processing capacity of the computer that is
used.
3. The communications cycle time may fluctuate.
4. Refer to the SYSMAC LINK Units Operation Manual (W202/W367) for de-
tails on the time required for data exchanges between the SYSMAC LINK
Unit and the PC.
64
SECTION 6
Message Service
This section explains how to use the message service functions provided by a SYSMAC LINK Support Board.
6-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1-1 Message Service Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1-2 Message Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2 FINS Command/Response Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-1 Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-2 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-3 Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3 Commands and Responses for the Support Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-1 Command Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-2 DATA LINK START . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-3 DATA LINK STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-4 CONTROLLER DATA READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-5 CONTROLLER STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-6 NETWORK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-7 DATA LINK STATUS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-8 ECHOBACK TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-9 BROADCAST TEST RESULTS READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-10 BROADCAST TEST DATA SEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-11 ERROR LOG READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3-12 ERROR LOG CLEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4 Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4-1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4-2 Network Relay Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4-3 Response Codes and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
Introduction Section 6-1
6-1 Introduction
A message service is a command/response system used for data transmission
between nodes on a network, i.e., computer to computer, PC to computer, or
computer to PC. The message service can also be used to control operations,
such as mode changes. The message service is implemented by executing from
the user program the library functions for sending or receiving messages.
Item Specifications
Direction of transmission 1:1 Message transmission or reception
1:N Message transmission (broadcast)
Data length 522 bytes max. (including FINS header)
Data content Any command/response data can be sent or received.
Depends on the message being sent.
Functions Features
Sending Messages This library function and driver call send command/response data.
SlkSendFins library Can be issued with respect to any Units at a PC, or to the Support Board or user
function program at a computer.
(See note.) Mainly used for sending FINS commands and responses. The FINS commands
and responses enable various types of control, and allow the status to be read.
Data is prepared according to a fixed format in the program and sent by executing
SlkSendFins.
No special program is required at the receiving end if FINS commands and
responses supported by the receiving Unit are used.
When sending data to the computer with a user program, a program that can
process the received data is required.
When a response to a command is returned, a program for reading and analyzing
the response is required.
Receiving Messages These library functions and driver call receive command/response data.
SlkRecvFins library Data received by the SYSMAC LINK Support Board is read.
function Mainly used for receiving FINS commands and responses. The FINS commands
and responses enable various types of control, and allow the status to be read.
Data is received by executing SlkRecvFins, and it is analyzed by the program
according to a fixed format.
A program is required for analyzing the data that is received.
A program is required for preparing and sending responses when commands
requesting responses are received.
Note Using SlkSendFins or SlkRecvFins to send the “MEMORY AREA READ” and
“MEMORY AREA WRITE” FINS commands for PCs is equivalent to executing
the SEND and RECV ladder-diagram instructions.
66
FINS Command/Response Format Section 6-2
6-2-1 Headers
Although parameters are used to designate the source, the destination, and oth-
er required information, there are some cases where a header must be manually
added before the command code. Refer to the operation manuals for individual
systems to determine if a header is required. The header format described be-
low 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 Text
code
Header
ICF RSV GCT DNA DA1 DA2 SNA SA1 SA2 SID Command Response Text
code code
Header
Details
ICF Information control field. Individual bits of the ICF are used as follows:
Bit 7 6 5 4 3 2 1 0
1 0 0 0 0 0
Note All settings below are shown in hexadecimal except where otherwise indicated.
67
FINS Command/Response Format Section 6-2
6-2-2 Parameters
All parameters are specified in hexadecimal unless otherwise specified. Where
decimal is specified, it is indicated by BCD.
Command Text
code
Responses When the SlkRecvFins library function is executed, the data from the command
code to the end of the text (with the data determined by the individual command)
is stored as reception data, as shown in the following diagram. There are four
bytes available for the command and response codes, and 0 to 538 bytes for the
text.
Note When multiple networks are connected, there are limits to the amount of data
that can be transferred via the SYSMAC LINK Network and the host link func-
tion.
68
Commands and Responses for the Support Board Section 6-3
04 01
Command
code
Response Block
04 01
Command Response
code code
The DATA LINK START command can be received for manually set data links.
An error will occur if manually set data links are specified and yet data link tables
do not exist.
The node that receives this command and starts the data links will become the
data link startup node.
Note The Support Board can participate in automatically set data links, but it cannot
be the starting unit.
04 02
Command
code
69
Commands and Responses for the Support Board Section 6-3
Response Block
04 02
Command Response
code code
The DATA LINK STOP command can be received only while the data link is ac-
tive. An error will occur if this command is sent at any other time.
This command can be received by any node that is participating in the data link.
05 01
Command
code
Response Block
05 01 20 bytes 20 bytes
Parameters Model, version (response): The SYSMAC LINK Support Board’s model and
version are returned as shown below, each 20 characters in ASCII. If fewer than
20 bytes of data are used, the remaining bytes will be packed with spaces (ASCII
code 20 Hex). In the version numbers shown below, the spaces are represented
by boxes (j).
Model
3G8F7-SLK21jjjjjjjjj (Coaxial)
3G8F7-SLK11jjjjjjjjj (Optical)
Version
V1.00jV1.00jjjjjjjjj
The first “V1.00” represents the Communications Controller’s version number,
and the second represents the Support Board’s version number.
Connection Type and Shared RAM Size (response)
Bit
0 0 0
Not used
Shared RAM size
(Always 0 for the SYSMAC LINK
Support Board.)
Connection type
0: Coaxial
1: Optical
Node address (response): The Support Board’s node address is returned be-
tween 01 and 3E Hex (1 to 62).
70
Commands and Responses for the Support Board Section 6-3
Command Block
06 01
Command
code
Response Block
06 01 00 00 00 00 00
Parameters Operating status (response): The operating status of the data links is as fol-
lows:
00 (Hex): Data links inactive.
01 (Hex): Data links active.
Status 1 (response): Indicates the status of test operation as follows. Always
00 with a SYSMAC LINK Support Board.
Bit 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0
71
Commands and Responses for the Support Board Section 6-3
Count 1 to Count 8 (response): These 8 bytes count how many times the fol-
lowing events have occurred since the power was turned ON. Each counter can
count from 0 to 255 (i.e., 0 to FF in hexadecimal).
Count 1: Number of CRC errors
Count 2: Number of token re-sends
Count 3: Number of token returns
Count 4: Number of token timeouts
Count 5: Number of polling timeouts
Count 6: Number of polling node changes
Count 7: Number of active node changes
Count 8: Number of communications controller data-transfer function stops
Network participation status list (response): These 8 bytes contain flags that
indicate which nodes are participating in the network. A node is participating in
the network (active) when the corresponding bit is ON.
Bit 7 6 5 4 3 2 1 0
Byte 1 8 7 6 5 4 3 2 1 The numbers in the boxes indicate the node
Byte 2 16 15 14 13 12 11 10 9 addresses. The bit status of a particular
24 23 22 21 20 19 18 17 node address shows whether or not that
Byte 3
node is participating in the network.
Byte 4 32 31 30 29 28 27 26 25
0: Not part of network
Byte 5 40 39 38 37 36 35 34 33
1: Part of network
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 (The 2 bits marked with a “–” are always 0.)
06 02
Command
code
Response Block
72
Commands and Responses for the Support Board Section 6-3
Parameters Participation data (response): These 31 bytes indicate the status of individual
nodes within the network (i.e. their participation in the network). As shown in the
following diagram, that status is expressed in four bits corresponding to the node
address.
Bit 7 6 5 4 3 2 1 0
Node #2 Node #1 Participation Status of Individual Nodes
Byte 1
0
Byte 2 Node #4 Node #3
Byte 3 Node #6 Node #5 0: Not part of network
1: Part of network
Byte 31 Node #62 Node #61 0: Normal disconnection (Applicable only for
1: Abnormal disconnection inactive nodes.)
0: Normal node
1: Non-responding node
(No response to polling)
Bit 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0
Cyclic operation status
0: Stopped
1: Operating
Bit 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0
Cyclic transmission status
0: No transmission
1: Transmission
Bit 7 6 5 4 3 2 1 0
Byte 1 7 6 5 4 3 2 1 – The numbers in the boxes indicate the node
15 14 13 12 11 10 9 8 addresses. The bit status of a particular
Byte 2
node address shows whether or not there is
Byte 3 23 22 21 20 19 18 17 16 a recurring data link error at that node.
Byte 4 31 30 29 28 27 26 25 24
0: No recurring cyclic error
Byte 5 39 38 37 36 35 34 33 32 1: Recurring cyclic error
Byte 6 47 46 45 44 43 42 41 40
Byte 7 55 54 53 52 51 50 49 48
Byte 8 – 62 61 60 59 58 57 56 (The 2 bits marked with a “–” are always 0.)
Cyclic error counter (response): These bytes contain the total number of cy-
clic errors that occurred with each node (node addresses 1 to 62) since the pow-
er was turned ON. There is a one-byte counter allocated to each node and the
73
Commands and Responses for the Support Board Section 6-3
count is expressed in hexadecimal. The count can range from 0 to 255 (i.e., 0 to
FF in hexadecimal) and the counting stops at 255.
Bit 7 6 5 4 3 2 1 0
Command Block
06 03
Command
code
Response Block
06 03 31 bytes
Status flags
Parameters Status flags (response): The overall data link status is returned in one byte of
data, as shown in the following diagram.
Bit 7 6 5 4 3 2 1 0
0 0 0 0
1: Data link table setting error
1: No data link table
Data link table setting method
Data link operating status 0: Manual settings
0: Stopped 1: Automatic settings
1: Operating
Refresh time present value and refresh time maximum value (response):
These words contain the present value and the maximum value of the cycle time
between data link area refreshes. Both values are returned in units of 1 ms, in
hexadecimal, within a range of 0005 to 00FF (5 to 255 decimal).
Status (response): Each node’s data link status is returned as shown in the fol-
lowing diagram. The status is the same as the data link status monitored with the
74
Commands and Responses for the Support Board Section 6-3
FinsGateway’s SLK Data Link Setting Utility as described in 5-4-2 Data Link Sta-
tus Area.
Bit 7 6 5 4 3 2 1 0 Data link status for each node
Byte 1 Node #2 Node #1
Byte 2 Node #4 Node #3
Byte 3 Node #6 Node #5 PC operating mode
0: PROGRAM
Byte 31 Node #62 Node #12 1: RUN or MONITOR
PC error
0:Normal
1:PC stopped due to an error
Communications error
0:Normal
1:Communications error or not in network
Data link operation (for each node)
0:Stopped
1:Operating
Note 1. The data link status is not refreshed while the data links are stopped.
2. Communications errors will be indicated for nodes which are not active in
the network or not participating in the data links.
3. When a communications error occurs in a node, that node retains the most
recent status information it received for the other nodes in the network.
4. Only the PC operating status and PC error information will be reflected for
nodes which are participating in the network but are not participating in the
data links.
08 01 512 bytes
max.
Response Block
08 01 512 bytes
max.
Parameters Test data (command, response): For the command, up to 512 bytes of data
can be specified to be sent to a specified node. For the response, the test data
that was sent by the command is returned unchanged.
Some kind of error occurred if the data returned in the response is different from
the data that was sent in the command.
08 02
Command
code
75
Commands and Responses for the Support Board Section 6-3
Response Block
08 02
Parameters Number of receptions (response): The number of times that broadcast test
data has been received at the command destination node from the time that the
last BROADCAST TEST RESULTS READ command was sent until this one was
sent is returned.
An error will be generated if that number of receptions differs from the number of
times that the BROADCAST TEST DATA SEND command was issued during
that same period.
The number of receptions value being retained at the destination node is cleared
when the BROADCAST TEST RESULTS READ command is executed.
08 03 512 bytes
max.
21 02
Response Block
21 02 10 bytes 10 bytes
Command Response Max. no. of No. of No. of Error log Error log
code code stored records stored records data data
records to read
Parameters Beginning record no. (command): Specifies the first record to be read, in two
bytes (four digits) in hexadecimal. (The first record number is 0000 hexadeci-
mal).
76
Response Codes Section 6-4
Error code, details: These parameters show the contents of errors. For de-
tails, refer to 9-3-2 Error Codes.
Date and time: These parameters show the seconds, minutes, hour (0 to
23), date, month, and year (the rightmost two digits) in BCD specifying the
time that the error occurred.
Note If the PC does not have the specified number of records, the response will return
all of the records that have been stored up to that point and the command will end
normally.
21 03
Command
format
Response Block
21 03
Command Response
format code
77
Response Codes Section 6-4
6-4-1 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 Second byte
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Main response code (MRES) Sub-response code (SRES)
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 6-4-2
Network Relay Errors 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.
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
First word
Command code
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Second word Main response code (MRES) Sub response code (SRES)
78
Response Codes Section 6-4
Example 1 In this example, data cannot be transferred between SYSMAC LINK Units due to
some cause such as a routing table error.
Computer
Controller Link Unit SYSMAC LINK Units
Transmission Response
Example 2 In this example, the specified destination node or the next relay node does not
exist.
Computer
Controller Link Unit SYSMAC LINK Unit
Units
Transmission Response
If an error occurs, check the MRES and SRES codes for the node in question,
and correct the problem.
79
Response Codes Section 6-4
80
Response Codes Section 6-4
81
Response Codes Section 6-4
82
Response Codes Section 6-4
83
Response Codes Section 6-4
84
Response Codes Section 6-4
85
SECTION 7
Network Interconnections
This section describes the method used to connect multiple networks.
87
What is Network Interconnection? Section 7-1
Data Data
Data and communications
protocol gateway
88
Routing Tables Section 7-2
Computer
FinsGateway
SYSMAC LINK Controller Link
Support Board Support Board
Although 2,012 bytes of data (including the header) can be sent and received
through a Controller Link Network, the maximum amount of data is limited by any
network the data passes through, i.e., the network with the the smallest capacity
will determine the limit.
If, for example, data passes through a SYSMAC LINK network as shown in the
figure, the amount of data sent and received from the SYSMAC LINK is limited to
552 bytes (including the header) because the SYSMAC LINK Network can only
handle that many bytes.
See the manual for the network you are using in order to determine the maxi-
mum amount of data for each network.
89
Setting Routing Tables Section 7-3
Note 1. The unit number is set between 00 and 15 using the rotary switch on the front
panel of CV-series and CS-series SYSMAC LINK Units, and is the same as
the operating level for C200HX/HG/HE PCs. For a SYSMAC LINK Support
Board, the unit number is 16 less than the unit address (i.e., the Commu-
nications Unit number: 16 to 31) set for the Board in the FinsGateway set-
tings.
2. The network address is the address of the network connected to the Unit
(between 1 and 127). The address is set when the local network table is
created.
Relay Network Table A relay network table provides the node and network addresses corresponding
to the initial relay point (first point the data must go to) en route to a target net-
work (end network) not directly connected to the local PC. The table traces the
route from the relay point to the end network.
End network
Computer relay network table PC (a) relay network table PC (b) local network table
Local net-
End Relay Relay End Relay Relay work ad- Unit
network network node network network node dress number
2 1 3 3 2 2 2 0
3 1 3 3 1
Data first goes to node Data then goes to node We know from the Data goes to node
address 3 at network address 2 at network ad- local network table address 2 at network
address 1 to reach dress 2 to reach network that the data goes address 3, i.e., the
network address 3. address 3. through local unit local network.
number 1 to reach
network address 3.
90
Setting Routing Tables Section 7-3
Example 1 The example below shows local network table settings when a SYSMAC LINK
Support Board is mounted to a computer.
Computer
Unit number b
Example 2 The following example show the settings for a relay network table connecting
three networks.
PC 1 End Relay
No. Netwk PC ID Netwk Node
1 B A b
2 C A b
Node address a
Node address b 1 C B e
Node address c
PC 3 End Relay
No. Netwk PC ID Netwk Node
1 A B c
Network 2 C B e
address B Node address d
End Relay
PC 4 No. Netwk PC ID Netwk Node
Node address e 1 A B c
Node address f
PC 5 End Relay
Network No. Netwk PC ID Netwk Node
address C
1 A C f
2 B C f
Node address g
On closer examination of the relay network table for PC 3, we see that the relay
network is B and the relay node is c when network A is the destination, and that
the relay network is B and the relay node is e when network C is the destination.
91
Setting Routing Tables Section 7-3
Example 3 The network structure example in the figure below shows routing tables for all
nodes.
Unit 5
Node 1
SNT: SYSMAC NET LINK Unit
SNT PC CLK: SYSMAC LINK Unit or Board
(1) SLK: SYSMAC LINK Unit
Network 10
Unit 3 Unit 4
Node 4 Node 5
PC PC
Unit 2 CLK SNT (2) SNT SLK (3) Unit 7
Node 3 Node 15
Network 20 Network 30
Com- PC PC PC
CLK puter CLK (4) SLK (5) SLK (6)
Routing Tables on PC 1
Routing Tables on PC 2
Routing Tables on PC 3
92
Setting Routing Tables Section 7-3
Routing Tables on PC 4
Local Network Table Relay Network Table
Routing Tables on PC 5
Local Network Table Relay Network Table
Routing Tables on PC 6
Local Network Table Relay Network Table
93
SECTION 8
Communications Timing
This section explains SYSMAC LINK Network communications in detail. Refer to this section for network communications
that require accurate communications timing.
95
Network Parameters Section 8-1
Token Cycle The token cycle is the period during which the token is sent from the polling node
to the nodes in order and returned to the polling node. During this cycle, any
nodes with data to send will send that data. Data link data will also be sent during
this cycle.
Polling Cycle The polling cycle is the period during which the polling node checks the status of
the nodes in the network. The polling node checks whether each node is actually
participating in the network, whether there are any new nodes participating, and
so on, and notifies all the nodes of the results of the check.
96
Network Parameters Section 8-1
the SYSMAC LINK Network is started. In this way, all nodes on the network al-
ways have the same network parameter settings. If nodes are connected to the
network halfway during network operation, the network parameter settings will
also be distributed to these nodes when they are connected. The following three
network parameters can be specified.
Maximum Node Address This parameter specifies the maximum node address of nodes to be checked by
the polling node. The default is 32 for Wired Networks and 62 for Optical Ring
Networks Reducing the setting of this parameter reduces the number of nodes
checked by the polling node and can thus avoids unnecessary check opera-
tions. However, if the network contains nodes with node addresses greater than
the setting of the parameter, these nodes will not be connected to the network.
No. of Polled Nodes Per This parameter specifies the number of nodes to be checked (polled) by the pol-
Communications Cycle ling node during each polling cycle. The default is 4.
Increasing this setting increases the communications cycle time, but reduces
the time required to recognize that nodes have been removed from or added to
the network. On the other hand, reducing this setting shortens the communica-
tions cycle time but delays a network response when a node is disconnected
from or connected to the network.
No. of Event-frames per This parameter specifies the maximum number of event frames (communica-
Communications Cycle tions other than data links, such as message service transmissions) that can be
transferred during a communications cycle. Specify a value in units of 128 bytes.
The default is 10 (128 10 = 1,280 bytes).
Increasing this setting increases the communications cycle time but allows for
more event communications such as the message service. If this setting is too
low, event communications will be restricted and errors will occur.
See 5-5 Data Link Performance for the actual effects of network parameter
changes on communication cycle times.
The following table shows the setting range and default for network parameters.
Note 1. Always stop the data link before changing network parameters.
2. Specify a value for the maximum node address that is equal to or greater
than the highest node address in the SYSMAC LINK Network.
97
Message Service Delay Times Section 8-2
Computer at
User application node #1
(SlkSendFins) (SlkRecvFins)
Receive processing at
Send processing at node node #1 (response)
#1 (command)
Transmission delay
(response)
Communications cycle
Transmission delay
(command)
PC at node #2
98
SECTION 9
Troubleshooting and Maintenance
This section provides information on troubleshooting errors that occur during SYSMAC LINK Support Board operation, as
well as daily inspection, cleaning, and other maintenance procedures.
99
Troubleshooting Using Indicators Section 9-1
Note Be sure to turn OFF the computer before performing any of the following:
100
Troubleshooting Using Indicators Section 9-1
Node Cannot Participate The following table describes the LNK indicators when a node cannot participate
in Data Link in the data links.
Data link participation depends on the SYSMAC LINK Support Board operating
normally and participating in the Network. Refer to 9-1-1 Using the RUN, ERR,
101
Status Information and Troubleshooting Section 9-2
and INS Indicators earlier in this section and check Unit operation before using
the following table.
Indicators Probable cause Probable remedy
y
LNK
Lit Data link operating normally. ---
Flashing When manual setting was used, there is an error in Refer to 5-2-2 Manual Setting and reset the data
slowly the data link table. link table.
Flashing The data link table’s communications cycle time Change the data link table’s communications cycle
quickly setting is too short. time setting to automatic calculation or set a longer
manual setting.
Not lit For manual setting, there are no data link tables set Set data link tables for the local node.
for the local node.
For automatic setting, the startup node is not set to Stop the data links, delete the parameters in the
participate in the data links. startup node’s DM Area, and then restart the data
link.
The SYSMAC LINK Support Board cannot become
the start-up node with automatic settings, so set a
PC in which a SYSMAC LINK Unit is mounted as
the start-up node. For details refer to the SYSMAC
LINK Units Operation Manual (W202/W367).
Data Links Cannot be The following explanation describes how to use the LNK indicator when the data
Stopped links cannot be stopped. Stopping the data links depends on the SYSMAC LINK
Support Board operating normally and participating in the Network. Read the
above explanations before attempting to stop operation.
Note Stop the data link from the node at which the LNK indicator is flashing (indicating
active data links). Data links cannot be stopped from nodes which do not have
active data links.
Connection type
0: Coaxial
1: Optical
BYTE byMyNodeAddr Local node address
Stores the local node address set for the SYSMAC LINK Support Board.
BYTE byMyUnitAddr A value of 0 will always be read for a SYSMAC LINK Support Board.
BYTE byMyNetAddr A value of 0 will always be read for a SYSMAC LINK Support Board.
102
Status Information and Troubleshooting Section 9-2
Optical System
0: No backup power supply
1: Backup power being supplied
103
Status Information and Troubleshooting Section 9-2
PC Operating Status
0: Stopped
1: Running (PC program being executed.)
CPU Unit Error Status
0: No error
1: Error
Data Link Communications Error Status
0: Normal
1: Error (Data link data not received normally.)
Data Link Participation Status
0: Not participating or data links stopped
1: Participating
104
Status Information and Troubleshooting Section 9-2
Note The data link status can also be monitored with the FinsGateway’s SLK Data
Link Setting Utility.
Other Status
Bit status Probable cause Probable remedy
The “Error log recorded” flag is ON. Error information on the SYSMAC Using the SYSMAC LINK Support
LINK Support Board (an error log) has Software or an FINS command, read
been recorded. the cause of the current error.
Alternatively, use past error log
records to troubleshoot the problem.
The “Fatal data link error” flag is ON. There is an error in the data link table Refer to 5-2 Setting Data Links and
settings. correct the data link table settings.
After correcting the settings, stop the
application and restart the system.
The “Communications controller The SYSMAC LINK Support Board is Replace the SYSMAC LINK Support
transmitter error” flag is ON. faulty. Board.
The “Communications controller The SYSMAC LINK Support Board is Replace the SYSMAC LINK Support
hardware error” flag is ON. faulty. Board.
The “Network parameter mismatch” The network parameters in EEPROM Use the SYSMAC LINK Support
flag is ON. do not agree with those being used by Software to check the current
the network parameters and correct the settings as
required.
The “Node address duplicated” flag is The same node address has been set Correct the node addresses so that
ON. more than once. each one is assigned to only one
node.
The “EEPROM write error” flag is ON. An error has occurred while writing Check the status of bits 0 to 2 in the
data to the CPU Unit’s EEPROM. same byte and correct any problems
found. If the error recurs, replace the
SYSMAC LINK Support Board.
105
Error Log Section 9-3
If the number of records exceeds 39, the oldest record will be deleted and the
most recent error recorded.
106
Error Log Section 9-3
Maximum 39 records
Record Configuration
Time Information
The time is recorded in BCD with one byte each for the year (the rightmost two
digits), month, day, hour, seconds, and minutes of the time the error occurred.
Note The SYSMAC LINK Support Board reads and uses the computer’s time informa-
tion. If the time cannot be read from the computer, all error log times will be set to
0. (When these error log records are read, they will be dated 0 s, 0 min, 0 hr, 0
day, 0 month, 2000.)
107
Error Log Section 9-3
108
Error Log Section 9-3
0203 EEPROM error 01: Read error 01: Data link Reset the relevant data. If the Yes
02: Write error tables error occurs again replace the
02: Network SYSMAC LINK Support Board.
parameters
03: Routing
tables
0208 polling node changed Address of Address of new Check previous polling node. No
previous polling polling node
node
109
Error Log Section 9-3
021A Set table logic error 00 01: Network Reset the appropriate data. Yes
parameters
02: Data link
tables
03: Routing
tables
021B Hardware error 00: Error status Replace the SYSMAC LINK No
SL1 error (See note 2.) Support Board.
01:
SL2 error
021C Data link error stopped Not set Stop the user application, reset Yes
the computer, and retry.
021D Communications cycle time Present cycle Minimum Either change the data link Yes
setting error in data link table time setting possible cycle table’s communications cycle
(2-digit time setting time setting to automatic
hexadecimal, (2-digit setting or increase the manual
ms units) hexadecimal, setting.
ms units)
0220 Additional information 1 for Bits 00 to 15 correspond to Check the network No
number of participating disconnected nodes 1 to 16 parameters, the disconnected
nodes decreased (0206) node, and the cables.
0221 Additional information 2 for Bits 00 to 15 correspond to No
number of participating disconnected nodes 17 to 32
nodes decreased (0206)
0222 Additional information 3 for Bits 00 to 15 correspond to No
number of participating disconnected nodes 33 to 48
nodes decreased (0206)
0223 Additional information 4 for Bits 00 to 15 correspond to No
number of participating disconnected nodes 49 to 62
nodes decreased (0206)
0300 Packet discarded Not set Conduct an echoback test and Yes
find the cause of the error.
Note 1. Errors indicated by error codes 0101 through 0116 are recorded only when
the frame was discarded because transmission was impossible.
110
Cleaning and Inspection Section 9-4
2. Error Status
The status of each bit indicates that an error has occurred as given in the
diagram below.
9-4-1 Cleaning
Conduct the following periodic cleaning to keep the SYSMAC LINK Support
Board in optimum condition.
• Wipe the Unit with a dry, soft cloth daily.
• If glue, vinyl, or tape is left on the Board for long periods of time, it will stain.
Remove these items during cleaning.
! Caution Do not use volatile solvents such as benzine or paint thinner, or chemical cloths
for cleaning. They will damage the quality of the coating on the Board.
9-4-2 Inspection
SYSMAC LINK Support Boards must be inspected on a regular basis to ensure
correct operation. Inspections should be conducted once every 6 to 12 months.
If the Board is subject to extremes in temperature or humidity, inspections
should be conducted on a more regular basis.
111
Handling Precautions Section 9-5
Inspection Items
Inspect the following items to see if they deviate from the prescribed standards.
If any items do deviate from the standard either adjust so they are within the op-
erating range or adjust the Board accordingly.
Item Description Inspection instrument
Ambient condi- Temperature: 5° to 45°C Thermometer
tions
i Humidity: 8% to 80% (no Hygrometer
condensation or freezing)
Dust-free Sight
Installation Board securely attached? Sight
Communications cable connectors
tight?
Communications cables securely
locked into place?
Communications cabling used for
external wiring intact (no breaks)?
Optical fiber Optical loss increasing? Confirm that optical loss
deterioration has not increased since
installation.
50/125 µm: 3.0 db/km
62.5/125 µm: 3.5 db/km
112
Handling Precautions Section 9-5
1, 2, 3... 1. Turn OFF the power supply to the computer containing Board to be re-
placed.
2. Detach the communications cables attached to the SYSMAC LINK Support
Board to be replaced and remove the Board.
3. Set the new SYSMAC LINK Support Board’s ID switch to the same setting
that was set on the previous Board.
4. Mount the SYSMAC LINK Support Board in the expansion slot of the com-
puter and connect the communications cables.
5. Turn ON the power supply to the computer where the Board was replaced
and open the FinsGateway settings.
6. Use the following procedure to set the Board as a polled node.
a) Click the Basic Tab in the FinsGateway Settings.
b) Click the Drivers Icon.
c) Select SLK (PCI) and click the Properties Button.
d) Select the Board to be set and click the Change Button.
e) Click the Driver Tab in the SYSMAC LINK (PCI) Lists Dialog Box.
f) Remove the check from the setting for the polling unit.
g) Click the OK Button.
7. Use the following procedure to start the SLKPCI-UNIT service from the
FinsGateway Settings so the Board will participate in the network.
a) Click the Basic Tab in the FinsGateway Settings.
b) Click the Services Icon.
c) Select SLKPCI-UNIT and click the Start Button.
8. Using the SLK Data Link Setting Utility in the FinsGateway or the SYSMAC
LINK Support Software, read the network parameters and make sure the
Network is operating normally.
9. Using the SLK Data Link Setting Utility in the FinsGateway, register data link
tables and routing tables in the new Board.
10. Change the Board to the polling node from the FinsGateway Settings, re-
versing the procedure in step 6., above. The RUN and INS indicators should
light on the Board. The LNK indicator may also light.
11. Check that the data links are operating normally by using the SLK Data Link
Setting Utility in the FinsGateway.
Note The following procedure can be used to start the SLK Data Link Setting Utility in
FinsGateway.
113
Appendix
Standard Models
115
Standard Models Appendix
S3200-Hjjjjjjj
Tensioner option
None: Standard (with tension member)
N: Without tension member
Cable length
jjj
A B
(A/10) x 10B m
Cable color
B: Black
O: Orange
Cable specification
L: With power supply line
C: Without power supply line
Type
B: Cord
C: Cable
116
Standard Models Appendix
Note Special training is required to assemble Optical Fiber Cables and con-
nectors with epoxy adhesive. Contact your OMRON dealer for details on
other optical fiber cords and cables.
117
Index
connections
A backup power supply,
coaxial systems, ,
access modes, SYSMAC LINK Support Board, inter-network,
SYSMAC Compolet, optical systems,
(H-PCF Cable),
AIMAX-FA,
connectors
applications, creating, attaching to cables,
BNC Connectors,
installation,
models,
B standard, ,
119
Index
errors indicators, ,
clearing, troubleshooting,
error codes, LNK,
error log, RUN, ERR & INS,
error log table, information control field,
network relay,
inspection,
processing
inspection items,
data link status,
tools and equipment,
other status,
reading, inter-network connections,
reading with C language, inter-network connections,
response codes, definition,
event frames, other OMRON networks,
routing tables,
SYSMAC LINK,
F
F-type Adapter, L
standard models,
library
features
C library, ,
data links,
functions,
message service,
overview,
SYSMAC LINK network,
SlkClearMessageOnArrival(),
FINS commands SlkClose(),
BROADCAST TEST DATA SEND, SlkGetLastError(),
BROADCAST TEST RESULTS READ, SlkGetNetworkStatus(),
command codes, SlkOpen(),
CONTROLLER DATA READ, SlkReadDatalink(),
CONTROLLER STATUS READ, SlkRecvFins(),
data format, , SlkSendFins(),
DATA LINK START, SlkSetMessageOnArrival(),
DATA LINK STATUS READ, SlkSetThreadMessageOnArrival(),
DATA LINK STOP, SlkWriteDatalink(),
ECHOBACK TEST, reading error information,
120
Index
N R
network RAS functions, , ,
interconnections,
definition, replacing
other OMRON networks, Board,
routing tables, Unit,
SYSMAC LINK, response codes
parameters, configuration,
maximum node address, response to FINS commands,
specifying, troubleshooting,
reading status,
routing tables,
relay error,
creating,
node bypass function, examples,
precautions,
setting,
O RSV,
121
Index
122
Revision History
A manual revision code appears as a suffix to the catalog number on the front cover of the manual.
Revision code
The following table outlines the changes made to the manual during each revision. Page numbers refer to the
previous version.
123