Panasonic PT-LT1A User Manual

Panasonic PT-LT1A User Manual

6F8C0894

model 2000/3000

Computer Module C2/C3 Windows NT Version User's Manual

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Important Information

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.

TOSHIBA CORPORATION 2001. All rights reserved

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Safety Precautions

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

WARNING

Indicates a potentially hazardous situation which, if not avoided,

could result in serious injury or death.

 

 

CAUTION

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.

 

 

 

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.

Notation of Markings

Prohibited

Indicates a "may not" mark.

The concrete forbiddance is indicated with a pictograph or wording.

 

 

Mandatory

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.

 

 

Caution

Indicates a caution.

The concrete content is indicated inside or near the triangle.

 

 

Note: The description of forbiddance, mandatory, and caution marks are subject to change, depending on the labels on the main unit.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

i

1.Safety Precautions during Installation WARNING

Mandatory

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 cause an electric shock or a fire.

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.

CAUTION

Mandatory

Avoid installing or storing the controller in the following environment:

A dusty place.

A place in which a corrosive gas (SO2, H2S) or combustible gas generates.

A place subjected to vibration or shocks exceeding permissible 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.

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.

Mandatory

Always install the module after turning the external power supply off. Otherwise, the module failure or an electric shock may result.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

ii

model 2000/3000 Computer Module C2/C3 Windows NT Version

2. Safety Precautions during Maintenance Servicing or Checks

WARNING

Mandatory

Mandatory

Always turn the power off when plugging or

Make certain that the external power is turned

unplugging a module or a board, or when

off before mounting or dismounting the

connecting equipment.

module after installing cables in it.

Otherwise, an electric shock accident or

Otherwise, an electric pole will appear on the

equipment failure may result.

backside of the external terminal board,

 

potentially causing an electric shock.

 

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

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.

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.

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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

iii

3. Safety Precautions in Replacing Parts with Ended Life

WARNING

Mandatory

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 abnormally 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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

iv

model 2000/3000 Computer Module C2/C3 Windows NT Version

CAUTION

Forbidden

