No patent liability is assumed by TOSHIBA Corporation with respect to use of information, illustrations,
circuits, equipment or examples of application in this publication.
TOSHIBA Corporation reserves the right to make changes and improvements to this publication and/or
related products at any time without notice. No obligation shall be incurred other than as noted in this
publication.
This publication is copyrighted and contains proprietary material. No part of this book may be reproduced,
stored in a retrieval system, or transmitted, in any form or by any means — electrical, mechanical,
photocopying, recording, or otherwise — without obtaining prior written permission from TOSHIBA
Corporation.
PROSEC, TOSLINE and TOSDIC are trademarks or registered trademarks of TOSHIBA Corporation.
IBM is a registered trademark of International Business Machines Corporation.
Microsoft, MS-DOS, Windows and Windows NT are registered trademarks of Microsoft Corporation in the
U.S.A. and other countries.
Ethernet is a registered trademark of Xerox Corporation.
DeviceNet is a trademark of the Open DeviceNet Vender Association, Inc.
This manual contains important information for the operator to operate this product safely and correctly
and avoid bodily injury and property damage.
Grasp the meanings of the following marks and their descriptions before reading this manual.
Hazard Classifications
Indicates a potentially hazardous situation which, if not avoided,
WARNING
CAUTION
Note: 1. Serious injury means loss of sight, injury, burns (high temperature, low temperature), electrical
shock, fracture, or intoxication which leaves aftereffects or requires hospitalization or need to
go to the hospital for a long time.
2. Injury means hurt, burn, or electrical shock which does not require hospitalization or going to
the hospital for a long time.
3. Property damage means extended breakdown of assets and materials.
could result in serious injury or death.
Indicates a potentially hazardous situation which, if not a avoided,
can result in minor or moderate injury, or property damage. It can
also be used to alert against unsafe practices.
Notation of Markings
Indicates a "may not" mark.
Prohibited
Mandatory
Caution
Note: The description of forbiddance, mandatory, and caution marks are subject to change, depending
on the labels on the main unit.
The concrete forbiddance is indicated with a pictograph or wording.
Indicate a mandatory action that you should never fail to do.
The concrete content is indicated inside or near the circle with a
pictograph or wording.
Indicates a caution.
The concrete content is indicated inside or near the triangle.
Make certain to ground the transmission
paths by grounding with 100ɹ or less ground
resistance exclusively for each segment.
Ground at one point.
Noncompliance may cause transmission
errors.
Noncompliance may cau se an elect ric sh ock
or a fire.
CAUTION
Mandatory
Avoid installing or storing the controller in the
following environment:
• A dusty place.
• A place in which a corrosive gas (SO
or combustible gas generates.
• A place subjected to vibration or shocks
exceeding pe rmissible values.
• A place that causes condensation due to
sudden temperature changes.
• Low or high temperature outside of
installation conditions.
• High humidity outside of installation
conditions.
• Direct sunshine.
• Near equipment that emits a strong radio
wave or magnetic field.
, H2S)
2
Mandatory
Do not impress high voltage to a connector or
a terminal board exceeding rated voltage,
such as 100V AC. Always connect to correct
polarity. Incorrect polarity may cause an electric shock or a fire.
Mandatory
Install the equipment in a place affording
easy maintenance servicing and checks.
Otherwise, a trouble may be caused during
a failure, resulting in a major accident.
Forbidden
Do not block the ventilation port or suction/
exhaust port of the equipment.
Otherwise, overheating or other phenomena may cause a fire or a failure.
Mandatory
Noncompliance with the installation
conditions described in this manual during
system installation or wiring may disable
the controller to demonstrate its design
performance and may cause equipment
malfunction or failures.
ii
Mandatory
Always install the module after turning the
external power supply off. Otherwise, the
module failure or an electric shock may
result.
model 2000/3000 Computer Module C2/C3 Windows NT Version
2. Safety Precautions during Maintenance Servicing or Checks
Always turn the power off when plugging or
unplugging a module or a board, or when
connecting equipment.
Otherwise, an electric shock accident or
equipment failure may result.
CAUTION
Forbidden
Exercise reasonable care and do not drop, collide with other article or apply a strong shock
to the equipment or a board.
Otherwise, a failure may result.
Mandatory
Make certain that the external power is turned
off before mounting or dismounting the
module after installing cables in it.
Otherwise, an electric pole will appear on the
backside of the external terminal board,
potentially causing an electric shock.
Mandatory
Place a conducting mat or a conducting bag
(bag containing a spare board or other part) on
a grounded table and put a board or the
module removed from a unit or a base unit on
the table.
Otherwise, parts may be damaged by static
electricity or other phenomenon.
Mandatory
Discharge static electricity charged on human
body by touching a grounded metal before
touching the equipment or a board.
Otherwise, static electricity may cause
equipment malfunction or a failure.
Mandatory
Clean equipment, a module or board dirtiness
using a soft cloth. Use a cloth moistened with
water and wringed if dirtiness is stiff.
The equipment, the module or a board left
dirty may cause a wrong decision or
malfunction.
6F8C0894
Forbidden
Do not use benzine, thinner or other solvent
when cleaning a module or a board.
Otherwise, a panel, module or board may
deform or discolor.
iii
3. Safety Precautions in Replacing Parts with Ended Life
Make certain to set the switch of any
equipment to the OFF position before replacing
a power fuse or an alarm fuse installed in the
equipment.
Otherwise, an electric shock or a fire may
result.
4. Safety Precautions in Daily Operation
WARNING
Mandatory
Make certain to check that the power supply
capacity, frequency, voltage and regulation
meet the equipment specification.
Otherwise, the controller will not be able to
demonstrate its design performance and may
cause equipment damage, a fire due to
overheating, or other trouble.
Mandatory
In case the ambient or internal temperature of
the equipment increases abnorm all y or the
equipment fails, stop operating and turn the
power off to the equipment. Then contact the
Toshiba distributor in your area.
Continuing to operate the equipment without
taking any action may result in a fire due to
overheating or other trouble.
iv
model 2000/3000 Computer Module C2/C3 Windows NT Version
Do not touch the ICs, terminals, connectors,
solder surfaces or other parts insid e the
modules, except the operation section (setting
switches insi de the module).
Otherwise, ICs, LSIs or other devices may be
destroyed by static electricity, resulting in a
failure. An injury by the terminal of a parts
lead wire or a burn by a high-temperature part
may result.
Forbidden
Do not disassemble or remodel the
equipment, module or a board.
Otherwise, equipment safety may be lost
and equipment malfunction or failure may
potentially result.
Forbidden
Do not bend, pull or twist the power cord or
cable too strongly.
This may cause wire breakage or heating.
Forbidden
Do not insert a metal piece or drop a paper clip
through a clearance in the equipment body.
A fire or other trouble may result.
5. Safety Precautions During Transportation, Storage and Scrapping
CAUTION
Mandatory
Comply with ordinances or regulations of
the local government in your area when
discarding the product.
Forbidden
When transporting or storing, put the product
in a conducting bag and pack it in a crated
box.
Otherwise, a failure may result.
The equipment has been designed and manufactured for use in an industrial environment.
However, the equipment is not intended to be used for systems which can endanger human life
(Note 1).
Consult Toshiba if you intend to use the equipment for a special application which involves human
life and has great influence on the maintenance of the public function (Note 2). This is why such
application requires special care on the operation, maintenance, and control of the system (Note 3).
(Note 1) The systems which can endanger human life are life maintenance systems, equipment
installed in the surgery, and other medical equipment.
(Note 2) The systems which involve human life and have great influence on the maintenance of the
public function mean the main control system of a nuclear power plant, safety and
protection system of a nuclear power facility, transport operation and control systems for
mass transportation, control systems of aviation and space systems, and other systems
and subsystems where safety is critical.
(Note 3) "Special care" means to build a safety system (foolproof design, fail safe design,
redundancy design, etc.) in full consultation with Toshiba's engineers.
Immunity
Toshiba is not liable for any loss caused by fire, earthquake, action by a third party, or other
accidents, or the operator's intentional or accidental misuse, incorrect use, or use under abnormal
condition.
Toshiba is not liable for any incidental loss caused by the use or non-use of this product, such as
loss of business profits, suspension of business, or loss or change of data on memory.
Toshiba is not liable for the loss caused by an operation contradictory to any of the instructions
stated in this manual.
Toshiba is not liable for the loss caused by an incorrect operation in combination with other
equipment.
Toshiba is not liable for the loss caused by a malfunction in combination with an application program
made by the customer.
NOTE:
Use cellular phones and PHSs at least one meter away from the working equipment, transmission
cables, and I/O bus cable. Otherwise, the system can malfunction.
vi
model 2000/3000 Computer Module C2/C3 Windows NT Version
This manual describes Windows NT, the operating system of Microsoft Corporation,
installed in the Computer Modules C2/C3 of the Integrated Controller, with a focus on the
features added or extended to the operating system. The reader is invited to read
manuals of Microsoft for the full information on Windows NT.
This manual is composed of the following chapters:
Chapter 1 Windows NT
Chapter 1 describes initial settings of Windows NT, which is preinstalled, and other
matters.
Chapter 2 I/O Bus Support Software
The C2/C3 can directly control the parallel bus I/O modules. This chapter describes
the I/O bus support features, which control the modules, and API.
Chapter 3 RAS Support Software
This chapter describes the RAS features of the C2/C3 and usage of them.
Turning the power off before normal ending of Windows NT may damage the file system
and important files. In the worst case, Windows NT cannot potentially be started.
Make certain to execute finish processing of Windows NT before turning the power off.
Also, make certain to supply the power that is always stable.
Detection of Abnormal Temperature
If the operating environment is not suitable, the inside temperature of the main unit may
exceed the specified value, which potentially presents a hazard of a system fault due to
equipment malfunction.
The C2/C3 monitors the CPU temperature through the RAS feature and generates an
alarm in case the temperature exceeds a preset value (currently 55
trouble. It is strongly recommended that application systems incorporate a program that
detects this alarm. The program should inform the operator about a trouble and stop the
system till the cause for a temperature error is removed when it receives such notice.
See the XrasUserWindow Command in "RAS Support Software" in chapter 3 for a
method to detect a temperature error by a specific application program.
File Backing Up
o
C), to notify a
Back up important files from time to time by copying files into backup files. Important files
cannot be restored in case they are lost by an unanticipated accident, unless they are
stored in backup files.
Changing Registry Value
Changes of the registry, which stores set values and registration information of Windows
NT require very careful execution. If an error is made in making a change, system
startup may be disabled.
Service Pack1 Installation
Reinstall the Service Pack when the system configuration is added or changed, such as
network protocol addition.
Caution for setting memory space addresses for PCMCIA card
Note that memory addresses 0xC8000 to 0xCA000 cannot be used for a PCMCIA card
or other card when mounting a card to use memory spaces in PCMCIA slots.
This is not shown in the Windows NT resource display , but a graphic chip also uses these
addresses.
1. A collection of Windows NT bug correction modules supplied by Microsoft. The
Service Pack is stored in the root directory of Drive C in "SP6a" or other name.
2
model 2000/3000 Computer Module C2/C3 Windows NT Version
When shipped from the factory, Windows NT is set as follows:
Version
Windows NT4.0 Workstation (Build 1381 Service Pack 6)
This is the version as of May 29 2000. The Service Pack version may vary depending on
the release status of Microsoft Corporation.
The Service Pack is stored in the hard disk as C:¥SP6a.
QFE (Quick Fix Engineer in g)
after installing SP6a.
Registered User Name
administrator (No password)
Guest (No password)
User management is executed by [User Manager] inside [Control Tool Group] after
logging on by "administrator" when adding a new user or setting or changing a password.
Network
No software setting
When using the 10BASE-T port on the C2/C3 main unit, use the network driver supplied
as an accessory, instead of a Windows NT CD-ROM driver.
Make certain to reinstall the Service Pack after setting the network.
2
also is stored under SP6a. Be sure to install QFE also
1
Graphic
Standard VGA Driver
Using the graphic driver supplied as an accessory (NeoMagic MagicGraph 128/Z/ZV),
the C2/C3 accomplishes screen display with a resolution of 1024 x 768 and 65,536 color
pallet colors.
The device drivers and other applications are stored under the following directories
during preinstallation. This directory configuration is the same as that in the backup CDROM.
i386A device driver supported by Windows NT as a standard
provision.
DRVLIBA device driver by driver distribution service of CompuServe of
the United States manufactured by a third party.
DRVLIBJA device driver manufactured by a third party in Japan
(Japanese version only)
SUPPORT¥USPRNDRV A printer driver supplied with Windows NT of the US version as
a standard provision.
TOSHIBAA network driver graphic driver for Ethernet port of the main
unit.
SP6aService Pack 6a (contains QFE)
A path for the driver storage directory needs be specified when installing a driver or other
application. If the CD-ROM cannot be used when "E:¥i386" or other data is displayed,
execute by specifying "C:¥i386" in the field for path name specification.
These directories store drivers needed in driver installation during a system configuration
change or in other instances. These drivers can be deleted without affecting Windows
NT operation if system configuration changes are not required.
These directories will not be created when the customer reinstalls Windows NT. Specify
driver paths for directories needed for driver installation, to read from the CD-ROM. If the
CD-ROM is assigned to Drive E, specify "E:¥driver path name."
Floppy Disks Attached
The floppy disks supplied with the equipment store modules of various features
described in this manual.
Revision Upgrading
When the version of the preinstalled Windows NT is upgraded, the latest version of
Windows NT has to be purchased separately.
The customer needs to purchase and install the Service Pack separately for revision
upgrading. The latest Service Pack can be purchased at cost through a Web site or from
Microsoft.
4
model 2000/3000 Computer Module C2/C3 Windows NT Version
This chapter describes the I/O bus support software.
This software supports data from the C2/C3 input to and output from the various I/O
modules connected to the I/O bus. This software enables direct access of the I/O
modules from Windows NT, thereby easily accomplishing system construction with only
the C2/C3.
The following advantages can be derived by using this software:
• Easy creation of an I/O control application system merging screen control and network
features.
• This means that linkage with SCADA (supervisory control and data acquisition)
software can be accomplished easily.
• An enhanced development environment of Windows NT can be used when creating
an I/O access program.
• Processing of a high parallelism by using multi process and multi thread.
• The same machine can develop and execute programs.
References:
The reader is recommended to read the following documents also after reading this
manual:
• Sequence Controller S3 Main Unit Instruction Manual(6E8C3783)
figure 2-1shows the maximum hardware configuration of C3 supported by this software.
2.2 Hardware Configuration
Basic Unit
576-Points/Basic Base (BU719)
Expansion Units 1-1 to 1-7
Expansion Units 1-1 to 1-7
Expansion Units 1-1 to 1-7
Maximum Number of Points for Two Systems
10432 points/When expansion base for 11 boards is used
5962 points/When expansion base for 6 boards is used
Maximum Number of Points for Up To Three Systems
15360 points/When expansion base for 11 boards is used
8640 points/When expansion base for 6 boards is used
Maximum Number of Points for Up To Four Systems
20288 points/When expansion base for 11 boards is used
11328 points/When expansion base for 6 boards is used
2
1280 points/When expansion base for 11 boards is used
960 points/When expansion base for 6 boards is used
Expansion Unit
1984 points/When expansion base for 11 boards is used
1344 points/When expansion base for 6 boards is used
Expansion Unit
2688 points/When expansion base for 11 boards is used
1728 points/When expansion base for 6 boards is used
Expansion Unit
3392 points/When expansion base for 11 boards is used
2112 points/When expansion base for 6 boards is used
Expansion Unit
4096 points/When expansion base for 11 boards is used
2496 points/When expansion base for 6 boards is used
Expansion Unit
4800 points/When expansion base for 11 boards is used
2880 points/When expansion base for 6 boards is used
5504 points/When expansion base for 11 boards is used
3264 points/When expansion base for 6 boards is used
Expansion Unit
Figure 2-1 Maximum Hardware Configuration of C3 2 Basic Unit
The API needed for an application to access an I/O module is mounted as DLL. The file
name of DLL is "g3iolib.dll."
The API provides interfaces for data input and output, various initializations, module error
information acquisition and other purposes.
2.3.2Service
The service manages startup function registration when interrupts from the application
are generated. In case an I/O module specified for startup is interrupted, the user
function registered in advance is executed. The service manages batch input/output
data between the driver and application.
The parameters to specify operations by the batch input/output feature are stored in the
registry. For the complete information, see "2.7 Batch Input/Output"
2.3.3Tool
The tool is a GUI tool that operates on Windows NT. Using this tool, the following
settings can be executed and information can be displayed.
(1) Individual mapping
The tool sets the types of mounting slots and modules of the I/O modules. Specify
mounting slots by a channel number, unit or a position inside a unit. Specify module
types by selecting from X, Y, X+Y, iX, iY and iX+Y.
The set information will be stored in the registry and will be looked up when the driver
starts up.
8
model 2000/3000 Computer Module C2/C3 Windows NT Version
Individual mapping information, which is specified once, can be cancelled and automatic
mapping can be executed.
(2) Display of result of automatic mapping
In case individual mapping is not specified, the driver will execute automatic mapping
when the system is started. The tool displays results of automatic mapping.
(3) I/O bus mapping address change
Addresses of a memory space to be used by the I/O bus can be changed.
A change is not required in normal operations. A change is needed only if an address
conflicts when a PC card is used.
The following two addresses can be selected:
A) 0xD0000-0xD7FFF (Default)
B) 0xD8000-0xDFFFF
(4) Setting I/O bus time-out diagnosis time
An I/O bus time-out diagnosis time is set. If ACK is not returned within a preset time, a
hardware error will be declared and subsequent I/O bus accesses will be disabled.
A diagnosis time can be set between 4µs minimum and 60µs maximum in increments of
4µs. Default is set at 32µs.
The following settings can be executed by directly changing registry values using the
registry editor:
• Execute/non-execute on startup of module diagnosis
Whether or not to diagnose faults of the I/O modules executed by the device driver
should be executed beginning system startup can be specified.
Key: DiagStart
Value: 0 (Non-execute on start [default]) or 1 (Execute on start)
If execution is not started on start, diagnosis can be started using the function
"IobusSetDiag."
• Module diagnosis time interval
A time interval to execute the foregoing module diagnosis is specified.
Key: DiagInterval
Value: An integer larger than 0 (in seconds); default value 5
• Number of retry sessions during module error detection
The number of retries executed when an error occurs in module accessing is specified.
The driver tries accessing for the specified number. If errors still continue, the status of
the module is set to "error" and this module will be excluded in subsequent accessing.
By increasing this value, the resistance to temporary module errors increases. However,
the input/output speed will lower.
Key: RetryCount
Value: An integer larg er than 0 (in cycles); default va lue 5
2
2.3.4G3 I/O Driver
A G3 I/O access driver that functions as an I/O driver of Windows NT. The driver
processes data input/output from applications via API and initialize requests.
Operations of this driver are transparent to the application program.
This software implements the features provided by S3 and S2 designed exclusively for I/
O module control. The integrated controller basically differs from the so-called PLC in
hardware and software and an application system must be designed heeding to the
following when constructing an application system.
2.4.1Specification Limitations and Cautions
• In case more than one controller are installed in the same basic unit, only one
controller installed in Slot 0 can control the I/O modules.
• The interrupt response time may vary depending on the system environment
(hardware and software configur ations and other elem ent s).
• Intervals of interrupts from modules that may generate interrupts such as CDDIs and
intervals of timer interrupts by software must be designed taking the load of the entire
system into consideration. If intervals are too short, the response performance of the
entire system may be lowered.
• A feature equivalent to the fixed-time scan feature in S3 can be implemented using
Win32API. The interval accuracy depends on the features and performance provided
by Windows NT.
• Depending on how the priority is set by application, operation of this software may
delay by operations of other Windows applications.
• If I/O module accessing causes a time-out, scan execution period by the service will
delay.
2.4.2Programming Precautions
• Application programs are created as Win32 applications.
The application programs call functions supplied by this support software and access
the I/O modules.
• Fixed-cycle interrupts can be implemented by using a feature provided by Win32API.
• In both floating scanning and fixed-time scanning, the control structure such as
repeating has to be described by an application itself.
• The startup timing of application programs that use the features of this software is the
same as in starting ordinary Win32 applications.
• Execution of a program without releasing the CPU will deteriorate the response of the
entire system.
• Functions can be started up by interrupts such as CDDIs. These functions are
executed as threads and a library (libcmt.lib) compatible to multithreads must be linked
during coding.
For the complete information, see the API referen ce "Io bus Reg Cal lba ckF un c."
• Function ending and data sending to an actual device of batch output functions in this
support software are not synchronized. Data is stored by output operation of the
service.
For the complete information, see "2.7 Ba tch Input/Output"
10
model 2000/3000 Computer Module C2/C3 Windows NT Version
• The feature "In case one scan processing time exceeds a preset time in fixed-time
scanning, scanning will change to floating scan, but will reset to fixed-time scanning
when the processing time returns" in S2/S3 is not provided. If this processing is
needed, it must be processed by an application program.
• Modes corresponding to HALT, HOLD and DEBUG in mode control processing
provided by S2/S3 are not available.
• Normally operated in a mode corresponding to RUN or RUN-F. The mode will change
to the ERROR mode if a critical error occurs, stopping the access feature.
Whether normal operations correspond to RUN or RUN-F depends on coding of the
application program.
• User data is initialized by data setting by an application program.
• A feature to latch user data in a power failure is not provided.
2.4.4Purchasing and Development Environment
• This software is authorized to be installed in one each application development
machine and target machine only. The user is requested to kindly purchase this
software for each of target machines in case more than one target machine are used.
• A C/C++ development environment for Windows NT, such as Visual C++ of Microsoft,
needs be purchased in developing application programs.
The input and output modules supported by this software are listed below. For the
complete information of each module, see related information of the I/O modules.
As a rule, the I/O bus support API is used in the following flow:
(1) Gets a file handle by CreateFile (WIN32 API).
(2) Gets results of automatic mapping by IobusGetMappedinfo. (Option)
(3) Registers callback function for interrupts by IobusRegCallbackFunc. (Option)
(4) Specifies module diagnosis during I/O execution by IobusSetDiag. (Option)
(5) Issues Iobus{RecvData|SendData|RecvDataDirect|SendDataDirect} and executes
batch data input and output and direct input and output.
Executes registration functions when an interrupt generates or at a fixed cycle.
(6) Repeats Step 5) for a necessary number of operations.
(7) Releases the file handle gotten in Step 1) by CloseHandle (WIN32 API) and ends the
flow.
Functions are provided by g3iolib.dll and g3iolib.lib and these functions are prefixed
"Iobus." When using each function, include Header File g3iolib.h.
The files will be stored in the following positions:
C:¥Program Files¥TOSHIBA¥G3IO¥bin¥g3iolib.dll
C:¥Program Files¥TOSHIBA¥G3IO¥include¥g3iolib.h
C:¥Program Files¥TOSHIBA¥G3IO¥lib¥g3iolib.lib
14
model 2000/3000 Computer Module C2/C3 Windows NT Version
Directories and libraries are set as follows in Visual C++5.0 (and subsequent versions) of
Microsoft:
• Directory Setting
Set a directory to search header files and library files.
(1) Select "Option (O) ..." in the "Tool (T)" Menu.
(2) Select "Directory" Tab.
(3) Select "Include File" in "Directory to Show (S)."
(4) Add "C:¥Program Files¥TOSHIBA¥G3IO¥include" to the new path.
(5) Click "OK" to complete setting.
2
• Library Setting
(1) Select "Set (S) ..." in the "Project (P)" Menu.
(2) Select "Link" Tab and add g3iolib.lib to "Object/Library Module (L)."