Do not touch the ICs, terminals, connectors, solder surfaces or other parts inside the modules, except the operation section (setting switches inside 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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

v

Limitation of Applications

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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

vi

model 2000/3000 Computer Module C2/C3 Windows NT Version

Preface

The Structure of This Manual

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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

vii

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

CONTENTS

1 Windows NT . . . . . . . . . . . . . . . . . . . . . . . 1

1.1 Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.3 Other Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2 I/O Bus Support Software . . . . . . . . . . . . 5

2.1

Software Installation . . . . . . . . . . . . . . . . . . . . . . . . .

. 6

2.2

Hardware Configuration . . . . . . . . . . . . . . . . . . . . . . . .

7

2.3

Software Configuration . . . . . . . . . . . . . . . . . . . . . . . .

8

 

2.3.1 API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 8

 

2.3.2 Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 8

 

2.3.3 Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 8

 

2.3.4 G3 I/O Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 9

2.4

Precautions on Use of This Software . . . . . . . . . . . .

10

 

2.4.1 Specification Limitations and Cautions . . . . . . . . .

10

 

2.4.2 Programming Precautions . . . . . . . . . . . . . . . . . . .

10

 

2.4.3 Comparison with S2/S3 . . . . . . . . . . . . . . . . . . . . .

11

 

2.4.4 Purchasing and Development Environment . . . . . .

11

2.5

Support Input/Output Module . . . . . . . . . . . . . . . . . .

12

2.6

API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

14

 

2.6.1 Basic Processing Flow . . . . . . . . . . . . . . . . . . . . . .

14

 

2.6.2 List of APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

2.7

Batch Input/Output . . . . . . . . . . . . . . . . . . . . . . . . . . .

17

 

2.7.1 Operating Principles . . . . . . . . . . . . . . . . . . . . . . . .

17

 

2.7.2 Application Creation . . . . . . . . . . . . . . . . . . . . . . . .

18

 

2.7.3 Service Registry . . . . . . . . . . . . . . . . . . . . . . . . . . .

19

 

2.7.4 mutex (Exclusive Control) . . . . . . . . . . . . . . . . . . .

19

2.8

RAS Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

20

 

2.8.1 Self-Diagnosis . . . . . . . . . . . . . . . . . . . . . . . . . . . .

20

 

2.8.2 Event Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

20

2.9

API References . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

23

2.9.1 CreateFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

2.9.2 CloseHandle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

2.9.3 IobusGetMappedinfo . . . . . . . . . . . . . . . . . . . . . . . 24

2.9.4 IobusSetDiag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

2.9.5 IobusResetDiag . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

2.9.6 IobusRegCallbackFunc . . . . . . . . . . . . . . . . . . . . . 25

2.9.7 IobusRecvData . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.9.8 Remark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.9.9 IobusSendData . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

2.9.10 IobusRecvDataDirect . . . . . . . . . . . . . . . . . . . . . . 28

6F8C0894

ix

CONTENTS

2.9.11 IobusSendDataDirect . . . . . . . . . . . . . . . . . . . . . .29

2.9.12 IobusGetDiagInfo . . . . . . . . . . . . . . . . . . . . . . . . .30

2.9.13 IobusDoBusReset . . . . . . . . . . . . . . . . . . . . . . . .31

2.9.14 IobusModuleSuspend . . . . . . . . . . . . . . . . . . . . . .31

2.9.15 IobusModulResume . . . . . . . . . . . . . . . . . . . . . . .32

3 RAS Support Software . . . . . . . . . . . . . . 33

3.1 Overview of RAS Support Software . . . . . . . . . . . . . . 33

3.1.1 Features of RAS Hardware Processing . . . . . . . . .33 3.1.2 Function to Inform User of Interruption . . . . . . . . . .33 3.1.3 Automatic Shutdown Function . . . . . . . . . . . . . . . .34 3.1.4 RAS Information Processing Function . . . . . . . . . .34 3.1.5 Get DIP Switch State . . . . . . . . . . . . . . . . . . . . . . .34 3.1.6 LED Lighting Control . . . . . . . . . . . . . . . . . . . . . . .34 3.1.7 Functions of RAS Software Processing . . . . . . . . .34 3.1.8 Software Configuration . . . . . . . . . . . . . . . . . . . . . .35

3.2 RAS Support Commands . . . . . . . . . . . . . . . . . . . . . . 36

3.2.1 Open Command . . . . . . . . . . . . . . . . . . . . . . . . . . .37

3.2.2 Close Command . . . . . . . . . . . . . . . . . . . . . . . . . . .39

3.2.3 RAS Support Software Version Reading

Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40

3.2.4 RAS Driver Error Information Reading

Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41

3.2.5 RAS Message Receive Window Setting

Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44

3.2.6 RAS Message Receive Mail Slot Setting

Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46

3.2.7 Digital Signal Input Command . . . . . . . . . . . . . . . .48

3.2.8 LED Indication Command . . . . . . . . . . . . . . . . . . .50

3.2.9 User RAS Memory Reading Command . . . . . . . . .51

3.2.10 User RAS Memory Writing Command . . . . . . . . .52

3.2.11 System RAS Memory Reading Command . . . . . .53

3.2.12 WDT Setting Command . . . . . . . . . . . . . . . . . . . .54

3.2.13 User WDT Reset Command . . . . . . . . . . . . . . . . .55

3.2.14 User Shutdown Command . . . . . . . . . . . . . . . . . .56

3.2.15 CPU Temperature Information Reading

Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57

3.2.16 CPU Peripheral Temperature Information

Reading Command . . . . . . . . . . . . . . . . . . . . . . . .58

3.2.17 Battery Information Reading Command . . . . . . . .59

3.2.18 Switch Status Read . . . . . . . . . . . . . . . . . . . . . . .60

3.2.19 Hardware Revision Read . . . . . . . . . . . . . . . . . . .61

3.2.20 Main Unit LED Control . . . . . . . . . . . . . . . . . . . . .62

3.2.21 Main Unit LED Control (2) . . . . . . . . . . . . . . . . . .63

x

model 2000/3000 Computer Module C2/C3 Windows NT Version

CONTENTS

3.3 RAS Support Software Registering . . . . . . . . . . . . . . 64

3.3.1 Registry information of RAS drive . . . . . . . . . . . . . 64

3.3.2 Registry information of RAS service . . . . . . . . . . . 64

3.3.3 Registry information of RAS window . . . . . . . . . . . 65

3.3.4 System WDT(XRAS : SystemWdt) . . . . . . . . . . . . 65

3.3.5 Service Shutdown Diagnosis Time

(XRAS : TimerService) . . . . . . . . . . . . . . . . . . . . . 65

3.3.6 User Shutdown Diagnosis Time

(XRAS : TimerUser) . . . . . . . . . . . . . . . . . . . . . . . 66

3.3.7 Shutdown Execution Diagnosis Time

(XRAS : TimerShutdown) . . . . . . . . . . . . . . . . . . . 66

3.3.8 RAS Service Thread Priority

(XRASService : ServicePriority) . . . . . . . . . . . . . . 66

3.3.9 RAS Message ID (XRASService : MessageID) . . . 67

3.3.10 RAS Mail Slot Name

(XRASService : MailslotName) . . . . . . . . . . . . . . . 67

3.3.11 RAS Mail Slot Receiving Diagnosis Time

(XRASService : MailslotReadTimeOut) . . . . . . . . 67

3.3.12 Forced Shutdown Diagnosis Time

(XRASService : TimerForceShutdown) . . . . . . . . . 67

3.3.13 RAS Window Start Style

(XRASWindow : Startup) . . . . . . . . . . . . . . . . . . . . 68

3.3.14 RAS Window Object Name

(XRASWindow : ObjectName) . . . . . . . . . . . . . . . 68

3.3.15 Normal Window Position (X)

(XRASWindow : NormalPos.x) . . . . . . . . . . . . . . . 68

3.3.16 Normal Window Position (Y)

(XRASWindow : NormalPos.y) . . . . . . . . . . . . . . . 68

3.3.17 Mini Window Display Level

(XRASWindow : MiniLevel) . . . . . . . . . . . . . . . . . . 68

3.3.18 Mini Window Position (X)

(XRASWindow : MiniPos.x) . . . . . . . . . . . . . . . . . . 68

3.3.19 Mini Window Position (Y)

(XRASWindow : MiniPos.y) . . . . . . . . . . . . . . . . . . 68

3.3.20 RAS Include File Install Path

(XRASWindow : InstPathInclude) . . . . . . . . . . . . . 68

3.3.21 RAS Library File Install Path

(XRASWindow : InstPathLibrary) . . . . . . . . . . . . . 69

3.3.22 Option (XRAS : Option) . . . . . . . . . . . . . . . . . . . . 69

3.4 RAS Shutdown Processing . . . . . . . . . . . . . . . . . . . . 70

3.4.1 Shutdown Operation . . . . . . . . . . . . . . . . . . . . . . . 70 3.4.2 Restrictions on WindowsNT shutdown in the

RAS Support Software . . . . . . . . . . . . . . . . . . . . . 71

3.5 RAS Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

72

3.5.1 Main Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

3.5.2 Status Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

3.5.3 Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

6F8C0894

xi

CONTENTS

3.5.4 Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 3.5.5 Sensor Detection . . . . . . . . . . . . . . . . . . . . . . . . . .78 3.5.6 Operation Environment . . . . . . . . . . . . . . . . . . . . .79 3.5.7 DIO Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 3.5.8 LED Indication Color Setting . . . . . . . . . . . . . . . . .80 3.5.9 WDT Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 3.5.10 Alarm Window . . . . . . . . . . . . . . . . . . . . . . . . . . .81 3.5.11 RAS Memory Window . . . . . . . . . . . . . . . . . . . . .82 3.5.12 Event Log Window . . . . . . . . . . . . . . . . . . . . . . . .85 3.5.13 Refresh button . . . . . . . . . . . . . . . . . . . . . . . . . . .85 3.5.14 Event log information . . . . . . . . . . . . . . . . . . . . . .86 3.5.15 Registry Window . . . . . . . . . . . . . . . . . . . . . . . . .87 3.5.16 Driver Related Button . . . . . . . . . . . . . . . . . . . . . .87 3.5.17 Window Related Button . . . . . . . . . . . . . . . . . . . .89 3.5.18 Mini-Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 3.5.19 Window buttons . . . . . . . . . . . . . . . . . . . . . . . . . .91

3.6 Event Log Information . . . . . . . . . . . . . . . . . . . . . . . . . 92

3.6.1Logging Information When RAS Service Starts . . .92

3.6.2Logging Information during Operation of

RAS Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92

3.6.3 Logging Information at End of RAS Service . . . . . .93

3.6.4 Event Log List . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93

3.6.5 Event Log Detail . . . . . . . . . . . . . . . . . . . . . . . . . . .94

xii

model 2000/3000 Computer Module C2/C3 Windows NT Version

Chapter 1 Windows NT 1

This chapter describes cautions and other matters in using Windows NT4.0 on the

Computer Modules of the Integrated Controller.

The reader is invited to read manuals published by Microsoft and books sold in bookstores for the full information on Windows NT.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

1

Chapter 1 Windows NT

1 1.1 Precautions

Power Supply

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 55oC), to notify a 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

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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

2

model 2000/3000 Computer Module C2/C3 Windows NT Version

 

1.2 Initialization

 

1.2 Initialization

1

 

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 Engineering)2 also is stored under SP6a. Be sure to install QFE also 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.

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 driver can be installed as follows:

"Control Panel" "Screen" "Display Setting" "Display Type" select "Change" in Adapter Type select "NeoMagic" in Manufacturer specify "Disk Used"

A correction program to avoid specified faults and problems, which are not contained in the Service Pack, supplied by Microsoft.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

3

 

Chapter 1 Windows NT

 

1.3 Other Information

1

 

 

Driver Storage Positions

 

 

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 CD-

 

ROM.

i386

A device driver supported by Windows NT as a standard

 

provision.

DRVLIB

A device driver by driver distribution service of CompuServe of

 

the United States manufactured by a third party.

DRVLIBJ

A 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.

TOSHIBA

A network driver graphic driver for Ethernet port of the main

 

unit.

SP6a

Service 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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

4

model 2000/3000 Computer Module C2/C3 Windows NT Version

Chapter 2 I/O Bus 2

Support Software

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)

• Parallel I/O Instruction Manual

(6E8C3785)

• Pulse Input Module Instruction Manual (PI312)

(6E8C3968)

Analog Input Module Instruction Manual

(6E8C3969)

Sequence Controller S2

Hardware Manual

(6E8C3857)

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

5

Chapter 2 I/O Bus Support Software

2.1

Software Installation

 

 

This software is supplied in floppy disks.

2

 

 

When reinstalling this software in a machine, in which this software is already installed,

 

temporarily uninstall (delete) the software and install it again as follows:

 

 

START Menu "Program" Select "Uninstall" in the holder "Toshiba G310 Support

 

 

 

 

Software"

 

 

After uninstalling, restart the system.

 

 

Execute setup.exe stored in the first floppy disks. Then operate by following guidance

 

 

messages displayed on the screen.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6

model 2000/3000 Computer Module C2/C3 Windows NT Version

2.2 Hardware Configuration

2.2 Hardware Configuration

figure 2-1shows the maximum hardware configuration of C3 supported by this software.

Basic Unit

576-Points/Basic Base (BU719)

2

 

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

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

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

7

Chapter 2 I/O Bus Support Software

2.3 Software Configuration

2

Win32 Application

Logon Process

Tool

 

Service

 

 

G3 I/O I/F(DLL)

 

 

 

Security

 

Win32

 

Subsystem

 

 

 

Sub System

 

 

 

 

User Mode

Kernel Mode

System Service

Security

Process

Local

Virtual

 

I/O Manager

Monitor

Manager

Procedure

Memory

 

 

 

G3 I/O Driver

 

 

Call

Manager

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Kernel

Hardware Abstraction Layer (HAL)

HARDWARE

Figure 2-2 G3 I/O Support Software Configuration

2.3.1API

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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

8

model 2000/3000 Computer Module C2/C3 Windows NT Version

2.3 Software Configuration

 

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

2

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 larger than 0 (in cycles); default value 5

 

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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

9

Chapter 2 I/O Bus Support Software

2.4 Precautions on Use of This Software

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

2 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 configurations and other elements).

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 reference "IobusRegCallbackFunc."

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 Batch Input/Output"

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

10

model 2000/3000 Computer Module C2/C3 Windows NT Version

2.4 Precautions on Use of This Software

2.4.3Comparison with S2/S3

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 2 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.

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

11

Chapter 2 I/O Bus Support Software

2.5 Support Input/Output Module

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.

2

model 2000 Support Module

Table 2-1 Output Module

Classification

Model

Specification

Points

 

 

 

 

Transistor Output

DO633

DC5-24V

16 points

 

 

 

 

 

DO634

DC5-24V

32 points

 

 

 

 

 

DO635

DC5-24V

64 points

 

 

 

 

 

DO633P

DC 12-24V source output

16 points

 

 

 

 

Triac Output

AC663

AC100-240V

12 points

 

 

 

 

Contact Output

RO663

AC240V/DC24V

16 points

 

 

 

 

 

RO662S

AC 240V/DC 24V independent common

8 points

 

 

 

 

Analog Output

DA622L

8bit 4 to 20mA/1 to 5V/0 to 10V

2ch

 

 

 

 

 

DA622

12bit 4 to 20mA/1 to 5V 15 12bit ±10V

2ch

 

 

 

 

 

DA672

12bit ±10V

2ch

 

 

 

 

Table 2-2 Input Module

Classification

Model

Specification

points

 

 

 

 

DC/AC Input

DI633

DC/AC 12-24V

16 points

 

 

 

 

DC Input

DI634

DC24V

32 points

 

 

 

 

 

DI635

DC24V

64 points

 

 

 

 

 

DI335H

DC 24V high-speed response type

64 points

 

 

 

 

AC Input

IN653

AC100-120V

16 points

 

 

 

 

 

IN663

AC200-240V

16 points

 

 

 

 

Analog Input

AD624L

8bit 1 to 5V

4ch

 

 

 

 

 

AD624

12bit 1 to 5V

4ch

 

 

 

 

 

AD634L

8bit 0 to 10V

4ch

 

 

 

 

 

AD338

12bit ±10V

4ch

 

 

 

 

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

12

model 2000/3000 Computer Module C2/C3 Windows NT Version

2.5 Support Input/Output Module

model 3000 Support Module

Table 2-3 Input Module

Classification

Model

Specification

points

 

2

 

 

 

 

 

 

 

 

DC Input

DI334

DC12/24V

32 points

 

 

 

 

 

 

 

 

 

DI334H

DC 12/24V high-speed response type

32 points

 

 

 

 

 

 

 

 

 

DI344

DC48V

32 points

 

 

 

 

 

 

 

 

 

DI335

DC24V

64 points

 

 

 

 

 

 

 

 

 

DI335H

DC 24V high-speed response type

64 points

 

 

 

 

 

 

 

 

AC Input

IN354

AC100V

32 points

 

 

 

 

 

 

 

 

 

IN364

AC200V

32 points

 

 

 

 

 

 

 

 

Analog Input

AD368

Voltage/current input

8ch

 

 

 

 

 

 

 

 

 

AD318

0 to 5V high-speed type

8ch

 

 

 

 

 

 

 

 

 

AD328

0 to 20mA high-speed type

8ch

 

 

 

 

 

 

 

 

 

AD338

±10V high-speed type

8ch

 

 

 

 

 

 

 

 

Status Change

CD332

DC12/24V

8 points

 

 

Detection

 

 

 

 

 

 

 

 

 

 

 

Pulse Input

PI312

50kbps DC5/12V

2ch

 

 

 

 

 

 

 

 

 

Table 2-4 Output Module

 

 

 

 

 

 

 

 

 

Classification

Model

Specification

points

 

 

 

 

 

 

 

 

Transistor Output

DO333

DC24V

16 points

 

 

 

 

 

 

 

 

 

DO334

DC24V

32 points

 

 

 

 

 

 

 

 

 

DO335

DC24V

64 points

 

 

 

 

 

 

 

 

 

DO344

DC48V

32 points

 

 

 

 

 

 

 

 

Triac Output

AC363

AC100/200V

16 points

 

 

 

 

 

 

 

 

 

AC364

AC100/200V

32 points

 

 

 

 

 

 

 

 

Contact Output

RO364

AC250V/DC30V

32 points

 

 

 

 

 

 

 

 

 

RO363S

AC 250V/DC 30V independent common

16 points

 

 

 

 

 

 

 

 

Analog Output

DA364

Voltage output

4ch

 

 

 

 

 

 

 

 

 

DA374

Current output

4ch

 

 

 

 

 

 

 

 

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

13

Chapter 2 I/O Bus Support Software

2.6API

2.6.1Basic Processing Flow

2

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

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

14

model 2000/3000 Computer Module C2/C3 Windows NT Version

 

2.6 API

 

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.

2

(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.

 

• Library Setting

(1)Select "Set (S) ..." in the "Project (P)" Menu.

(2)Select "Link" Tab and add g3iolib.lib to "Object/Library Module (L)."

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

6F8C0894

15

Chapter 2 I/O Bus Support Software

2.6.2List of APIs

The APIs provided by this support software are listed below: CreateFile(Win32)

2 • Get file handle CloseHandle(Win32)

Release file handle IobusGetMappedinfo

Get result of automatic mapping IobusSetDiag

Specify execution of module diagnosis (Equivalent to I/O error map create feature)

IobusResetDiag

Reset module diagnosis execute IobusRegCallbackFunc

Specify callback function when interrupt is generated IobusRecvData

Batch input of data

IobusSendData

Batch output of data IobusRecvDataDirect

Direct data input IobusSendDataDirect

Direct data output IobusGetDiagInfo

Get result of module diagnosis IobusDoBusReset

Issue bus reset command IobusModuleSuspend

Set access disable of I/O modules IobusModulResume

Reset access disable of I/O modules

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

16

model 2000/3000 Computer Module C2/C3 Windows NT Version

Loading...
+ 86 hidden pages